@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --navy: #1a263d;
  --navy-deep: #111a2c;
  --navy-soft: #243250;
  --chalk: #f2f0ed;
  --paper: #faf9f6;
  --sand: #c1a78a;
  --sand-deep: #94775a;
  --sand-ink: #73573d;
  --sand-light: #e8dccd;
  --ink: var(--navy);
  --ink-soft: #4d5561;
  --rule: #ddd6cb;
  --rule-dark: rgba(242, 240, 237, .14);

  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(26, 38, 61, .06), 0 12px 32px -8px rgba(26, 38, 61, .16);
  --shadow-lg: 0 2px 4px rgba(26, 38, 61, .06), 0 32px 64px -16px rgba(26, 38, 61, .28);

  --z-grain: 1;
  --z-header: 50;
  --z-menu: 60;
  --z-progress: 70;
  --z-skip: 80;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 11vw, 10rem);

  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--sand); color: var(--navy); }
[hidden] { display: none !important; }

.wrap { width: min(100% - var(--gutter) * 2, 84rem); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: var(--z-skip); padding: .8rem 1.1rem; background: var(--paper); border-radius: var(--radius-xs); font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--sand); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-ink);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.kicker-light { color: var(--sand); }

.h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-weight: 700; line-height: 1; letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 em, .card-cta-text em { color: var(--sand-deep); font-weight: 300; letter-spacing: -.035em; }
.h2-light { color: var(--chalk); }
.h2-light em { color: var(--sand); }
.body { font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.75; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.u-link { color: var(--navy); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.u-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.5rem; padding: 0 1.6rem;
  border-radius: 999px; background: var(--bg); color: var(--fg);
  font-size: .92rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, var(--navy-soft));
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sand { --bg: var(--sand); --fg: var(--navy-deep); --hover: var(--chalk); }
.btn-navy { --bg: var(--navy); --fg: var(--paper); --hover: var(--navy-deep); }
.btn-sm { min-height: 2.75rem; padding: 0 1.2rem; font-size: .84rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .95rem; padding-block: .4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(5px); }
.link-light { color: var(--chalk); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  padding: 1rem var(--gutter) 0;
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.header-bar {
  max-width: 84rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4rem; padding: .5rem .5rem .5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.site-header.is-solid .header-bar {
  background: rgba(250, 249, 246, .8);
  border-color: rgba(26, 38, 61, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 40px -12px rgba(26, 38, 61, .22);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { position: relative; display: block; width: clamp(9.5rem, 13vw, 12rem); flex: 0 0 auto; }
.brand img { transition: opacity .35s; }
.brand { transition: opacity .45s var(--ease), translate .45s var(--ease); }
.site-header.is-top:not(.is-solid) .brand { opacity: 0; translate: 0 -.4rem; pointer-events: none; }
body.menu-open .site-header .brand { opacity: 1; translate: 0 0; pointer-events: auto; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid .brand-light { opacity: 0; }
.site-header.is-solid .brand-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a {
  position: relative; padding: .55rem .95rem; border-radius: 999px;
  font-size: .86rem; font-weight: 500; color: var(--chalk);
  transition: color .3s, background-color .3s;
}
.nav a:hover { background: rgba(242, 240, 237, .1); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sand); }
.site-header.is-solid .nav a { color: var(--navy); }
.site-header.is-solid .nav a:hover { background: rgba(26, 38, 61, .06); }

.menu-toggle { display: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sand); position: relative; flex: 0 0 auto; }
.menu-toggle span { position: absolute; left: 50%; width: 1.1rem; height: 1.5px; margin-left: -.55rem; background: var(--navy); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: calc(50% - 3px); }
.menu-toggle span:last-child { top: calc(50% + 3px); }
.menu-toggle[aria-expanded="true"] span:first-child { top: 50%; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  background: var(--navy-deep); color: var(--chalk);
  clip-path: circle(0 at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); }
.mobile-menu nav { display: grid; gap: .3rem; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.6rem, 7.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; padding-block: .35rem; border-bottom: 1px solid var(--rule-dark); }
.mobile-menu nav a small { font-size: .75rem; color: var(--sand); letter-spacing: .1em; font-weight: 600; }
.mobile-mail { color: var(--sand); font-weight: 500; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); transform: none; }
body.menu-open .header-bar { background: transparent !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
body.menu-open .brand-light { opacity: 1 !important; }
body.menu-open .brand-dark { opacity: 0 !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: 9rem 0 clamp(4rem, 8vw, 6rem);
  background: var(--navy-deep); color: var(--chalk);
}
.hero-inner { position: relative; }
.hero-title {
  margin: 1.4rem 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(3.3rem, 11.5vw, 11rem);
  font-weight: 700; line-height: .9; letter-spacing: -.06em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; }
.hero-title em { color: var(--sand); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.hero-lead { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(242, 240, 237, .84); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; }

.hero-badge { position: absolute; right: var(--gutter); top: 50%; width: clamp(7rem, 11vw, 10rem); aspect-ratio: 1; translate: 0 -60%; }
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--chalk); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero-badge img { position: absolute; inset: 27%; width: 46%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(242, 240, 237, .3); }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 1.5rem; height: 2.4rem; margin-left: -.75rem; border: 1.5px solid rgba(242, 240, 237, .45); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: .45rem; width: 3px; height: .5rem; margin-left: -1.5px; border-radius: 2px; background: var(--sand); }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--navy); color: var(--chalk); padding-block: clamp(1.1rem, 2.4vw, 1.8rem); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); padding-right: clamp(1.4rem, 3vw, 2.6rem); font-size: clamp(1.4rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 237, .6); }
.marquee-track i { font-style: normal; color: var(--sand); font-size: .5em; }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .body { justify-self: end; }

