/* ============================================================
   MERIEU — THE MONUMENT AT DAYLIGHT
   The engraved hero survives from the first design; everything
   after it happens in daylight. One light angle (--la) still
   governs every carved edge on the site.
   ============================================================ */

:root {
  /* daylight */
  --paper: #F6F2E9;
  --paper-raise: #FCF9F3;
  --paper-deep: #EDE6D7;
  --ink: #211B12;
  --ink-body: #40382C;
  --ink-soft: #675E4F;
  --bronze: #8D704C;
  --bronze-deep: #6E5638;
  --hairline: rgba(110, 86, 56, 0.20);

  /* the hero's night (kept) */
  --basalt: #0F0D0A;
  --vignette: #080706;
  --champagne: #CDB289;
  --ash: #B9AF9F;
  --bronze-up: #A5885D;
  --hair-dark: rgba(205, 178, 137, 0.20);

  /* foways brand tokens (must match foways.com) */
  --fw-void: #0a0a0b;
  --fw-surface: #111113;
  --fw-text: #e8e8ed;
  --fw-text-dim: #7a7a85;
  --fw-light-void: #f6f6f3;
  --fw-light-surface: #ffffff;
  --fw-light-text: #15151a;
  --fw-light-text-2: #5a5a63;
  --fw-light-border: rgba(16, 16, 20, 0.08);
  --fw-accent: #47cf73;
  --fw-accent-text: #16793f;
  --fw-accent-bright: #2fb866;
  --fw-electric: #6d49e0;

  --f-disp: 'Cinzel', 'Cinzel Fallback', 'Times New Roman', serif;
  --f-serif: 'Source Serif 4', Georgia, serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, 'Courier New', monospace;
  --fw-disp: 'Space Grotesk', system-ui, sans-serif;
  --fw-body: 'Inter', system-ui, sans-serif;
  --fw-mono: 'JetBrains Mono', ui-monospace, monospace;
  --fw-wordmark: 'Space Mono', ui-monospace, monospace;

  /* the sun */
  --la: 35deg;
  --lax: calc(cos(var(--la)) * 1px);
  --lay: calc(sin(var(--la)) * 1px);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;
  --nav-h: 4.5rem;
}

@supports not (width: calc(cos(45deg) * 1px)) {
  :root { --lax: 0.82px; --lay: 0.57px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }

body {
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
}

body.protocol-lock, body.menu-open { overflow: hidden; }

::selection { background: var(--bronze); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-nav.over-dark :focus-visible,
.site-footer :focus-visible, .fw-band :focus-visible { outline-color: var(--champagne); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.mono {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}

.skip {
  position: fixed; top: 0.75rem; left: 50%;
  transform: translate(-50%, -300%);
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 0.6rem 1.2rem;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.skip:focus-visible { transform: translate(-50%, 0); }

/* ---------- engraving: one system, two grounds ---------- */

.engrave, .engrave-l {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
/* night stone (hero) */
.engrave {
  color: #16130F;
  text-shadow:
    calc(var(--lax) * -1.4) calc(var(--lay) * -1.4) 1px rgba(4, 3, 2, 0.85),
    calc(var(--lax) * 1.6) calc(var(--lay) * 1.6) 1px rgba(205, 178, 137, var(--lit, 0.38));
}
/* day stone (everything after): bronze-inlaid carve — 3.7:1 on paper,
   passing large-text AA while keeping the raking light */
.engrave-l {
  color: var(--bronze);
  text-shadow:
    calc(var(--lax) * -1.2) calc(var(--lay) * -1.2) 1px rgba(72, 58, 38, 0.45),
    calc(var(--lax) * 1.4) calc(var(--lay) * 1.4) 1px rgba(255, 255, 255, 0.95);
}
/* purely decorative numerals stay pale-carved (aria-hidden everywhere) */
.pillar-n.engrave-l, .step-n.engrave-l { color: #CBBE9E; }

.reveal { opacity: 0; transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.lit { opacity: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 3vw, 2.4rem);
  background: rgba(246, 242, 233, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.4s ease-out, border-color 0.4s ease-out;
}
.site-nav.over-dark {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav-lockup { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.nav-lockup .slot { position: relative; display: block; }
.nav-lockup .slot-emblem { width: 30px; height: 30px; }
.nav-lockup .slot-word { width: 88px; height: auto; }
.nav-lockup img { width: 100%; height: auto; transition: opacity 0.4s ease-out; }
.nav-lockup .variant-light { position: absolute; inset: 0; opacity: 0; }
.site-nav.over-dark .nav-lockup .variant-dark { opacity: 0; }
.site-nav.over-dark .nav-lockup .variant-light { opacity: 1; }

.nav-links { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.4rem); }
.nav-links a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.6rem 0.35rem;
  transition: color 0.3s ease-out;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.2rem;
  height: 1px;
  background: var(--bronze);
}
.site-nav.over-dark .nav-links a { color: var(--ash); }
.site-nav.over-dark .nav-links a:hover,
.site-nav.over-dark .nav-links a[aria-current="page"] { color: var(--champagne); }

.nav-cta {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.7rem 1.15rem;
  transition: background 0.3s ease-out;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--bronze-deep); }
.site-nav.over-dark .nav-cta { background: var(--champagne); color: var(--basalt); }
.site-nav.over-dark .nav-cta:hover { background: #DEC69E; }

/* hamburger (mobile) */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), top 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
}
.site-nav.over-dark .nav-burger span { background: var(--champagne); }
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 28px; }
body.menu-open .nav-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 70;
  background: var(--paper);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) var(--gutter);
  gap: 0.4rem;
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.4s;
}
body.menu-open .mobile-menu {
  visibility: visible; opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu a {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.75rem, 7.5vw, 2.6rem);
  color: var(--ink);
  padding: 0.55rem 0;
  opacity: 0;
  transition: opacity 0.5s ease-out, color 0.3s;
}
body.menu-open .mobile-menu a { opacity: 1; }
.mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.09s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.13s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.17s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.21s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.25s; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--bronze-deep); }
.mobile-menu .menu-label { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bronze-deep); text-transform: uppercase; margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ============================================================
   §00 PROTOCOL (home only — kept exactly as loved)
   ============================================================ */

