/* Then. home page — two-color editorial system. */

/* Then A1 periods/colons render square; punctuation is rerouted to
   Cormorant Garamond via JS (.punct wrap) at boot. The Cormorant family
   is loaded by the Google Fonts css2 link in <head>. */
@font-face {
  font-family: 'Then A1';
  src: url('fonts/Then-A1-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------- Type ------- */
:root {
  --display: 'Then A1', 'Cormorant Garamond', 'GT Sectra', Georgia, serif;
  --serif: 'Cormorant Garamond', 'GT Sectra', 'Canela', Georgia, serif;
  --sans:  'DM Sans', 'Söhne', 'Helvetica Neue', system-ui, sans-serif;
  --annot: 'Caveat', 'Homemade Apple', cursive;

  --bg: #ddd9d3;
  --text: #241f20;

  --pad-x: clamp(32px, 6vw, 120px);
  --row: clamp(80px, 10vw, 140px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 700ms cubic-bezier(.2,.6,.2,1), color 700ms cubic-bezier(.2,.6,.2,1);
  position: relative;
}
body::before {
  /* subtle shifting gradient */
  content: '';
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 12%, color-mix(in oklab, currentColor 22%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 82% 28%, color-mix(in oklab, currentColor 16%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 65% 50% at 55% 88%, color-mix(in oklab, currentColor 20%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 45% 35% at 38% 55%, color-mix(in oklab, currentColor 12%, transparent) 0%, transparent 70%);
  opacity: .85;
  animation: drift 14s ease-in-out infinite alternate;
}
body::after {
  /* paper grain */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  opacity: .08;
  mix-blend-mode: multiply;
}
.page { position: relative; z-index: 2; }
#root { position: relative; z-index: 2; }

/* Mise-en-Scène — page background treatment surface. DORMANT = transparent, so
   Then.'s existing body bg + ::before drift + ::after grain are unchanged. The
   authoring tool bakes a Solid/Gradient/Video/Dither fill in here per page.
   Fixed full-bleed, behind .page content (z-index 0, under .page's z-index 2). */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-bg > good-gradient,
.page-bg > good-dither,
.page-bg > video,
.page-bg > .page-bg-style { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-bg > video { object-fit: cover; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  66%  { transform: translate3d(-2.5%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.1); }
}

a { color: inherit; text-decoration: none; }
::selection { background: currentColor; color: var(--bg); }

/* ------- Utilities ------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 8.8vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.display-lg {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.display-md {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.008em;
  margin: 0;
}
.display-sm {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
}
.display-xs {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  margin: 0;
}
.display em, .display-lg em, .display-md em, .display-sm em, .display-xs em { font-style: italic; font-weight: 500; font-family: var(--serif); }
.display .punct, .display-lg .punct, .display-md .punct, .display-sm .punct, .display-xs .punct,
.prose h2 .punct, .prose h3 .punct, .prose .pull .punct {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-style: normal;
  font-weight: 500;
  margin-left: -0.05em;
  margin-right: 0.01em;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.32;
  max-width: min(1100px, 92%);
  margin: 44px 0 0;
  opacity: 0.88;
  text-wrap: balance;
}

/* Louder lede inside the Editorial hero */
.hero-editorial .lede {
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  opacity: 1;
  max-width: min(820px, 92%);
}
.hero-editorial .lede em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  margin: 0 0 18px;
  max-width: 560px;
}
.pitch {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.003em;
  margin: 0;
}
.pitch em { font-style: italic; }

/* ------- Nav ------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 22px var(--pad-x);
  /* White-over-animation variant: pure transparent — text floats on the
     hero animation, then on the solid body as you scroll. */
  background: transparent;
}
.nav-mark { color: currentColor; display: inline-flex; }
.nav-mark svg { display: inline-block; }

/* Wordmark — inherits page color via currentColor on the symbol's paths. */
.wordmark-svg {
  display: block;
  height: auto;
  color: currentColor;
}
.nav-links {
  display: flex;
  gap: 40px;
  justify-self: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13.75px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity .3s;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { opacity: 1; }
.nav-mobile-links a.is-current { opacity: 1; }
.nav-mobile-links a.is-current .idx { opacity: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13.75px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); }
.nav-cta .nav-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; transition: background .3s; }
.nav-cta:hover .nav-cta-dot { background: var(--bg); }

/* ------- Mobile nav ------- */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px 0 10px 14px;
  color: currentColor;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.75px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.nav-burger .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-burger .bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s cubic-bezier(.2,.6,.2,1), opacity .2s;
}
.nav-burger[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 20%, color-mix(in oklab, currentColor 10%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 80%, color-mix(in oklab, currentColor 8%, transparent) 0%, transparent 65%);
  display: flex;
  flex-direction: column;
  padding: 120px var(--pad-x) calc(var(--pad-x) * 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s cubic-bezier(.2,.6,.2,1), transform .4s cubic-bezier(.2,.6,.2,1), visibility 0s linear .4s;
}
.nav-mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s cubic-bezier(.2,.6,.2,1), transform .4s cubic-bezier(.2,.6,.2,1), visibility 0s;
}
.nav-mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 4vh, 32px);
  margin-top: 8vh;
}
.nav-mobile-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--display);
  font-size: clamp(44px, 11vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 0;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s, transform .5s;
}
.nav-mobile[data-open="true"] .nav-mobile-links a {
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile[data-open="true"] .nav-mobile-links a:nth-child(1) { transition-delay: .08s; }
.nav-mobile[data-open="true"] .nav-mobile-links a:nth-child(2) { transition-delay: .14s; }
.nav-mobile[data-open="true"] .nav-mobile-links a:nth-child(3) { transition-delay: .20s; }
.nav-mobile[data-open="true"] .nav-mobile-links a:nth-child(4) { transition-delay: .26s; }
.nav-mobile[data-open="true"] .nav-mobile-links a:nth-child(5) { transition-delay: .32s; }
.nav-mobile-links a .idx {
  font-family: var(--sans);
  font-size: 13.75px;
  font-weight: 800;
  letter-spacing: 0.22em;
  opacity: 0.45;
  align-self: flex-start;
  margin-top: 14px;
  min-width: 28px;
}
.nav-mobile-links a.is-fresh { font-style: italic; }
.nav-mobile-links a.is-fresh .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 4px;
  position: relative;
  align-self: center;
  flex-shrink: 0;
}
.nav-mobile-links a.is-fresh .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: navPulse 2s cubic-bezier(.2,.6,.2,1) infinite;
}
@keyframes navPulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.nav-mobile-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

