/* ============================================================
   Electric Synapse Guild — Homepage
   Visual system: contemporary design-museum register.
   Paper + ink, one orange spot color, cyan as platform signal.
   ============================================================ */

/* Fonts loaded via <link> in index.html <head> (preconnect + swap). */

:root {
  --paper: #F9F6F1;
  --paper-deep: #F2EEE6;     /* faint inset band */
  --ink: #111110;
  --ink-deep: #0d0d0a;
  --ink-60: #56554f;          /* muted body — 6.9:1 on paper */
  --ink-40: #6c6b64;          /* captions — darkened to 4.96:1 on paper / 4.6:1 on paper-deep (was #86847c = 3.48:1, FAILED AA) */
  --ink-15: #d8d4ca;          /* hairlines (decorative, non-text) */
  --orange: #f57d0f;          /* SPOT ACCENT — non-text only (dots, rules, ticks, diagram strokes). 2.5:1 on paper — fails as text. */
  --orange-text: #a85200;     /* darkened orange for ALL orange TEXT on light bg — 5.0:1 on paper / 4.7:1 on paper-deep */
  --cyan: #4bd8f2;            /* platform signal — non-text on light; only used as text on the dark section (11.6:1) */
  --cyan-tint: rgba(75, 216, 242, 0.10);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1360px;
  --gutter: clamp(20px, 5vw, 88px);
  --col-gap: clamp(16px, 2.4vw, 40px);

  --rule: 1px solid var(--ink-15);
  --rule-ink: 1px solid var(--ink);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: "ss01", "cv05";
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--paper); }

a { color: inherit; }

/* ---- accessibility utilities ---- */
/* Visually-hidden but available to assistive tech */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — first focusable element, visible only on focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 3px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Visible focus indicator on every focusable element.
   Ink on light backgrounds is high-contrast (>15:1); the only dark section
   (.readers) has no interactive elements, but it is covered as a safeguard. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.readers :focus-visible { outline-color: var(--paper); }
/* Don't let the nav link underline pseudo-element double as a focus ring */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- shared layout ---- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
}

/* ---- type primitives ---- */
.marker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-40);
  font-weight: 500;
}
.marker--orange { color: var(--orange-text); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}
.caption {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-40);
  line-height: 1.45;
}

.rule-orange { height: 0; border: none; border-top: 2px solid var(--orange); margin: 0; }
.rule-ink { height: 0; border: none; border-top: var(--rule-ink); margin: 0; }
.rule-hair { height: 0; border: none; border-top: var(--rule); margin: 0; }

/* display headings */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  transition: border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom: var(--rule); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark .mark {
  width: 9px; height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.wordmark .mark::after {
  content: "";
  position: absolute; inset: 2px;
  background: var(--orange);
  border-radius: 50%;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.navlinks a, .navlinks button {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  padding: 0;
  position: relative;
}
.navlinks a:not(.req)::after, .nav-drop__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.navlinks a:not(.req):hover::after, .nav-drop:hover .nav-drop__btn::after, .nav-drop.open .nav-drop__btn::after { transform: scaleX(1); }
.req { color: var(--orange-text) !important; }
.req:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-drop { position: relative; }
.nav-drop__btn { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop__btn .chev { transition: transform .3s ease; display: inline-block; }
.nav-drop:hover .nav-drop__btn .chev, .nav-drop.open .nav-drop__btn .chev { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--paper);
  border: var(--rule-ink);
  padding: 8px;
  min-width: 250px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
  display: grid;
  gap: 2px;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop.open .nav-drop__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop__menu a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  transition: background .2s ease;
}
.nav-drop__menu a::after { display: none; }
.nav-drop__menu a:hover { background: var(--paper-deep); }
.nav-drop__menu a .vlabel { font-family: var(--serif); font-size: 17px; }
.nav-drop__menu a .vtag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-40); }
.nav-drop__menu .dot { width:6px; height:6px; border-radius:50%; background: var(--cyan); flex:none; align-self:center; }
/* StoryFlow dropdown — non-clickable "coming soon" note */
.nav-drop__menu .nav-drop__soon {
  display: block;
  padding: 12px 13px 10px;
  margin-top: 4px;
  border-top: var(--rule);
  cursor: default;
}
.nav-drop__menu .nav-drop__soon .vlabel {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-40);
}

