/* ==========================================================================
   EPOCH SIGMA — Global Stylesheet
   Brand: "Strata" — slate-blue geometric identity
   Type:  Space Grotesk (display) · Inter (body/UI) · Space Mono (labels/tech)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #FFFFFF;   /* base page background          */
  --mist:         #EEF1F5;   /* alt sections, subtle fills    */
  --mist-2:       #F6F7F9;   /* faint tint                    */
  --dark:         #1F2738;   /* dark feature sections, footer */
  --dark-2:       #161C29;   /* deepest slate                 */

  /* Ink & text */
  --ink:          #2B3550;   /* headings, primary text        */
  --ink-soft:     #54607A;   /* body copy                     */
  --muted:        #8A93A6;   /* de-emphasised text            */
  --muted-2:      #9AA1B0;   /* mono meta on light            */

  /* Brand blue */
  --strata:       #46587A;   /* primary accent                */
  --strata-deep:  #37455F;   /* accent hover (darker)         */
  --strata-light: #7E93B8;   /* secondary accent / Σ top      */
  --strata-dim:   #AAB9D6;   /* light accent on dark          */

  /* Lines & tints */
  --border:        #E4E7EC;
  --border-strong: #D9DCE1;
  --accent-tint:   rgba(70, 88, 122, 0.06);
  --accent-line:   rgba(70, 88, 122, 0.16);

  /* On-dark text */
  --on-dark:       #FFFFFF;
  --on-dark-soft:  #C2CDE0;
  --on-dark-muted: #7E93B8;
  --border-dark:   rgba(255, 255, 255, 0.10);

  /* Type families */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-word:    "Helvetica Neue", Arial, sans-serif; /* wordmark EPOCH */

  /* Rhythm */
  --maxw: 1200px;
  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-field: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 74px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(43, 53, 80, 0.04);
  --shadow-md: 0 12px 34px -18px rgba(43, 53, 80, 0.28);
  --shadow-lg: 0 30px 70px -34px rgba(43, 53, 80, 0.40);
}

/* ---------- 2. Reset & Base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:where(input, textarea, select) { font: inherit; }

/* ---------- 3. Typography ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--strata);
  display: inline-block;
}
.eyebrow--dim { color: var(--on-dark-muted); }

.divider {
  width: 54px;
  height: 1px;
  background: var(--strata);
  margin: 20px 0 0;
  border: 0;
}
.divider.is-centered { margin-left: auto; margin-right: auto; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.text-link {
  color: var(--strata);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link .arw { transition: transform 0.3s var(--ease); }
.text-link:hover { color: var(--strata-deep); }
.text-link:hover .arw { transform: translateX(4px); }

/* ---------- 4. Layout ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--mist { background: var(--mist); }
.section--dark {
  background: var(--dark);
  color: var(--on-dark-soft);
  position: relative;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 5. Buttons ---------------------------------------------------- */
.btn {
  --btn-bg: var(--strata);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease),
              transform 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
  will-change: transform;
}
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--strata-deep); border-color: var(--strata-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--strata);
  border-color: var(--accent-line);
}
.btn--ghost:hover { background: var(--strata); border-color: var(--strata); color: #fff; }

.btn--on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--on-dark:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }

.btn--ghost.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--border-dark);
}
.btn--ghost.btn--on-dark:hover { background: #fff; color: var(--ink); border-color:#fff; }

/* ---------- 6. Logo / Wordmark -------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark path { stroke-width: 10; }
.logo__word {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1;
}
.logo__epoch {
  font-family: var(--font-word);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__sigma {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--strata);
  margin-top: 1px;
}
.on-dark .logo__epoch, .site-footer .logo__epoch { color: #fff; }
.on-dark .logo__sigma, .site-footer .logo__sigma { color: var(--strata-dim); }

/* ---------- 7. Navigation ------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.nav-links a {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--strata);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--strata); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.36s var(--ease), visibility 0.36s var(--ease);
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s var(--ease);
}
.nav-overlay a[aria-current="page"] { color: var(--strata); }
body.nav-open .nav-overlay a { opacity: 1; transform: translateY(0); }
body.nav-open .nav-overlay a:nth-child(1) { transition-delay: 0.08s; }
body.nav-open .nav-overlay a:nth-child(2) { transition-delay: 0.14s; }
body.nav-open .nav-overlay a:nth-child(3) { transition-delay: 0.20s; }
body.nav-open .nav-overlay a:nth-child(4) { transition-delay: 0.26s; }

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--strata); color: #fff;
  padding: 10px 16px; border-radius: 6px; font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 8. Hero ------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute; z-index: -2;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle at center, var(--accent-tint) 0%, rgba(70,88,122,0.03) 34%, transparent 62%);
  pointer-events: none;
}
.hero__watermark {
  position: absolute; z-index: -1;
  top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 88vw); height: auto;
  opacity: 0.06;
  pointer-events: none;
}
.hero__watermark path { stroke-width: 8; }

.hero__inner { max-width: 820px; }
.hero.is-centered .hero__inner { margin-inline: auto; text-align: center; }
.hero.is-centered .divider { margin-inline: auto; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
}
.hero h1 .accent { color: var(--strata); }
.hero h1 em { font-style: normal; color: var(--strata); }
.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}
.hero.is-centered .hero__sub { margin-inline: auto; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero.is-centered .hero__cta { justify-content: center; }

/* animated Σ draw-in for home hero */
.sigma-hero { width: clamp(70px, 12vw, 104px); height: auto; }
.sigma-hero path { stroke-width: 9; }
.sigma-draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sig-draw 1.5s var(--ease) forwards;
}
.sigma-draw path:nth-child(2) { animation-delay: 0.45s; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 42px; background: var(--border-strong); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--strata); animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue { 0% { top: -55%; } 60%,100% { top: 105%; } }

/* ---------- 9. Cards ------------------------------------------------------ */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
              transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--strata), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.section--mist .card { background: var(--paper); }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--strata);
  margin-bottom: 1.4rem;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card__icon { border-color: var(--accent-line); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.card p { font-size: 0.97rem; line-height: 1.72; }

/* index number badge for process/steps */
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--strata);
  letter-spacing: 0.1em;
}

/* ---------- 10. Status badges --------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.badge[data-status="in-development"] { color: var(--strata); border-color: var(--accent-line); }
.badge[data-status="in-development"] .dot { background: var(--strata); }
.badge[data-status="coming-soon"] { color: var(--strata-light); }
.badge[data-status="coming-soon"] .dot { background: var(--strata-light); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.3rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 4px 10px;
  background: var(--mist);
  border-radius: 5px;
}

/* ---------- 11. Ventures list --------------------------------------------- */
.ventures-list { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.4vw, 1.8rem); }
.venture-card { padding: clamp(1.8rem, 3.4vw, 2.8rem); }
.venture-grid { display: grid; grid-template-columns: 210px 1fr; gap: clamp(1.4rem, 3vw, 3rem); align-items: start; }
.venture-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.venture-main h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.venture-main .venture__thesis { margin-top: 0.4rem; font-size: 1.1rem; }
.venture-main > p { margin-top: 1rem; }
@media (max-width: 700px) {
  .venture-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .venture-aside { flex-direction: row; align-items: center; justify-content: space-between; }
}

.venture {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.venture__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.venture__index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.1em; }
.venture h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 0.1rem; }
.venture__thesis { font-family: var(--font-display); font-size: 1.05rem; color: var(--strata); font-weight: 500; margin-top: 0.3rem; letter-spacing: -0.01em; }
.venture p { margin-top: 0.9rem; max-width: 60ch; }

/* ---------- 12. Values / bordered list ------------------------------------ */
.value {
  border-left: 2px solid var(--border-strong);
  padding: 0.2rem 0 0.2rem 1.6rem;
  transition: border-color 0.35s var(--ease);
}
.value:hover { border-color: var(--strata); }
.value h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.value p { font-size: 0.97rem; }