body.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links { display: none; }
}

/* ------- Hero ------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(140px, 14vw, 220px) var(--pad-x) clamp(40px, 6vw, 80px);
  overflow: hidden;
  display: flex;
  margin-top: calc(var(--nav-h, 76px) * -1);
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--bg-opacity, 0.55);
  filter: saturate(var(--bg-sat, 0.85)) blur(var(--bg-blur, 0px));
  transition: opacity 400ms ease, filter 400ms ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--bg-wash, 0.55);
  mix-blend-mode: normal;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.hero > .hero-copy,
.hero > .hero-meta,
.hero > .stroke-bar { z-index: 2; position: relative; }
.hero-copy { position: relative; z-index: 2; max-width: 1120px; }

.stroke-bar {
  height: 2px;
  background: currentColor;
  margin-top: clamp(56px, 7vw, 96px);
  transform-origin: left center;
  animation: extend 1200ms cubic-bezier(.2,.6,.2,1) forwards;
}
@keyframes extend { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

/* Stagger entry — each .stagger child animates from translateY(14px)/opacity:0 → 1 */
.stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1);
}
.stagger.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* ------- Buttons ------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color .4s ease, background .4s ease, backdrop-filter .4s ease;
  cursor: pointer;
  color: inherit;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: var(--bg); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
  position: relative;
  padding: 4px 0;
  transition: opacity .3s;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* ------- Sections ------- */
.section {
  position: relative;
  padding: var(--row) var(--pad-x);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid currentColor;
  padding-top: 22px;
  margin-bottom: clamp(48px, 7vw, 96px);
  opacity: 0.9;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  transition: opacity .3s, gap .3s;
}
.more-link:hover { opacity: 1; gap: 16px; }

/* Small label — DM Sans uppercase tight tracking */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label-soft { opacity: 0.55; }
.label-medium { opacity: 0.7; }

.annot {
  font-family: var(--annot);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.85;
}