#protocol {
  position: fixed; inset: 0; z-index: 100;
  background: var(--vignette);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
  animation: protocol-expire 0.6s ease 4s forwards;
}
@keyframes protocol-expire { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.js-live #protocol { animation: none; }
#protocol.done { display: none; }

html.js-stalled #protocol { display: none; }
html.js-stalled .reveal { opacity: 1; }
html.js-stalled .draw-line path, html.js-stalled .draw-line line { stroke-dashoffset: 0 !important; }

.protocol-stage { position: relative; width: min(38vmin, 230px); aspect-ratio: 1; }
#protocol-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#protocol-ring circle { fill: var(--champagne); opacity: 0; }
.protocol-core { position: absolute; inset: 18%; width: 64%; height: 64%; opacity: 0; }
.protocol-rule { width: 0; height: 1px; background: var(--hair-dark); }
.protocol-word { width: min(46vw, 300px); opacity: 0; }

/* ============================================================
   HERO (kept) + THE DAWN
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: var(--nav-h) var(--gutter) 6rem;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(8, 7, 6, 0.75) 100%),
    var(--basalt);
  overflow: hidden;
  overflow: clip;
}

.watermark {
  position: absolute; top: 50%; left: 50%;
  width: 150vmin; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.035;
  pointer-events: none;
}
.watermark img { width: 100%; height: 100%; animation: sunwheel 240s linear infinite; }
@keyframes sunwheel { to { transform: rotate(360deg); } }
body.hero-off .watermark img { animation-play-state: paused; }

.hero-inner { position: relative; }

.hero-kicker { margin-bottom: clamp(1.2rem, 3vh, 2.2rem); color: var(--bronze-up); }

.hero-title {
  font-size: clamp(4.2rem, 14.5vw, 15.5rem);
  letter-spacing: 0.11em;
  padding-left: 0.11em;
  line-height: 1.04;
  white-space: nowrap;
}

.hero-standfirst {
  margin: clamp(1.6rem, 4vh, 3rem) auto 0;
  max-width: 30em;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ash);
}
.hero-standfirst em { font-style: italic; color: var(--champagne); }

.plumb {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  transition: opacity 0.4s ease-out;
}
body.hinting .plumb { opacity: 0; }
.plumb-line {
  display: block; width: 1px; height: clamp(3rem, 8vh, 5.5rem);
  background: linear-gradient(var(--bronze), transparent);
  transform-origin: top;
  animation: plumb-draw 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes plumb-draw {
  0% { transform: scaleY(0); }
  45%, 70% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
.plumb-word { font-size: 0.6rem; opacity: 0.75; color: var(--bronze-up); }

.tilt-hint {
  position: fixed; bottom: 1.3rem; left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  background: none; border: 0;
  border-bottom: 1px solid var(--hair-dark);
  padding: 0.3rem 0.1rem;
  font-size: 0.6875rem;
  cursor: pointer;
  opacity: 0.85;
  color: var(--bronze-up);
}
.tilt-hint::before { content: ''; position: absolute; inset: -0.9rem -1rem; }

/* the hero ends on a clean architectural edge — night above, day below */
.hero { border-bottom: 1px solid rgba(205, 178, 137, 0.45); }

/* ============================================================
   SHARED SECTION ARCHITECTURE (daylight)
   ============================================================ */

.section { padding: clamp(5rem, 12vh, 8.5rem) var(--gutter); }
.section-deep { background: var(--paper-deep); }
.section-inner { max-width: 1240px; margin: 0 auto; }

.section-head { margin-bottom: clamp(2.6rem, 6vh, 4.2rem); }
.section-label { display: block; margin-bottom: 1.1rem; }
.section-title {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.15;
}
.section-title.engrave-l { color: #DCD3BC; }
.section-lede {
  max-width: var(--measure);
  margin-top: 1.4rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  font-weight: 300;
  color: var(--ink-body);
}

/* page hero for inner pages: light engraved title */
.page-head {
  padding: calc(var(--nav-h) + clamp(3.5rem, 9vh, 6.5rem)) var(--gutter) clamp(2.8rem, 7vh, 5rem);
  border-bottom: 1px solid var(--hairline);
}
.page-head .section-inner { max-width: 1240px; }
.page-title {
  font-size: clamp(2.6rem, 7.5vw, 6.2rem);
  line-height: 1.08;
}
.page-lede {
  max-width: var(--measure);
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: var(--ink-body);
}
.page-lede em { font-style: italic; color: var(--bronze-deep); }

/* ---------- buttons & text links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.95rem 1.4rem;
  transition: background 0.3s ease-out;
}
.btn:hover { background: var(--bronze-deep); }
.btn .arrow { transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.tlink {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}
.tlink:hover { color: var(--ink); border-color: var(--bronze); }
.tlink::after { content: ''; position: absolute; inset: -0.85rem -0.5rem; }

/* ============================================================
   HOME: PILLARS
   ============================================================ */

.pillar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pillar-item {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.4rem, 2.6vw, 2.4rem) clamp(2.4rem, 5vh, 3.4rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: background 0.4s ease-out;
}
.pillar-item:hover { background: var(--paper-raise); }
.pillar-n {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
}
.pillar-title {
  font-family: var(--f-disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  color: var(--ink);
}
.pillar-item p { font-weight: 300; font-size: 1.0625rem; flex: 1; }
.pillar-item .tlink { align-self: flex-start; }

/* ============================================================
   HOME: MODEL DIAGRAM
   ============================================================ */

.model-figure { margin-top: clamp(2rem, 5vh, 3.4rem); }
.model-svg { width: 100%; height: auto; display: block; }
.model-svg text { font-family: var(--f-mono); letter-spacing: 0.13em; text-transform: uppercase; }
.model-svg .node-label { fill: var(--ink); font-size: 13px; font-weight: 500; }
.model-svg .flow-label { fill: var(--bronze-deep); font-size: 11px; }
.model-svg .node-box { fill: var(--paper-raise); stroke: var(--bronze); stroke-width: 1; }
.model-svg .flow { stroke: var(--bronze); stroke-width: 1.2; fill: none; }
.model-svg .flow-soft { stroke: var(--hairline); stroke-width: 1; fill: none; }
.model-svg .tie { stroke: var(--bronze); stroke-width: 1; stroke-dasharray: 4 5; fill: none; opacity: 0.6; }
.draw-line path.flow { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.draw-line.drawn path.flow { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.model-stack { display: none; }
.ms-node {
  border: 1px solid var(--bronze);
  background: var(--paper-raise);
  padding: 1.1rem 1.2rem;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.ms-node-hub span { display: block; margin-top: 0.3rem; color: var(--bronze-deep); font-size: 0.62rem; }
.ms-flow {
  text-align: center;
  padding: 0.8rem 0;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--bronze-deep);
}
@media (max-width: 700px) {
  .model-svg { display: none; }
  .model-stack { display: block; }
}

.model-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 5vh, 3rem); }
.model-notes p { font-weight: 300; font-size: 1.0625rem; }
.model-notes .mono { display: block; margin-bottom: 0.6rem; }

/* ============================================================
   DOMAIN GRIDS
   ============================================================ */

.domain-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.domain-col h3, .domain-col p.domain-col-title {
  font-family: var(--f-disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--ink);
  padding-bottom: 1.1rem; border-bottom: 2px solid var(--ink);
  margin-bottom: 0.4rem;
}
.domain-list { list-style: none; }
.domain-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 300;
  font-size: 1.0625rem;
}
.domain-list .n { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--bronze-deep); min-width: 1.9rem; letter-spacing: 0.1em; }

.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.domain-card {
  background: var(--paper-raise);
  border: 1px solid var(--hairline);
  padding: 1.7rem 1.6rem 1.8rem;
}
.domain-card h3 {
  font-family: var(--f-disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 1.05rem; color: var(--ink);
  margin: 0.9rem 0 0.7rem;
}
.domain-card p { font-weight: 300; font-size: 1.0625rem; color: var(--ink-body); }
.domain-card .mono { font-size: 0.625rem; }

/* ============================================================
   STEPS (lifecycle / how-it-works)
   ============================================================ */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--paper); padding: 1.8rem 1.5rem 2rem; }
