/* ============================================================
   GÜLD — The Trade OS · 2026 build (v3)
   Warm-white, light-dominant · deep blue-green depth · grounded
   Grotesque display (Bricolage) · grotesk body (Hanken) · mono labels
   Cohesive: one warm white, one deep blue-green, blended seams
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  /* Deep blue-green (warm, never black) */
  --ink:       #0c2b28;
  --ink-2:     #0e332e;
  --ink-3:     #15453d;
  --ink-glow:  #1a5a4e;

  /* Warm white surfaces (light-dominant, near-unified) */
  --paper:     #f8f6f0;   /* main warm white */
  --paper-2:   #f2efe6;   /* soft, for footer */
  --card:      #fefdf9;   /* gentle lift over paper */
  --bone:      #efece2;

  /* Warm blues + greens + bronze */
  --emerald:   #17b985;
  --emerald-2: #109c6d;
  --emerald-d: #0a6249;   /* AA on warm white */
  --teal:      #128a96;
  --teal-d:    #0d6470;
  --azure:     #3a8fd0;
  --azure-2:   #256aa8;
  --azure-d:   #1c4d7d;   /* AA on warm white */
  --gold:      #e3ab43;   /* brass, on dark */
  --gold-2:    #cf9530;
  --gold-d:    #8a5f14;   /* deep bronze — AA on warm white */
  --gold-soft: #f0cf88;

  /* Text on light */
  --tx:        #122019;
  --tx-mut:    #45534b;
  --tx-soft:   #58655c;

  /* Text on deep blue-green */
  --on-dark:   #eef4ef;
  --on-dark-m: #b6c8bf;
  --on-dark-s: #89a298;

  --line-l:    #e2ddd0;   /* warm hairline on light */
  --line-d:    rgba(238,244,239,.13);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(22px, 5.2vw, 72px);
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(.22,.68,.28,1);
  --shadow-card: 0 24px 60px -34px rgba(18,32,25,.28);
  --shadow-deep: 0 44px 100px -46px rgba(9,32,28,.55);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--tx);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--emerald); color: #052018; }
:focus-visible { outline: 2px solid var(--emerald-2); outline-offset: 4px; border-radius: 3px; }

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

/* Subtle film grain — crisp, not dreamy */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------------- Accessibility ---------------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--emerald); color: #052018; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- Layout ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 148px); position: relative; }

/* ---------------- Type ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--tx);
}
.display {
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 600;
}
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.0; letter-spacing: -.026em; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.it { font-style: normal; }        /* accent = colour, not italic */
em { font-style: normal; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal-d);
}
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.on-dark .kicker { color: var(--emerald); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--tx-mut); line-height: 1.55; font-weight: 400; }
.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-m); }

/* Accent words — deep on light for AA, luminous on deep cards/sections */
.g-gold { color: var(--gold-d); }
.g-emerald { color: var(--emerald-d); }
.g-azure { color: var(--azure-d); }
.g-teal { color: var(--teal-d); }
.on-dark .g-gold, .cta__panel .g-gold { color: var(--gold); }
.on-dark .g-emerald, .cta__panel .g-emerald { color: var(--emerald); }
.on-dark .g-azure, .cta__panel .g-azure { color: var(--azure); }
.on-dark .g-teal, .cta__panel .g-teal { color: var(--teal); }