/* ------- Manifesto ------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.manifesto-col-b { padding-top: 12px; }
.caveat-note { margin: 0; }
.principles {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  border-top: 1px solid color-mix(in oklab, currentColor 50%, transparent);
}
.principles li {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in oklab, currentColor 20%, transparent);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  transition: padding .35s ease;
}
.principles li:hover { padding-left: 12px; }

/* ------- Latest video ------- */
.latest-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: end;
}
.latest-media {
  position: relative;
  aspect-ratio: 16 / 10;
}
.thumb-plate {
  position: relative;
  width: 100%; height: 100%;
  border: 1px solid color-mix(in oklab, currentColor 35%, transparent);
  overflow: hidden;
  background: color-mix(in oklab, currentColor 4%, transparent);
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.latest-card:hover .thumb-plate { transform: scale(1.01); }
.thumb-overlay {
  position: absolute;
  left: 32px;
  bottom: 32px;
  right: 32px;
  max-width: 70%;
}
.play-btn {
  position: absolute;
  top: 32px; right: 32px;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s cubic-bezier(.2,.6,.2,1), background .4s, color .4s;
  padding-left: 4px;
}
.latest-card:hover .play-btn { transform: scale(1.1); background: var(--text); color: var(--bg); }

.latest-meta { padding-bottom: 22px; }

/* Collage shapes used inside thumbnail plates */
.shape-svg { display: block; width: 100%; height: auto; color: currentColor; fill: currentColor; }

/* ------- Video grid ------- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px) clamp(28px, 3vw, 48px);
}
.vcard {
  display: block;
  position: relative;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.vcard:hover { transform: translateY(-4px); }
.vcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in oklab, currentColor 30%, transparent);
  background: color-mix(in oklab, currentColor 3%, transparent);
  overflow: hidden;
}
.vcard-shape {
  position: absolute;
  top: 18%;
  left: 14%;
  width: 56%;
  opacity: 0.85;
  transition: opacity .6s ease;
}
.vcard:hover .vcard-shape { opacity: 1; }
.vcard-num { position: absolute; top: 18px; left: 18px; }
.vcard-len { position: absolute; bottom: 18px; right: 18px; opacity: 0.7; }
.vcard-body { padding: 22px 0 0; }

/* ------- Newsletter ------- */
.newsletter { padding-top: calc(var(--row) * 0.7); padding-bottom: calc(var(--row) * 1.1); }
.news-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
  border-top: 2px solid currentColor;
  padding-top: clamp(60px, 7vw, 100px);
}
.news-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.news-label {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-label input {
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 300;
  color: currentColor;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklab, currentColor 40%, transparent);
  padding: 10px 0 14px;
  outline: none;
  transition: border-color .4s;
}
.news-label input::placeholder { color: currentColor; opacity: 0.4; font-style: italic; }
.news-label input:focus { border-color: currentColor; }
.news-form.is-focused { transform: translateY(-1px); }
.btn-submit { margin-top: 10px; }
.news-thanks { padding: 20px 0; }

/* ------- Footer ------- */
.footer { padding: 0 var(--pad-x) 40px; position: relative; }
.footer-stroke {
  height: 2px;
  background: currentColor;
  margin: 0 calc(var(--pad-x) * -1);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: clamp(30px, 4vw, 80px);
  padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 70px);
}
.flink { list-style: none; padding: 0; margin: 14px 0 0; }
.flink li { padding: 6px 0; font-size: 14px; }
.flink a { opacity: 0.8; transition: opacity .3s, padding-left .3s; display: inline-block; }
.flink a:hover { opacity: 1; padding-left: 6px; }

.footer-theme { justify-self: end; max-width: 300px; }

.palette-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 70px) 0 clamp(36px, 4vw, 60px);
  border-bottom: 1px solid color-mix(in oklab, currentColor 25%, transparent);
}
.palette-strip .dots {
  grid-template-columns: repeat(11, 1fr);
  max-width: 620px;
  justify-self: end;
  gap: 18px;
}
.palette-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin-top: 6px;
}

.dots {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 18px;
  max-width: 620px;
}
.dot {
  width: 100%;
  aspect-ratio: 1;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--chip, currentColor);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .3s;
  background: var(--dot-bg, transparent);
}
.dot:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--chip, currentColor);
}
.dot-active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--chip, currentColor), 0 0 0 5px color-mix(in oklab, currentColor 12%, transparent);
}
.dot-inner {
  position: absolute;
  width: 34%; height: 34%;
  left: 33%; top: 33%;
  border-radius: 50%;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid color-mix(in oklab, currentColor 25%, transparent);
  padding-top: 26px;
}

/* ------- Reading pages (articles) ------- */
/* Long-form reading scrolls plain prose under the sticky nav, so the nav
   needs a legible backdrop here (other pages float it over a hero). Same
   translucent-blur treatment the brand uses on .btn-primary. Scoped to
   body.reading so index/essays/about pages are untouched. */
