/* ==========================================================
   Isa Filizola — Portfolio
   Plain CSS, mobile-first. One stylesheet for every page.
   ========================================================== */

:root {
  --bg: #fcfaf8;
  --surface: #ffffff;
  --ink: #1f1f22;
  --text: #45454b;
  --muted: #707077;
  --line: #ebe5e1;
  --magenta: #e83c62;          /* brand accent: large text, shapes, buttons */
  --magenta-ink: #c2224a;      /* accent for small text (AA contrast) */
  --magenta-soft: #fdeef2;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 31, 34, .04), 0 10px 30px -12px rgba(31, 31, 34, .14);
  --max: 1120px;
  --gutter: 20px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 248, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-sub { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.logo {
  font: 800 1.1rem/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--magenta);
}
.logo:hover { color: var(--magenta-ink); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font: 600 .92rem/1 var(--font-head); color: var(--ink); text-decoration: none;
}
.nav-links a:hover { background: var(--magenta-soft); color: var(--magenta-ink); }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface);
}
.lang-switch a, .lang-switch span {
  font: 700 .75rem/1 var(--font-head); letter-spacing: .04em; padding: 7px 10px; border-radius: 999px; text-decoration: none;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] { background: var(--ink); color: #fff; }

/* Mobile menu (no JS: <details>) */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  font: 600 1rem/1.2 var(--font-head); color: var(--ink);
}
.menu-panel a:hover { background: var(--magenta-soft); color: var(--magenta-ink); }

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .menu { display: none; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--magenta);
  font: 700 .95rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 600 .82rem/1.2 var(--font-body); color: var(--ink);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4em; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 72px; }
.section + .section { padding-top: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-ink);
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--magenta); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--magenta); }
.hero-rule { width: 88px; height: 4px; border-radius: 4px; background: var(--magenta); margin: 0 0 28px; border: 0; }
.hero-intro { font-size: 1.08rem; max-width: 600px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; list-style: none; padding: 0; }
.hero-meta a { text-decoration: none; }
.hero-meta svg { width: 16px; height: 16px; color: var(--magenta); flex: none; }
.chip.is-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px rgba(43,182,115,.18);
}

.hero-photo { position: relative; margin: 0 10px 10px 0; max-width: 440px; justify-self: center; width: calc(100% - 10px); }
.hero-photo::before {
  content: ""; position: absolute; inset: 14px -10px -10px 14px; border-radius: 28px;
  border: 2px solid var(--magenta);
}
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%;
  border-radius: 28px; background: var(--line);
}

@media (min-width: 900px) {
  .hero { padding-block: 64px 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-photo { justify-self: end; margin: 0 14px 14px 0; }
  .hero-photo::before { inset: 18px -14px -14px 18px; }
}

/* ---------- Project cards (home) ---------- */
.projects { display: grid; gap: 28px; }
.project-card {
  display: grid; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow);
}
.project-card h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; color: var(--magenta); margin-bottom: .2em; letter-spacing: -.02em; }
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card h3 a:hover { color: var(--ink); }
.project-tagline { font: 700 1.05rem/1.4 var(--font-head); color: var(--ink); margin-bottom: .8em; }
.project-num { font: 800 .8rem/1 var(--font-head); color: var(--muted); letter-spacing: .12em; margin-bottom: 14px; display: block; }

.meta-list { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; }
.meta-list div { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.meta-list dt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); min-width: 118px; }
.meta-list dt svg { width: 16px; height: 16px; color: var(--magenta); }
.meta-list dd { margin: 0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.compare figure { margin: 0; position: relative; }
.compare img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
  border-radius: 14px; background: #efebe8; border: 1px solid var(--line);
}
.compare figcaption {
  position: absolute; left: 10px; top: 10px;
  font: 700 .7rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
}
.compare figure:last-child figcaption { background: var(--magenta); color: #fff; }

@media (min-width: 900px) {
  .project-card { grid-template-columns: .9fr 1.1fr; padding: 40px; gap: 48px; }
  .project-card:nth-child(even) .project-media { order: -1; }
}

/* ---------- Timeline (education / experience) ---------- */
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--magenta);
}
.timeline .when { font: 700 .8rem/1 var(--font-head); letter-spacing: .1em; color: var(--magenta-ink); display: block; margin-bottom: 8px; }
.timeline h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .25em; }
.timeline .where { font-weight: 600; color: var(--ink); margin-bottom: .4em; }
.timeline .where span { color: var(--muted); font-weight: 400; }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--ink); color: #d9d9de; border-radius: 28px; padding: 44px 24px;
  display: grid; gap: 28px; position: relative; overflow: hidden;
}
.contact-band::after {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px;
  border-radius: 50%; border: 40px solid var(--magenta); opacity: .9;
}
.contact-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.contact-band .eyebrow { color: #ff8aa5; }
.contact-band p { max-width: 520px; position: relative; z-index: 1; }
.contact-band .btn-row { position: relative; z-index: 1; }
.contact-band .btn-ghost { color: #fff; border-color: #fff; }
.contact-band .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (min-width: 900px) { .contact-band { padding: 64px; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-inner ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--magenta-ink); }

/* ==========================================================
   Case study pages
   ========================================================== */
.cs-hero { padding-block: 32px 40px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font: 600 .9rem/1 var(--font-head); color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--magenta-ink); }
.back-link svg { width: 16px; height: 16px; }
.cs-hero h1 { max-width: 900px; }
.cs-hero h1 .accent { color: var(--magenta); }
.cs-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 760px; color: var(--text); }

.summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 32px 0 40px;
}
.summary div { background: var(--surface); padding: 18px 20px; }
.summary dt { font: 700 .72rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-ink); margin-bottom: 8px; }
.summary dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.45; }

.cs-cover { margin: 0; }
.cs-cover img { width: 100%; border-radius: 24px; background: #efebe8; border: 1px solid var(--line); }
.cs-cover.is-portrait img { max-height: 720px; width: auto; margin-inline: auto; border: 0; background: transparent; }

.cs-layout { display: grid; gap: 40px; padding-block: 56px 24px; }
.toc { display: none; }
@media (min-width: 1000px) {
  .cs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; }
  .toc { display: block; }
  .toc nav { position: sticky; top: 100px; }
  .toc p { font: 700 .72rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .toc a {
    display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
    font-size: .88rem; line-height: 1.35; color: var(--muted); text-decoration: none;
  }
  .toc a:hover { color: var(--magenta-ink); border-left-color: var(--magenta); }
}

.cs-content { max-width: 820px; }
.cs-section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.cs-section:last-child { border-bottom: 0; margin-bottom: 0; }
.cs-section h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.cs-section h3 { margin-top: 1.6em; }
.cs-section ul:not(.chip-list) { padding-left: 1.2em; margin: 0 0 1.2em; }
.cs-section li { margin-bottom: .55em; }
.cs-section li::marker { color: var(--magenta); }

.callout {
  background: var(--magenta-soft); border-left: 4px solid var(--magenta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px; margin: 28px 0;
  font: 700 clamp(1.1rem, 2.4vw, 1.35rem)/1.45 var(--font-head); color: var(--ink);
}

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 1.4em; }
.cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.cards h3 { margin: 0 0 .4em; font-size: 1.02rem; color: var(--magenta-ink); }
.cards p { margin: 0; font-size: .95rem; }

.pros-cons { display: grid; gap: 14px; margin: 0 0 1.4em; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons > div { border-radius: var(--radius-sm); padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); }
.pros-cons h3 { margin-top: 0; }
.pros-cons ul { margin-bottom: 0 !important; }
.pros-cons .is-gain h3 { color: #1f7a4d; }
.pros-cons .is-pain h3 { color: var(--magenta-ink); }

/* Galleries */
.gallery { display: grid; gap: 14px; margin: 24px 0 8px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #efebe8; transition: transform .2s ease, box-shadow .2s ease; }
.gallery a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery img { width: 100%; }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.cols-3, .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .gallery.cols-2.is-wide { grid-template-columns: 1fr; } }
.gallery.is-tall img { aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.gallery-hint { font-size: .82rem; color: var(--muted); margin: 0 0 1.4em; }

.proto-link { margin: 24px 0 0; }

/* Testimonials */
.quote {
  margin: 32px 0 0; padding: 32px 28px 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; position: relative; box-shadow: var(--shadow);
}
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 24px;
  font: 800 4.5rem/1 var(--font-head); color: var(--magenta);
}
.quote blockquote { margin: 0; font-size: 1.02rem; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; font-family: var(--font-head); }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* Next project */
.next-project { padding-block: 24px 72px; }
.next-project a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px; border-radius: 24px; text-decoration: none; background: var(--magenta-soft); border: 1px solid #f7cfd9;
  transition: background .2s ease;
}
.next-project a:hover { background: #fbdde5; }
.next-project small { display: block; font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-ink); margin-bottom: 10px; }
.next-project strong { font: 800 clamp(1.5rem, 4vw, 2.2rem)/1.1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.next-project svg { width: 34px; height: 34px; color: var(--magenta); flex: none; }

/* ==========================================================
   Before / after slider (home project cards)
   ========================================================== */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px;
  background: #d6d3cd; isolation: isolate; user-select: none; -webkit-user-select: none;
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; pointer-events: none;
}
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--magenta); z-index: 2; pointer-events: none;
}
.ba-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--magenta); box-shadow: 0 4px 14px rgba(232, 60, 98, .45);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6v12l-6-6zM15 6v12l6-6z'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.ba-label {
  position: absolute; top: 12px; z-index: 3; pointer-events: none;
  font: 700 .7rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink);
}
.ba-label.is-lo { left: 12px; }
.ba-label.is-hi { right: 12px; background: var(--magenta); color: #fff; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
  touch-action: pan-y;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-line::after { outline: 3px solid var(--ink); outline-offset: 3px; }
.ba-hint { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* ==========================================================
   Lightbox
   ========================================================== */
.gallery a, .cs-cover a { cursor: zoom-in; }
.cs-cover a { display: block; }
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #141417; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: #141417; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .18s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.lb-count { font: 700 .8rem/1 var(--font-head); letter-spacing: .1em; color: #c9c9cf; }
.lb-stage {
  overflow: auto; display: grid; place-items: center; padding: 0 64px; min-height: 0; overscroll-behavior: contain;
}
.lb-img {
  max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto;
  border-radius: 10px; background: #fff; cursor: zoom-in; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox.is-zoomed .lb-stage { place-items: start center; }
.lightbox.is-zoomed .lb-img { max-height: none; max-width: none; width: min(1400px, 100%); cursor: zoom-out; margin-block: 8px; }
.lb-caption { margin: 0; padding: 12px 16px 18px; text-align: center; font-size: .9rem; color: #d9d9de; }
.lb-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .15s ease;
}
.lb-btn:hover { background: var(--magenta); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; }
  .lb-caption { padding-inline: 64px; }
}

/* ==========================================================
   Hero — text only, oversized name (replaces the photo hero)
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-block: 56px 64px;
  min-height: calc(100svh - 68px); display: grid; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 25% 100%, 100% 160px;
  background-position: -1px 0, 0 -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner { width: 100%; }
.hero .hero-title { margin: 0 0 clamp(32px, 5vw, 56px); letter-spacing: normal; font-size: inherit; }
.hero-hello {
  display: block; margin-bottom: .2em;
  font: 700 clamp(1.5rem, 3.6vw, 2.6rem)/1.1 var(--font-head); letter-spacing: -.02em; color: var(--ink);
}
.hero-name {
  display: block;
  font: 800 clamp(3.6rem, 16.5vw, 8.75rem)/.92 var(--font-head); letter-spacing: -.05em; color: var(--ink);
}
.hero-star {
  font-size: .32em; line-height: 0; vertical-align: top; position: relative; top: .35em; margin-left: .06em;
  color: var(--magenta); font-weight: 800;
}
.hero-body { display: grid; gap: 32px; align-items: start; }
.hero .hero-intro { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; max-width: 620px; margin: 0; }
.hero-side { display: grid; gap: 24px; justify-items: start; }
.hero .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.hero-note {
  margin: clamp(40px, 6vw, 72px) 0 0; font-size: .85rem; color: var(--muted);
}
.hero-note span { color: var(--magenta); font-weight: 800; margin-right: 2px; }
@media (min-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; }
  .hero-side { padding-top: 6px; }
  .hero-note { margin-left: calc((100% - 64px) * 1.35 / 2.35 + 64px); }
}
@media (max-width: 899px) { .hero::before { background-size: 50% 100%, 100% 140px; } }

/* ==========================================================
   Featured website screen — large browser window with its own scroll
   ========================================================== */
.feature-shot { margin: 28px 0 18px; }
.browser {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(31,31,34,.05), 0 24px 60px -24px rgba(31,31,34,.35);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px;
  background: #f1eeeb; border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d2cd; }
.browser-dots i:first-child { background: var(--magenta); }
.browser-url {
  flex: 1; max-width: 360px; margin-inline: auto; padding: 5px 12px; border-radius: 999px; background: #fff;
  font: 600 .75rem/1.2 var(--font-body); color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-view {
  position: relative; height: clamp(420px, 72vh, 760px); overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--magenta) #f1eeeb; background: #f6f3f0;
}
.browser-view::-webkit-scrollbar { width: 10px; }
.browser-view::-webkit-scrollbar-track { background: #f1eeeb; }
.browser-view::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 10px; border: 2px solid #f1eeeb; }
.browser-view:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
.browser-view img { width: 100%; height: auto; display: block; }
.browser-scroll {
  position: sticky; bottom: 16px; display: table; margin: -52px auto 16px; padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 .78rem/1 var(--font-head); letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); pointer-events: none; transition: opacity .3s ease;
  animation: nudge 1.8s ease-in-out infinite;
}
.browser-view.is-scrolled .browser-scroll { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .browser-scroll { animation: none; } }
.feature-shot figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px;
  font-size: .85rem; color: var(--muted);
}
.feature-open { font-weight: 700; text-decoration: none; cursor: zoom-in; }
.feature-open::after { content: " ↗"; }
@media (min-width: 1000px) {
  /* let the window use a bit more room than the text column */
  .feature-shot { margin-right: -40px; }
}
/* Static featured screen (no inner scroll) — e.g. Travel Tango dashboard */
.browser-view.is-static { display: block; height: auto; overflow: visible; cursor: zoom-in; background: #fff; }
.browser-view.is-static img { transition: transform .4s ease; }
.browser-view.is-static:hover img { transform: scale(1.01); }
.browser-view.is-static::after { content: none; }

/* ==========================================================
   Case study blocks: numbered steps, stats, opportunity table, personas
   ========================================================== */
.cs-section ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.cs-section ol.steps li {
  counter-increment: step; position: relative; margin: 0; padding: 14px 18px 14px 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600;
}
.cs-section ol.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--magenta); color: #fff; font: 800 .85rem/1 var(--font-head);
}

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 1.4em; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-num { display: block; font: 800 clamp(2.4rem, 5vw, 3rem)/1 var(--font-head); color: var(--magenta); letter-spacing: -.03em; margin-bottom: 12px; }
.stat-title { font: 700 1rem/1.35 var(--font-head); color: var(--ink); margin: 0 0 6px; }
.stat-text { font-size: .92rem; margin: 0; color: var(--text); }

.table-wrap { margin: 0 0 1.4em; }
table.opps { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
table.opps th, table.opps td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
table.opps tr:last-child th, table.opps tr:last-child td { border-bottom: 0; }
table.opps thead th { font: 700 .72rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-ink); background: var(--magenta-soft); }
table.opps tbody th { font: 700 1rem/1.35 var(--font-head); color: var(--ink); width: 24%; }
table.opps td:last-child { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  table.opps thead { display: none; }
  table.opps, table.opps tbody, table.opps tr, table.opps th, table.opps td { display: block; width: 100%; }
  table.opps tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.opps tbody th, table.opps td { border: 0; padding: 8px 18px; }
  table.opps td::before { content: attr(data-label); display: block; font: 700 .7rem/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-ink); }
}