.navtoggle { display: none; }

/* ============================================================
   HERO — 01
   ============================================================ */
.hero {
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(60px, 9vh, 120px);
  min-height: 96vh;
  display: flex;
  align-items: center;
}
.hero__grid { width: 100%; row-gap: clamp(36px, 6vh, 72px); }
.hero__headwrap { grid-column: 1 / 9; }
.hero__head {
  font-size: clamp(40px, 6.6vw, 96px);
}
.hero__head em {
  font-style: italic;
  color: var(--ink);
}
.hero__aside {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 12px;
}
.hero__aside .rule-orange { width: 64px; }
.hero__sub {
  grid-column: 2 / 8;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
  max-width: 62ch;
}
.hero__cta { grid-column: 2 / 8; }

/* hero ambient node diagram (right column) */
.hero__diagram {
  grid-column: 9 / 13;
  align-self: center;
  justify-self: stretch;
  opacity: 0.55;
  pointer-events: none;
  margin-top: 8px;
}
.hero__diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero__diagram .nlabel {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-feature-settings: "smcp";
  fill: var(--ink);
}

.tlink {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--orange-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.tlink .arrow { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.tlink:hover .arrow { transform: translateX(7px); }
.tlink--ink { color: var(--ink); }
.tlink--ink:hover { color: var(--orange-text); }

/* ============================================================
   STAT PANEL
   ============================================================ */
.stats {
  border-top: var(--rule-ink);
  border-bottom: var(--rule);
  padding-block: clamp(54px, 8vh, 96px);
}
.stats__grid { row-gap: 48px; }
.stat { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.stat__num {
  font-family: var(--serif);
  font-weight: 900;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.86;
  letter-spacing: -0.025em;
}
.stat__num .u { font-size: 0.36em; color: var(--ink-40); vertical-align: baseline; font-weight: 500; }
.stat__label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.35;
  max-width: 24ch;
}
.stat__body { font-size: 14.5px; line-height: 1.55; color: var(--ink-60); font-weight: 300; max-width: 34ch; }
.stat--bordered { border-left: var(--rule); padding-left: clamp(20px, 2.6vw, 44px); }

/* ============================================================
   SECTION scaffold
   ============================================================ */
.section { padding-block: clamp(86px, 14vh, 190px); }
.readers-wrap { background: var(--ink-deep); }
.section__head { row-gap: 22px; margin-bottom: clamp(46px, 7vh, 92px); }
.section__num { grid-column: 1 / 3; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
}
.eyebrow .tick { width: 26px; border-top: 2px solid var(--orange); }

/* PROBLEM — 02 */
.problem__head { grid-column: 3 / 11; }
.problem__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
}
.problem__body { grid-column: 3 / 10; display: grid; gap: 1.5em; margin-top: clamp(36px,5vh,64px); }
.problem__body p {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.62;
  font-weight: 300;
  margin: 0;
  max-width: 64ch;
}
.problem__body p .em { color: var(--ink); font-weight: 400; font-style: italic; font-family: var(--serif); }
.problem__body .lead::first-letter { /* subtle */ }

/* horizontal pipeline strip (section 02) */
.pipeline {
  margin-top: clamp(48px, 7vh, 88px);
  padding-block: 32px;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.pipeline__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pipeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  text-align: center;
}
/* connector line behind nodes */
.pipeline__node::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--ink-15);
  z-index: 0;
}
.pipeline__node:last-child::before { display: none; }
.pipeline__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  z-index: 1;
}
.pipeline__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ENTRY POINTS — 03 */
.entries { padding-top: 0; }
.entries__grid { row-gap: 0; }
.zone { padding-block: clamp(20px, 3vh, 44px); display: flex; flex-direction: column; gap: 26px; }
.zone--platform { grid-column: 1 / 7; padding-right: clamp(24px, 4vw, 72px); }
.zone--studio { grid-column: 7 / 13; padding-left: clamp(24px, 4vw, 72px); border-left: var(--rule); }
.zone__signal { display: flex; align-items: center; gap: 12px; }
.zone__signal .pip { width: 10px; height: 10px; flex: none; }
.zone--platform .pip { background: var(--cyan); border-radius: 50%; }
.zone--studio .pip { background: var(--orange); }
.zone__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.zone__name .tld { color: var(--ink-40); font-size: 0.42em; font-family: var(--mono); letter-spacing: 0; vertical-align: middle; margin-left: 4px; }
.zone__copy { font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--ink-60); max-width: 42ch; }
.zone__copy strong { color: var(--ink); font-weight: 500; }
.entries__foot {
  grid-column: 1 / 13;
  border-top: var(--rule);
  margin-top: clamp(28px,4vh,52px);
  padding-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px,1.7vw,22px);
  font-weight: 400;
  color: var(--ink-60);
  max-width: 60ch;
}
.entries__foot strong { color: var(--ink); font-weight: 500; font-style: italic; }