.step .step-n { font-family: var(--f-disp); font-weight: 600; font-size: 2rem; }
.step h3 {
  font-family: var(--f-disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.02rem; color: var(--ink);
  margin: 1rem 0 0.6rem;
}
.step p { font-weight: 300; font-size: 1.0625rem; }

/* two-column principle rows */
.principles { border-top: 1px solid var(--hairline); }
.principle {
  display: grid; grid-template-columns: minmax(180px, 320px) 1fr;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3.5vh, 2.4rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.principle h3 {
  font-family: var(--f-disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.1rem; color: var(--ink);
}
.principle p { font-weight: 300; max-width: var(--measure); }

/* ============================================================
   FOWAYS (brand-exact)
   ============================================================ */

.fw-band { background: var(--fw-void); color: var(--fw-text); }
.fw-band .section-inner { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; }

.fw-wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fw-wordmark);
  font-weight: 700;
}
.fw-wordmark .brace { font-family: var(--fw-mono); font-weight: 400; color: var(--fw-text-dim); font-size: 0.72em; }
.fw-wordmark .word { letter-spacing: -0.02em; }
.fw-wordmark-xl { font-size: clamp(2.6rem, 7vw, 4.6rem); color: var(--fw-text); }
.fw-wordmark-md { font-size: 1.35rem; color: var(--fw-text); }

.fw-tag { font-family: var(--fw-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-accent); }
.fw-band p.fw-lede { font-family: var(--fw-body); font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fw-text-dim); max-width: 52ch; line-height: 1.65; }
.fw-band p.fw-lede strong { color: var(--fw-text); font-weight: 500; }

