/* =========================================================
   OZEY — brand website design system
   ========================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Mono:wght@400;500&display=swap');

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  /* Official Ozey brand */
  --brand-primary:   #0015FC;   /* electric cobalt */
  --brand-secondary: #031C35;   /* deep navy */
  --paper:           #F6F3EE;   /* warm off-white */
  --neutral:         #7D7D86;   /* soft neutral */

  /* Derived tones */
  --paper-warm:      #F0ECE3;
  --paper-line:      #E6E0D2;
  --mist:            #E6E2D6;
  --hairline-soft:   #DFD9CB;
  --obsidian:        var(--brand-secondary);
  --obsidian-soft:   #0A2842;
  --obsidian-line:   #0F3052;
  --graphite:        #43464F;
  --graphite-soft:   var(--neutral);
  --graphite-quiet:  #A5A2A6;
  --cobalt:          var(--brand-primary);
  --cobalt-soft:     rgba(0, 21, 252, 0.08);
  --violet:          var(--brand-primary);

  /* Surface theming — defaults to paper */
  --bg:              var(--paper);
  --bg-alt:          var(--paper-warm);
  --bg-deep:         var(--mist);
  --fg:              var(--brand-secondary);
  --fg-soft:         var(--neutral);
  --fg-quiet:        var(--graphite-quiet);
  --hairline:        var(--hairline-soft);
  --accent:          var(--brand-primary);
  --accent-soft:     var(--cobalt-soft);
  --invert-bg:       var(--brand-secondary);
  --invert-fg:       var(--paper);
  --invert-hairline: var(--obsidian-line);

  /* Type */
  --font-display: "Google Sans", "Product Sans", "Roboto", "Inter", system-ui, sans-serif;
  --font-body:    "Google Sans Text", "Google Sans", "Roboto", "Inter", system-ui, sans-serif;
  --font-mono:    "Roboto Mono", "Geist Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --gutter:      32px;
  --margin:      clamp(24px, 5vw, 96px);
  --section-pad: clamp(80px, 12vw, 200px);
  --maxw:        1480px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quiet:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* Obsidian theme */
[data-theme="obsidian"] {
  --bg:              var(--brand-secondary);
  --bg-alt:          var(--obsidian-soft);
  --bg-deep:         #02101F;
  --fg:              var(--paper);
  --fg-soft:         #B6B9C0;
  --fg-quiet:        #5A6772;
  --hairline:        var(--obsidian-line);
  --invert-bg:       var(--paper);
  --invert-fg:       var(--brand-secondary);
  --invert-hairline: var(--paper-line);
}

[data-accent="none"]   { --accent: var(--fg); --accent-soft: transparent; }
[data-accent="violet"] { --accent: var(--brand-primary); --accent-soft: rgba(0, 21, 252, 0.10); }
[data-accent="cobalt"] { --accent: var(--brand-primary); --accent-soft: rgba(0, 21, 252, 0.10); }
[data-accent="indigo"] { --accent: #4B5BD9; --accent-soft: rgba(75, 91, 217, 0.08); }

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "cv11";
  transition: background-color 600ms var(--ease-quiet), color 600ms var(--ease-quiet);
  min-height: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* =========================================================
   Layout utilities
   ========================================================= */
.wrap  { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--margin); }
.grid  { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }

/* =========================================================
   Typography primitives
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--fg-quiet);
  border-radius: 50%;
  flex: none;
}
.eyebrow.no-dot::before { display: none; }
.eyebrow.cobalt::before  { background: var(--accent); }

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg-quiet);
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.h-xxl { font-size: clamp(58px, 9vw, 144px);   font-weight: 500; letter-spacing: -0.045em; line-height: 0.92; }
.h-xl  { font-size: clamp(44px, 6.4vw, 104px);  font-weight: 500; letter-spacing: -0.04em;  line-height: 0.95; }
.h-lg  { font-size: clamp(34px, 4.4vw, 72px);   font-weight: 500; letter-spacing: -0.03em;  line-height: 1; }
.h-md  { font-size: clamp(24px, 2.4vw, 36px);   font-weight: 500; letter-spacing: -0.02em;  line-height: 1.1; }
.h-sm  { font-size: clamp(18px, 1.4vw, 22px);   font-weight: 500; letter-spacing: -0.01em;  line-height: 1.25; }

.lede   { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5;  color: var(--fg-soft); max-width: 56ch; text-wrap: pretty; }
.body-l { font-size: clamp(16px, 1.1vw, 18px);  line-height: 1.55; color: var(--fg-soft); }
.body-s { font-size: 14px; line-height: 1.55; color: var(--fg-soft); }
.mono-s { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

.hairline { height: 1px; background: var(--hairline); width: 100%; border: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
  border: 1px solid transparent;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
[data-accent="none"] .btn-primary:hover { opacity: 0.85; }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--fg); }

.btn .arrow { width: 14px; height: 14px; position: relative; transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn .arrow svg { width: 100%; height: 100%; }

/* =========================================================
   Shared mono lines
   ========================================================= */