/* Lab */
.lab { background: var(--paper); }
.lab-head { max-width: 52rem; }
.statement {
  margin: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  max-width: 24ch;
  font-size: clamp(1.75rem, 3.9vw, 3.6rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -.035em;
  text-wrap: balance;
}
.statement .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.lab-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.lab-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lab-figure figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--chalk); line-height: 1.5;
  background: rgba(17, 26, 44, .55); border: 1px solid rgba(242, 240, 237, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lab-copy .body { margin-bottom: 2.5rem; }
.steps li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); transition: padding-left .45s var(--ease); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li:hover { padding-left: .6rem; }
.step-num { font-size: .8rem; font-weight: 600; color: var(--sand-deep); letter-spacing: .08em; padding-top: .45rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.steps p { margin-top: .3rem; color: var(--ink-soft); }

/* Projects */
.projects { background: var(--chalk); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 22rem; padding: clamp(1.5rem, 2.6vw, 2.4rem);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(26, 38, 61, .07);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(193, 167, 138, .3), transparent 60%);
}
@media (hover: hover) {
  .card[data-spotlight]:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(26, 38, 61, .07), var(--shadow-lg); }
  .card[data-spotlight]:hover::before { opacity: 1; }
}
.card-xl { grid-column: span 7; grid-row: span 2; min-height: 30rem; }
.card-xl::after {
  content: ""; position: absolute; z-index: -1; right: -9rem; top: -9rem; width: 30rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 2.4rem, rgba(193, 167, 138, .32) 2.4rem calc(2.4rem + 1px));
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  transition: transform 1.2s var(--ease);
}
.card-xl:hover::after { transform: scale(1.08) rotate(8deg); }
.card-dark { grid-column: span 5; background: var(--navy); color: var(--chalk); box-shadow: none; }
.card-sand { grid-column: span 5; background: var(--sand-light); }
.card-cta { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.card-cta-text { font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { display: inline-block; padding: .35rem .75rem; border-radius: var(--radius-xs); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(26, 38, 61, .06); }
.card-dark .tag { background: rgba(242, 240, 237, .1); color: var(--sand); }
.card-index { font-size: .8rem; font-weight: 600; color: var(--sand-deep); font-variant-numeric: tabular-nums; }
.card-dark .card-index { color: var(--sand); }
.card-icon { width: 3.25rem; margin: auto 0 1.4rem; padding-top: 2rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-spring); }
.card-icon .fill { fill: currentColor; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-xl .card-icon { width: 4.5rem; }
.card h3 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.card-xl h3 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.card h3 + p { margin-top: .9rem; max-width: 38ch; color: var(--ink-soft); }
.card-dark h3 + p { color: rgba(242, 240, 237, .72); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chips li { padding: .45rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule); }

/* Services */
.services { background: var(--paper); }
.profile-switch { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.profile-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.segmented { position: relative; display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--chalk); box-shadow: inset 0 0 0 1px var(--rule); }
.segmented button { position: relative; z-index: 1; padding: .6rem 1.1rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); transition: color .35s; }
.segmented button[aria-pressed="true"] { color: var(--paper); }
.segmented-pill { position: absolute; top: .3rem; bottom: .3rem; left: 0; border-radius: 999px; background: var(--navy); transform: translateX(var(--pill-x, .3rem)); width: var(--pill-w, 0); transition: transform .55s var(--ease), width .55s var(--ease); }

.tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: var(--chalk); box-shadow: var(--shadow-lg); }
.tab-list { display: flex; flex-direction: column; padding: clamp(1rem, 2vw, 1.5rem); gap: .3rem; border-right: 1px solid var(--rule-dark); }
.tab-list [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 1.2rem; text-align: left;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-sm);
  color: rgba(242, 240, 237, .5);
  transition: color .35s, background-color .35s;
}
.tab-list [role="tab"]:hover { color: var(--chalk); background: rgba(242, 240, 237, .04); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--chalk); background: rgba(242, 240, 237, .07); }
.tab-list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; border-radius: 3px; background: var(--sand); }
.tab-num { font-size: .78rem; font-weight: 600; color: var(--sand); font-variant-numeric: tabular-nums; }
.tab-name { font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.tab-panels { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3.5rem); background: radial-gradient(120% 90% at 100% 0%, rgba(193, 167, 138, .16), transparent 55%); }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.panel-lead { margin-top: 1rem; max-width: 48ch; color: rgba(242, 240, 237, .8); line-height: 1.7; }
.panel-lead.is-swapping { animation: fade-swap .45s var(--ease); }
.ticks { display: grid; gap: .8rem; margin-top: 1.8rem; }
.ticks li { display: flex; gap: .8rem; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: 0 0 .5rem; height: .5rem; translate: 0 -.1rem; border-radius: 2px; background: var(--sand); rotate: 45deg; }
.panel:focus-visible { outline-offset: 8px; }
.panel:not([hidden]) { animation: panel-in .55s var(--ease); }
.tab-panels .link-arrow { color: var(--sand); align-self: flex-start; }