/* ---------- 13. Quote ----------------------------------------------------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.quote blockquote .accent { color: var(--strata-dim); font-style: italic; }
.quote cite {
  display: block; margin-top: 1.8rem;
  font-family: var(--font-mono); font-style: normal;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- 14. Process / steps ------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step__num { display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; }
.step__rule { width: 100%; height: 1px; background: var(--border); margin-bottom: 1.4rem; }
.step:hover .step__rule { background: var(--strata); transition: background 0.35s var(--ease); }

/* ---------- 15. CTA band -------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 16ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: 1.2rem auto 2rem; }

/* ---------- 16. Forms ----------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field .req { color: var(--strata); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-field);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--strata);
  box-shadow: 0 0 0 3px rgba(70, 88, 122, 0.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2354607A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field .helper { font-size: 0.78rem; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.field .error-msg { font-size: 0.78rem; color: #b4453f; display: none; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4453f; }
.field.has-error .error-msg { display: block; }

/* file input */
.field input[type="file"] { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin-right: 12px; padding: 0.5rem 0.9rem; border: 1px solid var(--border-strong);
  border-radius: 5px; background: var(--mist); color: var(--ink); cursor: pointer;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; display: none; padding: 0.9rem 1.1rem; border-radius: 8px; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(70,88,122,0.08); color: var(--strata-deep); border: 1px solid var(--accent-line); }
.form-status.is-error { background: rgba(180,69,63,0.08); color: #b4453f; border: 1px solid rgba(180,69,63,0.25); }

/* ---------- 17. Contact / detail layout ----------------------------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-detail { margin-bottom: 1.8rem; }
.contact-detail .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.contact-detail .v { font-size: 1.05rem; color: var(--ink); }
.contact-detail a.v { color: var(--strata); transition: color 0.2s var(--ease); }
.contact-detail a.v:hover { color: var(--strata-deep); }

/* ---------- 18. Careers --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.filters .field { margin-bottom: 0; flex: 1 1 200px; }
.role {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.role:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.role__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.role__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.role__cta { flex: none; color: var(--strata); }
.roles-empty {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  text-align: center;
  background: var(--mist-2);
}
.roles-empty p { max-width: 44ch; margin-inline: auto; }

/* ---------- 19. Footer ---------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); }
.site-footer .container { padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 30ch; font-size: 0.9rem; color: var(--on-dark-muted); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.88rem; color: var(--on-dark-soft); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom small, .footer-bottom a { font-size: 0.78rem; color: var(--on-dark-muted); }
.footer-bottom .legal { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 20. Cookie banner --------------------------------------------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  z-index: 130;
  width: min(720px, calc(100vw - 32px));
  background: var(--dark-2);
  color: var(--on-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transition: transform 0.5s var(--ease);
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie p { flex: 1 1 300px; font-size: 0.86rem; line-height: 1.6; color: var(--on-dark-soft); }
.cookie p a { color: var(--strata-dim); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 0.7rem; flex: none; }
.cookie .btn { padding: 0.7em 1.3em; font-size: 0.72rem; }

/* ---------- 21. Page header (interior pages) ------------------------------ */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.page-head__glow {
  position: absolute; z-index: -1; top: -10%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120vw); aspect-ratio: 1.4;
  background: radial-gradient(ellipse at center, var(--accent-tint), transparent 60%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1.2rem; letter-spacing: -0.025em; line-height: 1.08; }
.page-head p { margin-top: 1.3rem; max-width: 60ch; }
.page-head .container { max-width: 900px; }

/* prose (about paragraphs, legal) */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.3rem; font-size: 1.02rem; line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.4rem; margin: 2.6rem 0 0.9rem; }
.legal-body h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; color: var(--ink); }
.legal-body p, .legal-body li { font-size: 0.98rem; line-height: 1.8; color: var(--ink-soft); }
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-body a { color: var(--strata); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 22. Scroll reveal --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* hero staged entrance */
.hero-stage { opacity: 0; transform: translateY(20px); }
.hero-ready .hero-stage { animation: hero-in 0.8s var(--ease) forwards; }
.hero-ready .hero-stage[data-delay="1"] { animation-delay: 0.12s; }
.hero-ready .hero-stage[data-delay="2"] { animation-delay: 0.28s; }
.hero-ready .hero-stage[data-delay="3"] { animation-delay: 0.44s; }
.hero-ready .hero-stage[data-delay="4"] { animation-delay: 0.60s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- 23. Responsive ------------------------------------------------ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .role { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 24. Focus & reduced motion ------------------------------------ */
:focus-visible { outline: 2px solid var(--strata); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible, .nav-links a:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-stage { opacity: 1 !important; transform: none !important; }
  .sigma-draw path { stroke-dashoffset: 0 !important; }
  .scroll-cue__line::after { display: none; }
}

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