.reading .nav {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, currentColor 12%, transparent);
}
/* Plain reading field — no drifting gradient/grain behind an essay. */
.reading::before { display: none; }

/* ------- Article (essay reading page) ------- */
/* One Article rendered into a page (essays/<slug>.html). Centered reading
   measure, Then-A1 display title, DM Sans prose, optional editorial thread.
   Inherits the active EST theme via --bg / --text like every other surface. */
.article {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h, 76px) + clamp(40px, 6vw, 88px)) var(--pad-x) 0;
}
.article-head { max-width: 920px; margin: 0 auto; }
.article-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px 32px;
  flex-wrap: wrap;
  border-top: 2px solid currentColor;
  padding-top: 20px;
}
.article-title { margin-top: clamp(28px, 4vw, 52px); }
.article-dek {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.34;
  margin: clamp(22px, 3vw, 36px) 0 0;
  max-width: 780px;
  opacity: 0.86;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px 40px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3.5vw, 44px);
}
.article-meta .more-link { opacity: 0.85; }
.article-rule {
  height: 1px;
  max-width: 920px;
  margin: clamp(38px, 5vw, 68px) auto 0;
  background: color-mix(in oklab, currentColor 28%, transparent);
}

/* ----- Prose ----- */
.prose {
  max-width: 680px;
  margin: clamp(44px, 6vw, 80px) auto clamp(56px, 7vw, 104px);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
}
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.45em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.006em;
  margin-top: 1.7em;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.16;
  margin-top: 1.5em;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  transition: text-decoration-color .3s;
}
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 500; }
.prose em { font-style: italic; }
.prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.4;
  margin: 1.7em 0;
  padding-left: 28px;
  border-left: 2px solid currentColor;
  opacity: 0.9;
}
.prose .pull {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.006em;
  margin: 1.4em 0;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: color-mix(in oklab, currentColor 55%, transparent); }
.prose hr { border: 0; border-top: 1px solid color-mix(in oklab, currentColor 25%, transparent); margin: 2.2em 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: color-mix(in oklab, currentColor 9%, transparent);
  padding: 0.1em 0.36em;
  border-radius: 3px;
}
.prose img { max-width: 100%; height: auto; display: block; margin: 1.6em 0; }
.prose figcaption { font-family: var(--sans); font-size: 13px; opacity: 0.6; margin-top: 8px; }

/* ----- Footnotes (Substack-sync flow: clean refs + a quiet end-section) ----- */
.prose .footnote-ref { font-size: 0.72em; line-height: 0; vertical-align: super; }
.prose .footnote-ref a { text-decoration: none; padding: 0 0.12em; }
.prose .footnotes-rule { margin-top: 3em; }
.prose .footnotes { font-family: var(--sans); font-size: 15px; opacity: 0.78; }
.prose .footnotes ol { padding-left: 1.5em; }
.prose .footnotes li { margin-top: 0.9em; }
.prose .footnotes li > p { display: inline; }
.prose .footnotes li::marker { color: color-mix(in oklab, currentColor 55%, transparent); }
.prose .footnote-back { text-decoration: none; margin-left: 0.35em; opacity: 0.55; }
.prose .footnote-back:hover { opacity: 1; }

/* ----- Thread (editorial, numbered — not a social-UI mimic) ----- */
.thread {
  max-width: 680px;
  margin: 0 auto clamp(56px, 7vw, 104px);
  border-top: 2px solid currentColor;
  padding-top: clamp(30px, 4vw, 50px);
}
.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.thread-list { list-style: none; padding: 0; margin: clamp(26px, 3vw, 40px) 0 0; }
.thread-post {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in oklab, currentColor 18%, transparent);
}
.thread-post:first-child { border-top: 1px solid color-mix(in oklab, currentColor 18%, transparent); }
.thread-idx { padding-top: 2px; }
.thread-post-body .body { font-size: 16px; max-width: none; margin: 0; }