/* Manifesto */
.manifesto { position: relative; z-index: 2; isolation: isolate; overflow: hidden; padding-block: var(--section); background: var(--navy-deep); color: var(--chalk); }
.manifesto-glow { position: absolute; z-index: -1; width: 60rem; aspect-ratio: 1; right: -20rem; top: -20rem; border-radius: 50%; background: radial-gradient(circle, rgba(193, 167, 138, .2), transparent 62%); translate: 0 var(--glow, 0px); }
.manifesto-title { margin: 1.5rem 0 clamp(3rem, 6vw, 5rem); font-size: clamp(2.5rem, 8vw, 7.5rem); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.m-line { display: block; opacity: var(--light, 1); transition: opacity .2s linear; }
.m-accent { color: var(--sand); }
.manifesto-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem); max-width: 60rem; margin-left: auto; color: rgba(242, 240, 237, .74); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.75; }
.verbs { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule-dark); }
.verbs li { padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: clamp(.9rem, 1.3vw, 1.1rem); box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .22); transition: background-color .35s, color .35s, box-shadow .35s, opacity .9s var(--ease), transform .9s var(--ease); }
.verbs li:hover { background: var(--sand); color: var(--navy-deep); box-shadow: none; }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.faq-head { position: sticky; top: 8rem; }
.faq-head .body { margin-top: 1.5rem; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.7rem 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -.025em;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat,
    var(--chalk);
  transition: transform .45s var(--ease), background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--sand-light); }
.faq-list summary:hover { color: var(--sand-ink); }
.faq-body p { padding: 0 3.5rem 1.8rem 0; color: var(--ink-soft); line-height: 1.75; max-width: 60ch; }
details[open] .faq-body { animation: panel-in .45s var(--ease); }

/* Contact */
.contact { position: relative; z-index: 2; padding: 0 0 var(--section); background: var(--paper); }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(1.5rem, 5.5vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--navy); color: var(--chalk);
  box-shadow: var(--shadow-lg);
}
.contact-card::before { content: ""; position: absolute; z-index: -1; left: -18rem; bottom: -28rem; width: 50rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(193, 167, 138, .2), rgba(193, 167, 138, 0)); }
.contact-intro > p:not(.kicker) { margin-top: 1.5rem; max-width: 38ch; color: rgba(242, 240, 237, .76); line-height: 1.7; }
.contact-mail { display: inline-flex; flex-direction: column; gap: .3rem; margin-top: 2.5rem; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; background: linear-gradient(var(--sand), var(--sand)) 0 100% / 100% 1px no-repeat; padding-bottom: .4rem; transition: background-size .45s var(--ease); word-break: break-word; }
.contact-mail span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.contact-mail:hover { background-size: 30% 1px; }

.form { display: grid; gap: 1.3rem; padding: clamp(1.25rem, 3vw, 2.2rem); border-radius: var(--radius-md); background: rgba(242, 240, 237, .05); box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .1), inset 0 1px 0 rgba(242, 240, 237, .08); }
.field { display: grid; gap: .5rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1rem; align-items: start; }
@media (max-width: 30rem) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-size: .8rem; font-weight: 600; color: rgba(242, 240, 237, .82); padding: 0; margin-bottom: .1rem; }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 240, 237, .14); background: rgba(17, 26, 44, .45); color: var(--chalk);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 240, 237, .38); }
.field input:hover, .field textarea:hover { border-color: rgba(242, 240, 237, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(17, 26, 44, .7); box-shadow: 0 0 0 4px rgba(193, 167, 138, .18); }
.field-error { display: none; font-size: .8rem; color: #f0b9a8; }
.field.has-error input, .field.has-error textarea { border-color: #e59a85; }
.field.has-error .field-error { display: block; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .2); transition: background-color .3s, color .3s, box-shadow .3s; }
.choice:hover span { box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .45); }
.choice input:checked + span { background: var(--chalk); color: var(--navy); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 3px; }
.form-note { font-size: .78rem; color: rgba(242, 240, 237, .55); line-height: 1.5; }
.form-success:empty { display: none; }
.form-success { padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgba(193, 167, 138, .16); color: var(--chalk); font-size: .9rem; font-weight: 500; }

/* Footer */
.footer { position: relative; z-index: 2; background: var(--navy-deep); color: var(--chalk); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-brand { width: min(100%, 34rem); }
.footer-tag { color: rgba(242, 240, 237, .62); line-height: 1.6; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--rule-dark); font-size: .85rem; color: rgba(242, 240, 237, .62); }
.footer-bottom nav { display: flex; gap: .4rem 1.6rem; flex-wrap: wrap; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--sand); }

.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-bar { padding-left: 1.2rem; }
  .hero-badge { top: 7.5rem; translate: 0; width: 6.5rem; }
  .lab-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule-dark); scrollbar-width: none; }
  .tab-list [role="tab"] { flex: 1 0 auto; }
  .tab-list [role="tab"][aria-selected="true"]::before { left: 25%; right: 25%; top: auto; bottom: 0; width: auto; height: 3px; }
}