/* ---------------- Buttons ---------------- */
.btn {
  --bg: var(--emerald); --fg: #052018;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: 100px; background: var(--bg); color: var(--fg);
  border: 1px solid transparent; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
}
.btn > * { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.42), transparent 45%); opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(23,185,133,.6); }
.btn:hover::before { opacity: 1; }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--gold { --bg: var(--gold); --fg: #2a1c04; }
.btn--gold:hover { box-shadow: 0 16px 36px -12px rgba(227,171,67,.6); }
.btn--ghost { --bg: transparent; --fg: var(--tx); border-color: var(--line-l); }
.btn--ghost:hover { border-color: var(--tx); box-shadow: none; transform: translateY(-2px); }
.on-dark .btn--ghost, .hero .btn--ghost, .cta__panel .btn--ghost, .mock--glass .btn--ghost { --fg: var(--on-dark); border-color: rgba(238,244,239,.34); }
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta__panel .btn--ghost:hover, .mock--glass .btn--ghost:hover { border-color: var(--emerald); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------------- Header ---------------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.hdr.solid { background: rgba(248,246,240,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line-l); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; color: var(--tx); }
.brand__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); display: inline-block; }
.hdr.on-hero .brand__name { color: var(--on-dark); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .11em; text-transform: uppercase; color: var(--tx-mut); padding: 9px 13px; border-radius: 100px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--tx); background: rgba(18,32,25,.05); }
.hdr.on-hero .nav a { color: var(--on-dark-m); }
.hdr.on-hero .nav a:hover { color: var(--on-dark); background: rgba(238,244,239,.08); }
.hdr__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-l); place-items: center; }
.hdr.on-hero .burger { border-color: rgba(238,244,239,.24); color: var(--on-dark); }
.burger svg { width: 22px; height: 22px; }
/* once the bar is solid (light), force dark text even while still over the hero */
.hdr.solid .brand__name { color: var(--tx); }
.hdr.solid .nav a { color: var(--tx-mut); }
.hdr.solid .nav a:hover { color: var(--tx); background: rgba(18,32,25,.05); }
.hdr.solid .burger { border-color: var(--line-l); color: var(--tx); }

/* ---------------- Hero (deep blue-green → fades to warm white) ---------------- */
.hero { position: relative; background: linear-gradient(168deg, #114239 0%, #0c2b28 56%, #0e352e 100%); color: var(--on-dark); padding-top: clamp(124px, 15vw, 168px); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 3; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* blueprint grid */
.hero__bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(238,244,239,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(238,244,239,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(130% 100% at 76% 2%, #000 32%, transparent 80%);
  -webkit-mask-image: radial-gradient(130% 100% at 76% 2%, #000 32%, transparent 80%); }
/* warm green + blue glows */
.hero__bg::after { content: ""; position: absolute; width: 60vw; height: 60vw; top: -24%; right: -12%;
  background: radial-gradient(circle, rgba(23,185,133,.20), transparent 62%); filter: blur(46px); }
.hero__glow { position: absolute; width: 46vw; height: 46vw; left: -12%; top: 18%;
  background: radial-gradient(circle, rgba(58,143,208,.18), transparent 66%); filter: blur(58px); pointer-events: none; }
/* fade the bottom edge into the warm white — no hard seam */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--paper)); }

.hero__kicker { margin-bottom: clamp(22px, 3vw, 32px); color: var(--emerald); }
.hero h1 { max-width: 18ch; color: var(--on-dark); }
.hero h1 .it { color: var(--gold); }
.hero__sub { margin-top: 26px; max-width: 54ch; font-size: clamp(1.1rem, 1.45vw, 1.34rem); color: #d6e0d7; line-height: 1.55; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Career arc: one account, whole career ---- */
.arc { margin-top: clamp(52px, 6.5vw, 84px); position: relative; }
.arc__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.arc__badge { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #052018;
  background: var(--emerald); padding: 7px 14px; border-radius: 100px; font-weight: 500; }
.arc__cap { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.34rem); color: var(--on-dark-m); letter-spacing: -.01em; }
.arc__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.arc__track::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--teal) 40%, var(--azure) 66%, var(--gold)); border-radius: 2px; }
.arc__stop { position: relative; padding: 26px 16px 0 0; }
.arc__stop::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--stop, var(--emerald)); box-shadow: 0 0 0 4px rgba(12,43,40,.95), 0 0 0 6px rgba(238,244,239,.14); }
.arc__yr { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-s); }
.arc__role { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.12rem, 1.6vw, 1.42rem); color: var(--on-dark); margin-top: 8px; letter-spacing: -.02em; }
.arc__do { font-size: .92rem; color: var(--on-dark-m); margin-top: 6px; max-width: 22ch; }

