/* =========================================================
   ZEMURIA VENTURE STUDIO
   Editorial · heraldic · monochrome-ink with vermillion edge
   Type: Spectral (display/prose) / Aspekta (sans UI) / Instrument Serif (mysamantha)
   ========================================================= */

/* ---------- Aspekta (self-hosted variable, OFL) ---------- */
@font-face {
  font-family: "Aspekta Variable";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/AspektaVF.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: only light;   /* always render light, even when the OS is in dark mode */
  --paper:      #FFFFFF;   /* page background (white) */
  --paper-2:    #F4F4F2;   /* alt band background */
  --tile:       #FFFFFF;   /* logo plate */
  --ink:        #141414;   /* primary text (near-black) */
  --ink-2:      #5A5A5A;   /* muted text */
  --ink-3:      #8C8C8C;   /* faint text */
  --line:       rgba(0,0,0,.14);
  --line-soft:  rgba(0,0,0,.06);
  --accent:     #141414;   /* monochrome accent */
  --accent-ink: #141414;

  --ink-paper:  #F2F2F2;   /* text on the dark (#000) footer */
  --ink-line:   rgba(255,255,255,.16);

  --maxw: 1280px;
  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --head-bar: 78px;   /* visible header bar height — single source of truth for nav offset + hero spacing */

  --serif: "Spectral", Georgia, "Times New Roman", serif;     /* editorial voice: headlines + long-form prose */
  --display: "Spectral", Georgia, serif;
  --sans: "Aspekta Variable", system-ui, -apple-system, "Segoe UI", sans-serif;  /* interface: body + UI */
  --mono: "Aspekta Variable", system-ui, sans-serif;          /* labels / eyebrows / nav (tracked uppercase) */

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) suppresses horizontal overflow WITHOUT turning <body> into
     a scroll container — keeps the root viewport as the scroller. */
  overflow-x: clip;
  /* containing block for the film-grain overlay below (so it can be position:
     absolute over the whole document instead of position:fixed). */
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* film grain — position:absolute (NOT fixed). A position:fixed element with
   mix-blend-mode forces iOS Safari to flatten the whole page into one composited
   layer, which makes the fixed header mis-paint during scroll and lets hero text
   bleed through the notch strip. team.html has no such overlay and never bleeds.
   Absolute keeps the identical look (subtle 4% grain) without the fixed+blend hazard. */
body::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before {
  content: ""; width: 1.8rem; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }
.idx { font-family: var(--mono); color: var(--accent); font-size: .72rem; letter-spacing: .2em; }