/* HUMAN / MACHINE — 04  (dark signature section) */
.readers { background: var(--ink-deep); color: var(--paper); }
.readers .marker--orange { color: var(--orange); }
.readers .section__head .label { color: rgba(249,246,241,0.5) !important; }
.readers__grid { row-gap: 0; align-items: stretch; }
.reader { grid-column: span 6; padding-block: clamp(40px, 6vh, 80px); display: flex; flex-direction: column; gap: 28px; }
.reader--human { padding-right: clamp(28px, 4vw, 72px); border-right: 1px solid rgba(249,246,241,0.14); }
.reader--machine { padding-left: clamp(28px, 4vw, 72px); }
.reader__kicker { display:flex; align-items:center; gap:12px; }
.reader__kicker .label { color: rgba(249,246,241,0.55); }
.reader__big {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(42px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.reader__big .li { display: block; }
.reader__names {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 60;
  font-weight: 400;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.24;
  color: rgba(249,246,241,0.82);
  margin: 4px 0 4px;
}
.reader__names span { display: block; }
.reader--machine .reader__names { color: var(--cyan); }
.reader--machine .reader__big, .reader--machine .reader__kicker .label { color: var(--cyan); }
.reader__list { display: grid; gap: 0; margin-top: 10px; }
.reader__list .row { display: block; padding: 18px 0; border-top: 1px solid rgba(249,246,241,0.14); }
.reader__list .fail { font-size: 15px; color: rgba(249,246,241,0.72); font-weight: 300; line-height: 1.5; }
.reader--machine .reader__list .fail { color: rgba(249,246,241,0.78); }
.readers__note { grid-column: 1/13; border-top: 1px solid rgba(249,246,241,0.28); padding-top: 34px; padding-bottom: 6px; margin-top: 0; }
.readers__note p { margin: 0 auto; font-size: clamp(20px,2vw,30px); font-weight:300; line-height:1.4; max-width: 26ch; font-family: var(--serif); color: var(--paper); }
.readers__note p b { font-weight: 500; font-style: italic; }

/* TRUST — 05 */
.trust__grid { row-gap: clamp(40px, 6vh, 80px); }
.trust__lede { grid-column: 1 / 6; display:flex; flex-direction:column; gap: 24px; }
.trust__lede h2, .trust__lede h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3vw,44px);
  line-height: 1.06; letter-spacing: -0.01em; margin: 0; max-width: 16ch;
}
.trust__lede p { font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--ink-60); margin: 0; max-width: 42ch; }
.trust__lede p .term { font-family: var(--mono); font-size: 0.86em; color: var(--ink); background: var(--paper-deep); padding: 1px 6px; }
.trust__diagram { grid-column: 7 / 13; }
.trust__outcomes { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--rule-ink); }
.outcome { padding: 28px clamp(18px,2.4vw,40px) 4px 0; display:flex; flex-direction:column; gap: 14px; }
.outcome + .outcome { border-left: var(--rule); padding-left: clamp(18px,2.4vw,40px); }
.outcome__n { font-family: var(--mono); font-size: 11px; color: var(--orange-text); letter-spacing: .12em; }
.outcome p { margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 300; }
.outcome p b { font-weight: 500; }