/* ---------------- Marquee (light, part of warm-white run) ---------------- */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); background: var(--paper); overflow: hidden; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: scrollx 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-soft); padding: 17px 30px; display: inline-flex; align-items: center; gap: 30px; }
.marquee__track span::after { content: "◆"; color: var(--teal); font-size: .55rem; opacity: .7; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------------- Section head ---------------- */
.shead { max-width: 52rem; }
.shead .kicker { margin-bottom: 24px; }
.shead .lead { margin-top: 22px; }

/* ---------------- All content sections share warm white ---------------- */
.paths, .problem, .system, .phase--dark, .phase--emerald, .inst, .cta { background: var(--paper); }

/* ---------------- Persona paths (high-up self-select) ---------------- */
.paths { padding-block: clamp(58px, 7vw, 104px); }
.paths .kicker { margin-bottom: 28px; }
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-l); box-shadow: var(--shadow-card); transition: transform .35s var(--ease), border-color .35s; }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-l)); }
.pcard__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-d, var(--emerald-d));
  background: color-mix(in srgb, var(--accent, var(--emerald)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--emerald)) 24%, transparent); }
.pcard__ic svg { width: 25px; height: 25px; }
.pcard h3 { font-size: 1.32rem; margin-top: 20px; }
.pcard p { margin-top: 11px; color: var(--tx-mut); font-size: .97rem; flex: 1; }
.pcard__go { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .96rem; color: var(--accent-d, var(--emerald-d)); }
.pcard__go .arw { transition: transform .3s var(--ease); }
.pcard:hover .pcard__go .arw { transform: translateX(4px); }

/* ---------------- Problem ---------------- */
.mess { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; align-items: stretch; }
.panel { border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 44px); position: relative; }
.panel--mess { background: var(--card); border: 1px solid var(--line-l); box-shadow: var(--shadow-card); }
.panel--loop { background: linear-gradient(158deg, var(--ink-3), var(--ink)); color: var(--on-dark); overflow: hidden; box-shadow: var(--shadow-deep); }
.panel__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-soft); display: flex; align-items: center; gap: 10px; }
.panel--loop .panel__tag { color: var(--emerald); }
.panel h3 { margin-top: 16px; font-size: clamp(1.4rem,2.2vw,1.95rem); }
.panel--loop h3 { color: var(--on-dark); }
.panel p { margin-top: 13px; color: var(--tx-mut); font-size: 1.02rem; }
.panel--loop p { color: var(--on-dark-m); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; padding: 7px 13px; border-radius: 100px; background: var(--paper-2); color: var(--tx-mut); border: 1px solid var(--line-l); text-transform: uppercase; }
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.loop b { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; padding: 9px 15px; border-radius: 100px; border: 1px solid rgba(23,185,133,.36); color: var(--emerald); }
.loop i { color: var(--gold); font-style: normal; }

/* ---------------- The system (4 layers → one loop) ---------------- */
.sys__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 58px; }
.layer { padding: 30px 28px 32px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-l); position: relative; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; box-shadow: var(--shadow-card); }
.layer:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-l)); }
.layer__n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--tx-soft); }
.layer__ic { width: 52px; height: 52px; margin: 22px 0 20px; border-radius: 15px; display: grid; place-items: center;
  color: var(--accent, var(--emerald-d));
  background: color-mix(in srgb, var(--accent, var(--emerald)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--emerald)) 24%, transparent); }
