/* =====================================================================
   EMMAUS LABS — styles
   Palette: deep navy/charcoal environments, muted champagne gold accents.
   ===================================================================== */

:root {
  --bg: #070a12;
  --bg-rgb: 7, 10, 18;
  --bg-2: #0b0f1a;
  --bg-3: #101624;
  --ink: #e9e4da;
  --ink-2: #a9a59c;
  --ink-3: #6e7280;
  --gold: #d3c1a3;
  --gold-rgb: 211, 193, 163;
  --gold-2: #b9a486;
  --gold-3: #8a7a62;
  --gold-glow: rgba(211, 193, 163, 0.16);
  --line: rgba(211, 193, 163, 0.14);
  --line-2: rgba(233, 228, 218, 0.08);

  --font-display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  transition: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(96px, 12vw, 180px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--gold-2); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-3); }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 14ch;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: transform .6s var(--ease-out), background .5s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(to bottom, rgba(var(--bg-rgb), .92), rgba(var(--bg-rgb), 0)); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mark { height: 30px; width: auto; }
.nav__wordmark { font-family: var(--font-display); font-weight: 400; letter-spacing: .32em; font-size: 13px; color: var(--ink); }
.nav__wordmark span { color: var(--gold-2); font-weight: 300; }
.nav__links { display: flex; gap: 36px; }
.nav__links a { position: relative; font-size: 13px; letter-spacing: .04em; color: var(--ink-2); transition: color .3s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--ink); }
.nav__cta { font-size: 13px; letter-spacing: .04em; border: 1px solid rgba(233,228,218,.22); padding: 10px 20px; border-radius: 999px; color: var(--ink); transition: border-color .3s, background .3s; position: relative; overflow: hidden; }
.nav__cta::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform .5s var(--ease-out); border-radius: inherit; }
.nav__cta span { position: relative; z-index: 1; transition: color .3s; }
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover span { color: var(--bg); }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 1px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s; }
.nav__toggle span:nth-child(1) { top: 15px; } .nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--bg); clip-path: circle(0% at calc(100% - 42px) 42px); transition: clip-path .8s var(--ease-in-out); visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); gap: 6px; }
.menu__link { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 8vw, 56px); display: flex; align-items: baseline; gap: 20px; color: var(--ink); opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease-out); }
.menu__link .mono { color: var(--gold-2); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .25s } .menu.is-open .menu__link:nth-child(2) { transition-delay: .3s }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .35s } .menu.is-open .menu__link:nth-child(4) { transition-delay: .4s }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .45s } .menu.is-open .menu__link:nth-child(6) { transition-delay: .5s }
.menu__foot { color: var(--gold-3); margin-top: 40px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid rgba(233,228,218,.28); color: var(--ink);
  font-size: 14px; letter-spacing: .04em; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .3s, color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn span, .btn svg { transition: color .3s, transform .5s var(--ease-out); }
.btn:hover { border-color: var(--gold); color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn:hover svg { transform: translateY(3px); }
.btn--solid { background: var(--gold); border-color: var(--gold); color: #0b0e16; }
.btn--solid::before { background: #ece0c9; }
.btn--solid:hover { border-color: #ece0c9; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: #060910;
}
.hero__media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__dawn {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(ellipse 52vmax 32vmax at var(--gx, 78%) var(--gy, 42%),
    rgba(255,182,118,.36) 0%, rgba(255,150,92,.12) 32%, rgba(255,130,80,0) 70%);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,9,16,.55) 0%, rgba(6,9,16,0) 26%, rgba(6,9,16,0) 58%, rgba(6,9,16,.86) 100%),
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(6,9,16,.22), rgba(6,9,16,0) 70%);
}

.hero__content {
  grid-row: 1; align-self: center; justify-self: center;
  display: grid; justify-items: center; text-align: center;
  width: min(100% - 2 * var(--gutter), 920px);
  padding: calc(88px + env(safe-area-inset-top)) 0 40px;
  will-change: transform, opacity;
}
.hero__logo { --logo-w: min(60vw, 400px); display: grid; justify-items: center; }
.hero__logo img { width: var(--logo-w); height: auto; filter: drop-shadow(0 18px 60px rgba(0,0,0,.5)); }
.hero__wordmark { font-family: var(--font-display); font-weight: 200; font-size: clamp(38px, 8.5vw, 104px); line-height: 1; letter-spacing: .3em; margin-right: -.3em; color: var(--gold); }
.hero__wordmark span { display: block; font-size: .32em; letter-spacing: .6em; margin: .55em -.6em 0 0; color: var(--gold-2); }
.hero__title, .hero__lede { text-wrap: balance; }
.hero__title { margin-top: clamp(26px, 4vh, 40px); font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 2vw, 27px); line-height: 1.25; letter-spacing: .005em; color: #f2ede3; max-width: 26ch; text-shadow: 0 2px 24px rgba(6,9,16,.6); }
.hero__lede { margin-top: 12px; color: rgba(233,228,218,.74); font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.6; max-width: 54ch; text-shadow: 0 2px 20px rgba(6,9,16,.6); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero__foot {
  grid-row: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 0 var(--gutter) calc(30px + env(safe-area-inset-bottom));
  color: var(--ink-3);
}
.hero__meta--right { text-align: right; }
.hero__cue { display: grid; justify-items: center; gap: 12px; }
.hero__cue-line { width: 1px; height: 56px; background: rgba(211,193,163,.22); overflow: hidden; position: relative; }
.hero__cue-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold)); animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* entrance (only once JS is running, so nothing is ever stuck invisible) */
html.js .hero__img { opacity: 0; transform: scale(1.06); }
html.js .hero__content > *, html.js .hero__foot > * { opacity: 0; transform: translateY(18px); }
body.is-loaded .hero__img { animation: hero-img 2.8s var(--ease-out) forwards; }
body.is-loaded .hero__dawn { animation: dawn 7s var(--ease-in-out) 1.4s forwards, dawn-breathe 11s ease-in-out 8.4s infinite alternate; }
body.is-loaded .hero__content > *, body.is-loaded .hero__foot > * { animation: rise 1.5s var(--ease-out) forwards; }
body.is-loaded .hero__logo { animation-delay: .35s; }
body.is-loaded .hero__title { animation-delay: .7s; }
body.is-loaded .hero__lede { animation-delay: .85s; }
body.is-loaded .hero__actions { animation-delay: 1s; }
body.is-loaded .hero__foot > * { animation-delay: 1.6s; }
@keyframes hero-img { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes dawn { to { opacity: .9; } }
@keyframes dawn-breathe { from { opacity: .9; } to { opacity: .66; } }

/* ---------------- Scene labels (shared) ---------------- */
.manifesto__label { display: flex; align-items: center; gap: 14px; color: var(--gold-2); }
.manifesto__label span { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; letter-spacing: .04em; color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--gold-2); }