/* hash chain diagram */
.chain { width: 100%; height: auto; display: block; }
.chain text { font-family: var(--mono); fill: var(--ink); }
.chaincap { margin-top: 14px; }

/* INDUSTRIES — 06  (compact hairline list) */
.industries__list { border-top: var(--rule-ink); }
.industry {
  display: block;
  padding: clamp(22px,3vh,32px) 0;
  border-bottom: var(--rule);
  transition: background .3s ease;
}
.industry:hover { background: var(--paper-deep); }
.industry__line {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
  max-width: 78ch;
}
.industry__line .name {
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(18px, 1.7vw, 20px);
  letter-spacing: -0.01em;
}
.industry__line .dash { color: var(--ink-40); margin: 0 0.5em; }

/* WORK — 07 */
.work__grid { row-gap: clamp(60px, 9vh, 120px); }
.case { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 24px; align-items: end; }
.case__media { position: relative; }
.case__media image-slot { width: 100%; display: block; filter: grayscale(1) contrast(1.04); }
.case__meta { display: flex; flex-direction: column; gap: 16px; }
.case__cat { color: var(--orange-text); }
.case__name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3vw,46px); line-height: 1.02; margin: 0; }
.case__client { font-family: var(--mono); font-size: 12px; color: var(--ink-40); letter-spacing: .06em; }
.case__out { font-size: 16px; line-height: 1.55; font-weight: 300; color: var(--ink-60); max-width: 40ch; }
/* layout variants — break the grid */
.case--a .case__media { grid-column: 1 / 8; }
.case--a .case__meta  { grid-column: 9 / 13; }
.case--b .case__meta  { grid-column: 1 / 5; }
.case--b .case__media { grid-column: 6 / 13; }
.case--c .case__media { grid-column: 3 / 10; }
.case--c .case__meta  { grid-column: 10 / 13; }
.case__media .figcap { position: absolute; bottom: 12px; left: 12px; background: var(--paper); padding: 5px 9px; }

/* CLOSE — 08 */
.close { border-top: var(--rule-ink); }
.close__grid { row-gap: clamp(44px,6vh,80px); }
.close__head { grid-column: 1 / 11; }
.close__head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 86px);
  line-height: 1.0; letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.close__head h2 .dim { color: var(--ink-40); }
.close__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--ink-60);
  margin: clamp(20px,2.6vh,30px) 0 0;
  max-width: 40ch;
}
.close__links { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: clamp(24px,5vw,90px); border-top: var(--rule); padding-top: 34px; }
.close__links .tlink { font-size: clamp(18px,2vw,28px); font-family: var(--serif); letter-spacing: 0; }

/* FOOTER */
.footer { border-top: var(--rule); padding-block: 54px 64px; }
.footer__grid { row-gap: 40px; align-items: start; }
.footer__brand { grid-column: 1 / 6; display:flex; flex-direction:column; gap: 16px; }
.footer__brand .caption { max-width: 34ch; }
.footer__col { grid-column: span 3; display:flex; flex-direction:column; gap: 12px; }
.footer__col:nth-of-type(2){ grid-column: 8 / 11; }
.footer__col:nth-of-type(3){ grid-column: 11 / 13; }
.footer__col a { font-size: 14px; text-decoration: none; color: var(--ink-60); transition: color .2s; }
.footer__col a:hover { color: var(--orange-text); }
.footer__bottom { grid-column: 1/13; display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: var(--rule); padding-top: 22px; margin-top: 16px; }
.footer__bottom .caption { color: var(--ink-40); }
.footer__contact { display: inline-flex; align-items: center; gap: 12px; }
.footer__contact a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--orange-text); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__contact .footer__sep { color: var(--ink-40); font-family: var(--mono); font-size: 11.5px; }

/* ============================================================
   SUBPAGE — STORYFLOW ESG
   ============================================================ */
.hero__ctas {
  grid-column: 2 / 9;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  flex-wrap: wrap;
}
.subhero .hero__head { font-size: clamp(44px, 7.4vw, 104px); }

