/* Rythmo Studio */

:root {
  color-scheme: light;
  --bone: #F8F6F2;
  --stone: #D9D2C7;
  --taupe: #8B8174;
  --ink-soft: #5E564C;
  --charcoal: #1B1917;
  --bronze: #9C7C4F;
  --gold: #C9A46A;      /* brighter bronze, for dark grounds */
  --rule-dark: #3A3631; /* hairline on charcoal */
  --terracotta: #8E4630; /* hero ground */
  --gold-light: #E3C48E; /* italic accent on terracotta */
  /* Page grounds */
  --beige: #E8DDCB;
  --sand: #E2CFB2;
  --sage: #CDD3BE;
  --sky: #CED8DA;
  --blush: #EBD3C8;
  --olive: #5E6140;
  --bronze-deep: #7A5E36; /* italic accent on pastel grounds */

  /* One tempo: every duration and stagger is a multiple of the beat */
  --beat: 120ms;
  --d6: calc(var(--beat) * 6);
  --d8: calc(var(--beat) * 8);
  --ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-leave: cubic-bezier(0.55, 0, 0.55, 0.2);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Söhne (Klim) is a licensed face: self-host the licensed files as "Söhne" in /assets/fonts.
     "Test Söhne" picks up the trial install locally; Hanken Grotesk is the fallback. */
  --sans: "Söhne", "Test Söhne", "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Logo: Optima (system font on Apple devices; license Optima nova for the web) */
  --logo: Optima, "Optima nova", "Optima LT Std", Candara, "Segoe UI", sans-serif;
  --max: 1320px;
  --gutter: clamp(24px, 6vw, 96px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 20vh, 240px);
  --header-h: 88px;
}

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

html {
  background: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Body stays transparent so the fixed tone layers (z-index -1) show through */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: inherit; }
:focus-visible { outline: 1.5px solid var(--bronze); outline-offset: 4px; }
::selection { background: var(--stone); color: var(--charcoal); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; z-index: 120; left: 16px; top: 16px;
  padding: 12px 18px; background: var(--charcoal); color: var(--bone);
  font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; color: var(--bone); }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
em { font-style: italic; color: var(--bronze); }
/* Italic accents are always the serif, set a touch larger to match the grotesque's x-height */
h1 em, h2 em, .statement em, .pull em, .lede em { font-family: var(--serif); font-size: 1.08em; letter-spacing: -0.01em; }
[data-tone="charcoal"] em { color: var(--gold); }
h2, .h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
p { margin: 0; max-width: 58ch; text-wrap: pretty; }
.lede { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); line-height: 1.5; letter-spacing: -0.005em; }
.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--charcoal);
}
.small { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.statement { font-size: clamp(2.5rem, 5.2vw, 5.25rem); line-height: 1.04; letter-spacing: -0.03em; }

/* Dark grounds: full-strength bone text, hairlines a step lighter than the ground */
[data-tone="charcoal"] { color: var(--bone); }
[data-tone="charcoal"] .eyebrow, [data-tone="charcoal"] .small { color: var(--stone); }
[data-tone="charcoal"] .u::before { background: var(--rule-dark); }
[data-tone="charcoal"] .u::after { background: var(--gold); }
[data-tone="charcoal"] .rhythm span { background: var(--gold); }
[data-tone="charcoal"] .row, [data-tone="charcoal"] .row:last-child, [data-tone="charcoal"] .step { border-color: var(--rule-dark); }
[data-tone="charcoal"] .row-desc, [data-tone="charcoal"] .step p { color: var(--stone); }
[data-tone="charcoal"] .numeral, [data-tone="charcoal"] .tier-num { color: var(--gold); }
[data-tone="charcoal"] .btn { border-color: var(--bone); color: var(--bone); }
[data-tone="charcoal"] .btn::before { background: var(--bone); }
[data-tone="charcoal"] .btn:hover, [data-tone="charcoal"] .btn:focus-visible { color: var(--charcoal); }
[data-tone="charcoal"] ::selection { background: var(--gold); color: var(--charcoal); }

/* Layout */
.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--section); }
.mt1 { margin-top: clamp(20px, 2.5vw, 32px); }
.mt2 { margin-top: clamp(32px, 4vw, 56px); }
.mt3 { margin-top: clamp(56px, 9vh, 112px); }