.m-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1.4;
}
.m-line.dim { color: var(--fg-quiet); }

/* =========================================================
   Masthead / Nav
   ========================================================= */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--margin);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background-color 600ms var(--ease-quiet);
}
.masthead.is-scrolled,
#nav.is-scrolled { border-bottom-color: var(--hairline); }

/* Grid row — works with both .masthead-row wrapper and direct nav */
.masthead-row,
.masthead nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.masthead-mid,
.masthead .nav-center {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-quiet);
  text-align: center;
}
.masthead-nav,
.masthead .nav-links {
  display: flex;
  gap: 24px;
  justify-self: end;
  font-size: 14px;
  color: var(--fg-soft);
}
.masthead-nav a,
.masthead .nav-links a { transition: color 200ms var(--ease); }
.masthead-nav a:hover,
.masthead .nav-links a:hover     { color: var(--fg); }
.masthead-nav a.is-current,
.masthead .nav-links a[aria-current] { color: var(--brand-primary); }

/* Nav brand */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.nav-brand svg { width: 22px; height: 24px; color: var(--fg); flex: none; }
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

@media (max-width: 800px) {
  .masthead-mid,
  .masthead .nav-center { display: none; }
  .masthead-row,
  .masthead nav { grid-template-columns: 1fr auto; }
}

/* =========================================================
   Brand mark
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand .mark  { width: 26px; height: 26px; color: var(--fg); }
.brand .word  {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand .tm {
  font-family: var(--font-mono);
  font-size: 9px;
  vertical-align: super;
  color: var(--fg-quiet);
  margin-left: 1px;
}
.brand.small .mark { width: 22px; height: 22px; }
.brand.small .word { font-size: 16px; }

.brand-mark-crescent { fill: currentColor; }
.brand-mark-slash    { fill: var(--brand-primary); }

/* =========================================================
   Reveal motion
   ========================================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.js .reveal         { opacity: 0; transform: translateY(28px); }
html.js .reveal.in      { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 80ms; }
html.js .reveal-delay-2 { transition-delay: 160ms; }
html.js .reveal-delay-3 { transition-delay: 240ms; }
html.js .reveal-delay-4 { transition-delay: 320ms; }
html.js .reveal-delay-5 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Accent — semantic rule
   Brand cobalt reserved for moments of realization — used once per page.
   ========================================================= */
.realization {
  color: var(--brand-primary);
  font-weight: 500;
}

/* =========================================================
   Narrative homepage — five-act emotional scroll
   ========================================================= */
.narrative { position: relative; }

.narrative .n-step {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 160px) var(--margin);
}
.narrative .n-step + .n-step { border-top: 0; }

/* Connecting vertical thread on left margin (desktop only) */
@media (min-width: 900px) {
  .narrative .n-hero,
  .narrative .n-reality,
  .narrative .n-thesis,
  .narrative .n-solution {
    background-image: linear-gradient(to bottom, var(--hairline) 0, var(--hairline) 100%);
    background-repeat: no-repeat;
    background-size: 1px calc(100% - 80px);
    background-position: calc(var(--margin) * 0.45) 40px;
  }
}

/* ---- 01 Recognition ---- */
.n-hero {
  min-height: 100vh;
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.n-hero-wrap {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4.5vw, 56px);
  position: relative;
  z-index: 1;
}
.n-hero .hero-v6-mark,
.n-hero .n-hero-mark {
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  margin-bottom: clamp(8px, 2vw, 24px);
  transition: opacity 400ms var(--ease);
}
.n-hero .hero-v6-mark:hover,
.n-hero .n-hero-mark:hover { opacity: 0.7; }