/* ---------------- 01 MANIFESTO ---------------- */
.manifesto { position: relative; min-height: 100vh; display: grid; align-items: center; padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px); }
.manifesto__inner { width: min(100%, 1400px); margin-inline: auto; }
.manifesto__label { margin-bottom: clamp(28px, 4vw, 56px); }
.manifesto__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 9.6vw, 156px); line-height: .96; letter-spacing: -.015em; color: var(--ink); }
.manifesto__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.manifesto__line > span { display: inline-block; transform: translateY(112%); transition: transform 1.3s var(--ease-out); will-change: transform; }
.manifesto.is-in .manifesto__line > span { transform: none; }
.manifesto.is-in .manifesto__line:nth-child(2) > span { transition-delay: .1s; }
.manifesto.is-in .manifesto__line:nth-child(3) > span { transition-delay: .2s; }
.manifesto.is-in .manifesto__line:nth-child(4) > span { transition-delay: .3s; }
.manifesto__line--photo > span { color: var(--gold); }
.manifesto.has-photo .manifesto__line--photo > span { background-size: cover; background-position: 50% 40%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.manifesto__aside { display: grid; grid-template-columns: minmax(0, 46ch) minmax(0, 38ch); gap: clamp(28px, 5vw, 96px); justify-content: end; margin: clamp(48px, 6vw, 96px) 0 0 auto; width: min(100%, 1040px); }
.manifesto__aside p { color: var(--ink-2); font-size: 18px; }
.manifesto__facts { display: grid; gap: 14px; color: var(--ink-2); font-size: 15px; border-left: 1px solid var(--line); padding-left: 24px; }
.manifesto__facts b { font-weight: 500; color: var(--ink); }

/* ---------------- 02 CAPABILITIES: six working models, each alive while it is on screen ---------------- */
.caps__pin { position: relative; height: 640vh; }
.caps__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); align-items: center; width: min(100%, calc(1400px + 2 * var(--gutter))); margin-inline: auto; padding: calc(88px + env(safe-area-inset-top)) var(--gutter) 40px; }
.caps__sub { color: var(--ink-2); font-size: 16px; max-width: 34ch; margin-top: 18px; }
.caps__swap { margin-top: clamp(26px, 4vh, 44px); transition: opacity .2s, transform .3s var(--ease-out); }
.caps__swap.is-switching { opacity: 0; transform: translateY(8px); }
.caps__index { color: var(--ink-3); margin-bottom: 14px; }
.caps__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 5vw, 76px); line-height: 1; letter-spacing: -.01em; color: var(--ink); margin-bottom: 16px; }
.caps__desc { color: var(--ink-2); font-size: 16px; max-width: 42ch; }
.caps__swap .tags { margin-top: 16px; }
.caps__ticks { display: flex; gap: 8px; margin-top: clamp(26px, 4vh, 44px); }
.caps__ticks li { width: 26px; height: 1px; background: var(--line); transition: background .4s, width .5s var(--ease-out); }
.caps__ticks li.is-on { background: var(--gold); width: 40px; }
.caps__models { position: relative; height: min(70vh, 560px); }
.model { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(36px) scale(.96); transition: opacity .55s, transform .8s var(--ease-out); pointer-events: none; }
.model.is-on { opacity: 1; transform: none; pointer-events: auto; }
.model__copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caps__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0 clamp(96px, 12vw, 180px); }
.caps__more p { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; color: var(--ink); }