.fw-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--fw-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fw-void); background: var(--fw-accent);
  padding: 0.9rem 1.3rem;
  border-radius: 8px;
  transition: background 0.3s ease-out, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.fw-btn:hover { background: var(--fw-accent-bright); transform: translateY(-1px); }

/* foways page body on their light theme */
.fw-page { background: var(--fw-light-void); font-family: var(--fw-body); color: var(--fw-light-text-2); }
.fw-page .fw-h {
  font-family: var(--fw-disp); font-weight: 700; color: var(--fw-light-text);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; line-height: 1.2;
}
.fw-page p { font-size: 1.05rem; line-height: 1.7; }
.fw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.fw-card {
  background: var(--fw-light-surface);
  border: 1px solid var(--fw-light-border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.7rem;
}
.fw-card .fw-card-tag { font-family: var(--fw-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fw-accent-text); }
.fw-card h3 { font-family: var(--fw-disp); font-weight: 700; font-size: 1.12rem; color: var(--fw-light-text); margin: 0.8rem 0 0.55rem; }
.fw-card p { font-size: 1.0625rem; color: var(--fw-light-text-2); }
.fw-page p.fw-note { font-size: 0.72rem; }
/* the seam between Foways' off-white and Merieu's ivory */
.fw-page + .section { border-top: 1px solid var(--hairline); }
.fw-note { font-family: var(--fw-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fw-light-text-2); }
.fw-note a { color: var(--fw-accent-text); border-bottom: 1px solid currentColor; }

/* ============================================================
   LEADERSHIP / QUOTE
   ============================================================ */

.leader-quote {
  max-width: 44em;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}
.leader-quote em { font-style: italic; color: var(--bronze-deep); }
.leader-attr { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.leader-attr .name {
  font-family: var(--f-disp); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 1.15rem; color: var(--ink);
}

/* ============================================================
   CONTACT BAND + FOOTER
   ============================================================ */

.contact-band { border-top: 1px solid var(--hairline); }
.contact-band .section-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-title { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; font-style: normal; }
.contact-list a, .contact-list p {
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  color: var(--ink);
  transition: color 0.3s;
  line-height: 1.5;
}
.contact-list a:hover { color: var(--bronze-deep); }
.contact-list .mono { font-size: 0.625rem; }

.site-footer { background: var(--basalt); color: var(--ash); padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter) 2rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); border-bottom: 1px solid var(--hair-dark); }
.footer-brand { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.footer-brand img.f-emblem { width: 40px; height: 40px; }
.footer-brand img.f-word { width: 110px; height: auto; }
.footer-brand p { font-weight: 300; font-size: 0.98rem; max-width: 30em; color: var(--ash); }
.footer-col h3 { font-family: var(--f-mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-up); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col p { font-weight: 300; font-size: 0.98rem; color: var(--ash); transition: color 0.3s; line-height: 1.55; }
.footer-col a:hover { color: var(--champagne); }
.colophon {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.7rem;
}
.colophon .mono { color: var(--bronze-up); font-size: 0.6875rem; opacity: 0.9; }

/* the Foways site credit — same component as cnm.foways.com */
.built-by {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--fw-wordmark);
  flex-shrink: 0;
}
.built-by .bb-slash { font-size: 11px; font-weight: 400; color: rgba(185, 175, 159, 0.3); transition: color 0.3s, text-shadow 0.3s; }
.built-by .bb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(185, 175, 159, 0.45); transition: color 0.3s; }
.built-by .bb-brace { font-size: 12px; font-weight: 400; color: rgba(185, 175, 159, 0.3); transition: color 0.3s, text-shadow 0.3s; }
.built-by .bb-word { font-size: 12px; font-weight: 700; letter-spacing: -0.02em; color: rgba(185, 175, 159, 0.7); transition: color 0.3s; }
.built-by:hover .bb-slash,
.built-by:hover .bb-brace { color: var(--fw-accent); text-shadow: 0 0 10px rgba(71, 207, 115, 0.55); }
.built-by:hover .bb-label { color: rgba(185, 175, 159, 0.7); }
.built-by:hover .bb-word { color: #EDE7DB; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-4 { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pillar-list { grid-template-columns: 1fr; }
  .model-notes { grid-template-columns: 1fr; }
  .domain-cols { grid-template-columns: 1fr; }
  .fw-cards { grid-template-columns: 1fr; }
  .contact-band .section-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 900px) {
  /* on phones vmin collapses the sunwheel to invisibility — oversize it,
     lift it slightly, and let the turn be perceptible */
  .watermark { width: 185vmax; opacity: 0.06; }
  .watermark img { animation-duration: 90s; }
}

@media (max-width: 560px) {
  .hero-title { letter-spacing: 0.05em; padding-left: 0.05em; font-size: 15.5vw; }
  .page-title { font-size: clamp(1.9rem, 10vw, 2.6rem); letter-spacing: 0.06em; }
  .section-title { overflow-wrap: break-word; }
  .nav-lockup .slot-word { width: 72px; }
  .steps, .steps.steps-4 { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #protocol { display: none; }
  body.protocol-lock { overflow: auto; }
  .reveal { opacity: 1; transition: none; }
  .watermark img { animation: none; }
  .plumb-line { animation: none; transform: scaleY(1); }
  .draw-line path.flow { stroke-dashoffset: 0 !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