@media (min-width: 900px) {
  .at-1-3 { grid-column: 1 / 3; }
  .at-1-4 { grid-column: 1 / 4; }
  .at-1-7 { grid-column: 1 / 7; }
  .at-1-8 { grid-column: 1 / 8; }
  .at-1-9 { grid-column: 1 / 9; }
  .at-1-10 { grid-column: 1 / 10; }
  .at-1-11 { grid-column: 1 / 11; }
  .at-1-12 { grid-column: 1 / 12; }
  .at-2-8 { grid-column: 2 / 8; }
  .at-3-7 { grid-column: 3 / 7; }
  .at-3-12 { grid-column: 3 / 12; }
  .at-3-13 { grid-column: 3 / 13; }
  .at-4-9 { grid-column: 4 / 9; }
  .at-4-10 { grid-column: 4 / 10; }
  .at-5-11 { grid-column: 5 / 11; }
  .at-5-12 { grid-column: 5 / 12; }
  .at-6-13 { grid-column: 6 / 13; }
  .at-7-13 { grid-column: 7 / 13; }
  .at-8-13 { grid-column: 8 / 13; }
}

/* Header: fixed, frosted once the page scrolls */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--charcoal); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(248, 246, 242, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(27, 25, 23, 0.08);
  opacity: 0; transition: opacity var(--d6) var(--ease-leave);
}
.site-header.is-scrolled::before, html:not(.js) .site-header::before { opacity: 1; transition-timing-function: var(--ease-enter); }
.menu-open .site-header::before { opacity: 0; }
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; min-height: var(--header-h);
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; }
.wm-r { font-family: var(--logo); font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.contact-link { justify-self: end; font-size: 15px; }
.contact-link::before { background: transparent; }

.menu-btn {
  justify-self: start; display: inline-flex; align-items: flex-start;
  width: 52px; height: 44px; padding: 15px 0 0; color: inherit;
}
/* Whole-pixel lines and gaps so every stroke renders identically */
.menu-icon { display: flex; flex-direction: column; gap: 2px; width: 46px; height: 13px; }
.menu-icon span {
  display: block; flex: none; height: 1px; background: currentColor;
  transition: transform var(--d6) var(--ease-enter), opacity var(--d6) var(--ease-enter);
}
.menu-open .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(12deg); }
.menu-open .menu-icon span:nth-child(5) { transform: translateY(-6px) rotate(-12deg); }
.menu-open .menu-icon span:nth-child(2), .menu-open .menu-icon span:nth-child(3), .menu-open .menu-icon span:nth-child(4) { opacity: 0; }
.menu-btn:hover .menu-icon span { background: var(--bronze); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 10vh, 120px); background: var(--bone);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d6) var(--ease-leave), visibility 0s linear var(--d6);
}
.menu.is-open, html:not(.js) .menu:target { opacity: 1; visibility: visible; transition: opacity var(--d6) var(--ease-enter), visibility 0s; }
.menu .wrap { width: 100%; }
.menu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px var(--gap); align-items: end; }
@media (min-width: 900px) {
  .menu-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .menu-grid > ul { grid-column: 1 / 8; }
  .menu-close { grid-column: 1 / -1; }
}
/* Menu panels: hovering or focusing a menu item shows its panel on the right */
.menu-panels { display: grid; align-self: end; }
.menu-panel {
  grid-area: 1 / 1; max-width: 44ch;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--d6) var(--ease-leave), transform var(--d6) var(--ease-leave), visibility 0s linear var(--d6);
}
.menu.is-open .menu-panel.is-active, html:not(.js) .menu:target .menu-panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--d6) var(--ease-enter) var(--beat), transform var(--d6) var(--ease-enter) var(--beat), visibility 0s;
}
.menu-panel .eyebrow { margin-bottom: 16px; color: var(--ink-soft); }
.panel-text { margin-bottom: 24px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; letter-spacing: -0.01em; }
.news-item { display: block; padding-right: 32px; color: inherit; text-decoration: none; }
.news-title { display: block; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
.news-meta { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
@media (min-width: 900px) { .menu-panels { grid-column: 8 / 13; } }
@media (max-width: 899px) { .menu-panels { display: none; } }
.menu ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu-link {
  display: block; overflow: hidden; color: var(--charcoal); text-decoration: none;
  font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.12; letter-spacing: -0.03em;
}
.menu-link span { display: block; transform: translateY(105%); transition: transform var(--d6) var(--ease-leave), color var(--d6) var(--ease-leave); }
.menu.is-open .menu-link span, html:not(.js) .menu:target .menu-link span {
  transform: none; transition: transform var(--d8) var(--ease-enter) calc(var(--i, 0) * var(--beat) + var(--beat) * 2), color var(--d6) var(--ease-enter);
}
.menu-link:hover span, .menu-link[aria-current="page"] span { color: var(--bronze); font-family: var(--serif); font-style: italic; }
.menu-close { margin-top: 32px; font-size: 15px; }
.js .menu-close { display: none; }
.menu-open { overflow: hidden; }

/* Links: a resting hairline, with a bronze line drawn over it on hover */
.u {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-decoration: none;
}
.u::before, .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
}
.u::before { background: var(--stone); }
.nav .u::before { background: transparent; }
.u::after {
  background: var(--bronze);
  transform: scaleX(0); transform-origin: right center;
  transition: transform var(--d6) var(--ease-leave);
}
.u:hover::after, .u:focus-visible::after {
  transform: scaleX(1); transform-origin: left center;
  transition-timing-function: var(--ease-enter);
}
.u[aria-current="page"]::before { background: currentColor; }

/* Square, hairline button that fills on hover */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px;
  border: 1px solid var(--charcoal); border-radius: 999px; color: var(--charcoal);
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: color var(--d6) var(--ease-leave);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--charcoal);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform var(--d6) var(--ease-leave);
}
.btn:hover, .btn:focus-visible { color: var(--bone); transition-timing-function: var(--ease-enter); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); transition-timing-function: var(--ease-enter); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 4vw, 48px); }