/* hero status badge */
.statusbadge {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: clamp(20px, 3vh, 30px);
}
.statusbadge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 10px;
}

/* framework support row */
.frameworks { grid-column: 1 / 13; }
.framework-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 18px;
  margin: clamp(20px,3vh,30px) 0 clamp(28px,4vh,40px);
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding-block: clamp(24px,3.4vh,38px);
}
.framework-row .fw {
  font-family: var(--sans);
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.framework-row .sep { color: var(--orange-text); margin: 0 clamp(14px,1.8vw,26px); font-weight: 500; }
.frameworks__note {
  font-size: clamp(16px,1.5vw,20px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-60);
  max-width: 68ch;
}
.frameworks__note b { color: var(--ink); font-weight: 500; }

/* who it's for grid */
.whofor {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--orange);
}
.whofor__cell {
  padding: clamp(30px,4.4vh,52px) clamp(26px,3vw,60px) clamp(30px,4.4vh,52px) 0;
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.whofor__cell:nth-child(even) {
  padding-left: clamp(26px,3vw,60px);
  padding-right: 0;
  border-left: var(--rule);
}
.whofor__role {
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(20px, 2.1vw, 25px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.whofor__body { font-size: 15.5px; line-height: 1.6; font-weight: 300; color: var(--ink-60); max-width: 46ch; }

/* partners close — reuse close styling, add note line */
.partners__note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 22px;
}
.partners__note .em { color: var(--orange-text); }

/* ============================================================
   SUBPAGE — CAPABILITIES (studio capability stack)
   ============================================================ */
.caplinks { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 26px; }
.capstack { grid-column: 1 / 13; }
.caprow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  border-top: 1px solid var(--orange);
  padding-block: clamp(28px, 4.4vh, 48px);
  align-items: start;
}
.caprow__num {
  grid-column: 1 / 3;
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--orange-text);
}
.caprow__main { grid-column: 3 / 12; display: flex; flex-direction: column; gap: 16px; }
.caprow__name {
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(20px, 2vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.caprow__body { font-size: clamp(15px,1.4vw,17px); line-height: 1.62; font-weight: 300; color: var(--ink-60); max-width: 64ch; margin: 0; }
.caprow__link { margin-top: 4px; }
.caprow__link .tlink { font-size: 14px; }

@media (max-width: 900px) {
  .caprow { grid-template-columns: 1fr; row-gap: 18px; }
  .caprow__num, .caprow__main { grid-column: 1 / 13; }
}

/* ============================================================
   SUBPAGE — WORK (case-study spread + testimonial)
   ============================================================ */
.wcases { grid-column: 1 / 13; }
.wcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  border-top: 2px solid var(--ink);
  padding-block: clamp(46px, 7vh, 88px);
  align-items: start;
  row-gap: 32px;
}
.wcase__main { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 18px; }
.wcase__cat { color: var(--orange-text); }
.wcase__title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}
.wcase__client { font-family: var(--mono); font-size: 12px; color: var(--ink-40); letter-spacing: 0.1em; text-transform: uppercase; }
.wcase__body { font-size: clamp(15px,1.45vw,17px); line-height: 1.62; font-weight: 300; color: var(--ink-60); max-width: 50ch; margin: 0; }
.wcase__stat {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: var(--rule);
  padding-left: clamp(24px, 3vw, 48px);
}
.wcase__num {
  font-family: var(--serif);
  font-weight: 900;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(52px, 7vw, 80px);
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wcase__statlabel {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 30ch;
}

/* testimonial */
.testimonial {
  grid-column: 2 / 10;
  border-left: 3px solid var(--orange);
  padding: clamp(40px,6vh,72px) 0 clamp(40px,6vh,72px) clamp(28px,3.2vw,52px);
}
.testimonial__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.42;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.testimonial__attrib {
  display: flex;
  align-items: center;
  gap: clamp(20px,3vw,40px);
  margin-top: clamp(28px,4vh,40px);
  flex-wrap: wrap;
}
.testimonial__who { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); line-height: 1.7; }
.testimonial__who .sep { color: var(--ink-40); margin: 0 8px; }
.testimonial__logo img { width: 150px; height: 72px; object-fit: contain; object-position: left center; display: block; }