.n-hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.8vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--fg);
  text-wrap: balance;
}
.n-hero-trust {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg-soft);
  margin-top: calc(clamp(20px, 3vw, 40px) * -1);
}

/* ---- 02 Reality ---- */
.n-reality { min-height: 100vh; }

.reality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 20px);
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.reality-list li {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 88px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--fg-soft);
  transition: color 600ms var(--ease);
}
.reality-list li:nth-child(2n) { color: var(--fg); }
.reality-list li:last-child    { color: var(--fg); font-weight: 400; }

/* ---- 03 Thesis ---- */
.n-thesis { min-height: 100vh; text-align: center; }
.n-thesis .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vw, 20px);
  align-items: center;
}
.n-thesis-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
}
.n-thesis-line em {
  font-style: normal;
  font-weight: 300;
  color: var(--fg-soft);
}
.n-thesis-line.answer { font-weight: 500; }

/* ---- 04 Solution ---- */
.n-solution { min-height: 100vh; text-align: center; }
.n-solution-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--fg);
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
}
.n-solution-em { color: var(--fg); font-weight: 500; }

/* ---- 05 Explore ---- */
.n-explore {
  min-height: auto;
  padding: 0 !important;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: block;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.n-explore .outro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.n-explore .outro-wrap::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--hairline);
}
.n-explore .outro-link:first-child { border-right: 0; }

/* =========================================================
   Outro / explore links
   ========================================================= */
.outro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.outro-link {
  display: grid;
  grid-template-columns: 40px 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px) var(--margin);
  transition: background-color 240ms var(--ease);
  position: relative;
}
.outro-link:first-child { border-right: 1px solid var(--hairline); }
.outro-link:hover { background: color-mix(in oklab, var(--fg) 3%, transparent); }
.outro-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-quiet);
}
.outro-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.outro-desc {
  font-size: 14px;
  color: var(--fg-quiet);
}
.outro-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--fg-soft);
  transition: color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.outro-link:hover .outro-arrow {
  color: var(--brand-primary);
  transform: translate(2px, -2px);
  border-color: color-mix(in oklab, var(--brand-primary) 40%, transparent);
}

@media (max-width: 700px) {
  .n-explore .outro-wrap,
  .outro-wrap { grid-template-columns: 1fr; }
  .n-explore .outro-link:first-child,
  .outro-link:first-child { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .outro-link { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .outro-desc  { display: none; }
}

/* =========================================================
   Colophon / footer
   ========================================================= */
.colophon,
.colophon.v4 {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  background: var(--bg);
  transition: background-color 600ms var(--ease-quiet);
}
.colophon-inner,
.colophon-v4-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--margin);
}
.colophon-center,
.colophon-v4-row .footer-mid {
  text-align: center;
  justify-self: center;
  font-size: 13px;
  color: var(--fg-quiet);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.colophon-right,
.colophon-v4-row .footer-end {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.colophon-email { font-size: 13px; color: var(--fg-soft); }
.colophon-email:hover,
.colophon-v4-row a.footer-mid:hover,
.colophon-v4-row a.footer-end:hover { color: var(--brand-primary); }
.colophon-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.colophon-brand svg { color: var(--fg); flex: none; }
.colophon-brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--fg);
}

@media (max-width: 600px) {
  .colophon-inner,
  .colophon-v4-row { grid-template-columns: 1fr; gap: 12px; }
  .colophon-center,
  .colophon-right,
  .colophon-v4-row .footer-mid,
  .colophon-v4-row .footer-end { justify-self: start; text-align: left; }
}

/* =========================================================
   About — philosophy journal (essay-page)
   ========================================================= */
.essay-page { position: relative; }

.es-step {
  border-top: 1px solid var(--hairline);
  padding: clamp(100px, 14vw, 180px) var(--margin);
  position: relative;
}
.es-step:first-of-type { border-top: 0; padding-top: clamp(140px, 16vw, 220px); }