/* Rhythm motif */
.rhythm {
  display: flex; align-items: stretch; gap: clamp(10px, 1.6vw, 22px);
  height: clamp(40px, 6vw, 72px);
}
.rhythm span { width: 1px; background: var(--taupe); transform-origin: top center; }

/* List rows */
.rows { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; }
ul.rows:not([class*="mt"]), ol.rows:not([class*="mt"]) { margin-top: 0; }
.row { position: relative; padding: 20px 48px 22px 0; border-top: 1px solid var(--stone); }
.row:last-child { border-bottom: 1px solid var(--stone); }
.row-in { display: block; transition: transform var(--d6) var(--ease-leave); }
.row-name { display: block; font-family: var(--sans); letter-spacing: -0.015em; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.25; }
.row-desc { display: block; margin-top: 6px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--charcoal); }
.row-name.big { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); line-height: 1.15; }
.row::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 25px; height: 18px; margin-top: -9px;
  background: repeating-linear-gradient(90deg, var(--bronze) 0 1px, transparent 1px 6px);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform var(--d6) var(--ease-leave);
}
.row:hover .row-in { transform: translateX(6px); transition-timing-function: var(--ease-enter); }
.row:hover::after { transform: scaleY(1); transition-timing-function: var(--ease-enter); }

/* Sections with fixed grounds (also the no-JS state) */
[data-tone="stone"] { background: var(--stone); }
[data-tone="charcoal"] { background: var(--charcoal); color: var(--bone); }
[data-tone="stone"] .row, [data-tone="stone"] .row:last-child { border-color: var(--taupe); }

/* Home: hero */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 12vh, 160px)); padding-bottom: var(--section); }
.hero-full {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 10vh, 120px);
}
.hero-full > .wrap { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.hero-video { z-index: 1; }
.hero-media.hero-media--black { background: var(--terracotta); }
.hero-full:has(.hero-media--black) em { color: var(--gold-light); }
.hero-media.hero-media--black::after { display: none; }
/* City-plan pattern: barely there, brighter around the cursor */
.plan { position: absolute; inset: 0; background-repeat: repeat; background-size: 480px 448px; background-position: left top; }
.plan-base { opacity: 0.09; }
.plan-lit {
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  transition: opacity var(--d8) var(--ease-leave);
}
.hero-full.is-lit .plan-lit { opacity: 0.3; transition-timing-function: var(--ease-enter); }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(27, 25, 23, 0.4), rgba(27, 25, 23, 0) 55%),
              linear-gradient(to bottom, rgba(27, 25, 23, 0.45), rgba(27, 25, 23, 0) 28%);
}
/* Header over the hero footage, before the frosted glass appears */
.site-header { transition: color var(--d6) var(--ease-enter); }
.site-header.on-media:not(.is-scrolled) { color: var(--bone); }
.site-header.on-media:not(.is-scrolled) .wordmark { text-shadow: 0 0 24px rgba(27, 25, 23, 0.35); }
.menu-open .site-header, .menu-open .site-header.on-media:not(.is-scrolled) { color: var(--charcoal); }
.menu-open .site-header .wordmark { text-shadow: none !important; }
.hero-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: grid; place-items: center; background: var(--stone); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-label { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); }
/* Add to .hero-full when the photograph or video is dark */
.hero--light-text { color: var(--bone); }
.hero--light-text em { color: var(--gold); }

