/* Eagle Creative — site stylesheet
   No framework, no build step. Tokens first, then layout, then components. */

@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Eagle orange — sampled from the mark itself */
  --orange: #f68211;
  --orange-tint: #f3b77e;   /* orange-on-dark for eyebrows/small text */
  --orange-ink: #a84e00;    /* orange that passes AA as text on light */

  /* Light surface */
  --white: #ffffff;
  --mist: #f5f0e8;         /* warm paper, pairs with the charcoal */
  --line: #e3dace;
  --steel: #5a5047;         /* muted text on light (warm) */
  --ink: #0f0d0b;           /* body text on light */

  /* Dark surface — warm charcoal, not pure black */
  --charcoal: #17130f;
  --charcoal-2: #1e1812;
  --charcoal-line: #3a2c1e;
  --cream: #f2ece3;         /* primary text on dark */
  --sub: #c9c0b4;           /* secondary text on dark */
  --muted-d: #9c8e7c;       /* tertiary text on dark */
  --good: #3fb56c;

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 112px);
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink);
}
.section--night .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange-tint); }

.display { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; }
.h3 { font-size: clamp(20px, 2vw, 24px); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--steel); max-width: 62ch; }
.section--night .lead { color: var(--sub); }
.muted { color: var(--steel); }
.section--night .muted { color: var(--muted-d); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

.prose { max-width: 68ch; }
.prose p { color: var(--steel); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .text-link { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .text-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  font: 500 15px/1 var(--font); letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--charcoal); }
.btn--primary:hover { background: #ff9533; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { border-color: rgba(15,13,11,.35); color: var(--ink); }
.btn--ghost:hover { background: rgba(15,13,11,.06); }
.section--night .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost { border-color: var(--charcoal-line); color: var(--cream); }
.section--night .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius);
  font: 500 15px/1 var(--font); color: var(--steel); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav-trigger:hover, .nav > ul a[aria-current="page"] { color: var(--ink); background: var(--mist); }
.nav > ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: var(--radius) var(--radius) 0 0; }
.nav .btn { margin-left: 10px; padding: 12px 18px; min-height: 0; }

.has-sub { position: relative; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.has-sub[data-open] .nav-trigger svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  list-style: none; padding: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(15,13,11,.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-sub[data-open] .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; } }
.sub a { display: block; padding: 12px 14px; line-height: 1.3; }
.sub a strong { display: block; color: var(--ink); font-weight: 600; }
.sub a small { display: block; margin-top: 3px; font-size: 13px; color: var(--steel); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    display: block; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-header[data-menu-open] .nav { transform: none; opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav-trigger { width: 100%; padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav > ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; background: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; display: none; min-width: 0; }
  .has-sub[data-open] .sub { display: block; }
  .sub a small { display: none; }
  .nav .btn { margin: 20px 0 0; width: 100%; justify-content: center; border-bottom: 0; padding: 16px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--mist { background: var(--mist); }
.section--night { background: var(--charcoal); color: var(--cream); }
.section--night h1, .section--night h2, .section--night h3, .section--night h4 { color: var(--white); }
.section--rule { border-top: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(40px, 5vw, 56px); max-width: 780px; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: 48px; }
.section-head--split .lead { margin: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--charcoal); color: var(--cream);
  padding-block: clamp(56px, 7vw, 88px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 20px 0 22px; color: var(--white); font-size: clamp(34px, 4.6vw, 54px); max-width: 15ch; }
.hero .lead { margin-bottom: 32px; color: var(--sub); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 13.5px; color: var(--muted-d); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 14px; height: 14px; color: var(--orange); flex: none; }


/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: var(--charcoal); color: var(--cream); padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 72px); }
.page-hero h1 { margin: 18px 0 20px; color: var(--white); font-size: clamp(36px, 5vw, 60px); max-width: 18ch; }
.page-hero .lead { margin: 0; color: var(--sub); }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .page-hero--split .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-hero .btn-row { margin-top: 30px; }
.page-hero--light { background: var(--mist); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero--light h1 { color: var(--ink); }
.page-hero--light .lead { color: var(--steel); }

.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted-d); letter-spacing: .04em; }
.page-hero--light .crumbs { color: var(--steel); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--orange-tint); }
.page-hero--light .crumbs a:hover { color: var(--orange-ink); }
.crumbs span { margin: 0 8px; color: var(--orange); }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service .num { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); }
.service h3 { margin-top: 4px; }
.service .q { font-weight: 600; color: var(--ink); }
.service p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Feature row: media + copy */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 112px); }
.feature--flip .feature-media { order: 2; }
.feature h3 { margin: 16px 0 16px; font-size: clamp(24px, 2.8vw, 34px); }
.feature .q { font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.feature .tagline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.section--night .feature .tagline { border-color: var(--charcoal-line); color: var(--orange-tint); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature--flip .feature-media { order: 0; } }

.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.section--night .media-frame, .section--mist .media-frame { border-color: var(--charcoal-line); }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--contain img { object-fit: contain; background: var(--white); }
.media-frame figcaption, .fig-cap { font-family: var(--mono); font-size: 12px; color: var(--steel); margin-top: 12px; letter-spacing: .02em; }
.section--night .fig-cap, .hero .fig-cap { color: var(--muted-d); }
figure { margin: 0; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.project:hover { border-color: rgba(15,13,11,.3); transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(15,13,11,.35); }
.project--lead { grid-column: span 12; flex-direction: row; }
.project--lead .project-media { flex: 1.2 1 0; aspect-ratio: auto; min-height: 380px; }
.project--lead .project-body { flex: 1 1 0; padding: clamp(28px, 4vw, 52px); justify-content: center; }
.project--half { grid-column: span 6; }
.project-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-media img { transform: scale(1.03); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.project-body .eyebrow { margin-bottom: 12px; }
.project-body h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 6px; }
.project-body .sub-title { font-weight: 600; color: var(--steel); margin-bottom: 12px; }
.project-body p { color: var(--steel); }
.project-body .more {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.project-body .more svg { width: 16px; height: 16px; transition: transform .2s; }
.project:hover .more svg { transform: translateX(4px); }
.project .stretched::after { content: ""; position: absolute; inset: 0; }
.project .inline-link { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .project--lead { flex-direction: column; }
  .project--lead .project-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .project--half { grid-column: span 12; }
}

/* Logo wall */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: clamp(16px, 2.4vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.logos img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .68; mix-blend-mode: multiply; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hairline column lists */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.col { padding: 24px 24px 0 0; border-top: 2px solid var(--orange); }
.col + .col { padding-left: 24px; }
.col h3 { font-size: 19px; margin-bottom: 16px; }
.col ul { list-style: none; }
.col li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--steel); }
.col li:last-child { border-bottom: 0; }
.col li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 2px; background: var(--orange); }
.section--night .col li { border-color: var(--charcoal-line); color: var(--sub); }
@media (max-width: 1000px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .col:nth-child(3) { padding-left: 0; }
}
@media (max-width: 620px) { .cols { grid-template-columns: minmax(0, 1fr); } .col + .col { padding-left: 0; } }

/* CTA band */
.cta-band { background: var(--orange); color: var(--charcoal); padding-block: clamp(52px, 6.5vw, 80px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 18ch; color: var(--charcoal); }
.cta-band p { margin: 10px 0 0; font-size: 17px; max-width: 48ch; }
.cta-band .btn--dark { font-size: 16px; padding: 17px 24px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: var(--muted-d); padding-block: 64px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-bottom: 16px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-weight: 600; letter-spacing: -0.01em; }
.site-footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--orange-tint); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--charcoal-line); font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about-intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.portrait img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.portrait figcaption { margin-top: 14px; }
.portrait figcaption strong { display: block; font-size: 17px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: minmax(0, 1fr); } .portrait { position: static; max-width: 420px; } }