.es-folio,
.es-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Opening */
.es-opening { }
.es-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.es-statement-sub,
.es-statement-secondary {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-soft);
  text-wrap: balance;
}

/* Philosophy — O/z/e/y */
.phil-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.phil-list li {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}
.phil-list li:first-child { border-top: 1px solid var(--hairline); }
.phil-letter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--fg);
  flex: none;
  width: clamp(80px, 12vw, 180px);
}
.phil-body,
.phil-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}
.phil-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.phil-desc {
  font-size: 16px;
  color: var(--fg-soft);
  max-width: 40ch;
  line-height: 1.5;
}

/* Why section */
.es-why-wrap { }
.es-why-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vw, 36px);
  max-width: 44ch;
}
.es-fragment {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.es-fragment.turn,
.es-fragment.accent {
  color: var(--fg);
  font-weight: 500;
  margin-top: clamp(12px, 2vw, 24px);
}
.es-fragment.dim { color: var(--fg-quiet); font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; margin-top: 0; }

/* Vision */
.es-vision-line,
.es-vision-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--fg);
  text-wrap: balance;
  max-width: 20ch;
}

/* Principles */
.prin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.prin-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--hairline);
}
.prin-list li:first-child { border-top: 1px solid var(--hairline); }
.prin-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-quiet);
  flex: none;
  width: 32px;
}
.prin-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg);
}

/* Closing */
.es-closing-primary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.es-closing-secondary {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--fg-soft);
  text-wrap: balance;
}

/* =========================================================
   Products page
   ========================================================= */
.products-head {
  padding: clamp(140px, 16vw, 220px) var(--margin) clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--hairline);
}
.products-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: clamp(20px, 2vw, 28px);
}
.products-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 100px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
  margin-top: clamp(20px, 3vw, 40px);
}
.products-title-em { color: var(--fg-soft); font-weight: 300; }

.product {
  padding: clamp(80px, 10vw, 140px) var(--margin);
  border-bottom: 1px solid var(--hairline);
}

.product-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 96px);
}
.product-spread.reverse { }
.product-spread.reverse .product-meta { order: 2; }
.product-spread.reverse .product-preview { order: 1; }

.product-no,
.product-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-quiet);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.product-by {
  font-family: var(--font-mono);
  font-size: 0.32em;
  color: var(--fg-quiet);
  letter-spacing: 0.04em;
  vertical-align: 0.6em;
  font-weight: 400;
}
.product-lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: clamp(12px, 1.6vw, 20px);
  max-width: 36ch;
  text-wrap: pretty;
}
.product-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 44ch;
  text-wrap: pretty;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.product-link:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.product-link svg   { transition: transform 240ms var(--ease); }
.product-link:hover svg { transform: translate(2px, -2px); }

/* Product UI preview frame */
.product-preview {
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 36px);
}

/* Product capability strip */
.product-caps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--hairline);
}
.product-caps-label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-quiet);
  margin-bottom: 4px;
}
.product-cap,
.product-caps li {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

/* Link arrow span */
.product-link-arrow {
  display: inline-block;
  transition: transform 240ms var(--ease);
}
.product-link:hover .product-link-arrow { transform: translate(2px, -2px); }

/* Connecting note */
.products-coda {
  padding: clamp(60px, 8vw, 100px) var(--margin);
  border-bottom: 1px solid var(--hairline);
}
.products-coda-line,
.products-coda-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .product-spread,
  .product-spread.reverse { grid-template-columns: 1fr; gap: 40px; }
  .product-spread.reverse .product-meta,
  .product-spread.reverse .product-preview { order: unset; }
  .product-spread.reverse .product-preview { order: -1; }
}

/* =========================================================
   Product UI frame (SHG / Spendrova previews)
   ========================================================= */
.ui-frame {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in oklab, var(--fg) 4%, transparent);
}
.ui-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-alt);
}
.ui-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--fg) 14%, transparent);
}
.ui-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-quiet);
}
.ui-body {
  padding: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.ui-row { display: flex; gap: 16px; }
.ui-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg);
}
.ui-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-quiet);
  text-transform: uppercase;
}
.ui-amt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.022em;
  color: var(--fg);
  line-height: 1;
}
.ui-amt.soft  { color: var(--fg-soft); }
.ui-amt.small { font-size: 16px; }

