/* ==========================================================================
   Leticia Serrano — Portfolio Design System
   "Dark room. Light on the proof."
   Monochrome. Light is the only accent, and it lands on evidence.
   ========================================================================== */

:root {
  /* Ink scale — no hue. Text tokens are >= 4.5:1 on --room. */
  --void: #050505;
  --room: #0b0b0c;      /* bg */
  --surface: #141416;
  --raised: #1e1e21;
  --line: #2a2a2e;      /* 1px */
  --muted: #8c8c93;     /* 5.9:1 */
  --soft: #b8b8be;      /* body */
  --ink: #ededef;       /* text */
  --light: #ffffff;     /* highlight only */

  /* Light tokens */
  --spot: radial-gradient(ellipse 60% 50% at 50% 35%, rgba(255,255,255,.075), transparent 70%);
  --rim: inset 0 1px 0 rgba(255,255,255,.08);
  --glow-text: 0 0 28px rgba(255,255,255,.35), 0 0 2px rgba(255,255,255,.25);
  --glow-lit: 0 0 80px rgba(255,255,255,.10), 0 0 24px rgba(255,255,255,.08);
  --beam: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);

  /* Type */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1268px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(96px, 14vw, 176px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--light); color: var(--void); }

:focus-visible {
  outline: 1px solid var(--light);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--light); color: var(--void); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; position: relative; }
.section--spot::before {
  content: ""; position: absolute; inset: 0; background: var(--spot); pointer-events: none; z-index: -1;
}

/* ---------- Typography scale (weight rises as size falls) ---------- */
.display-xl { font-size: clamp(56px, 10vw, 128px); line-height: .95; font-weight: 200; letter-spacing: -.045em; margin: 0; }
.display    { font-size: clamp(44px, 7vw, 80px);   line-height: 1;   font-weight: 200; letter-spacing: -.04em;  margin: 0; }
.h1         { font-size: clamp(36px, 5vw, 56px);   line-height: 1.05; font-weight: 300; letter-spacing: -.03em; margin: 0; }
.h2         { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; font-weight: 300; letter-spacing: -.02em; margin: 0; }
.h3         { font-size: 24px; line-height: 1.3; font-weight: 400; letter-spacing: -.01em; margin: 0; }
.body-l     { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; font-weight: 400; color: var(--soft); margin: 0; }
.body       { font-size: 16px; line-height: 1.65; color: var(--soft); margin: 0; }
.small      { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
/* Small labels: Inter, normal case (the system no longer uses a monospace face) */
.label {
  font-family: var(--sans); font-size: 14px; line-height: 1.4; font-weight: 400;
  letter-spacing: 0; color: var(--muted); margin: 0;
}

/* The accent: lit, slanted, 1–3 words per headline. */
.lit {
  font-style: italic; font-weight: 200; color: var(--light); text-shadow: var(--glow-text);
}
.glow { color: var(--light); text-shadow: var(--glow-text); }
.placeholder { color: var(--muted); font-style: normal; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__brand { font-size: 18px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { color: var(--muted); font-size: 16px; transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 999px;
  height: 44px; padding: 0 18px; cursor: pointer; font-size: 15px;
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--room); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__links li:last-child { margin-top: 20px; }
  .nav__links .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 400; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
/* Primary = the only white fill on a screen; hover adds light, never colour. */
.btn--primary { background: var(--light); color: var(--void); }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 32px rgba(255,255,255,.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); box-shadow: 0 0 24px rgba(255,255,255,.06); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), color .25s;
}
.link:hover { border-color: var(--ink); color: var(--light); }
.link .arrow { transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translateX(3px); }
.link:hover .arrow--ne { transform: translate(2px,-2px); }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--ink); }