.pillars { list-style: none; counter-reset: p; }
.pillars li { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.pillars li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--orange-ink); padding-top: 5px; grid-row: span 2; }
.pillars h3 { font-size: 21px; }
.pillars p { margin: 0; color: var(--steel); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 44px; }
.facts div { padding: 18px 18px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.facts dd { margin: 6px 0 0; font-weight: 600; font-size: 18px; }
@media (max-width: 620px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Publications ---------- */

.pubs { list-style: none; border-top: 2px solid var(--orange); }
.pub { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 36px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.pub-meta { font-family: var(--mono); font-size: 13px; color: var(--steel); line-height: 1.5; }
.pub-meta .year { display: block; font-size: 26px; font-family: var(--font); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pub h2 { font-size: clamp(19px, 2vw, 23px); line-height: 1.3; margin-bottom: 10px; }
.pub .venue { font-weight: 600; color: var(--steel); margin-bottom: 14px; }
.pub .doi { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; color: var(--orange-ink); text-decoration: none; word-break: break-all; }
.pub .doi:hover { color: var(--ink); text-decoration: underline; }
.pub details { margin-top: 14px; }
.pub summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.pub summary::-webkit-details-marker { display: none; }
.pub summary::before { content: "+"; font-family: var(--mono); width: 20px; height: 20px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; }
.pub details[open] summary::before { content: "−"; }
.pub details p { margin-top: 14px; color: var(--steel); font-size: 16px; max-width: 76ch; }
@media (max-width: 720px) { .pub { grid-template-columns: minmax(0, 1fr); } .pub-meta .year { display: inline; font-size: 18px; margin-right: 10px; } }

/* ---------- Product pages ---------- */

.stack { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack li { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stack .tag { font-family: var(--mono); font-size: 11.5px; color: var(--orange-ink); letter-spacing: .06em; text-transform: uppercase; }
.stack h3 { font-size: 19px; margin: 14px 0 8px; }
.stack p { margin: 0; color: var(--steel); font-size: 15.5px; }
@media (max-width: 900px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .stack { grid-template-columns: minmax(0, 1fr); } }

.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--orange-ink); }
.flow h3 { font-size: 19px; margin: 14px 0 10px; }
.flow p { margin: 0; color: var(--steel); font-size: 15.5px; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } }

.timeline { list-style: none; position: relative; }
.timeline > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 5vw, 60px); border-top: 1px solid var(--charcoal-line); }
.timeline > li:first-child { border-top: 0; padding-top: 0; }
.timeline .step { font-family: var(--mono); font-size: 12px; color: var(--orange-tint); letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0 14px; color: var(--white); }
.timeline p { color: var(--sub); }
.timeline strong { color: var(--white); font-weight: 600; }
@media (max-width: 860px) { .timeline > li { grid-template-columns: minmax(0, 1fr); } }

.arch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.arch-fig { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 26px); }
.arch-fig img { margin: 0 auto; }
.layers { list-style: none; margin-top: 26px; }
.layers li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.layers li::before { content: ""; grid-column: 1; grid-row: 1 / -1; width: 14px; height: 14px; border-radius: 3px; margin-top: 5px; background: var(--c, var(--orange)); }
.layers li strong, .layers li span { grid-column: 2; }
.layers strong { display: block; font-size: 16.5px; }
.layers span { color: var(--steel); font-size: 15px; }
@media (max-width: 900px) { .arch { grid-template-columns: minmax(0, 1fr); } .arch-fig { max-width: 520px; } }