@media (max-width: 48rem) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .body { justify-self: start; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-xl, .card-dark, .card-sand, .card-cta { grid-column: auto; grid-row: auto; min-height: 0; }
  .card-cta { flex-direction: column; align-items: flex-start; }
  .card-icon { padding-top: 1.5rem; }
  .manifesto-cols { grid-template-columns: 1fr; }
  .tab-list { padding: .5rem; gap: .25rem; }
  .tab-name { font-size: clamp(1.05rem, 4.6vw, 1.35rem); }
  .tab-list [role="tab"] { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .9rem .75rem; }
  .hero-badge, .scroll-cue { display: none; }
  .footer-tag { text-align: left; }
  .mobile-cta {
    position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: var(--z-header);
    display: flex; align-items: center; justify-content: center; min-height: 3.4rem; border-radius: 999px;
    background: var(--sand); color: var(--navy-deep); font-weight: 600; box-shadow: 0 16px 36px -12px rgba(17, 26, 44, .5);
    transform: translateY(160%); transition: transform .5s var(--ease);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
  .footer { padding-bottom: 6rem; }
}

@media (max-width: 30rem) {
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: .5rem; font-size: .8rem; }
  .faq-body p { padding-right: 0; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-title .line > span { animation: rise 1.1s var(--ease) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero .kicker, .hero-lead, .hero-actions { animation: fade-up .9s var(--ease) both; }
  .hero .kicker { animation-delay: .05s; }
  .hero-lead { animation-delay: .3s; }
  .hero-actions { animation-delay: .42s; }
  .hero-badge svg { animation: spin 22s linear infinite; }
  .hero-badge { animation: fade-in 1s var(--ease) .6s both; }
  .scroll-cue span { animation: cue 2s var(--ease) infinite; }
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  .js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.is-in.card { transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease); transition-delay: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-in { from { scale: 1.12; opacity: .3; } to { scale: 1; opacity: 1; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 80% { opacity: 0; translate: 0 .7rem; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: none; } }
@keyframes fade-swap { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

/* ---------- Réalisations (stacked case studies) ---------- */
.card-case { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; font-size: .84rem; font-weight: 600; letter-spacing: .02em; width: fit-content; }
.card-case svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.card-case:hover svg { transform: translate(3px, -3px); }
.card-dark .card-case { color: var(--sand); }

.showcase { position: relative; z-index: 2; padding-block: var(--section); background: var(--chalk); }
.showcase-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.showcase-aside { display: grid; gap: 1.75rem; justify-self: end; }
.showcase-index { display: flex; flex-wrap: wrap; gap: .5rem; }
.showcase-index a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rule);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.showcase-index a span { font-size: .7rem; color: var(--sand-deep); font-variant-numeric: tabular-nums; transition: color .35s var(--ease); }
.showcase-index a:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.showcase-index a[aria-current="true"] { background: var(--navy); color: var(--paper); box-shadow: none; }
.showcase-index a[aria-current="true"] span { color: var(--sand); }

.stack { width: min(100% - var(--gutter) * 2, 90rem); margin-inline: auto; }
.case { --top: calc(5.75rem + var(--i) * 1rem); position: relative; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.case:last-child { margin-bottom: 0; }
.case-loyzen { --card-bg: #0e1424; --accent: #8a6cf0; --accent-2: #e2774a; }
.case-fm { --card-bg: var(--navy); --accent: #e07b3e; --accent-2: #3f67c9; }
.case-palmease { --card-bg: #1c2233; --accent: #c98463; --accent-2: var(--sand); }

.case-card {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 4.5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3.75rem);
  border-radius: var(--radius-lg); background: var(--card-bg); color: var(--chalk);
  box-shadow: inset 0 1px 0 rgba(242, 240, 237, .08), 0 40px 80px -30px rgba(17, 26, 44, .55);
  transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1));
}
.case-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(rgba(242, 240, 237, .045) 1px, transparent 1px) 0 0 / 100% 4.5rem;
  mask-image: radial-gradient(70% 70% at 75% 40%, #000, transparent);
}
.case-glow {
  position: absolute; z-index: -1; inset: -30% -20% auto auto; width: 75%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
              radial-gradient(circle at 20% 85%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 55%);
  filter: blur(40px); opacity: .55;
}

.case-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; min-width: 0; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.case-num { font-size: .82rem; font-weight: 700; color: var(--sand); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.case .tag { background: rgba(242, 240, 237, .08); color: var(--chalk); }
.case-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; color: rgba(242, 240, 237, .7); }
.case-status span { width: 7px; height: 7px; border-radius: 50%; background: #5fd39a; }
.case-brand { display: flex; align-items: center; gap: 1rem; }
.case-brand h3 { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -.05em; line-height: .95; }
.case-logo { width: auto; height: 2.6rem; object-fit: contain; flex: none; }
.case-logo-mark { width: 3.4rem; height: 3.4rem; padding: .3rem; border-radius: 14px; background: rgba(242, 240, 237, .06); box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .12); }
.case-logo-fm { height: 2.4rem; }
.case-pitch { max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: rgba(242, 240, 237, .74); text-wrap: pretty; }

.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: .35rem 0 0; border-top: 1px solid var(--rule-dark); }
.case-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; padding: 1.15rem 1rem 0 0; }
.case-stats > div + div { padding-left: 1rem; border-left: 1px solid var(--rule-dark); }
.case-stats dd { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--sand-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-stats dt { font-size: .78rem; line-height: 1.4; color: rgba(242, 240, 237, .58); }
.case .chips { margin-top: 0; }
.case .chips li { box-shadow: inset 0 0 0 1px var(--rule-dark); color: rgba(242, 240, 237, .82); }
.case-link {
  display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .2rem; font-weight: 600; color: var(--sand);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease), color .3s var(--ease);
  overflow-wrap: anywhere;
}
.case-link svg { width: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.case-link:hover { color: var(--sand-light); background-size: 0 1px; background-position: 100% 100%; }
.case-link:hover svg { transform: translate(3px, -3px); }

.case-visual { position: relative; min-width: 0; perspective: 1600px; padding: 1.5rem 0 2.5rem 2.5rem; }
.browser {
  position: relative; overflow: hidden; border-radius: 14px; background: #0a0e18;
  box-shadow: 0 0 0 1px rgba(242, 240, 237, .1), 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 120px -40px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transition: transform .9s var(--ease);
}
.browser-bar { display: flex; align-items: center; gap: 1rem; height: 2.35rem; padding: 0 .9rem; background: #151b2a; border-bottom: 1px solid rgba(242, 240, 237, .06); }
.browser-dots { display: flex; gap: .4rem; }
.browser-dots i { width: .62rem; height: .62rem; border-radius: 50%; background: rgba(242, 240, 237, .18); }
.browser-url { flex: 1; max-width: 18rem; margin-inline: auto; padding: .22rem .8rem; border-radius: 999px; background: rgba(242, 240, 237, .07); font-size: .72rem; color: rgba(242, 240, 237, .6); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-steps { display: flex; gap: .3rem; }
.browser-steps i { position: relative; overflow: hidden; width: 1.4rem; height: 3px; border-radius: 2px; background: rgba(242, 240, 237, .16); }
.browser-steps i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: scaleX(0); transform-origin: left; }
.browser-steps i.is-done::after { transform: scaleX(1); }
.browser-steps i.is-active::after { animation: step-fill var(--slide-ms, 3800ms) linear forwards; }
.browser-screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0e18; }
.browser-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.browser-screens img.is-prev { opacity: 1; z-index: 1; }
.browser-screens img.is-active { opacity: 1; z-index: 2; }
.browser-screens::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
}
.browser.is-switching .browser-screens::after { animation: sheen 1.1s var(--ease) both; }

.phone {
  position: absolute; z-index: 4; left: 0; bottom: 0; width: 23%; padding: .34rem; border-radius: 2.1rem;
  background: linear-gradient(145deg, #3a4254, #0b0e16 40%, #1b2030); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 70px -24px rgba(0, 0, 0, .8);
  transform: translate3d(0, var(--fy, 0px), 0) rotate(-4deg);
}
.phone img { width: 100%; aspect-ratio: 560 / 1212; object-fit: cover; object-position: top; border-radius: 1.8rem; }
.phone-island { position: absolute; z-index: 2; top: .85rem; left: 50%; width: 30%; height: .62rem; border-radius: 1rem; background: #05070b; translate: -50% 0; }

.glass-chip {
  position: absolute; z-index: 5; top: .25rem; right: -.75rem; display: grid; gap: .1rem; padding: .85rem 1.15rem; border-radius: 1.15rem;
  color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 60%);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 24px 40px -18px rgba(0, 0, 0, .6);
}
.glass-chip strong { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.glass-chip span { font-size: .74rem; color: rgba(255, 255, 255, .78); }

.split-title .w { display: inline-block; overflow: hidden; padding: 0 .02em .14em; margin-bottom: -.14em; vertical-align: top; }
.split-title .w > span { display: inline-block; }
.showcase-more { display: flex; align-items: center; gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
.pulse-dot { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--sand-deep); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease) infinite; }

.showcase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.showcase-foot p { font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.showcase-foot em { color: var(--sand-deep); font-weight: 300; }

.film { margin-top: clamp(4rem, 9vw, 7.5rem); }
.film-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-deep); box-shadow: 0 50px 100px -40px rgba(17, 26, 44, .6); }
.film-video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 1.1rem;
  padding: clamp(1.25rem, 3.5vw, 3rem); color: var(--chalk); text-align: left;
  background: linear-gradient(to top, rgba(17, 26, 44, .7), rgba(17, 26, 44, 0) 55%);
  transition: opacity .5s var(--ease);
}
.film-play-icon {
  display: grid; place-items: center; width: clamp(3.5rem, 6vw, 5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--sand); color: var(--navy-deep); transition: transform .5s var(--ease-spring), background .3s var(--ease);
}
.film-play-icon svg { width: 38%; fill: currentColor; translate: 8% 0; }
.film-play:hover .film-play-icon { transform: scale(1.08); background: var(--chalk); }
.film-play-text { display: grid; gap: .15rem; }
.film-play-text strong { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; }
.film-play-text small { font-size: .82rem; color: rgba(242, 240, 237, .75); }
.film.is-playing .film-play { opacity: 0; pointer-events: none; }
.film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .82rem; color: var(--ink-soft); }
.film-caption span { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--sand-ink); }
.film-caption a { font-weight: 600; color: var(--navy); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

@media (min-width: 68.01rem) and (min-height: 40rem) {
  .case { position: sticky; top: var(--top); height: calc(100svh - var(--top) - 1.5rem); max-height: 50rem; margin-bottom: 12vh; }
  .case:last-child { margin-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .case-status span { animation: live 2.4s var(--ease) infinite; }
  .js .case .case-info > *, .js .case .case-visual { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--k, 0) * 70ms); }
  .js .case:not(.is-seen) .case-info > * { opacity: 0; transform: translateY(1.4rem); }
  .js .case:not(.is-seen) .case-visual { opacity: 0; transform: translateX(3rem) scale(.96); }
  .js .case .case-visual { --k: 2; }
  .case-info > :nth-child(2) { --k: 1; }
  .case-info > :nth-child(3) { --k: 2; }
  .case-info > :nth-child(4) { --k: 3; }
  .case-info > :nth-child(5) { --k: 4; }
  .case-info > :nth-child(6) { --k: 5; }
  .browser-screens img.is-active.is-entering { animation: screen-in 1.1s var(--ease) both; }
  .case-glow { animation: glow-drift 14s ease-in-out infinite; }
  .glass-chip { animation: chip-float 5s ease-in-out infinite; }
  .js .case .case-card { transition: clip-path 1.2s var(--ease); }
  .js .case:not(.is-seen) .case-card { clip-path: inset(7% 4% 0 4% round var(--radius-lg)); }
  .js .case .phone, .js .case .glass-chip { transition: opacity 1s var(--ease) .35s, translate 1s var(--ease) .35s; }
  .js .case:not(.is-seen) .phone { opacity: 0; translate: -2rem 3rem; }
  .js .case:not(.is-seen) .glass-chip { opacity: 0; translate: 0 -1.5rem; }
  .js .split-title.is-split .w > span { transform: translateY(110%); }
  .js .split-title.is-split.is-in .w > span { animation: word-up 1s var(--ease) both; animation-delay: calc(var(--wi) * 90ms); }
}
@keyframes step-fill { to { transform: scaleX(1); } }
@keyframes sheen { from { background-position: -150% 0; } to { background-position: 250% 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes screen-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes glow-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 154, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 211, 154, 0); } }