/* the models: small interfaces built from the site's own tokens */
.m-frame { position: relative; width: min(100%, 640px); aspect-ratio: 16 / 10.5; border: 1px solid rgba(var(--gold-rgb), .22); border-radius: 12px; background: linear-gradient(160deg, rgba(var(--gold-rgb), .07), transparent 55%), var(--bg-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; font-size: 12px; color: var(--ink-2); }
.m-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(233,228,218,.05) 45%, transparent 60%); background-size: 260% 100%; animation: m-sweep 6s linear infinite; }
@keyframes m-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.m-chrome { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line-2); }
.m-chrome i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); }
.m-chrome span { margin-left: 10px; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.m-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.m-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: m-blink 1.8s ease-in-out infinite; }
@keyframes m-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.m-ln { height: 6px; border-radius: 3px; background: rgba(233,228,218,.14); }
/* a dashboard */
.m-dash { position: absolute; inset: 32px 0 0; display: grid; grid-template-columns: 148px 1fr; }
.m-dash__side { border-right: 1px solid var(--line-2); padding: 18px 14px; display: grid; align-content: start; gap: 14px; }
.m-dash__side .m-ln { width: 70%; } .m-dash__side .m-ln:nth-child(2) { width: 88%; background: var(--gold); } .m-dash__side .m-ln:nth-child(4) { width: 55%; }
.m-dash__main { padding: 18px 20px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-height: 0; }
.m-dash__title { font-family: var(--font-display); font-size: 18px; color: var(--ink); font-weight: 300; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-kpi { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.m-kpi b { display: block; font-family: var(--font-display); font-weight: 300; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-kpi span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.m-chart { position: relative; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; min-height: 80px; }
.m-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-chart__grid { stroke: rgba(233,228,218,.06); }
.m-chart__area { fill: url(#m-grad); opacity: .9; }
.m-chart__line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: m-draw 5s var(--ease-out) infinite; }
@keyframes m-draw { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.m-chart__dot { fill: var(--gold); }
/* a phone */
.m-phone { width: 228px; aspect-ratio: 9 / 19; border-radius: 34px; border: 1px solid rgba(var(--gold-rgb), .3); background: linear-gradient(160deg, rgba(var(--gold-rgb), .07), transparent 55%), var(--bg-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .5); position: relative; overflow: hidden; padding: 44px 14px 0; font-size: 11px; color: var(--ink-2); }
.m-phone::before { content: ""; position: absolute; left: 50%; top: 12px; width: 76px; height: 20px; border-radius: 12px; background: #04060d; transform: translateX(-50%); }
.m-phone h4 { font-family: var(--font-display); font-weight: 300; font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.m-plist { display: grid; gap: 7px; }
.m-pcard { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; }
.model.is-on .m-pcard { animation: m-slidein .9s var(--ease-out) both; }
.model.is-on .m-pcard:nth-child(2) { animation-delay: .12s; } .model.is-on .m-pcard:nth-child(3) { animation-delay: .24s; }
.model.is-on .m-pcard:nth-child(4) { animation-delay: .36s; } .model.is-on .m-pcard:nth-child(5) { animation-delay: .48s; }
@keyframes m-slidein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.m-pcard b { grid-column: 1; grid-row: 1; font-weight: 500; color: var(--ink); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pcard small { grid-column: 1; grid-row: 2; color: var(--ink-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
.m-sw { grid-column: 2; grid-row: 1 / 3; width: 32px; height: 18px; border-radius: 9px; background: rgba(233,228,218,.14); position: relative; transition: background .4s; }
.m-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease-out), background .4s; }
.m-sw.on { background: var(--gold); } .m-sw.on::after { transform: translateX(14px); background: var(--bg); }
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--line-2); background: rgba(7,10,18,.6); }
.m-tabs i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); } .m-tabs i:first-child { background: var(--gold); border-color: var(--gold); }
/* an assistant */
.m-chat { position: absolute; inset: 32px 0 0; display: grid; grid-template-rows: 1fr auto; }
.m-chat__log { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.m-msg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.m-msg--u { justify-self: end; background: rgba(var(--gold-rgb), .14); color: var(--ink); border-bottom-right-radius: 4px; }
.m-msg--a { background: rgba(233,228,218,.06); border: 1px solid var(--line-2); color: var(--ink); border-bottom-left-radius: 4px; min-height: 42px; }
.m-caret { display: inline-block; width: 1px; height: 13px; background: var(--gold); vertical-align: -2px; margin-left: 2px; animation: m-blink 1s steps(2) infinite; }
.m-src { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px; }
.m-src span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--gold-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; opacity: 0; transition: opacity .4s; }
.m-src.is-on span { opacity: 1; }
.m-chat__in { margin: 12px 20px 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; }
/* a back-office table */
.m-ops { position: absolute; inset: 32px 0 0; padding: 16px 20px; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.m-ops__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.m-ops__head b { font-family: var(--font-display); font-weight: 300; font-size: 18px; color: var(--ink); }
.m-ops__head span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.m-tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.m-tbl th { text-align: left; font-family: var(--font-mono); font-weight: 300; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.m-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.m-tbl td:nth-child(3) { color: var(--ink-2); }
.m-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-3); transition: color .4s, background .4s, border-color .4s; }
.m-pill--mid { color: var(--gold-2); border-color: rgba(var(--gold-rgb), .4); }
.m-pill--done { color: var(--bg); background: var(--gold); border-color: var(--gold); }
/* an api */
.m-con { position: absolute; inset: 32px 0 0; padding: 18px 20px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; overflow: hidden; }
.m-con .m { color: var(--gold); } .m-con .k { color: var(--ink-3); } .m-con .v { color: var(--ink); } .m-con .ok { color: var(--gold-2); }
.m-con__meta { position: absolute; right: 20px; top: 50px; text-align: right; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.m-con__meta b { display: block; font-family: var(--font-display); font-weight: 300; font-size: 26px; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* an automation */
.m-flow { position: absolute; inset: 32px 0 0; }
.m-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-flow__box { fill: rgba(11,15,26,.9); stroke: rgba(var(--gold-rgb), .35); }
.m-flow__wire { fill: none; stroke: rgba(var(--gold-rgb), .3); stroke-width: 1.2; }
.m-flow text { font-family: var(--font-body); font-size: 11.5px; fill: var(--ink); }
.m-flow text.m-flow__t { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; fill: var(--ink-3); text-transform: uppercase; }
.m-flow__pulse { fill: var(--gold); filter: drop-shadow(0 0 5px rgba(211,193,163,.9)); offset-path: path("M96 130 H196 M292 130 H392 M488 130 H588"); offset-distance: 0%; animation: m-travel 3.2s linear infinite; }
@keyframes m-travel { to { offset-distance: 100%; } }
.m-flow__stat { position: absolute; left: 20px; bottom: 16px; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.m-flow__stat b { color: var(--ink); font-weight: 400; }

/* ---------------- 03 CLARITY ---------------- */
.clarity { position: relative; height: 240vh; }
.clarity__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.clarity__light { position: absolute; inset: 0; will-change: background; }
.clarity__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.clarity__copy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.clarity__eyebrow { margin-bottom: 34px; }
.clarity__words { position: relative; height: 1.1em; width: 100%; font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 10vw, 150px); line-height: 1; letter-spacing: .01em; }
.clarity__word { position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; will-change: opacity, transform; }
.clarity__word--a { color: var(--ink-2); }
.clarity__word--b { color: var(--gold); }
.clarity__letter { display: inline-block; will-change: transform; }
.clarity__sub { margin: 34px auto 0; color: var(--ink-2); font-size: 16px; max-width: 42ch; }

/* ---------------- 04 PROCESS ---------------- */
.process { padding: clamp(96px, 12vw, 180px) 0 0; overflow: hidden; }
.process__head { padding: 0 var(--gutter); width: min(100%, 1400px); margin: 0 auto clamp(40px, 5vw, 80px); }
.process__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5.6vw, 92px); line-height: 1; letter-spacing: -.01em; color: var(--ink); margin-top: 28px; }
.process__track { position: relative; padding: 24px 0 clamp(120px, 14vw, 200px); }
.process__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#process-path-bg { fill: none; stroke: var(--line); stroke-width: 1; }
#process-path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.process__head-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(var(--gold-rgb), .16), 0 0 30px rgba(var(--gold-rgb), .7); pointer-events: none; will-change: transform; }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 8vw, 140px) 16px; padding: 0 var(--gutter); width: min(100%, 1400px); margin-inline: auto; }
.process__step { grid-column: var(--col); display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; position: relative; z-index: 1; }
.process__marker { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; border: 1px solid var(--gold-2); background: var(--bg); transition: background .4s, box-shadow .4s, border-color .4s; }
.process__step.is-on .process__marker { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--bg), 0 0 22px rgba(var(--gold-rgb), .5); }
.process__card { position: relative; background: var(--bg); padding: 4px 18px 18px 14px; margin: -4px -18px -18px -14px; border-radius: 6px; opacity: .38; transform: translateY(14px); transition: opacity .6s, transform .9s var(--ease-out), background .2s; }
.process__step.is-on .process__card { opacity: 1; transform: none; }
.process__card > .mono { color: var(--gold-2); display: block; margin-bottom: 10px; }
.process__card h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1; margin-bottom: 12px; color: var(--ink); }
.process__card p { color: var(--ink-2); font-size: 16px; max-width: 38ch; }
.process__out { display: block; margin-top: 14px; color: var(--gold-2); }

/* ---------------- 05 COMPASS ---------------- */
.compass { position: relative; height: 420vh; }
.compass__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.compass__ring { position: absolute; left: 50%; top: 50%; width: min(78vh, 78vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 50%; }
.compass__ring::before { content: ""; position: absolute; inset: 17%; border: 1px dashed var(--line); border-radius: 50%; opacity: .7; }
.compass__tick { position: absolute; left: 50%; top: 0; width: 1px; height: 22px; background: var(--gold); transform: translate(-50%, -100%); }
.compass__label { position: absolute; left: 50%; top: 50%; white-space: nowrap; font-family: var(--font-display); font-weight: 300; font-size: clamp(16px, 2vw, 28px); color: var(--ink-3); display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--bg); border-radius: 999px; transition: color .4s, font-size .4s; }
.compass__label i { font-style: normal; color: var(--gold-3); }
.compass__label.is-active { color: var(--gold); font-size: clamp(20px, 2.7vw, 38px); }
.compass__center { position: relative; text-align: center; width: min(100% - 2 * var(--gutter), 520px); display: grid; justify-items: center; gap: 24px; }
.compass__swap { transition: opacity .2s, transform .3s var(--ease-out); }
.compass__swap.is-switching { opacity: 0; transform: translateY(8px); }
.compass__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5vw, 76px); line-height: 1; color: var(--ink); margin-bottom: 18px; }
.compass__text { color: var(--ink-2); font-size: 17px; max-width: 40ch; margin-inline: auto; }
.compass__hint { color: var(--ink-3); transition: opacity .3s; }
.compass__list, .compass__list-label { display: none; }