.protocols { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 26px; }
.protocols li { font-family: var(--mono); font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); }

.quote-card { border-left: 3px solid var(--orange); padding: 6px 0 6px 22px; margin: 26px 0; }
.quote-card p { font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.big-mail { display: inline-block; font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--orange); padding-bottom: 4px; word-break: break-word; }
.big-mail:hover { color: var(--orange-ink); }
.details-list { margin-top: 44px; border-top: 1px solid var(--line); }
.details-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details-list dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding-top: 3px; }
.details-list dd { margin: 0; }
.details-list a { color: var(--ink); }
@media (max-width: 480px) { .details-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.form { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.form h2 { font-size: 22px; margin-bottom: 8px; }
.form > p { color: var(--steel); font-size: 15px; margin-bottom: 22px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(246,130,17,.28); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--steel); margin: 14px 0 0; }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound .code { font-family: var(--mono); color: var(--orange-ink); font-size: 14px; letter-spacing: .1em; }
.notfound h1 { font-size: clamp(34px, 5vw, 56px); margin: 16px 0; }
.notfound .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Reveal on scroll (progressive; content visible without JS) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

.section--night .flow h3 { color: var(--ink); }

/* MIRAI page additions */
.page-hero--demo { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--demo .hero-facts { margin-top: 30px; }
.hero-demo { margin-top: clamp(36px, 5vw, 56px); }
.demo-label { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted-d); }
.demo-label strong { color: var(--orange-tint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .flow--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .flow--4 { grid-template-columns: minmax(0, 1fr); } }
.stack--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .stack--2 { grid-template-columns: minmax(0, 1fr); } }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--mono); color: var(--orange-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.faq details p { margin: 0 0 24px; color: var(--steel); max-width: 68ch; }
.page-hero--demo h1, .section-head .h2, .cta-band h2 { text-wrap: balance; }
.page-hero--demo .lead, .section-head .lead { text-wrap: pretty; }

/* Stagion page additions */
.stack--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .stack--3 { grid-template-columns: minmax(0, 1fr); } }
.eco-chain { display: flex; align-items: stretch; gap: 0; }
.eco-node { flex: 1 1 0; min-width: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 15px; display: grid; gap: 6px; align-content: start; transition: border-color .2s, box-shadow .2s, transform .2s; }
.eco-node strong { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.eco-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-ink); }
.eco-node:hover { border-color: var(--orange); }
.eco-node[aria-selected="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 8px 24px -12px rgba(246,130,17,.5); transform: translateY(-2px); }
.eco-node:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.eco-arrow { flex: none; width: 28px; align-self: center; height: 2px; position: relative; background: var(--line); overflow: hidden; }
.eco-arrow::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--orange); animation: eco-pulse 2.4s linear infinite; }
.eco-arrow:nth-of-type(2)::after { animation-delay: .3s; } .eco-arrow:nth-of-type(3)::after { animation-delay: .6s; } .eco-arrow:nth-of-type(4)::after { animation-delay: .9s; }
@keyframes eco-pulse { to { left: 100%; } }
.eco-bypass { margin: 14px 0 0 calc(20% - 8px); font-family: var(--mono); font-size: 12px; color: var(--steel); border-left: 2px dashed var(--line); padding-left: 12px; }
.eco-panel { margin-top: 22px; padding: 24px 26px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); background: var(--mist); }
.eco-panel h3 { margin: 0 0 8px; font-size: 22px; }
.eco-panel p { margin: 0; max-width: 68ch; }
.eco-meets { margin-top: 14px !important; font-size: 14px; color: var(--steel); }
.eco-meets span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; margin-right: 8px; }
.eco-meets b { font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
  .eco-chain { flex-direction: column; }
  .eco-arrow { width: 2px; height: 18px; align-self: flex-start; margin-left: 24px; }
  .eco-arrow::after { left: 0; top: -40%; width: 100%; height: 40%; animation-name: eco-pulse-v; }
  @keyframes eco-pulse-v { to { top: 100%; } }
  .eco-bypass { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .eco-arrow::after { animation: none; left: 0; width: 100%; opacity: .5; } }

.mix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.5vw, 30px); border: 1px solid var(--charcoal-line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
@media (max-width: 860px) { .mix { grid-template-columns: minmax(0, 1fr); } }
.mix-src { display: grid; gap: 10px; align-content: start; }
.mix-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 40px minmax(80px, 2fr) 34px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--charcoal-line); border-radius: 4px; transition: border-color .2s, background .2s, opacity .2s; }
.mix-row code { font: 500 12px var(--mono); color: var(--muted-d); }
.mix-row output { font: 500 13px var(--mono); text-align: right; }
.mix-row.is-off { opacity: .45; }
.mix-row.is-win { border-color: var(--orange); background: rgba(246,130,17,.1); }
.mix-live { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; }
.mix-live input { accent-color: var(--orange); width: 16px; height: 16px; }
.mix-row input[type=range] { width: 100%; accent-color: var(--orange); }
.mix input:focus-visible, .mix button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mix-out { display: grid; gap: 12px; align-content: start; }
.mix-state { font: 500 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--good); }
.mix-state.is-safe { color: #eb5046; }
.mix-track { position: relative; height: 34px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.mix-lim { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.07); border-left: 1px dashed var(--muted-d); border-right: 1px dashed var(--muted-d); }
.mix-bar { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 3px; background: var(--orange); transition: width .25s, background .2s; }
.mix-bar.is-safe { background: #eb5046; }
.mix-scale { position: relative; height: 16px; font: 500 11px var(--mono); color: var(--muted-d); margin-top: -4px; }
.mix-scale span { position: absolute; top: 0; white-space: nowrap; }
.mix-read { margin: 0; min-height: 3em; font-size: 15px; line-height: 1.5; }
.mix-safety { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.mix-stop { font: 500 14px/1 var(--mono); letter-spacing: .08em; cursor: pointer; background: transparent; border: 1px solid #eb5046; color: #eb5046; border-radius: 4px; padding: 12px 22px; min-width: 96px; }
.mix-stop:hover { background: rgba(235,80,70,.14); }
.mix-stop[aria-pressed="true"] { background: #eb5046; color: #fff; }
@media (max-width: 520px) { .mix-row { grid-template-columns: 1fr 34px; } .mix-row code { display: none; } .mix-row input[type=range] { grid-column: 1 / -1; } .mix-row output { grid-row: 1; grid-column: 2; } }

/* Stagion hero stage */
.page-hero--stage { overflow: hidden; }
.stage-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.stage-hero h1 { max-width: none; font-size: clamp(34px, 3.9vw, 52px); }
.stage-hero .lead { max-width: 52ch; }
.stage-hero-vis { margin-top: 22px; }
.stage-hero-vis .demo-label { margin: 12px 0 0; }
@media (max-width: 1000px) { .stage-hero { grid-template-columns: minmax(0, 1fr); } }
.stage { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #120e0b; border: 1px solid var(--charcoal-line); box-shadow: 0 30px 80px -40px rgba(246,130,17,.45); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-top { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 70px); font: 500 12px/1.2 var(--mono); color: var(--cream); background: rgba(18,14,11,.78); border: 1px solid var(--charcoal-line); padding: 8px 11px; border-radius: 4px; }
.stage-show { color: var(--muted-d); white-space: nowrap; }
.stage-top b { font-weight: 500; color: var(--orange-tint, #ffb36b); white-space: nowrap; }
.stage-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(63,181,108,.6); animation: stage-pulse 1.6s infinite; }
@keyframes stage-pulse { 70% { box-shadow: 0 0 0 7px rgba(63,181,108,0); } 100% { box-shadow: 0 0 0 0 rgba(63,181,108,0); } }
.stage-ch { position: absolute; right: 12px; bottom: 58px; width: 160px; margin: 0; padding: 10px 11px; list-style: none; display: grid; gap: 8px; font: 500 10.5px/1.2 var(--mono); color: var(--cream); background: rgba(18,14,11,.72); border: 1px solid var(--charcoal-line); border-radius: 4px; }
.stage-ch span { display: flex; justify-content: space-between; gap: 6px; }
.stage-ch em { font-style: normal; color: var(--muted-d); }
.stage-ch i { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.stage-ch b { display: block; height: 100%; width: 0; background: var(--orange); }
.stage-cues { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stage-cues li { position: relative; overflow: hidden; font: 500 11.5px/1 var(--mono); color: var(--muted-d); background: rgba(18,14,11,.8); border: 1px solid var(--charcoal-line); border-radius: 4px; padding: 9px 10px 11px; white-space: nowrap; text-overflow: ellipsis; }
.stage-cues li.is-on { color: var(--cream); border-color: var(--orange); }
.stage-cues li i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); }
.stage-cues li.is-done i { width: 100%; opacity: .35; }
.stage-pause { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--cream); background: rgba(18,14,11,.78); border: 1px solid var(--charcoal-line); border-radius: 4px; }
.stage-pause:hover { background: rgba(255,255,255,.08); }
.stage-pause:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.stage-pause svg { width: 14px; height: 14px; }
.stage-pause .i-play, .stage-pause.is-paused .i-pause { display: none; }
.stage-pause.is-paused .i-play { display: block; }
@media (max-width: 560px) { .stage-ch { display: none; } .stage-cues li { font-size: 10.5px; padding: 8px 6px 10px; } .stage-show { display: none; } }
@media (prefers-reduced-motion: reduce) { .stage-dot { animation: none; } }

/* Homepage: flipped lead project card (Stagion) */
.project--flip .project-media { order: 2; }
@media (max-width: 860px) { .project--flip .project-media { order: 0; } }

/* Section rhythm: panels on a mist section sit on white */
.section--mist .eco-panel { background: var(--white); }

/* Dark showcase panels: dark frames the page (hero + footer); inside the page,
   dark only appears as a contained panel around something to watch or try. */
.section--night { background: transparent; color: var(--cream); padding-block: clamp(20px, 3vw, 40px); }
.section--night > .wrap {
  width: calc(100% - 24px); max-width: var(--wrap);
  padding-block: clamp(44px, 6vw, 84px);
  background: radial-gradient(120% 80% at 50% 0%, #211a14 0%, var(--charcoal) 60%);
  border: 1px solid var(--charcoal-line); border-radius: 16px;
}
@media (max-width: 640px) { .section--night > .wrap { width: calc(100% - 16px); border-radius: 12px; } }
/* cards inside a dark panel stay dark */
.section--night .flow li { background: rgba(255,255,255,.035); border-color: var(--charcoal-line); }
.section--night .flow li::before { color: var(--orange-tint); }
.section--night .flow h3 { color: var(--white); }
.section--night .flow p { color: var(--sub); }

/* ---------- Homepage: hero reel ---------- */
.hero--reel .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.hero--reel h1 { max-width: 17ch; font-size: clamp(34px, 4.2vw, 52px); }
.hero--reel .lead { max-width: 54ch; }
.hero--reel .hero-facts { margin-top: 30px; }
.reel { min-width: 0; }
.reel-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.reel-tabs::-webkit-scrollbar { display: none; }
.reel-tabs button { position: relative; flex: 0 0 auto; cursor: pointer; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--sub); background: transparent; border: 1px solid var(--charcoal-line); border-radius: 999px; padding: 9px 14px; overflow: hidden; }
.reel-tabs button:hover { color: var(--cream); border-color: #5a4630; }
.reel-tabs button[aria-selected="true"] { color: var(--charcoal); background: var(--orange); border-color: var(--orange); }
.reel-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.reel-tabs button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(23,19,15,.45); }
.reel-slide[hidden] { display: none; }
.reel .arm3d, .reel .stage, .reel-video { aspect-ratio: 4 / 3; }
.reel-video { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--charcoal-line); }
.reel-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 12px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted-d); }
.reel-cap strong { color: var(--orange-tint); font-weight: 600; }
.reel-cap a { display: inline-flex; align-items: center; gap: 6px; color: var(--cream); text-decoration: none; white-space: nowrap; }
.reel-cap a svg { width: 14px; height: 14px; transition: transform .2s; }
.reel-cap a:hover svg { transform: translateX(3px); }
@media (max-width: 980px) { .hero--reel h1 { max-width: 20ch; } .reel { margin-top: 8px; } }

/* ---------- Homepage: "what I can help with" cards ---------- */
.helps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.help:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(23,19,15,.45); }
.help:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.help .tag { font-family: var(--mono); font-size: 11.5px; color: var(--orange-ink); letter-spacing: .06em; text-transform: uppercase; }
.help h3 { font-size: 20px; margin: 14px 0 8px; }
.help p { margin: 0 0 20px; color: var(--steel); font-size: 15.5px; }
.help-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.help-more svg { width: 16px; height: 16px; color: var(--orange-ink); transition: transform .2s; }
.help:hover .help-more svg { transform: translateX(4px); }
@media (max-width: 960px) { .helps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .helps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer CTA + privacy link ---------- */
.footer-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--orange-tint); font-weight: 600; text-decoration: none; }
.footer-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.footer-cta:hover svg { transform: translateX(3px); }
.footer-base a { color: inherit; }
.footer-base a:hover { color: var(--cream); }
/* header CTA keeps its button styling (.nav a would otherwise flatten it) */
.nav a.btn--primary { background: var(--orange); color: var(--charcoal); font-weight: 600; }
.nav a.btn--primary:hover { background: #ff9533; color: var(--charcoal); }
/* logo wall: logos are pre-normalised monochrome files, sized per logo for equal visual weight */
.logos li { background: transparent; }
.logos img { max-height: none; height: auto; max-width: 100%; filter: none; opacity: .82; mix-blend-mode: normal; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- FlexComm hub illustration ---------- */
.hub-frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--charcoal-line); background: #17130f; }
.hub { display: block; width: 100%; height: auto; }
.hub-flow { animation: hub-out 1.6s linear infinite; }
.hub-flow--in { animation-name: hub-in; }
@keyframes hub-out { to { stroke-dashoffset: -28; } }
@keyframes hub-in { to { stroke-dashoffset: 28; } }
@media (prefers-reduced-motion: reduce) { .hub-flow { animation: none; } }

/* ---------- About ---------- */
.page-hero--about .wrap { align-items: center; }
.portrait { margin: 0; justify-self: end; width: min(100%, 420px); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--charcoal-line); }
.portrait figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-d); }
.portrait figcaption strong { color: var(--cream); font-weight: 600; }
@media (max-width: 900px) { .portrait { justify-self: start; width: min(100%, 360px); } }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; }
.facts-grid > div { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.facts-grid dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.facts-grid dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
@media (max-width: 960px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.section--mist .form { background: var(--white); box-shadow: 0 24px 60px -40px rgba(23,19,15,.35); }
.helpful { margin-top: 40px; }
.helpful h2 { font-size: 19px; margin: 0 0 14px; }
.helpful ul { list-style: none; display: grid; gap: 10px; margin: 0 0 14px; padding: 0; }
.helpful li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 15.5px; }
.helpful li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--orange-ink); }
.helpful .muted { font-size: 14.5px; color: var(--steel); }