.ui-spark {
  width: 100%;
  height: 60px;
  display: block;
  color: var(--fg-soft);
  padding: 6px 0;
}

.ui-list { list-style: none; display: flex; flex-direction: column; }
.ui-list li,
.ui-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, auto);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--hairline) 60%, transparent);
  font-size: 13px;
  color: var(--fg);
}
.ui-list li:last-child,
.ui-list-row:last-child { border-bottom: 0; }
.ui-list li.dim { color: var(--fg-quiet); }

.ui-list-name { font-size: 13px; color: var(--fg); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ui-list-amt  { font-family: var(--font-mono); font-size: 12px; color: var(--fg-soft); text-align: right; white-space: nowrap; }

.ui-divider { height: 1px; background: var(--hairline); }

.ui-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.ui-status-pending { color: var(--fg-quiet); border: 1px solid color-mix(in oklab, var(--fg-quiet) 30%, transparent); }

.ui-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-quiet);
}
.ui-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.ui-num.pos           { color: #16A34A; }
.ui-list li.dim .ui-num { color: var(--fg-quiet); }

.ui-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  padding: 2px 5px;
  border: 1px solid color-mix(in oklab, var(--brand-primary) 25%, transparent);
  border-radius: 3px;
  white-space: nowrap;
  vertical-align: 1px;
}

.ui-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--bg-alt) 60%, transparent);
}
.ui-foot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-quiet);
}
.ui-foot-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}

/* =========================================================
   Image placeholder (striped, atmospheric)
   ========================================================= */
.imgph {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 30% 20%, color-mix(in oklab, var(--fg) 6%, transparent), transparent 60%),
    radial-gradient(80% 60% at 90% 90%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in oklab, var(--fg) 2.5%, transparent) 8px 9px);
  z-index: 0;
  opacity: 0.9;
}
.imgph .meta {
  position: absolute; inset: 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 1; pointer-events: none;
}
.imgph .meta .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--fg-soft); text-transform: uppercase;
}
.imgph .caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--fg-quiet); text-transform: uppercase;
  display: flex; justify-content: space-between;
  pointer-events: none;
}

/* =========================================================
   Pulse animation (live indicator)
   ========================================================= */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Hero network canvas
   ========================================================= */
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transition: opacity 400ms ease;
  will-change: transform, opacity;
}

/* =========================================================
   Footer social icons
   ========================================================= */
.colophon-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.colophon-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--fg-quiet);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}
.colophon-social-link svg { width: 14px; height: 14px; }
.colophon-social-link:hover {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* =========================================================
   About — editorial section marks (CSS counter watermarks)
   ========================================================= */
.essay-page { counter-reset: essay-sec; }
.es-step {
  counter-increment: essay-sec;
  overflow: hidden;
}
.es-step::after {
  content: "0" counter(essay-sec);
  position: absolute;
  right: -0.02em;
  bottom: -0.15em;
  font-family: var(--font-mono);
  font-size: clamp(100px, 20vw, 260px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--fg);
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.es-step > * { position: relative; z-index: 1; }

/* =========================================================
   Products — hover lift on preview frame
   ========================================================= */
.product-preview {
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
  will-change: transform;
}
.product:hover .product-preview {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px color-mix(in oklab, var(--fg) 7%, transparent);
}
.ui-frame {
  transition: box-shadow 300ms var(--ease);
}
.product:hover .ui-frame {
  box-shadow: 0 2px 0 color-mix(in oklab, var(--fg) 6%, transparent);
}

/* =========================================================
   Focus states (keyboard navigation)
   ========================================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Reduced motion — comprehensive override
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .reveal.in { opacity: 1; transform: none; transition: none; }
  html.js .reveal-delay-1,
  html.js .reveal-delay-2,
  html.js .reveal-delay-3,
  html.js .reveal-delay-4,
  html.js .reveal-delay-5 { transition-delay: 0ms; }
  .hero-network { display: none; }
  .product-preview,
  .ui-frame,
  .btn,
  .btn:hover,
  .outro-link,
  .outro-arrow,
  .colophon-social-link,
  .product-link,
  .product-link-arrow,
  .nav-links a,
  .masthead-nav a { transition: none; transform: none; }
}