@media (max-width: 68rem) {
  .showcase-head { grid-template-columns: 1fr; }
  .showcase-aside { justify-self: start; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { padding: .5rem 0 2rem 2rem; }
}
@media (max-width: 48rem) {
  .case-card { padding: 1.5rem 1.25rem 1.25rem; border-radius: var(--radius-md); gap: 1.75rem; }
  .case-stats > div { padding-right: .5rem; }
  .case-stats > div + div { padding-left: .6rem; }
  .case-stats dd { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .case-stats dt { font-size: .7rem; }
  .case-visual { padding: 0 0 1.5rem 1.25rem; }
  .browser { --ry: 0deg; --rx: 0deg; }
  .browser-bar { height: 1.9rem; }
  .phone { width: 27%; padding: .22rem; border-radius: 1.25rem; }
  .phone img { border-radius: 1.05rem; }
  .phone-island { top: .5rem; height: .4rem; }
  .glass-chip { right: 0; padding: .6rem .8rem; border-radius: .9rem; }
  .glass-chip strong { font-size: 1.05rem; }
  .glass-chip span { font-size: .66rem; }
  .browser-steps { display: none; }
  .showcase-foot .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero stage (projects showcase instead of photo) ---------- */
.hero { align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #1d2a45 0%, var(--navy-deep) 55%, #0b111e 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-a { width: 42vw; aspect-ratio: 1; right: -8vw; top: -12vw; background: radial-gradient(circle, rgba(193, 167, 138, .55), transparent 65%); }
.blob-b { width: 36vw; aspect-ratio: 1; left: -10vw; bottom: -14vw; background: radial-gradient(circle, rgba(63, 103, 201, .45), transparent 65%); }
.blob-c { width: 24vw; aspect-ratio: 1; left: 48%; top: 38%; background: radial-gradient(circle, rgba(148, 119, 90, .35), transparent 65%); }
.hero-grid-lines { position: absolute; inset: 0; opacity: .5; background: linear-gradient(rgba(242, 240, 237, .05) 1px, transparent 1px) 0 0 / 100% 5rem, linear-gradient(90deg, rgba(242, 240, 237, .05) 1px, transparent 1px) 0 0 / 5rem 100%; mask-image: radial-gradient(60% 60% at 65% 45%, #000, transparent); }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-text { min-width: 0; }
.hero-brand { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero-brand img { width: auto; height: clamp(1.9rem, 3.4vw, 3.3rem); }
.hero-text { container-type: inline-size; }
.hero-title { font-size: min(clamp(3.3rem, 7.4vw, 8.4rem), 16.5cqi); }
.hero-title .line { white-space: nowrap; }
.hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }

.hero-stage { position: relative; min-width: 0; padding-top: 2rem; }
.stage-scene { position: relative; aspect-ratio: 16 / 12.4; perspective: 1800px; }
.laptop {
  position: absolute; top: 6%; left: 8%; width: 92%; margin: 0;
  transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 7deg)); transform-style: preserve-3d;
  transition: transform 1.1s var(--ease);
}
.laptop-screen {
  position: relative; padding: 2.1% 2.1% 2.6%; border-radius: 18px 18px 8px 8px;
  background: linear-gradient(160deg, #2a3248, #0a0d16 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .25), 0 70px 110px -45px rgba(0, 0, 0, .85);
}
.laptop-cam { position: absolute; top: .7%; left: 50%; width: .4rem; height: .4rem; border-radius: 50%; background: #2c3446; translate: -50% 0; }
.laptop-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #05070c; }
.laptop-view img, .phone-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.05); transition: opacity .9s var(--ease), transform 1.4s var(--ease); border-radius: 0; aspect-ratio: auto;
}
.laptop-view img.is-active, .phone-view img.is-active { opacity: 1; transform: none; }
.laptop-view::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; }
.hero-stage.is-switching .laptop-view::after { animation: sheen 1.1s var(--ease) both; }
.laptop-base { position: relative; height: 1.1rem; margin: 0 -6%; border-radius: 0 0 1.2rem 1.2rem; background: linear-gradient(#e4e6ec, #a3a8b4 70%, #7b808c); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7); }
.laptop-base span { position: absolute; top: 0; left: 50%; width: 16%; height: 35%; border-radius: 0 0 .6rem .6rem; background: rgba(0, 0, 0, .18); translate: -50% 0; }

.phone.hero-phone { left: 0; bottom: 4%; width: 23%; z-index: 4; }
.phone-view { position: relative; aspect-ratio: 560 / 1212; overflow: hidden; border-radius: 1.75rem; background: #05070c; }
.glass-chip.hero-chip { top: 0; right: 2%; min-width: 13.5rem; gap: .15rem; }
.hero-chip small { font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-light); }
.hero-chip strong, .hero-chip span { transition: opacity .35s var(--ease), translate .35s var(--ease); }
.hero-chip.is-swap strong, .hero-chip.is-swap span { opacity: 0; translate: 0 .4rem; }
.hero-stage .hero-badge { top: auto; bottom: 0; right: -1%; translate: none; width: clamp(6rem, 8vw, 8rem); z-index: 5; }

.stage-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.75rem; }
.stage-tabs button {
  position: relative; overflow: hidden; padding: .6rem 1rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: rgba(242, 240, 237, .7);
  background: rgba(242, 240, 237, .06); box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.stage-tabs button:hover { color: var(--chalk); }
.stage-tabs button[aria-pressed="true"] { color: var(--navy-deep); background: var(--chalk); }
.stage-bar { position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 2px; border-radius: 2px; background: currentColor; opacity: .25; transform-origin: left; transform: scaleX(0); }
.stage-tabs button[aria-pressed="true"] .stage-bar { transform: scaleX(1); }
.hero-stage.is-playing .stage-tabs button[aria-pressed="true"] .stage-bar { opacity: .5; animation: step-fill var(--stage-ms, 4200ms) linear both; transform: scaleX(0); }

/* ---------- Method scene (instead of lab photo) ---------- */
.method { aspect-ratio: 4 / 4.2; color: var(--chalk); background: radial-gradient(90% 80% at 30% 20%, #26344f, var(--navy-deep) 60%, #0b111e); }
.method-scene { position: absolute; inset: 0; overflow: hidden; }
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04) 60%);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 44px -22px rgba(0, 0, 0, .7);
}
.method-top { position: absolute; z-index: 3; top: 1.4rem; left: 1.5rem; right: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.method-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 240, 237, .8); }
.method-label b { color: var(--sand); font-variant-numeric: tabular-nums; }
.method-bars { display: flex; gap: .3rem; }
.method-bars i { position: relative; overflow: hidden; width: 1.6rem; height: 3px; border-radius: 2px; background: rgba(242, 240, 237, .18); }
.method-bars i::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.method[data-state="0"] .method-bars i:nth-child(1)::after, .method[data-state="1"] .method-bars i:nth-child(-n+2)::after, .method[data-state="2"] .method-bars i::after { transform: scaleX(1); }
.method-ring { position: absolute; left: 50%; top: 48%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(193, 167, 138, .28); translate: -50% -50%; }
.ring-1 { width: 58%; }
.ring-2 { width: 88%; border-style: solid; border-color: rgba(242, 240, 237, .07); }

.method-state { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.method[data-state="0"] .state-0, .method[data-state="1"] .state-1, .method[data-state="2"] .state-2 { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.method-state > * { position: absolute; left: var(--l, 50%); top: var(--t, 48%); translate: -50% -50%; }
.core { display: grid; place-items: center; width: 7rem; aspect-ratio: 1; border-radius: 50%; }
.core svg { width: 2.8rem; fill: none; stroke: var(--sand); stroke-width: 2.4; stroke-linecap: round; }
.q, .note { padding: .65rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 600; white-space: nowrap; color: #fff; }
.note { display: inline-flex; align-items: center; gap: .55rem; border-radius: .9rem; }
.note i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sand); }
.learn { width: 74%; padding: 1.25rem 1.25rem 1rem; border-radius: 1.4rem; }
.learn-title, .launch-title { display: block; margin-bottom: .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-light); }
.learn-chart { width: 100%; overflow: visible; }
.learn-bars rect { fill: rgba(242, 240, 237, .16); transform-box: fill-box; transform-origin: bottom; }
.learn-line { fill: none; stroke: var(--sand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.launch { width: 78%; padding: 1.25rem; border-radius: 1.4rem; }
.launch-list { display: grid; gap: .6rem; }
.launch-list li { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: .9rem; background: rgba(242, 240, 237, .06); box-shadow: inset 0 0 0 1px rgba(242, 240, 237, .1); }
.launch-list img, .launch-mono { width: 2.4rem; height: 2.4rem; object-fit: contain; border-radius: .6rem; padding: .25rem; background: rgba(242, 240, 237, .08); }
.launch-mono { display: grid; place-items: center; font-weight: 700; color: var(--sand-light); }
.launch-list b { font-size: .95rem; font-weight: 600; }
.launch-list em { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: #8fe3b8; }
.launch-list em::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #5fd39a; }
.method figcaption { z-index: 3; }

.steps li { position: relative; cursor: pointer; outline-offset: 2px; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--sand-deep); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.steps li.is-active::before { transform: scaleX(1); }
.steps li.is-active { padding-left: .6rem; }
.steps li.is-active .step-num { color: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
  .blob-a { animation: glow-drift 16s ease-in-out infinite; }
  .blob-b { animation: glow-drift 20s ease-in-out infinite reverse; }
  .blob-c { animation: glow-drift 12s ease-in-out infinite; }
  .hero-stage { animation: fade-up 1.2s var(--ease) .35s both; }
  .hero-brand img { animation: brand-wipe 1.3s var(--ease) both; }
  .laptop { animation: laptop-float 7s ease-in-out infinite; }
  .hero-chip { animation: chip-float 5s ease-in-out infinite; }
  .ring-1 { animation: spin 40s linear infinite; }
  .method-state > * { transition: opacity .45s var(--ease), scale .45s var(--ease); transition-delay: calc(var(--k, 0) * 55ms); }
  .js .method-state:not(.is-on) > * { opacity: 0; scale: .85; }
  .q, .note { animation: bob 4.5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1.1s); }
  .core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgba(193, 167, 138, .5); animation: ping 2.4s var(--ease) infinite; }
  .state-1.is-on .learn-bars rect { animation: bar-grow .55s var(--ease) both; }
  .state-1.is-on .learn-bars rect:nth-child(2) { animation-delay: .05s; }
  .state-1.is-on .learn-bars rect:nth-child(3) { animation-delay: .1s; }
  .state-1.is-on .learn-bars rect:nth-child(4) { animation-delay: .15s; }
  .state-1.is-on .learn-bars rect:nth-child(5) { animation-delay: .2s; }
  .state-1.is-on .learn-line { animation: draw 1s var(--ease) .12s both; }
  .launch-list li { transition: opacity .4s var(--ease), translate .4s var(--ease); transition-delay: calc(var(--k) * 80ms + .08s); }
  .js .state-2:not(.is-on) .launch-list li { opacity: 0; translate: 1.5rem 0; }
}
@keyframes brand-wipe { from { clip-path: inset(0 100% 0 0); opacity: .2; translate: -1rem 0; } to { clip-path: inset(0 0 0 0); opacity: 1; translate: 0 0; } }
@keyframes laptop-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

@media (max-width: 68rem) {
  .hero { padding-top: 7.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: min(clamp(3.3rem, 11.5vw, 8rem), 16.5cqi); }
  .hero-stage { width: min(100%, 40rem); margin-inline: auto; padding-top: 0; }
}
@media (max-width: 48rem) {
  .glass-chip.hero-chip { min-width: 0; right: 0; }
  .hero-chip small { font-size: .56rem; }
  .stage-tabs { margin-top: 1.1rem; }
  .stage-tabs button { padding: .5rem .8rem .65rem; font-size: .76rem; }
  .laptop-screen { border-radius: 12px 12px 6px 6px; }
  .laptop-base { height: .7rem; }
  .q, .note { padding: .5rem .75rem; font-size: .74rem; }
  .core { width: 5rem; }
  .learn, .launch { width: 84%; padding: 1rem; }
  .launch-list li { grid-template-columns: 2rem 1fr auto; padding: .5rem .6rem; }
  .launch-list img, .launch-mono { width: 2rem; height: 2rem; }
  .method { aspect-ratio: auto; display: flex; flex-direction: column; }
  .method-scene { position: relative; aspect-ratio: 1 / 1.08; }
  .method-state { inset: 2.75rem 0 0; }
  .state-1 .learn { --t: 58%; }
  .state-1 .note:last-of-type { display: none; }
  .method figcaption { position: relative; left: auto; right: auto; bottom: auto; margin: 0 1rem 1rem; }
}

/* ---------- Experts teaser (home) ---------- */
.experts-teaser { background: var(--chalk); }
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.teaser-copy .body { margin-top: 1.6rem; }
.teaser-actions { display: flex; align-items: center; gap: 1.2rem 2rem; flex-wrap: wrap; margin-top: 2.2rem; }
.teaser-roles { display: flex; flex-wrap: wrap; gap: .55rem; }
.teaser-roles li { padding: .75rem 1.1rem; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: clamp(.88rem, 1.1vw, 1rem); letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(26, 38, 61, .08); transition: background-color .35s, color .35s, transform .35s var(--ease); }
.teaser-roles li:hover { background: var(--navy); color: var(--chalk); transform: translateY(-3px); }
.teaser-roles .teaser-more { padding: 0; background: var(--sand); box-shadow: none; }
.teaser-roles .teaser-more a { display: block; padding: .75rem 1.1rem; color: var(--navy-deep); }
.manifesto-link { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 68rem) { .teaser-grid { grid-template-columns: 1fr; } }