/* ----- Read next / back ----- */
.article-foot {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid color-mix(in oklab, currentColor 25%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ------- Responsive ------- */
@media (max-width: 1024px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .latest-card { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .news-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-theme { justify-self: start; }
  .palette-strip { grid-template-columns: 1fr; }
  .palette-strip .dots { justify-self: start; max-width: 100%; }
}
@media (max-width: 640px) {
  .vgrid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .dots { grid-template-columns: repeat(11, 1fr); }
  /* Shrink the hero headline so each line fits on narrow viewports. */
  .hero-copy .display {
    font-size: clamp(32px, 8.8vw, 48px);
    letter-spacing: -0.02em;
  }
}

/* Mission and writing — October 2026. Keep the existing Then type and palette. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--bg); color: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
[id] { scroll-margin-top: 120px; }
.nav { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav-mark svg { width: clamp(100px, 13vw, 180px); height: auto; }
.nav-links { gap: clamp(16px, 2.5vw, 40px); }
.mission-site .section { padding-top: clamp(64px, 8vw, 116px); padding-bottom: clamp(64px, 8vw, 116px); }
.story-section + .story-section { border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.story-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: start; }
.story-copy .body, .responsibility .body { font-size: 17px; line-height: 1.7; font-weight: 400; }
.story-copy .story-lead { font-size: 23px; line-height: 1.45; margin-bottom: 26px; }
.text-link { display: inline-block; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.label-soft, .nav-mobile-links a .idx, .nav-mobile-foot { opacity: .8; }
.more-link { opacity: 1; }
.responsibilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: 56px; }
.responsibility .display-sm { margin-top: 10px; }
.responsibility-intent { font-size: 19px; font-weight: 600; margin: 22px 0 12px; }
.guiding-question { padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; }
.diagram-caption { font-size: 14px; font-weight: 400; max-width: 740px; margin: 32px 0 0; }
.practice-diagram { margin: 56px 0 0; }
.practice-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.practice-steps li { padding: 18px 26px 24px 0; }
.practice-steps li + li { padding-left: 26px; }
/* One transparent rail: arrow tips and shaft share y=10, independent of font metrics. */
.practice-flow { display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.practice-steps h3 { font-size: 21px; line-height: 1.25; margin: 22px 0 12px; font-weight: 600; }
.practice-steps p { font-size: 16px; font-weight: 400; line-height: 1.5; max-width: 230px; }
.return-path { display: flex; align-items: center; gap: 24px; padding: 4px 24px 20px; border: 1px solid; border-top: 0; border-radius: 0 0 28px 28px; }
.return-arrow { flex: 0 0 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.return-path p { margin: 0; font-size: 17px; font-weight: 400; }
.garden-outcome { margin-top: 54px; padding-left: 28px; border-left: 2px solid; }
.garden-outcome p { margin-top: 20px; }
.reading-list { margin-top: 44px; }
.reading-list > a { padding: 32px 68px 30px 0; display: block; position: relative; border-top: 1px solid; }
.reading-list h3 { margin: 18px 0 14px; max-width: 820px; }
.reading-list p { font-size: 17px; margin: 0; }
.reading-arrow { position: absolute; top: 36px; right: 12px; font-size: 36px; transition: transform .2s; }
.reading-list a:hover .reading-arrow { transform: translate(4px, -4px); }
.newsletter h2 { margin: 24px 0; }
.newsletter .body { font-size: 17px; font-weight: 400; }
.subscribe-link { align-self: center; }
.subscribe-link p { margin-top: 22px; max-width: 370px; }
.page-intro { border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.page-intro h1 { margin-top: 28px; max-width: 1100px; }
.intro-dek { font-size: clamp(20px, 2.2vw, 28px); max-width: 780px; margin: 32px 0 0; line-height: 1.5; font-weight: 400; }
.archive-description { display: block; margin-top: 12px; font-size: 17px; }
.latest-card { gap: 6vw; margin-bottom: 64px; }
.latest-card h2 { margin-top: 24px; }
.motion-toggle { position: relative; z-index: 3; align-self: flex-start; font: 500 13px var(--sans); color: var(--text); background: var(--bg); border: 1px solid; border-radius: 24px; padding: 10px 16px; cursor: pointer; margin-top: 24px; }
.motion-toggle[hidden] { display: none; }
.hero-editorial .hero-copy { max-width: none; }
.hero-editorial .hero-copy .display { font-size: clamp(40px, 7.2vw, 110px); }
.hero-editorial .hero-copy .lede { max-width: 720px; }
.hero-editorial .hero-bg::after { background: linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--bg) 90%, transparent) 62%, color-mix(in srgb, var(--bg) 50%, transparent)); opacity: .85; }
/* Keep background decoration still; hero and artwork have explicit controls. */
body::before, .nav-mobile-links a.is-fresh .pulse::after { animation: none; }
/* Content stays readable if scripts or animation are unavailable. */
.stagger { opacity: 1; transform: none; }
@media (min-width: 721px) and (max-width: 1000px) {
  .nav { padding-left: 28px; padding-right: 28px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; }
  .nav-links a { font-size: 11px; }
}
@media (max-width: 800px) {
  .story-split { grid-template-columns: 1fr; }
  .responsibilities { gap: 24px; }
  .practice-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .practice-steps li + li { padding-left: 0; }
  .practice-flow { display: none; }
  .practice-steps li { padding-top: 28px; border-top: 2px solid; }
}
@media (max-width: 600px) {
  :root { --pad-x: 24px; }
  .hero { min-height: 90svh; padding-top: 160px; }
  .hero-editorial .hero-copy .display { font-size: clamp(31px, 8.2vw, 49px); }
  .hero-editorial .lede { font-size: 20px; max-width: 100%; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .section-head { align-items: flex-start; gap: 20px; flex-wrap: wrap; }
  .responsibilities { grid-template-columns: 1fr; margin-top: 30px; gap: 44px; }
  .responsibility .body { max-width: none; }
  .guiding-question { margin-bottom: 0; }
  .practice-steps { grid-template-columns: 1fr; gap: 0; }
  .practice-steps li { padding: 22px 0; }
  .practice-steps h3 { margin: 12px 0 8px; }
  .practice-steps p { max-width: none; margin: 0; }
  .return-path { padding: 12px 16px; gap: 14px; }
  .btn-primary { font-size: 12px; letter-spacing: .12em; padding: 16px 20px; }
  .nav-mobile { padding-top: 90px; overflow-y: auto; }
  .nav-mobile-links { margin-top: 0; gap: 24px; }
  .nav-mobile-links a { font-size: 30px; }
  .nav-mobile-foot { margin-top: 28px; }
  .palette-strip .dots { grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; gap: 16px; }
  .palette-strip { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .display-lg { font-size: 36px; }
  .display-md { font-size: 32px; }
  .display-sm { font-size: 26px; }
}

/* Square-particle studies — generous cream fields, related to Then.Design's
   sculptural point-cloud art. Text and controls remain ordinary HTML. */
.mission-site::before { display: none; }
.responsibilities { display: block; margin-top: 38px; }
.responsibility { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6vw, 84px); padding: 48px 0; }
.responsibility + .responsibility { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.responsibility:nth-child(2) .motion-study { order: 2; }
.responsibility-copy { min-width: 0; }
.responsibility .display-sm { font-size: clamp(36px, 4vw, 58px); margin-top: 14px; }
.responsibility .guiding-question { margin-bottom: 0; }
.motion-study { position: relative; min-width: 0; margin: 0; }
.square-art { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #ddd9d3; overflow: hidden; }
.square-art img, .square-art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.square-art img { object-fit: contain; }
.square-art canvas { visibility: hidden; }
.square-art.is-rendered canvas { visibility: visible; }
.square-art.is-rendered img { visibility: hidden; }
.art-toggle { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: #ddd9d3; color: #241f20; border: 0; padding: 12px; cursor: pointer; }
.art-toggle svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.art-toggle .art-icon-play, .art-toggle[data-paused="true"] .art-icon-pause { display: none; }
.art-toggle[data-paused="true"] .art-icon-play { display: block; }
.art-toggle:focus-visible { outline: 2px solid #241f20; outline-offset: 2px; }
.art-toggle[hidden] { display: none; }
.motion-study-wide { margin: 48px 0 24px; }
.motion-study-wide .square-art { aspect-ratio: 8 / 3; }
.motion-study-wide + .practice-diagram { margin-top: 24px; }
.garden-caption { margin-top: 24px; }
@media (max-width: 800px) {
  .responsibility { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  .responsibility { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 44px; }
  .responsibility:nth-child(2) .motion-study { order: initial; }
  .responsibility .display-sm { font-size: 40px; }
  .square-art { aspect-ratio: 6 / 5; }
  .motion-study-wide { margin-top: 28px; }
  .motion-study-wide .square-art { aspect-ratio: 4 / 3; }
  .art-toggle { top: 6px; right: 8px; }
}

/* Homepage introduction stays on one line above the mobile breakpoint. */
@media (min-width: 721px) {
  .hero-editorial .lede.hero-intro { max-width: none; font-size: clamp(18px, 2vw, 32px); white-space: nowrap; }
}