.arrow { width: 14px; height: 14px; flex: none; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-family: var(--sans); font-size: 13px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--rim);
}
/* The inverted (lit) card: brightest object in the system, reserved for what customers said. */
.card--lit {
  background: var(--ink); color: var(--void); border-color: var(--ink);
  box-shadow: var(--glow-lit);
}
.card--lit .label { color: #55555b; }
.card--lit .body, .card--lit .small { color: #3a3a3f; }

/* ---------- Hairline / beam ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.beam { height: 1px; background: var(--beam); border: 0; margin: 0; opacity: .5; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Home
   ========================================================================== */

.hero { position: relative; padding: clamp(96px, 16vw, 176px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -76px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 40% 30%, rgba(255,255,255,.07), transparent 70%);
}
.hero__title { max-width: 16ch; }
.hero__lede { max-width: 36ch; margin: 40px 0 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* Hero second row: lede + CTAs, with the interview beside them */
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero__row > * { min-width: 0; }

/* Full-screen photo hero. The portrait sits right and fades into the room behind the text;
   a soft light follows the cursor and reveals the original colour (pointer devices only). */
.hero--photo { min-height: calc(100vh - 76px); padding-top: clamp(80px, 12vw, 150px); }
.hero--photo::before { display: none; }
.hero__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--room); }
/* The frame is one screen tall, so a taller hero never zooms the face; it fades out at the bottom */
.hero__frame {
  position: absolute; top: 0; right: 0; width: min(78%, 1400px); height: calc(100vh - 76px); max-height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.05) brightness(.9);
}
.hero__img--color {
  filter: none; opacity: 0; transition: opacity .6s var(--ease);
  -webkit-mask-image: radial-gradient(circle var(--r, 260px) at var(--mx, 50%) var(--my, 40%), #000 0%, #000 30%, transparent 72%);
          mask-image: radial-gradient(circle var(--r, 260px) at var(--mx, 50%) var(--my, 40%), #000 0%, #000 30%, transparent 72%);
}
.hero__photo.is-lit .hero__img--color { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--room) 0%, rgba(11,11,12,.85) 10%, rgba(11,11,12,.35) 30%, transparent 48%);
}
.hero--photo .hero__title { max-width: 11ch; font-size: clamp(52px, 7.2vw, 104px); }
.hero--photo .hero__row { grid-template-columns: minmax(0, 560px); }
.hero--photo .video { max-width: 440px; }
@media (max-width: 760px) {
  /* Phones: the portrait becomes a banner above the text instead of sitting behind it */
  .hero--photo { min-height: 0; padding-top: 0; }
  .hero__photo { position: relative; inset: auto; height: min(62vh, 520px); z-index: 0; margin-bottom: 8px; }
  .hero__frame { width: 100%; height: 100%; max-height: none; -webkit-mask-image: none; mask-image: none; }
  .hero__img { object-position: 54% 18%; }
  .hero__shade { background: linear-gradient(to top, var(--room) 0%, rgba(11,11,12,.4) 22%, transparent 45%); }
}
@media (max-width: 900px) { .hero__row { grid-template-columns: 1fr; } }

/* Video card: a quiet facade until clicked. Not lit: the headline keeps the light. */
.video { margin: 40px 0 0; }
.video__play, .video iframe {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--rim);
}
.video__play {
  position: relative; cursor: pointer; text-align: left; padding: 22px;
  background: radial-gradient(ellipse 70% 80% at 30% 20%, var(--raised), var(--surface) 70%);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.video__play:hover { border-color: var(--muted); box-shadow: var(--rim), 0 0 40px rgba(255,255,255,.06); }
.video__play { overflow: hidden; isolation: isolate; }
.video__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: grayscale(1) contrast(1.05) brightness(.82); transition: filter .4s var(--ease), transform 1.2s var(--ease);
}
/* Fade behind the label so it stays readable over any frame */
.video__play.has-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(5,5,5,.88) 0%, rgba(5,5,5,.35) 45%, rgba(5,5,5,.1) 100%);
}
/* Hover reveals the original colour (pointer devices only, so a tap never leaves it stuck in colour) */
@media (hover: hover) { .video__play:hover .video__thumb { filter: grayscale(0) contrast(1) brightness(.9); transform: scale(1.015); } }
.video__play.has-thumb .video__icon { background: rgba(11,11,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video__icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--muted); color: var(--ink); padding-left: 3px;
  transition: border-color .25s, color .25s;
}
.video__play:hover .video__icon { border-color: var(--light); color: var(--light); }
@media (max-width: 520px) { .video__icon { top: 20px; left: 20px; transform: none; width: 48px; height: 48px; } }
.video__title { font-size: 22px; font-weight: 300; letter-spacing: -.015em; color: var(--ink); }
.video__cap { margin-top: 16px; font-size: 15px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px;
  margin-top: clamp(96px, 12vw, 150px); padding-top: 32px; border-top: 1px solid var(--line);
}
.stat__value { font-size: clamp(40px, 4.4vw, 52px); line-height: 1.1; font-weight: 200; letter-spacing: -.035em; color: var(--ink); }
.stat__value--text { font-size: 20px; font-weight: 400; letter-spacing: -.01em; line-height: 1.4; padding-top: 4px; }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 40px; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }

/* Projects */
.projects { display: grid; gap: 32px; }
.project {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--rim);
  transition: border-color .3s var(--ease);
}
.project:hover { border-color: #3a3a3f; }
.project__media { background: #f2f2f3; display: grid; place-items: center; overflow: hidden; min-height: 280px; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.015); }
.project__media--empty {
  background: radial-gradient(ellipse at 40% 30%, #2a2a2e, var(--surface) 75%);
  color: var(--muted); font-family: var(--sans); font-size: 12px;
}
.project__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.project__title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 300; letter-spacing: -.02em; margin: 0; }
.project__meta { font-size: 14px; color: var(--ink); padding-top: 18px; border-top: 1px solid var(--line); }
.project__metric { display: flex; align-items: center; gap: 18px; margin: 8px 0; }
.project__metric .num { font-size: clamp(48px, 5vw, 64px); font-weight: 200; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.project__metric .what { font-size: 14px; color: var(--soft); line-height: 1.45; max-width: 18ch; }
.project__body .link { align-self: flex-start; margin-top: auto; font-size: 15px; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project__media { min-height: 220px; aspect-ratio: 16/10; }
}

/* IterateUX */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.metrics-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; margin-top: 36px; border-top: 1px solid var(--line); }
.big-num { font-size: clamp(52px, 6vw, 76px); line-height: 1; font-weight: 200; letter-spacing: -.045em; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(0,0,0,.25); pointer-events: none; }
.photo--glow { box-shadow: 0 30px 120px rgba(255,255,255,.06); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 76px); align-items: start; }
@media (max-width: 980px) { .about { grid-template-columns: 1fr; } }
.carousel { position: relative; }
.carousel__track { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.carousel__slide.is-active { opacity: 1; }
/* Photos display in grayscale: the system is monochrome. Remove the filter to show them in colour. */
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.04); transition: filter .6s var(--ease); }
/* Hover reveals the original colour (pointer devices only) */
@media (hover: hover) { .carousel__track:hover .carousel__slide img { filter: grayscale(0) contrast(1); } }
/* Wide variant (IterateUX team): 4:3 group photos, with the section's glow */
.carousel--wide .carousel__track { aspect-ratio: 4 / 3; box-shadow: 0 30px 120px rgba(255,255,255,.06); border: 1px solid var(--line); }
.carousel--wide .carousel__slide img { object-position: 50% 50%; }
/* Controls sit below the photo so they never cover a face */
.carousel__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.carousel__foot .carousel__dots { margin-top: 0; }
.carousel__foot .carousel__btns { position: static; }
.carousel__foot .carousel__btn { background: var(--raised); border: 1px solid var(--line); }
/* A wider-than-frame shot (video call grid) is shown whole, not cropped */
.carousel__slide--fit { display: grid; place-items: center; background: var(--void); }
.carousel__slide--fit img { height: auto; object-fit: contain; }
.carousel__slide--empty { display: grid; place-items: center; font-family: var(--sans); font-size: 12px; color: var(--muted); background: radial-gradient(ellipse at 40% 30%, #26262a, var(--surface) 75%); }
.carousel__btns { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 10px; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(40,40,44,.75); color: var(--ink); display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.carousel__btn:hover { background: rgba(60,60,66,.9); }
.carousel__dots { display: flex; gap: 10px; margin-top: 28px; }
.carousel__dot { width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 14px; height: 2px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.carousel__dot[aria-current="true"] { width: 44px; }
.carousel__dot[aria-current="true"]::before { width: 34px; background: var(--light); box-shadow: 0 0 10px rgba(255,255,255,.5); }

.quote { padding: clamp(24px, 3vw, 34px); }
.quote__text { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 400; letter-spacing: -.015em; margin: 0; color: var(--void); }
.quote__cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; color: #4a4a50; }
.logos { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-personal { margin-top: 16px; font-size: 17px; }
.logos img { width: min(100%, 460px); mix-blend-mode: lighten; filter: grayscale(1) brightness(1.05); }

/* Process: interactive two-track flow, closed by the customer-feedback loop */
.flow { margin-top: 0; }
.flow-svg { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.flow-divider { stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 6; }
.flow-phase { fill: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -.005em; }
.flow-track { fill: var(--muted); font-size: 15px; }
.flow-edge { fill: none; stroke: var(--line); stroke-width: 1.5; transition: stroke .5s var(--ease); }
.flow-edge.is-done { stroke: var(--soft); }
.flow-arrowhead { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-node { cursor: pointer; outline: none; }
.flow-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.flow-node text { fill: var(--soft); font-size: 16px; pointer-events: none; transition: fill .35s var(--ease); }
.flow-node:hover rect { stroke: var(--muted); }
.flow-node:hover text { fill: var(--ink); }
.flow-node:focus-visible rect { stroke: var(--light); stroke-width: 1.5; }
.flow-node.is-active rect { fill: var(--ink); stroke: var(--ink); }
.flow-node.is-active text { fill: var(--void); }
.flow-node.is-active { filter: drop-shadow(0 0 18px rgba(255,255,255,.28)); }
/* The loop is the lit element of this section */
.flow-node--lit rect { fill: var(--ink); stroke: var(--ink); }
.flow-node--lit text { fill: var(--void); font-weight: 500; font-size: 15px; }
.flow-node--lit { filter: drop-shadow(0 0 14px rgba(255,255,255,.16)); }
.flow-node--lit:hover rect { stroke: var(--light); }
.flow-node--lit:hover text { fill: var(--void); }
.flow-node--lit.is-active { filter: drop-shadow(0 0 26px rgba(255,255,255,.45)); }

.flow-ai { fill: var(--soft); font-family: var(--sans); font-size: 11px; pointer-events: none; }
.flow-node--ai rect { stroke-dasharray: none; }
.flow-node.is-active .flow-ai { fill: #55555b; }
.flow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: 32px; }
.flow-intro { max-width: 52ch; margin: 0; }
.flow-switch { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.flow-switch .seg { margin-top: 0; }
.flow-mode { margin-top: 40px; }
.flow-item__ai { margin-top: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.flow-item.is-active .flow-item__ai { color: #55555b; border-color: #c9c9ce; }
.flow-changes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flow-changes li { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.flow-changes p { margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .flow-changes { grid-template-columns: 1fr; } }
.flow-list { display: none; list-style: none; margin: 0; padding: 0; }
.flow-item {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 56px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), border-color .3s;
}
.flow-list li + li { margin-top: 22px; position: relative; }
.flow-list li + li::before { content: ""; position: absolute; left: 24px; top: -22px; height: 22px; width: 1px; background: var(--line); }
.flow-item__phase { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.flow-item__label { font-size: 17px; color: var(--ink); }
.flow-item.is-active { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 24px rgba(255,255,255,.18); }
.flow-item.is-active .flow-item__label { color: var(--void); }
.flow-item.is-active .flow-item__phase { color: #55555b; }
.flow-item--lit { border-style: dashed; border-color: var(--muted); }

.flow-panel {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); min-height: 150px;
}
.flow-detail { max-width: 58ch; min-width: 0; }
.flow-detail__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; letter-spacing: -.02em; margin: 10px 0 8px; }
.flow-controls { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) {
  .flow-svg { display: none; }
  .flow-list { display: block; }
}

/* Mentoring */
/* Two session cards + the mentorship video in one row */
.offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.offers__video { display: grid; gap: 14px; min-width: 0; }
.offers__video .video { margin: 0; }
@media (max-width: 1100px) { .offers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .offers__video { grid-column: 1 / -1; } }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; } }
.offer { padding: 24px 26px; display: flex; flex-direction: column; }
.offer__name { font-size: 22px; font-weight: 300; letter-spacing: -.015em; margin: 0; }
.offer .body { font-size: 15px; }
.offer__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer__price { font-size: clamp(40px, 4vw, 48px); font-weight: 200; letter-spacing: -.04em; line-height: 1; margin: 20px 0 14px; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer .body { margin-bottom: 22px; }
.qr { width: 134px; padding: 0; background: #fff; border-radius: 2px; box-shadow: 0 0 40px rgba(255,255,255,.12); flex: none; }
.qr { display: block; transition: box-shadow .25s var(--ease); }
.qr:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 48px rgba(255,255,255,.22); }
.qr img { width: 100%; height: auto; }
.mentoring-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
@media (max-width: 720px) { .qr { display: none; } }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial { padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; }
.testimonial--dark .quote__text { color: var(--ink); }
.testimonial--dark .testimonial__body { color: var(--soft); }
.testimonial--dark .testimonial__who { border-top-color: var(--line); }
.testimonial--dark .testimonial__name { color: var(--ink); }
.testimonial--dark .testimonial__role { color: var(--muted); }
.testimonial__body { margin: 24px 0 0; font-size: 16px; line-height: 1.7; color: #3a3a3f; }
.testimonial__body p { margin: 0 0 14px; }
.testimonial__who { margin-top: auto; padding-top: 22px; border-top: 1px solid #c9c9ce; }
.testimonial__name { font-weight: 500; color: var(--void); font-size: 16px; }
.testimonial__role { font-size: 14px; color: #55555b; }
.testimonial__spacer { flex: 1; min-height: 32px; }

/* Contact / footer */
.contact { padding: var(--section) 0 clamp(64px, 8vw, 96px); position: relative; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(255,255,255,.06), transparent 70%);
}
.contact__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__email { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 40px; }
.contact__address { font-size: 18px; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.contact__copy {
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--soft);
  font-family: var(--sans); font-size: 12px; min-height: 32px; padding: 0 14px; cursor: pointer;
}
.contact__copy:hover { border-color: var(--muted); color: var(--ink); }

/* Form: input style from the components page (surface fill, hairline, mono label) */
.contact-form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--room); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: #3a3a3f; }
.input:focus { outline: none; border-color: var(--soft); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.input[aria-invalid="true"] { border-color: var(--soft); }
.input--area { resize: vertical; min-height: 140px; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.contact-form__status { margin: 0; flex: 1 1 200px; min-width: 0; }
.contact-form__status.is-ok { color: var(--ink); }
.contact-form__status.is-error { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Case study
   ========================================================================== */
.cs-hero { padding: 48px 0 0; position: relative; isolation: isolate; }
.cs-hero::before {
  content: ""; position: absolute; inset: -76px 0 -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 35% 35%, rgba(255,255,255,.065), transparent 70%);
}
.cs-hero .display { margin-top: 56px; max-width: 16ch; }
.cs-hero .meta { margin-top: 24px; color: var(--soft); font-size: 15px; }
.cs-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.cs-metrics .num { font-size: clamp(44px, 5vw, 64px); font-weight: 200; letter-spacing: -.04em; line-height: 1; }
.cs-metrics .what { margin-top: 10px; font-size: 14px; color: var(--soft); }
@media (max-width: 640px) { .cs-metrics { grid-template-columns: 1fr; gap: 28px; } }

.cs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 820px) { .cs-row { grid-template-columns: 1fr; gap: 20px; } }
.cs-row .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); line-height: 1.55; margin: 0 0 18px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-top: 48px; list-style: none; padding: 0; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.steps .n { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.steps h3 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; margin: 10px 0 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.insight { padding: clamp(28px, 4vw, 48px); margin-top: var(--section); }
.insight__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; margin: 0; color: var(--void); max-width: 30ch; }
.insight__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #c9c9ce; }
.insight__grid h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: var(--void); }
.insight__foot { margin: 28px 0 0; color: var(--void); font-size: 16px; }
@media (max-width: 720px) { .insight__grid { grid-template-columns: 1fr; } }

.moments { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.moments figure { margin: 0; }
.moments img { border-radius: var(--radius); border: 1px solid var(--line); }
.moments figcaption { margin-top: 12px; font-size: 15px; color: var(--ink); }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.parts .card { padding: 22px 24px; display: block; transition: border-color .25s; }
.parts a.card:hover { border-color: #3a3a3f; }
.parts .n { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.parts h3 { font-size: 22px; font-weight: 300; letter-spacing: -.015em; margin: 8px 0 4px; }
@media (max-width: 720px) { .moments, .parts { grid-template-columns: 1fr; } }

.chapter { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chapter .small { color: var(--soft); }

.shot { margin-top: 72px; }
.shot__head { display: flex; align-items: center; gap: 14px; }
.shot__title { font-size: clamp(22px, 2.2vw, 26px); font-weight: 300; letter-spacing: -.015em; margin: 0; }
.note-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 0 18px rgba(255,255,255,.08);
  transition: border-color .2s;
}
.note-btn:hover, .note-btn[aria-expanded="true"] { border-color: var(--muted); }
.note { margin: 14px 0 0; max-width: 64ch; color: var(--soft); }
.note[hidden] { display: none; }
.seg {
  display: inline-flex; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; gap: 2px;
}
.seg button {
  min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--soft);
  cursor: pointer; font-size: 14px; transition: background .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: var(--light); color: var(--void); box-shadow: 0 0 18px rgba(255,255,255,.2); }
.shot__rule { margin-top: 20px; }
.shot__frame { margin-top: 28px; position: relative; box-shadow: 0 40px 120px rgba(255,255,255,.05); }
.shot__frame img { width: 100%; border-radius: var(--radius); }
.shot__frame [data-view] { display: none; }
.shot__frame [data-view].is-shown { display: block; }
.shot__empty {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 12px; color: var(--muted);
}

.continue { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px clamp(20px, 3vw, 28px); margin-top: var(--section); transition: border-color .25s; }
.continue:hover { border-color: #3a3a3f; }
.continue:hover .arrow { transform: translateX(3px); }
.continue .arrow { transition: transform .25s var(--ease); }
.continue h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; letter-spacing: -.02em; margin: 4px 0 0; }

/* Password gate on protected case studies */
.gate { padding-bottom: clamp(64px, 10vw, 120px); }
.gate__eyebrow { margin-top: 56px; }
.gate .gate__title { margin-top: 56px; }
.gate__lede { margin-top: 24px; max-width: 44ch; }
.gate__form { margin-top: 40px; max-width: 520px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 22px; }
.gate__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.gate__status { margin: 0; flex: 1 1 200px; min-width: 0; }
.gate__status.is-error { color: var(--ink); }
.gate .meta { margin-top: 16px; color: var(--soft); font-size: 15px; }
.gate__form--request { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; width: fit-content; max-width: 100%; }
.request__shot { margin: 56px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px rgba(255,255,255,.05); }
.request__shot img { width: 100%; }
.gate__ask { margin-top: 28px; }
.gate__ask .link { padding-bottom: 4px; }

.outcome-num { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(64px, 9vw, 110px); }
.outcome-num .num { font-size: clamp(96px, 18vw, 220px); font-weight: 200; letter-spacing: -.055em; line-height: .85; }
.outcome-num .what { font-size: clamp(16px, 1.6vw, 20px); color: var(--soft); padding-bottom: 12px; }