/* ---------- Header ---------- */
.site-head {
  /* Plain fixed header, same setup as the .main-header used on the rest of the
     site (kixnews etc.) which does NOT bleed on iOS Safari. Deliberately NO
     env(safe-area-inset-*) padding: extending a fixed header's background up into
     the dynamic notch strip (with viewport-fit=cover) is exactly what iOS Safari
     mis-paints during scroll, leaking page content above the bar. The bar starts
     at top:0 and its solid background covers the status-bar strip on its own. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(0, 0, 0, .35);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--head-bar);
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 26px; width: auto; }
.brand .crest { height: 40px; }
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); }
.nav a {
  font-family: var(--mono);
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
/* Fixed header is out of flow, so the hero must clear the bar height + breathing room. */
.hero { position: relative; padding-top: calc(var(--head-bar) + 72px); padding-bottom: clamp(1.5rem,3vw,2.5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -.022em;
  margin-top: 1.6rem;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
}
.hero h1 .dot { color: var(--accent); }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.45; color: var(--ink); max-width: 46ch;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}
.hero-info {
  margin-top: 1.4rem; max-width: 52ch; color: var(--ink-2);
  font-size: 1.06rem;
  border-left: 2px solid var(--accent); padding-left: 1.1rem;
}
.hero-cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Buttons */
.btn {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95rem 1.6rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(4px,-4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* text link */
.tlink {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .3s, color .3s;
}
.tlink:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.marquee { display: flex; gap: 3rem; padding-block: .9rem; white-space: nowrap; width: max-content; animation: scroll 36s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee span { font-family: var(--mono); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 3rem; align-items: center; }
.marquee span::after { content: "✦"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Thesis split ---------- */
.thesis { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.thesis .lead {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.01em;
}
.thesis .lead em { font-style: italic; color: var(--accent); }
.thesis .body p { color: var(--ink-2); font-size: 1.12rem; }
.thesis .body p + p { margin-top: 1.1rem; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3.2rem; }
.stat { background: var(--paper); padding: 1.8rem 1.5rem; }
.stat .n { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem,4vw,3.2rem); line-height: 1; letter-spacing: -.02em; }
.stat .n em { font-style: italic; color: var(--accent); }
.stat .l { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: .7rem; }

/* ---------- Ethos band (dark + snake) ---------- */
.ethos { background: var(--ink); color: var(--ink-paper); position: relative; }
.ethos .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.ethos .eyebrow { color: var(--ink-paper); }
.ethos .eyebrow::before { background: var(--accent); }
.ethos h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.02em;
  margin-top: 1.4rem;
}
.ethos h2 em { font-style: italic; color: var(--accent); }
.ethos p { color: color-mix(in srgb, var(--ink-paper) 76%, transparent); margin-top: 1.4rem; max-width: 44ch; }
.plate {
  background: var(--tile); padding: 14px; border: 1px solid var(--ink-line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transform: rotate(-1.4deg);
  transition: transform .6s var(--ease);
}
.plate:hover { transform: rotate(0deg) scale(1.01); }
.plate img { width: 100%; filter: grayscale(1) contrast(1.05); }
.plate figcaption { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #555; text-align: center; padding-top: 10px; }

/* ---------- Approach cards ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3.5rem); }
.head-row h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; margin-top: 1rem; max-width: 16ch; }
.head-row h2 em { font-style: italic; }
/* full-width, centered portfolio heading */
.portfolio-head { justify-content: center; text-align: center; }
.portfolio-head h2 { max-width: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.card {
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 2rem 1.6rem 2.4rem; position: relative; min-height: 17rem;
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
}
.card:nth-child(4n) { border-right: 0; }
.card:hover { background: var(--paper-2); }
.card .num { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .2em; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; margin-top: auto; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: .98rem; margin-top: .7rem; line-height: 1.55; }
.card::after {
  content: "↗"; position: absolute; top: 1.6rem; right: 1.6rem; color: var(--ink-3);
  opacity: 0; transform: translate(-4px,4px); transition: .35s var(--ease); font-family: var(--mono);
}
.card:hover::after { opacity: 1; transform: translate(0,0); color: var(--accent); }

/* ---------- Portfolio (logo strip) ---------- */
.portfolio { background: var(--paper-2); border-block: 1px solid var(--line); }
.logo-strip {
  overflow: hidden;
  border-block: 1px solid rgba(0,0,0,.10);   /* dark hairline on the white plate */
  background: var(--tile);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex; width: max-content; align-items: stretch;
  animation: logoscroll 40s linear infinite;
}
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  width: clamp(168px, 17vw, 256px);
  min-height: clamp(120px, 13vw, 168px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
}
.logo-item img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform .55s var(--ease);
}
.logo-item:hover img { transform: scale(1.06); }
@keyframes logoscroll { to { transform: translateX(-33.333%); } }

/* MySamantha icon + wordmark lockup */
.logo-item .wordmark { display: inline-flex; align-items: center; gap: .5rem; transition: transform .55s var(--ease); }
.logo-item .wordmark img { max-height: 34px; }
/* scale icon + text together; cancel the per-img scale so it doesn't double up */
.logo-item:hover .wordmark { transform: scale(1.06); }
.logo-item:hover .wordmark img { transform: none; }
.ms-text {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;  /* font-instrument-serif */
  font-weight: 500;       /* font-medium */
  font-size: 28px;        /* text-[28px] */
  line-height: 2.25rem;   /* leading-9 */
  letter-spacing: -.01em;
  color: #141414;         /* dark text — sits on the white logo plate */
}

/* In-Stealth items inside the strip (sit on the white plate) */
.logo-item.stealth-title, .logo-item.stealth-more { width: auto; }
.st-k {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: #9a9a9a;          /* muted caption — reads as a label, not a brand */
  white-space: nowrap;
}
/* vertical divider separating active products from the stealth group */
.logo-sep { flex: 0 0 auto; align-self: stretch; width: 1px; margin: 1.7rem 1.6rem; background: rgba(0,0,0,.16); }
.st-more {
  font-family: var(--display); font-style: italic; font-size: 1.4rem; color: #141414;
  white-space: nowrap;
}
/* stealth ventures: content with a small "In Stealth" caption beneath */
.stealth-stack { display: inline-flex; flex-direction: column; align-items: center; gap: .7rem; }
.logo-item:not(.stealth-more) .stealth-stack { gap: 1.1rem; }  /* image has no line-box — add space to match +10 */
.stealth-tag {
  font-family: var(--mono); font-size: .46rem; letter-spacing: .2em; text-transform: uppercase;
  color: #9a9a9a; line-height: 1;
}

/* ---------- Portfolio + Credo (merged two-column) ---------- */
.pf { padding-top: clamp(2rem, 4vw, 3.5rem); }
.pf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.pf-main { min-width: 0; }   /* allow grid cell to shrink so marquee can clip */
.pf-credo { margin: 0; min-width: 0; }
.pf-credo img { display: block; width: 100%; height: auto; }

/* Desktop: heading block sits on the right (above the logo column), text centered within it.
   Mobile (≤900px, below) re-centers it full width. */
.pf-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); width: fit-content; margin-left: auto; text-align: center; }
.pf-head .idx { display: block; text-align: center; font-size: .8rem; letter-spacing: .24em; margin-bottom: 1.2rem; }
.pf-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.022em;
  margin-top: 0;
}
.pf-head h2 em { font-style: italic; }

/* three marquee rows */
.logo-rows { display: flex; flex-direction: column; gap: clamp(.5rem, 1.4vw, 1rem); min-width: 0; }
.logo-row {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-row-track { display: flex; width: max-content; align-items: center; animation: rowscroll 40s linear infinite; }
.logo-row-track.rev { animation-direction: reverse; animation-duration: 32s; }
.logo-row-track.slow { animation-duration: 52s; }
.logo-row:hover .logo-row-track { animation-play-state: paused; }
@keyframes rowscroll { to { transform: translateX(-50%); } }

/* compact cells inside the rows */
/* width:auto + equal side padding → identical gap between every logo regardless of its natural width */
.logo-rows .logo-item { width: auto; min-height: clamp(74px, 8vw, 104px); padding: .9rem 1.6rem; }
.logo-rows .logo-item img { max-height: 40px; }
.logo-rows .logo-item img[src*="spinning-lantern"] { max-height: 64px; }  /* square mark — scale up to match others */
.logo-rows .logo-item img[src*="senatio"] { position: relative; top: -6px; }  /* nudge up to align optically */
.logo-rows .logo-item .wordmark { gap: .4rem; }
.logo-rows .logo-item .wordmark img { max-height: 26px; }
.logo-rows .ms-text { font-weight: 500; font-size: 28px; line-height: 2.25rem; }  /* font-instrument-serif font-medium text-[28px] leading-9 */
.logo-rows .st-more { font-size: 1.15rem; }
.logo-rows .logo-item.stealth-title, .logo-rows .logo-item.stealth-more { width: auto; }
.logo-rows .logo-sep { margin: .9rem 1rem; }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3rem); }
  .pf-credo { max-width: 480px; margin-inline: auto; }
  /* single column: stop right-aligning the heading — center it full width over the image */
  .pf-head { width: auto; margin-left: 0; margin-right: 0; }
}

/* ---------- About banner image (full width, real photo — no invert) ---------- */
.about-banner { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.about-banner img {
  display: block; width: 100%; height: auto;
}

/* ---------- Credo image (before footer) ---------- */
.credo { display: flex; justify-content: center; padding-block: clamp(3rem, 7vw, 6rem); }
.credo img { width: 50%; height: auto; }
@media (max-width: 640px) { .credo img { width: 82%; } }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; max-width: 18ch; margin: 1.2rem auto 0; }
.cta h2 em { font-style: italic; color: var(--accent); }
.cta .btn { margin-top: 2.4rem; }

/* ---------- Article (about / careers) ---------- */
/* Fixed header floats over the top, so clear the bar + breathing room. */
.page-hero { padding-top: calc(var(--head-bar) + 82px); padding-bottom: clamp(2.5rem,5vw,4.5rem); }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.0; letter-spacing: -.025em; margin-top: 1.2rem; max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .kicker { color: var(--ink-2); font-size: 1.2rem; margin-top: 1.4rem; max-width: 50ch; }

/* centered, full-width page hero (About) */
.page-hero.centered { text-align: center; }
.page-hero.centered h1 { max-width: none; margin-left: auto; margin-right: auto; }
.page-hero.centered .kicker { max-width: none; margin-left: auto; margin-right: auto; }

.article { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.article + .article { margin-top: clamp(3rem, 6vw, 5.5rem); }
.article .label { position: sticky; top: 110px; align-self: start; }
.article .label .idx { display: block; margin-bottom: .6rem; }
.article .label h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.08; letter-spacing: -.01em; }
.article .prose p { font-family: var(--serif); font-size: 1.24rem; line-height: 1.66; color: var(--ink); }
.article .prose p + p { margin-top: 1.3rem; }
.article .prose em { font-style: italic; }
.article .prose .accent { color: var(--accent); font-style: italic; }

/* infusion / list items */
.feature-list { list-style: none; margin-top: 1.8rem; border-top: 1px solid var(--line); }
.feature-list li { display: flex; gap: 1.4rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.feature-list li .mk { font-family: var(--mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; flex: 0 0 auto; }
.feature-list li span:last-child { font-size: 1.1rem; }

.note { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); margin-top: 1rem; }

.side-figure { margin-top: clamp(2.5rem,5vw,4rem); }
.side-figure img { width: 100%; border: 1px solid var(--line); }
.side-figure figcaption { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-foot { background: #000; color: var(--ink-paper); padding-top: clamp(3.5rem,7vw,6rem); border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: clamp(2rem,5vw,4rem); padding-bottom: clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--ink-line); }
.foot-brand img { height: 48px; filter: invert(1) brightness(2); }
.foot-brand p { color: color-mix(in srgb, var(--ink-paper) 60%, transparent); margin-top: 1.4rem; max-width: 34ch; font-size: 1.04rem; }
.foot-col h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--ink-paper) 55%, transparent); margin-bottom: 1.2rem; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: .8rem; }
.foot-col a { font-size: 1.06rem; position: relative; transition: color .3s; }
.foot-col a:hover { color: #fff; }
.foot-contact address { font-style: normal; color: color-mix(in srgb, var(--ink-paper) 70%, transparent); font-size: .98rem; line-height: 1.6; }
.foot-contact .tagk { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); display: block; margin: 1.2rem 0 .3rem; }
.foot-contact a.mail { color: var(--ink-paper); border-bottom: 1px solid var(--ink-line); }
.foot-contact a.mail:hover { color: #fff; border-color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.8rem; }
.foot-bottom p, .foot-bottom a { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ink-paper) 55%, transparent); }
.foot-bottom a:hover { color: #fff; }
.foot-social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-social a { color: #fff; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .thesis { grid-template-columns: 1fr; }
  .ethos .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(4n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .article { grid-template-columns: 1fr; gap: 1.4rem; }
  .article .label { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 1.25rem; --head-bar: 64px; }

  /* Header is already solid + full-bleed from the base rule; on phones just
     keep the hairline border always visible to separate it from the content. */
  .site-head { border-bottom-color: var(--line); }
  .brand .crest { height: 34px; }

  /* Clear the fixed bar (covers the notch strip itself) + breathing room */
  .hero { padding-top: calc(var(--head-bar) + 28px); }

  /* --- Hamburger --- */
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px; padding: 8px;
    margin-right: -8px;   /* optical: pull the icon to the bar edge */
    z-index: 2;
  }
  .menu-btn span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
  .menu-btn.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2){ opacity: 0; }
  .menu-btn.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* --- Mobile nav: slide-down panel anchored to the real header bottom --- */
  .nav {
    position: fixed; left: 0; right: 0; bottom: auto;
    /* Header no longer reserves the safe-area inset, so the bar bottom is just
       its own height — anchor the dropdown there (no notch-sized gap). */
    top: var(--head-bar);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .25rem var(--gut) 1.25rem;
    padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
    box-shadow: 0 26px 40px -30px rgba(0,0,0,.4);
    /* never taller than the space below the header; scroll if the list grows */
    max-height: calc(100dvh - var(--head-bar));
    overflow-y: auto;
    /* hidden state */
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav a {
    width: 100%; padding: 1.05rem .1rem; font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }   /* drop the desktop underline animation in the stacked menu */

  /* Lock background scroll while the menu is open */
  body.nav-lock { overflow: hidden; }

  .cards { grid-template-columns: 1fr; }
  .card:nth-child(2n) { border-right: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .logo-item { width: clamp(150px, 60vw, 220px); }
  .foot-top { grid-template-columns: 1fr; }
}