.layer__ic svg { width: 25px; height: 25px; }
.layer h3 { font-size: 1.42rem; }
.layer__role { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d, var(--emerald-d)); margin-top: 8px; display: block; }
.layer p { margin-top: 14px; font-size: .95rem; color: var(--tx-mut); }
/* closing loop strip — gives the section a finished footer */
.sys__loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; padding: 22px 26px; border-radius: 100px; border: 1px dashed var(--line-l); background: var(--card); }
.sys__loop b { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tx); }
.sys__loop i { color: var(--teal-d); font-style: normal; font-size: 1rem; }
.sys__loop .re { color: var(--gold-d); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.sys__loop .re svg { width: 15px; height: 15px; }

/* ---------------- Phase (editorial split) ---------------- */
.phase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 92px); align-items: center; }
.phase--rev .phase__vis { order: -1; }
.phase__n { font-family: var(--font-display); font-size: clamp(3rem, 5.4vw, 5rem); font-weight: 700; line-height: .8; color: var(--gold-d); letter-spacing: -.03em; }
.phase--emerald .phase__n { color: var(--emerald-d); }
.phase__lbl { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-soft); margin: 20px 0 16px; }
.phase h2 { max-width: 15ch; }
.phase__body > .lead { margin-top: 20px; max-width: 44ch; }
.flist { margin-top: 36px; display: grid; gap: 4px; }
.frow { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line-l); }
.frow__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--emerald-d); background: rgba(23,185,133,.1); border: 1px solid rgba(23,185,133,.22); flex: none; }
.phase--emerald .frow__ic { color: var(--azure-d); background: rgba(58,143,208,.1); border-color: rgba(58,143,208,.22); }
.frow__ic svg { width: 19px; height: 19px; }
.frow h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; color: var(--tx); }
.frow p { margin-top: 6px; font-size: .97rem; color: var(--tx-mut); }
.phase__cta { margin-top: 38px; }

/* ---------------- Mock visuals ---------------- */
.mock { border-radius: var(--r-lg); padding: 24px; position: relative; }
/* deep blue-green feature card (adds depth on the warm white) */
.mock--glass { background: linear-gradient(162deg, var(--ink-3), var(--ink)); border: 1px solid rgba(238,244,239,.1); box-shadow: var(--shadow-deep); }
.mock--light { background: var(--card); border: 1px solid var(--line-l); box-shadow: var(--shadow-card); }
.mock__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock__ttl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-s); }
.mock--light .mock__ttl { color: var(--tx-soft); }
.pill-ok { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); background: rgba(23,185,133,.13); border: 1px solid rgba(23,185,133,.3); padding: 5px 11px; border-radius: 100px; }
.pill-ok .d { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
/* AA variants when these sit on the light dashboard card */
.mock--light .pill-ok { color: var(--emerald-d); background: rgba(23,185,133,.12); border-color: rgba(23,185,133,.36); }
.mock--light .pill-ok .d { background: var(--emerald-d); }
.mock--light .mnote__t { color: var(--emerald-d); }
.mock--light .mnote__ic { color: var(--emerald-d); }
.mock--light .mnote--gold .mnote__t { color: var(--gold-d); }
.mock--light .mnote--gold .mnote__ic { color: var(--gold-d); }

/* logbook */
.lrow { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 14px; background: rgba(238,244,239,.05); border: 1px solid var(--line-d); margin-bottom: 10px; }
.lrow__c { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.lrow__c svg { width: 15px; height: 15px; }
.lrow__meta { min-width: 118px; }
.lrow__cat { font-weight: 700; font-size: .96rem; color: var(--on-dark); font-family: var(--font-sans); }
.lrow__sub { font-family: var(--font-mono); font-size: .68rem; color: var(--on-dark-s); letter-spacing: .04em; margin-top: 2px; }
.lbar { flex: 1; height: 7px; border-radius: 100px; background: rgba(238,244,239,.1); overflow: hidden; }
.lbar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--emerald-2), var(--emerald)); }
.lpct { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--gold); min-width: 40px; text-align: right; }
.mnote { display: flex; gap: 13px; align-items: flex-start; margin-top: 16px; padding: 16px; border-radius: 14px; background: rgba(23,185,133,.1); border: 1px solid rgba(23,185,133,.28); }
.mnote__ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(23,185,133,.18); color: var(--emerald); display: grid; place-items: center; flex: none; }
.mnote__ic svg { width: 17px; height: 17px; }
.mnote__t { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }
.mnote p { font-size: .9rem; color: var(--on-dark-m); margin-top: 4px; }
.mnote--gold { background: rgba(227,171,67,.11); border-color: rgba(227,171,67,.3); }
.mnote--gold .mnote__ic { background: rgba(227,171,67,.2); color: var(--gold); }
.mnote--gold .mnote__t { color: var(--gold); }