.persona {
  display: grid; gap: 24px; margin: 28px 0 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.persona + .persona { margin-top: 24px; }
.persona-side { display: grid; gap: 0; align-content: start; }
.persona-photo {
  width: 120px; height: 120px; object-fit: cover; object-position: 50% 25%;
  border-radius: 50%; border: 4px solid var(--magenta-soft); margin-bottom: 16px;
}
.persona-role { font: 700 .72rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-ink); margin: 0 0 6px; }
.persona-name { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.persona-facts { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.persona-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.persona-facts dt { font-weight: 700; color: var(--ink); }
.persona-facts dd { margin: 0; text-align: right; }
.persona-quote {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--magenta-soft);
  font: 700 .98rem/1.45 var(--font-head); color: var(--ink);
}
.persona-main > p { font-size: .95rem; margin-bottom: 18px; }
.persona h4 { font: 700 .74rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-ink); margin: 0 0 10px; }
.persona-lists { display: grid; gap: 12px; }
.persona-list { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.persona-list ul { margin: 0 !important; padding-left: 1.1em !important; }
.persona-list li { font-size: .88rem; line-height: 1.55; margin-bottom: .45em; }
.persona-list li:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .persona-lists { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .persona { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px; }
  .persona-side { align-self: start; }
}
/* Four cards read better as a 2 x 2 grid */
@media (min-width: 640px) { .cards:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