/* ============================================================
   SUBPAGE — ABOUT (principles + leadership)
   ============================================================ */
.principles { grid-column: 1 / 13; border-top: var(--rule); }
.principle {
  border-bottom: var(--rule);
  padding-block: clamp(30px, 4.6vh, 56px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  align-items: baseline;
  row-gap: 14px;
}
.principle__name {
  grid-column: 1 / 8;
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
}
.principle__body {
  grid-column: 8 / 13;
  font-size: clamp(15px,1.45vw,17px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-60);
  margin: 0;
}

/* leadership */
.leaders { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.leader {
  border-top: 2px solid var(--ink);
  padding: clamp(28px,4vh,44px) clamp(26px,3vw,56px) clamp(28px,4vh,44px) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.leader:nth-child(even) { padding-left: clamp(26px,3vw,56px); padding-right: 0; border-left: var(--rule); }
.leader__name {
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(22px,2.1vw,26px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.leader__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  margin-bottom: 8px;
  display: block;
}
.leader__role { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-text); }
.leader__bio { font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--ink-60); margin: 4px 0 0; max-width: 42ch; }
.leader__bio.tbd { color: var(--ink-40); font-style: italic; font-family: var(--serif); }

@media (max-width: 900px) {
  .principle { grid-template-columns: 1fr; }
  .principle__name, .principle__body { grid-column: 1 / 13; }
  .leaders { grid-template-columns: 1fr; }
  .leader, .leader:nth-child(even) { padding-left: 0; padding-right: 0; border-left: none; }
}

@media (max-width: 900px) {
  .wcase__main, .wcase__stat { grid-column: 1 / 13; }
  .wcase__stat { border-left: none; padding-left: 0; border-top: var(--rule); padding-top: 28px; }
  .testimonial { grid-column: 1 / 13; }
}
/* Progressive enhancement: content is visible by default; only hidden
   once JS confirms it will animate it in. A blank page is impossible. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto !important; }
  /* Honor reduced-motion across the whole site: neutralize every animation
     and transition (nav hairline, dropdown reveal, link/arrow hovers, etc.)
     without removing the end state. */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navlinks { gap: 16px; }
  .navlinks .hide-sm { display: none; }
  .hero__headwrap { grid-column: 1 / 13; }
  .hero__aside { grid-column: 1 / 13; flex-direction: row; align-items: center; padding-top: 0; }
  .hero__sub, .hero__cta { grid-column: 1 / 13; }
  .stat { grid-column: span 12; }
  .stat--bordered { border-left: none; padding-left: 0; border-top: var(--rule); padding-top: 32px; }
  .problem__head, .problem__body { grid-column: 1 / 13; }
  .section__num { grid-column: 1 / 13; }
  .zone--platform, .zone--studio { grid-column: 1 / 13; padding: clamp(28px,5vh,48px) 0; border-left: none; }
  .zone--studio { border-top: var(--rule); }
  .reader { grid-column: 1/13; padding-inline: 0 !important; }
  .reader--human { border-right: none !important; border-bottom: 1px solid rgba(249,246,241,0.14); }
  .trust__lede, .trust__diagram { grid-column: 1 / 13; }
  .trust__outcomes { grid-template-columns: 1fr; }
  .outcome + .outcome { border-left: none; border-top: var(--rule); padding-left: 0; }
  .industry { grid-template-columns: 1fr; gap: 14px; }
  .close__head, .close__links { grid-column: 1 / 13; }
  .pipeline__row { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .pipeline__node::before { display: none; }
  .whofor { grid-template-columns: 1fr; }
  .whofor__cell, .whofor__cell:nth-child(even) { padding-left: 0; padding-right: 0; border-left: none; }
  .hero__ctas { grid-column: 1 / 13; }
  .footer__brand, .footer__col, .footer__col:nth-of-type(2), .footer__col:nth-of-type(3) { grid-column: 1 / 13; }
}