/* dashboard (light mock) */
.dstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.dstat { padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-l); }
.dstat__k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-soft); }
.dstat__v { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; margin-top: 10px; color: var(--tx); letter-spacing: -.02em; }
.dstat__v.em { color: var(--emerald-d); }
.dstat__v.gd { color: var(--gold-d); }

/* pro card (deep feature card) */
.pro { max-width: 430px; margin-inline: auto; }
.pro__top { display: flex; align-items: center; gap: 16px; }
.pro__av { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(150deg, var(--azure), var(--emerald-2)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; flex: none; }
.pro__nm { font-family: var(--font-display); font-weight: 600; font-size: 1.36rem; color: var(--on-dark); display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.pro__vf { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); background: rgba(23,185,133,.14); border: 1px solid rgba(23,185,133,.32); padding: 4px 8px; border-radius: 100px; }
.pro__vf svg { width: 11px; height: 11px; }
.pro__rl { font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-m); margin-top: 5px; letter-spacing: .03em; }
.pro__creds { display: grid; gap: 9px; margin: 22px 0; }
.pcred { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 13px; background: rgba(238,244,239,.05); border: 1px solid var(--line-d); }
.pcred__l { font-size: .92rem; color: var(--on-dark-m); display: flex; align-items: center; gap: 10px; }
.pcred__l svg { width: 17px; height: 17px; color: var(--emerald); }
.pcred__s { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--emerald); }
.pcred__s .d { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.pro__act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pro__act .btn { justify-content: center; padding: 13px; }

/* ---------------- Institutions (light, teal cards) ---------------- */
.inst__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; }
.icard { padding: 32px 30px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-l); box-shadow: var(--shadow-card); transition: transform .35s var(--ease), border-color .35s; }
.icard:hover { transform: translateY(-6px); border-color: rgba(58,143,208,.45); }
.icard__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(58,143,208,.12); color: var(--azure-d); border: 1px solid rgba(58,143,208,.22); margin-bottom: 22px; }
.icard__ic svg { width: 24px; height: 24px; }
.icard h3 { font-size: 1.3rem; color: var(--tx); }
.icard p { margin-top: 13px; color: var(--tx-mut); font-size: .97rem; }
.inst__banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; padding: 30px 34px; border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(23,185,133,.1), rgba(58,143,208,.08)); border: 1px solid rgba(23,185,133,.24); }
.inst__banner p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem,1.8vw,1.5rem); color: var(--tx); letter-spacing: -.02em; }
.inst__banner strong { color: var(--emerald-d); font-weight: 700; }