/* ---------- Publications ---------- */
.pub .authors { margin: -2px 0 6px; font-size: 15px; color: var(--steel); }
.pub .authors strong { color: var(--ink); font-weight: 600; }
.pub-summary { margin: 0 0 10px; max-width: 72ch; color: var(--ink); }
.pub-practice { margin: 0 0 14px; max-width: 72ch; color: var(--steel); font-size: 15px; }
.pub-practice span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); margin-right: 6px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal-date { font-family: var(--mono); font-size: 12.5px; color: var(--steel); }
.founder { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 0 32px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.founder img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.founder-quote { margin: 0 0 10px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink); max-width: 70ch; }
.founder-name { margin: 0; font-size: 14.5px; color: var(--steel); }
.founder-name strong { color: var(--ink); }
@media (max-width: 600px) { .founder { grid-template-columns: 1fr; padding: 24px; } .founder img { width: 88px; height: 88px; } }
/* pause/play for looping background videos */
.vid-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--cream); background: rgba(23,19,15,.72); border: 1px solid var(--charcoal-line); border-radius: 4px; opacity: .85; transition: opacity .2s, background .2s; }
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; background: rgba(23,19,15,.9); }
.vid-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.vid-toggle svg { width: 14px; height: 14px; }
@media (max-width: 980px) { .hero--reel .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hero--reel h1 { font-size: 34px; } .reel-cap { font-size: 11.5px; } }
@media (max-width: 420px) { .reel-tabs button { font-size: 11.5px; padding: 8px 11px; } }
@media (max-width: 900px) { .contact-grid > .form { order: -1; } }
/* No WebGL: show a still of the MIRAI simulation instead of an empty frame */
.arm3d[data-fallback] { display: block !important; background: #17130f url("/assets/img/mirai-arm-still.webp") center / cover no-repeat; }
.arm3d[data-fallback] > * { display: none !important; }
.pub-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.pub-extra h2 { font-size: 19px; margin: 0 0 12px; }
.pub-mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub-mini li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.pub-mini a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pub-mini a:hover { color: var(--orange-ink); text-decoration: underline; }
.pub-mini span { font-size: 14px; color: var(--steel); }
@media (max-width: 760px) { .pub-extra { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Latest research cards (home) ---------- */
.papers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paper { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 24px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.paper:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(23,19,15,.45); }
.paper:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.paper .tag { font-family: var(--mono); font-size: 11.5px; color: var(--orange-ink); letter-spacing: .06em; text-transform: uppercase; }
.paper h3 { font-size: 19px; margin: 12px 0 8px; }
.paper p { margin: 0 0 18px; color: var(--steel); font-size: 15.5px; }
.paper:hover .help-more svg { transform: translate(2px, -2px); }
@media (max-width: 760px) { .papers { grid-template-columns: minmax(0, 1fr); } }
.cite-authors { font-size: 14.5px; color: var(--steel); margin: 6px 0 10px !important; font-style: normal; }
.quote-card .cite-authors { font-weight: 400; font-size: 14.5px; color: var(--steel); }
.prose h3 + .pub-mini { margin-top: 12px; }

/* ---------- Fillers: side stats, pull quotes, hero cards ---------- */
:root { --section: clamp(60px, 7.5vw, 96px); }
.side-stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 420px; }
.side-stats li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-stats b { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--orange-ink); }
.side-stats span { font-size: 15px; color: var(--steel); line-height: 1.4; }
@media (max-width: 860px) { .side-stats { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 12px; margin-top: 24px; }
  .side-stats li { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
  .side-stats b { font-size: 26px; } }
@media (max-width: 480px) { .side-stats { grid-template-columns: minmax(0, 1fr); } }
.pull { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--orange); max-width: 22ch; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 860px) { .pull { max-width: none; } }

.hero-card { justify-self: end; width: min(100%, 420px); padding: 26px; border: 1px solid var(--charcoal-line); border-radius: 14px; background: rgba(255,255,255,.035); }
.hero-card-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--charcoal-line); }
.hero-card-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hero-card-head strong { display: block; color: var(--white); font-size: 18px; }
.hero-card-head span { display: block; color: var(--muted-d); font-size: 14px; margin-top: 2px; }
.hero-card ul, .hero-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.hero-card li, .hero-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--sub); font-size: 15px; line-height: 1.45; }
.hero-card li svg, .hero-checks li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--orange); }
.hero-checks { justify-self: end; width: min(100%, 380px); margin: 0; padding: 26px; border: 1px solid var(--charcoal-line); border-radius: 14px; background: rgba(255,255,255,.035); }
.hero-checks li { color: var(--cream); font-size: 16px; }
.hero-stats { justify-self: end; list-style: none; margin: 0; padding: 0; width: min(100%, 440px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-stats li { padding: 22px; border: 1px solid var(--charcoal-line); border-radius: 12px; background: rgba(255,255,255,.035); }
.hero-stats b { display: block; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--orange); }
.hero-stats span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--sub); line-height: 1.4; }
@media (max-width: 900px) { .hero-card, .hero-checks, .hero-stats { justify-self: start; } }
/* FAQ: heading + "ask me" card on the left, questions on the right */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-layout .faq { max-width: none; }
.ask-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.section--mist .ask-card { background: var(--white); }
.ask-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ask-card strong { display: block; font-size: 17px; color: var(--ink); }
.ask-card p { margin: 4px 0 14px; font-size: 15px; color: var(--steel); }
.ask-card .btn { padding: 11px 16px; min-height: 0; font-size: 14.5px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } }
/* Section heads with an intro paragraph: heading left, intro right (uses the full width) */
@media (min-width: 861px) {
  .section-head:not(.section-head--split):has(> .lead) { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 16px; align-items: end; }
  .section-head:not(.section-head--split):has(> .lead) > .eyebrow,
  .section-head:not(.section-head--split):has(> .lead) > .h2 { grid-column: 1; }
  .section-head:not(.section-head--split):has(> .lead) > .eyebrow { justify-self: start; }
  .section-head:not(.section-head--split):has(> .lead) > .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none !important; }
}
.legal-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 260px); justify-content: space-between; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 96px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-toc span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.legal-toc ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.legal-toc a { color: var(--steel); text-decoration: none; font-size: 15px; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } .legal-toc { display: none; } }
/* Publisher strip (text names, no logos) */
.publishers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.publishers span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); margin-right: 4px; }
.publishers b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--steel); }
.publishers--dark { margin: 26px 0 30px; border-color: var(--charcoal-line); }
.publishers--dark span { color: var(--orange-tint); }
.publishers--dark b { color: var(--cream); }
.pub-publisher { display: block; margin-top: 6px; font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink); }
/* Featured "core focus" card spans two columns */
.helps-feature { grid-column: span 2; }
.help--feature { border-top: 3px solid var(--orange); padding: 30px 32px 28px; }
.help--feature h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 14px; }
.help--feature p { font-size: 16.5px; max-width: 62ch; color: var(--ink); }
.help--feature:hover { transform: none; box-shadow: none; border-color: var(--line); border-top-color: var(--orange); }
.help-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.help-links .help-more { text-decoration: none; }
.help-links .help-more:hover svg { transform: translateX(4px); }
.helps-note { margin: 22px 0 0; color: var(--steel); font-size: 15.5px; }
@media (max-width: 960px) { .helps-feature { grid-column: span 2; } }
@media (max-width: 600px) { .helps-feature { grid-column: auto; } }
/* Logo wall split: paying clients vs projects and collaborations */
.logo-group + .logo-group { margin-top: 28px; }
.logo-label { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.logos--clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logos--clients li { aspect-ratio: auto; min-height: 120px; }
.logos--clients img { opacity: .95; }
.logos--partners { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.logos--partners li { aspect-ratio: auto; min-height: 96px; padding: 18px; }
.logos--partners img { max-width: 100%; }
@media (max-width: 1000px) { .logos--partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos--clients { grid-template-columns: minmax(0, 1fr); } .logos--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos--clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos--clients li { min-height: 88px; padding: 12px; } }
.logos--clients, .logos--partners { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logos--clients li { min-height: 112px; }
@media (max-width: 900px) { .logos--clients, .logos--partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos--clients, .logos--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos--clients li { min-height: 88px; padding: 14px; } }
/* "Client" tag on paying-client logos */
.logos li { position: relative; }
.price-note { margin: 22px 0 0; font-family: var(--mono); font-size: 13px; color: var(--orange-tint); }

/* About: profile list beside the story */
.profile-list { margin: 32px 0 0; border-top: 1px solid var(--line); max-width: 440px; }
.profile-list > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-list dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); padding-top: 3px; }
.profile-list dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
@media (max-width: 480px) { .profile-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.col-proof { margin: 14px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--steel); }

/* Product pages: typographic lists instead of card grids.
   .track = a real sequence (numbered, joined by a line); .rows = a list of things; .points = three short claims. */
.track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); counter-reset: t; }
.track li { counter-increment: t; position: relative; padding-top: 54px; }
.track li::before { content: counter(t); position: absolute; top: 0; left: 0; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--mono); color: var(--orange-ink); background: var(--white); border: 1.5px solid var(--orange); }
.track li::after { content: ""; position: absolute; top: 16px; left: 40px; right: calc(6px - clamp(20px, 3vw, 40px)); height: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track h3 { font-size: 19px; margin: 0 0 8px; }
.track p { margin: 0; color: var(--steel); font-size: 15.5px; max-width: 34ch; }
.section--mist .track li::before { background: var(--mist); }
.section--night .track li::before { background: var(--charcoal); color: var(--orange-tint); }
.section--night .track li::after { background: var(--charcoal-line); }
.section--night .track h3 { color: var(--cream); }
.section--night .track p { color: var(--sub); }
@media (max-width: 760px) {
  .track { grid-template-columns: minmax(0, 1fr); }
  .track li { padding: 4px 0 30px 54px; }
  .track li:last-child { padding-bottom: 0; }
  .track li::after { top: 40px; bottom: 6px; left: 16px; right: auto; width: 2px; height: auto; }
}
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(24px, 4vw, 64px); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows h3 { font-size: 20px; margin: 0; }
.rows p { margin: 0; color: var(--steel); max-width: 58ch; }
.rows .status { display: inline-block; margin-left: 8px; padding: 4px 9px 5px; border-radius: 999px; background: rgba(246,130,17,.13); color: var(--orange-ink); font-size: 12.5px; font-weight: 500; letter-spacing: 0; vertical-align: 3px; white-space: nowrap; }
@media (max-width: 700px) { .rows li { grid-template-columns: minmax(0, 1fr); padding: 20px 0; } }
.points { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); }
.points li { padding-top: 18px; border-top: 2px solid var(--ink); }
.points h3 { font-size: 19px; margin: 0 0 8px; }
.points p { margin: 0; color: var(--steel); font-size: 15.5px; }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* Stagion ecosystem mesh */
.mesh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mesh-tab { font: 500 14px/1 var(--mono); padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.mesh-tab:hover { border-color: var(--orange); }
.mesh-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mesh-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mesh-stage { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 3vw, 34px); overflow-x: auto; }
.mesh-svg { display: block; width: 100%; min-width: 660px; height: auto; }
.mesh-el { cursor: pointer; }
.mesh-el rect { fill: var(--mist); stroke: var(--line); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.mesh-el.is-ctl rect { fill: var(--ink); stroke: var(--ink); }
.mesh-el.is-ctl .mt { fill: var(--white); } .mesh-el.is-ctl .ms { fill: var(--sub); }
.mesh .mt { font: 600 15px var(--font); fill: var(--ink); text-anchor: middle; }
.mesh .ms { font: 400 12.5px var(--mono); fill: var(--steel); text-anchor: middle; }
.mesh-ln { fill: none; stroke: #d6cab9; stroke-width: 1.6; transition: stroke .25s, stroke-width .25s; }
.mesh-ln.dash { stroke-dasharray: 5 5; }
.mesh[data-sel="stagion"] .k-stagion rect, .mesh[data-sel="edge"] .k-edge rect,
.mesh[data-sel="node"] .k-node rect, .mesh[data-sel="hw"] .k-hw rect { fill: var(--orange); stroke: var(--orange); }
.mesh[data-sel="stagion"] .k-stagion .mt, .mesh[data-sel="stagion"] .k-stagion .ms,
.mesh[data-sel="edge"] .k-edge .ms, .mesh[data-sel="node"] .k-node .ms, .mesh[data-sel="hw"] .k-hw .ms { fill: var(--ink); }
.mesh[data-sel="stagion"] .k-net, .mesh[data-sel="edge"] .k-net, .mesh[data-sel="link"] .k-link,
.mesh[data-sel="node"] .k-link, .mesh[data-sel="hw"] .k-hw-ln, .mesh[data-sel="hw"] .dash { stroke: var(--orange); stroke-width: 2.4; stroke-dasharray: 7 6; animation: mesh-flow .9s linear infinite; }
@keyframes mesh-flow { to { stroke-dashoffset: -13; } }
@media (prefers-reduced-motion: reduce) { .mesh-ln { animation: none !important; } }
.mesh .eco-panel { margin-top: 16px; }
@media (max-width: 720px) { .mesh-stage::after { content: "Scroll sideways to see the whole network"; display: block; margin-top: 10px; font-size: 12.5px; color: var(--steel); position: sticky; left: 0; } }
@media (min-width: 901px) { .arch > div { position: sticky; top: 96px; } }
.rows--stack li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
.feature .rows--stack { align-self: center; }
/* rows with a third column of project links (About: what I work with) */
.rows--links li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); }
.row-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.row-links a { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 1px; }
.row-links a:hover { color: var(--orange-ink); }
@media (max-width: 860px) { .rows--links li { grid-template-columns: minmax(0, 1fr); } .row-links { flex-direction: row; gap: 16px; margin-top: 4px; } }
/* Case study hero photo */
.case-photo { margin: 0; }
.case-photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--charcoal-line); }

.portrait-links { display: block; margin-top: 6px; }
.portrait-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.portrait-links a:hover { color: var(--orange); text-decoration-color: currentColor; }

/* ---------- Language switch (EN / NL) ---------- */
.nav .lang-switch { margin-left: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.lang-switch .lang-long { display: none; }
@media (max-width: 960px) {
  .nav .lang-switch { margin-left: 0; font-family: var(--font); font-size: 18px; letter-spacing: 0; }
  .lang-switch .lang-short { display: none; }
  .lang-switch .lang-long { display: inline; }
}