/* Home: introduction beside an image */
.intro-sec { padding-block: clamp(56px, 10vh, 120px); }
.intro-sec .grid { align-items: center; row-gap: 40px; }
.intro-img { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; background: var(--stone); overflow: hidden; }
.intro-img image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .intro-img { aspect-ratio: 4 / 3; } }

/* Home: steps */
.steps { display: grid; gap: 48px var(--gap); margin-inline: 0; margin-bottom: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { border-top: 1px solid var(--stone); padding-top: 28px; }
.numeral {
  display: block; font-family: var(--serif); font-weight: 400; line-height: 1;
  font-size: clamp(3rem, 5vw, 4.5rem); color: var(--bronze); letter-spacing: -0.01em;
}
.step h3 { margin: 24px 0 12px; font-family: var(--sans); letter-spacing: -0.02em; font-size: clamp(2rem, 1.6rem + 1vw, 2.75rem); line-height: 1.05; }
.step p { font-size: 18px; color: var(--charcoal); }
.bronze-rule { display: block; width: 64px; height: 1px; background: var(--gold); margin-bottom: 20px; }

/* Home: who */
.cols { display: grid; gap: 56px var(--gap); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols h3 { margin-bottom: 16px; }

/* Footer */
.site-footer { padding-block: 40px 56px; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px;
  margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft);
}
.foot li { display: flex; align-items: center; min-height: 44px; }
[data-tone="charcoal"] .foot { color: var(--stone); }

/* Readiness */
.pull {
  max-width: 20ch; font-family: var(--sans); line-height: 1.05; letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}
.tiers { position: relative; }
.spine {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -0.5); width: 1px;
  background: var(--bronze); transform-origin: top center;
}
.tier + .tier { margin-top: clamp(80px, 14vh, 160px); }
.tier-num {
  margin: 0 0 20px; font-family: var(--serif); line-height: 1; color: var(--bronze);
  font-size: clamp(3.5rem, 8vw, 7rem); letter-spacing: -0.01em;
}
.tier-title { font-family: var(--sans); font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.015em; }
.tier-sub { display: block; margin-top: 14px; max-width: 34ch; font-size: 18px; color: var(--charcoal); }
.tier-head { margin-bottom: 32px; }
@media (min-width: 900px) { .tier-head { margin-bottom: 0; padding-right: var(--gap); } .tier-num { margin: 0; } }

/* Tier III accordion */
.acc summary { list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc-sum { display: grid; grid-template-columns: minmax(0, 1fr); }
.acc-sum .tier-sub { margin-bottom: 32px; }
.acc-line {
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 64px; border-top: 1px solid var(--stone);
}
.acc-plus { position: relative; width: 22px; height: 22px; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; background: var(--charcoal); }
.acc-plus::before { left: 0; right: 0; top: 50%; height: 1px; }
.acc-plus::after { top: 0; bottom: 0; left: 50%; width: 1px; transition: transform var(--d6) var(--ease-enter); }
.acc[open] .acc-plus::after { transform: scaleY(0); }
.acc summary:hover .acc-plus::before, .acc summary:hover .acc-plus::after { background: var(--bronze); }
.acc-body { overflow: hidden; }
.acc-rows .row:first-child { border-top: 0; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .acc-sum, .acc-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--gap); }
  .acc-sum .tier-title, .acc-sum .tier-sub { grid-column: 1 / 5; padding-right: var(--gap); }
  .acc-sum .tier-sub { margin-bottom: 0; }
  .acc-line { grid-column: 5 / 11; grid-row: 1 / 3; align-self: start; }
  .acc-rows { grid-column: 5 / 11; }
}