/* ---------------- CTA (warm white, deep inset panel) ---------------- */
.cta { padding-bottom: clamp(72px, 9vw, 140px); }
.cta__panel { position: relative; overflow: hidden; max-width: 1000px; margin-inline: auto; border-radius: var(--r-xl);
  background: linear-gradient(165deg, #12433b, #0c2b28 58%, #103a32); color: var(--on-dark); text-align: center;
  padding: clamp(52px, 7vw, 96px) clamp(26px, 5vw, 72px); box-shadow: var(--shadow-deep); }
.cta__panel::before { content: ""; position: absolute; width: 40vw; height: 40vw; top: -30%; right: -10%; background: radial-gradient(circle, rgba(23,185,133,.2), transparent 62%); filter: blur(50px); pointer-events: none; }
.cta__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(238,244,239,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(238,244,239,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%); }
.cta__in { position: relative; z-index: 2; }
.cta__panel .kicker { color: var(--emerald); justify-content: center; }
.cta__panel .kicker::before { display: none; }
.cta__panel h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); color: var(--on-dark); margin-top: 20px; }
.cta__panel h2 .it { color: var(--gold); }
.cta__panel .lead { margin: 22px auto 0; color: #d6e0d7; max-width: 46ch; }
.cap { max-width: 620px; margin: 38px auto 0; }
.cap form { display: flex; flex-direction: column; gap: 18px; }
.cap__row { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; width: 100%; }
/* "I'm a…" role picker */
.rolepick { border: 0; padding: 0; margin: 0; min-inline-size: 0; text-align: center; }
.cap__q { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-s); padding: 0; margin-bottom: 12px; }
.rolepick__opts { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; }
.roleopt { position: relative; }
.roleopt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roleopt span { display: inline-flex; align-items: center; white-space: nowrap; padding: 9px 14px; border-radius: 100px; border: 1px solid rgba(238,244,239,.24); color: var(--on-dark-m); font-size: .85rem; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.roleopt span:hover { border-color: rgba(238,244,239,.5); color: var(--on-dark); }
.roleopt input:checked + span { background: var(--emerald); border-color: var(--emerald); color: #052018; }
.roleopt input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.cap input[type=email] { flex: 1; padding: 16px 20px; border-radius: 100px; border: 1px solid rgba(238,244,239,.26); background: rgba(238,244,239,.07); color: var(--on-dark); font-size: 1rem; font-family: var(--font-sans); }
.cap input::placeholder { color: var(--on-dark-s); }
.cap input:focus { outline: none; border-color: var(--emerald); background: rgba(238,244,239,.11); }
.cap__hint { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--on-dark-s); margin-top: 14px; }
.cap__msg { font-weight: 600; color: var(--emerald); min-height: 1.2em; margin-top: 14px; }
.cta__alt { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }

/* ---------------- Footer (soft warm white) ---------------- */
.foot { background: var(--paper-2); color: var(--tx-mut); padding-block: clamp(56px, 7vw, 88px) 32px; position: relative; border-top: 1px solid var(--line-l); }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.foot__brand .brand__name { color: var(--tx); font-size: 1.9rem; }
.foot__brand p { margin-top: 16px; max-width: 30ch; font-size: .96rem; color: var(--tx-soft); }
.fcol h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 16px; }
.fcol a { display: block; padding: 7px 0; font-size: .96rem; color: var(--tx-mut); transition: color .2s; }
.fcol a:hover { color: var(--tx); }
.foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line-l); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-soft); }

/* ---------------- Reveal ---------------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------------- Mobile menu ---------------- */
.mmenu { position: fixed; inset: 76px 0 0; background: var(--paper); z-index: 90; padding: 30px var(--gutter); display: none; overflow-y: auto; }
.mmenu.open { display: block; }
.mmenu a { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; padding: 15px 0; border-bottom: 1px solid var(--line-l); color: var(--tx); letter-spacing: -.02em; }
.mmenu .btn { margin-top: 26px; width: 100%; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .arc__track { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .arc__track::before { display: none; }
  .arc__stop { border-top: 1px solid var(--line-d); padding: 22px 16px 24px 30px; }
  .arc__stop::before { top: 24px; }
  .sys__grid { grid-template-columns: repeat(2,1fr); }
  .phase { grid-template-columns: 1fr; }
  .phase--rev .phase__vis { order: 0; }
  .phase__vis { max-width: 560px; }
}
@media (max-width: 760px) {
  .nav, .hdr__cta .btn { display: none; }
  .burger { display: grid; }
  .mess, .inst__grid, .dstats, .paths__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cap__row { flex-direction: column; }
  .arc__track { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* pills can't fit one line on phones — let them wrap */
  .rolepick__opts { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .sys__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .pro__act { grid-template-columns: 1fr; }
}