/* ---------------- 06 WHY EMMAUS ---------------- */
.why { position: relative; overflow: hidden; min-height: 100vh; display: grid; align-items: end; padding: clamp(140px, 18vw, 260px) var(--gutter) clamp(96px, 12vw, 180px); }
.why__scene { position: absolute; left: 0; right: 0; top: 0; height: 62%; pointer-events: none; }
.why__ghost { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 300; font-size: clamp(120px, 22vw, 340px); line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px var(--line); white-space: nowrap; }
.why__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.why__path { fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.why__horizon { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.why__sun { fill: var(--gold); opacity: 0; will-change: transform, opacity; }
.why__inner { position: relative; width: min(100%, 1400px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 120px); align-items: end; }
.why__inner > .manifesto__label { grid-column: 1; align-self: end; }
.why__title { grid-column: 1; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.15; color: var(--ink); }
.why__story { grid-column: 2; grid-row: 1 / 3; display: grid; gap: 22px; color: var(--ink-2); font-size: 17px; max-width: 54ch; }
.why__ref { color: var(--gold-2); }

/* ---------------- 07 CONTACT ---------------- */
.contact { position: relative; overflow: hidden; min-height: 100vh; display: grid; align-items: center; padding: clamp(96px, 12vw, 160px) var(--gutter); }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__inner { position: relative; z-index: 1; width: min(100%, 1400px); margin-inline: auto; }
.contact__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(72px, 15vw, 240px); line-height: .9; letter-spacing: -.02em; color: var(--ink); margin: 22px 0 clamp(36px, 5vw, 72px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 120px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.contact__sub { color: var(--ink-2); max-width: 40ch; font-size: 18px; }
.contact__mail { display: inline-block; margin-top: 26px; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.contact__mail:hover { border-color: var(--gold); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 17px; padding: 18px 0 12px; outline: none; resize: none; transition: border-color .3s; border-radius: 0; }
.field textarea { min-height: 88px; }
.field label { position: absolute; left: 0; top: 18px; color: var(--ink-3); font-size: 15px; pointer-events: none; transition: transform .4s var(--ease-out), color .3s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-20px) scale(.78); color: var(--gold-2); }
.contact__form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 12px; padding: 18px 30px; font-size: 15px; border-color: var(--gold-2); }
.contact__form .btn:hover svg { transform: translateX(4px); }
.btn.is-sent { border-color: var(--gold); }
.btn.is-busy { pointer-events: none; opacity: .6; }
.btn[disabled] { cursor: default; }
.contact__note { grid-column: 1 / -1; color: var(--ink-3); }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__mark { height: 40px; width: auto; }
.footer__wordmark { font-family: var(--font-display); letter-spacing: .3em; font-size: 14px; color: var(--ink); }
.footer__wordmark span { color: var(--gold-2); font-weight: 300; }
.footer__tag { color: var(--ink-3); margin-top: 6px; }
.footer__links { display: flex; gap: 24px; font-size: 13px; color: var(--ink-2); }
.footer__links a:hover { color: var(--gold); }
.footer__meta { display: grid; justify-items: end; gap: 6px; color: var(--ink-3); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s } .reveal:nth-child(3) { transition-delay: .16s }
.reveal:nth-child(4) { transition-delay: .24s } .reveal:nth-child(5) { transition-delay: .32s }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .manifesto__aside { grid-template-columns: 1fr; width: min(100%, 560px); }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__foot { grid-template-columns: 1fr; justify-items: center; }
  .hero__meta { display: none; }
  .hero__logo { --logo-w: min(72vw, 320px); }
  .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .hero__actions .btn { justify-content: center; }
  .manifesto { min-height: 0; }
  .manifesto__aside { margin-left: 0; }
  .clarity { height: 200vh; }
  .process__steps { grid-template-columns: 1fr; gap: 40px; padding-left: calc(var(--gutter) + 8px); }
  .process__step { grid-column: 1 / -1; }
  .compass { height: auto; padding: 96px var(--gutter) 110px; }
  .compass__pin { display: none; }
  .compass__list-label { display: flex; }
  .compass__list { display: grid; gap: 26px; margin-top: 36px; }
  .compass__list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; padding-top: 22px; border-top: 1px solid var(--line); }
  .compass__list li .mono { color: var(--gold-2); padding-top: 6px; }
  .compass__list li h3 { grid-column: 2; font-family: var(--font-display); font-weight: 300; font-size: 26px; color: var(--ink); }
  .compass__list li p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
  .why { min-height: 0; padding-top: 330px; }
  .why__scene { top: 80px; height: 220px; }
  .why__inner { grid-template-columns: 1fr; }
  .why__story { grid-column: 1; grid-row: auto; }
  .why__ghost { top: 4%; font-size: 30vw; }
  .contact { min-height: 0; }
  .contact__grid, .contact__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__meta { justify-items: start; }
  .footer__links { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .caps__pin { height: auto; }
  .caps__stage { position: static; height: auto; display: block; overflow: visible; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
  .caps__swap, .caps__ticks { display: none; }
  .caps__models { height: auto; display: grid; gap: clamp(56px, 9vw, 96px); margin-top: 44px; }
  .model { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; display: grid; gap: 22px; justify-items: stretch; }
  .model__copy { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .model__copy .mono { color: var(--gold-2); }
  .model__copy h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 8vw, 44px); line-height: 1; color: var(--ink); margin: 10px 0 12px; }
  .model__copy p:not(.mono) { color: var(--ink-2); font-size: 15px; }
  .model__copy .tags { margin-top: 14px; }
  .model .m-pcard { animation: none; }
  .m-frame { width: 100%; aspect-ratio: 5 / 4; font-size: 11px; }
  .m-phone { margin-inline: auto; }
  .caps__more { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .m-frame { aspect-ratio: 1 / 1; }
  .m-dash { grid-template-columns: 96px 1fr; } .m-dash__main { padding: 14px; gap: 10px; } .m-kpi { padding: 8px 8px; } .m-kpi b { font-size: 17px; } .m-kpi span { white-space: nowrap; letter-spacing: .04em; }
  .m-tbl th:nth-child(3), .m-tbl td:nth-child(3) { display: none; }
  .m-con { font-size: 10px; } .m-con__meta b { font-size: 20px; }
  .m-chat__in span:last-child { display: none; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero__img, html.js .hero__content > *, html.js .hero__foot > *, .hero__dawn, .hero__cue-line::after { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero__dawn { opacity: .75 !important; }
  .manifesto__line > span { transform: none; transition: none; }
  .process__card { opacity: 1; transform: none; }
  .model, .caps__swap, .caps__ticks li { transition: none; }
  .m-frame::after, .m-live::before, .m-chart__line, .model.is-on .m-pcard, .m-flow__pulse, .m-caret { animation: none !important; }
  .m-chart__line { stroke-dashoffset: 0; }
}