.later { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.note { padding-top: 20px; border-top: 1px solid var(--stone); font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 72ch; }

/* ——— Motion layer (only when JS runs and motion is allowed) ——— */
.tone {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  transition: opacity var(--d8) var(--ease-enter);
}
.tone.on { opacity: 1; }
.tone-stone { background: var(--stone); }
.tone-charcoal { background: var(--charcoal); }

.motion [data-reveal], .motion [data-fade], .motion [data-rows], .motion [data-draw] { visibility: hidden; }
.motion .spine { transform: scaleY(0); }

/* Line masks; padding keeps ascenders and descenders clear of the clip */
.line { display: block; overflow: hidden; padding: 0.06em 0 0.12em; margin: -0.06em 0 -0.12em; }
.li { display: block; will-change: transform; }

/* Cover while waiting for the first-visit intro */
.intro-pre body::before { content: ""; position: fixed; inset: 0; z-index: 89; background: var(--bone); }
.intro { position: fixed; inset: 0; z-index: 90; color: var(--charcoal); }
.intro-bg { position: absolute; inset: 0; background: var(--bone); }
.intro-lines { position: absolute; inset: 0; }
.intro-lines .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); height: 100%; }
.intro-lines span { border-left: 1px solid var(--charcoal); }
.intro-mark { position: fixed; transform-origin: 50% 50%; }
.intro-mask { width: 100%; height: 100%; overflow: hidden; }
.intro-inner { width: 100%; height: 100%; }
.intro-on .site-header .wordmark { visibility: hidden; }

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--bone); border-top: 1px solid var(--stone);
  transform: translateY(100%); visibility: hidden;
}
.curtain-in .curtain { visibility: visible; transform: translateY(0); }
.curtain.is-covering { visibility: visible; transform: translateY(0); transition: transform var(--d8) var(--ease-enter); }
.curtain.is-lifting { visibility: visible; transform: translateY(-100%); transition: transform var(--d8) var(--ease-leave); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  body { animation: rs-fade 200ms ease-out both !important; }
}
@keyframes rs-fade { from { opacity: 0; } to { opacity: 1; } }

/* ——— Grounds: beige, olive and pastels, one per block ——— */
[data-ground="beige"] { background: var(--beige); }
[data-ground="sand"] { background: var(--sand); }
[data-ground="sage"] { background: var(--sage); }
[data-ground="sky"] { background: var(--sky); }
[data-ground="blush"] { background: var(--blush); }
[data-ground="olive"] { background: var(--olive); color: var(--bone); }
[data-ground="terracotta"] { background: var(--terracotta); color: var(--bone); }
[data-ground="beige"] em, [data-ground="sand"] em, [data-ground="sage"] em, [data-ground="sky"] em, [data-ground="blush"] em { color: var(--bronze-deep); }
[data-ground="olive"] em, [data-ground="terracotta"] em { color: var(--gold-light); }
[data-ground="olive"] .numeral, [data-ground="terracotta"] .numeral, [data-ground="olive"] .tier-num, [data-ground="terracotta"] .tier-num { color: var(--gold-light); }
[data-ground] .numeral, [data-ground] .tier-num { color: var(--bronze-deep); }
[data-ground] .row, [data-ground] .row:last-child, [data-ground] .step, [data-ground] .acc-line, [data-ground] .note { border-color: rgba(27, 25, 23, 0.16); }
[data-ground="olive"] .row, [data-ground="olive"] .row:last-child, [data-ground="olive"] .step,
[data-ground="terracotta"] .row, [data-ground="terracotta"] .row:last-child, [data-ground="terracotta"] .step { border-color: rgba(248, 246, 242, 0.22); }
[data-ground] .eyebrow { color: currentColor; }
[data-ground] .u::before { background: rgba(27, 25, 23, 0.2); }
[data-tone="charcoal"][data-ground] .u::before { background: rgba(248, 246, 242, 0.3); }

/* ——— Inner pages: one continuous field of windows ——— */
.pat-page { position: relative; isolation: isolate; }
.pat-page > .pat { position: relative; background: transparent; }
.pat-page > .pat > .wrap { position: relative; z-index: 1; }
.pat-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pat-page .plan-base { opacity: 0.06; }
.pat-page .plan-lit { transition: opacity var(--d8) var(--ease-leave); }
.pat-page.is-lit .plan-lit { opacity: 0.26; transition-timing-function: var(--ease-enter); }
