/* ============================================================
   Kapers — design system
   Living green on luminous paper. One gold. Growth, not fade.
   ============================================================ */

/* ---------- type ---------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-italic-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('/fonts/fragment-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #fbf7ec;
  --paper-warm: #f6efdd;
  --paper-deep: #efe6cd;
  --ink: #171f10;
  --ink-soft: #4a5539;
  --ink-faint: #5c6647; /* AA: >=4.5:1 against paper/paper-warm/paper-deep */
  --leaf: #3c6b1e;
  --leaf-deep: #24430f;
  --moss: #7d9c72;
  --gold: #b8892f;
  --gold-ink: #7a5a1e;
  --line: rgba(36, 67, 15, 0.16);
  --line-strong: rgba(36, 67, 15, 0.38);

  /* dark app-glass — reserved for product surfaces */
  --glass-bg: #10150f;
  --glass-surface: #171e14;
  --glass-raise: #1e2719;
  --glass-line: #2b3524;
  --glass-text: #e9efe3;
  --glass-text-2: #a9b59c;
  --glass-text-3: #71805f;
  --glass-pos: #8fc47f;
  --glass-neg: #cf9270;
  --glass-gold: #c9a24b;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --mono: 'Fragment Mono', 'SF Mono', Menlo, monospace;

  --radius: 3px;

  /* motion — ported from Garden's motion language (docs/MOTION.md) */
  --dur-micro: 120ms;
  --dur-icon: 180ms;
  --dur-tap: 140ms;
  --dur-screen: 260ms;
  --dur-load: 900ms;
  --ease-grow: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soil: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-ink: ease-out;
  --ease-leaf: cubic-bezier(0.34, 1.4, 0.64, 1);

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.02rem/1.72 var(--sans);
  letter-spacing: 0.001em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: rgba(184, 137, 47, 0.28); }

/* ---------- accessibility: skip link + focus ---------- */
.skip-link {
  position: absolute;
  z-index: 100;
  top: -3rem;
  left: 1rem;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.85rem/1 var(--sans);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-grow);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* paper tooth — a whisper of grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- shell ---------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- runhead ---------- */
.runhead {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.runhead .shell {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  padding-block: 0.85rem 0.8rem;
}
.runhead .wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.runhead .wordmark i {
  font-style: normal;
  color: var(--gold);
}
.runhead nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.runhead nav a {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  transition: color var(--dur-icon) var(--ease-ink), transform var(--dur-icon) var(--ease-grow);
}
.runhead nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease-grow);
}
.runhead nav a:hover { color: var(--gold-ink); transform: translateY(-1px); }
.runhead nav a:hover::after { transform: scaleX(1); }
.runhead nav a:active { transform: translateY(-1px) scale(0.94); transition-duration: var(--dur-tap); }
.runhead nav a[aria-current='page'] { color: var(--leaf-deep); }
.runhead nav a[aria-current='page']::after { background: var(--leaf); transform: scaleX(1); }
.runhead .runhead-live {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  display: none;
}
@media (min-width: 860px) { .runhead .runhead-live { display: inline-flex; align-items: center; gap: 0.45em; } }
.runhead .runhead-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  animation: pulse-dot 3.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
html[data-wire='offline'] .runhead .runhead-live::before { background: var(--gold); animation: none; }
@media (max-width: 700px) {
  .runhead .shell { gap: 1rem; }
  .runhead [data-runhead-date] { display: none; }
  .runhead nav { gap: 0.65rem; }
  .runhead nav a { font-size: 0.62rem; letter-spacing: 0.04em; white-space: nowrap; }
}

/* ---------- the spine ---------- */
.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(calc((100vw - var(--shell)) / 2 - 34px), 14px);
  width: 40px;
  pointer-events: none;
  z-index: 5;
}
.spine svg { height: 100%; width: 100%; overflow: visible; }
.spine path {
  stroke: var(--leaf);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.55;
}
.spine .spine-bud {
  fill: var(--paper);
  stroke: var(--leaf);
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity var(--dur-load) var(--ease-soil);
}
.spine .spine-bud.is-open { opacity: 0.9; }
@media (max-width: 1279px) { .spine { display: none; } }

/* ---------- kickers, rules, labels ---------- */
.ledgerline {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.ledgerline::before {
  content: '';
  width: 2.1em;
  height: 1px;
  background: var(--gold);
}
.meta-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.rule {
  border: 0;
  height: 1px;
  background: var(--line-strong);
  margin: 0;
  transform-origin: left center;
}

/* ---------- type voices ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em, .prose em, .pull em {
  font-style: italic;
  color: var(--gold-ink);
}
h2.display { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; }
.body-copy {
  color: var(--ink-soft);
  max-width: 34em;
}
.body-copy strong { color: var(--ink); font-weight: 640; }
.small-copy { font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- links & CTAs ---------- */
.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--leaf-deep);
  padding: 0.55em 0;
  position: relative;
}
.cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--line-strong);
}
.cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width var(--dur-icon) var(--ease-grow);
  z-index: 1;
}
.cta:hover::before { width: 100%; }
.cta:active { transform: scale(0.94); transition: transform var(--dur-tap) var(--ease-grow); }
.cta--seed {
  background: var(--gold);
  color: #241a08;
  padding: 0.8em 1.5em;
  border-radius: var(--radius);
  transition: background var(--dur-icon) var(--ease-ink), transform var(--dur-tap) var(--ease-grow);
}
.cta--seed::after, .cta--seed::before { display: none; }
.cta--seed:hover { background: #c99a3e; }
.cta--seed:active { transform: scale(0.94); }
.text-link {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-icon) var(--ease-ink);
}
.text-link:hover { text-decoration-color: var(--leaf); }

/* ---------- plots (sections) — rhythm is deliberately uneven ---------- */
.plot { position: relative; }
.plot--vast { padding-block: clamp(5rem, 12vh, 9rem) clamp(4rem, 9vh, 7rem); }
.plot--roomy { padding-block: clamp(4rem, 9vh, 7rem); }
.plot--tight { padding-block: clamp(2.2rem, 4.5vh, 3.4rem); }
.plot--wash { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 18%, var(--paper-warm) 82%, var(--paper) 100%); }

/* ---------- growth reveal grammar ----------
   Elements grow into place. Variants, not one fade:
   rule   — a line draws itself from the left
   rise   — lifts up out of the soil (hero only, staggered)
   unmask — wipes open left to right like a pen stroke
   bloom  — scales open from its rooted corner                */
/* NOTE: hidden states must not zero the element's own geometry — a scaleX(0)
   or self clip-path makes IntersectionObserver report ratio 0 forever and the
   reveal never fires. Rules draw via background-size; unmask clips a child. */
html.js [data-grow] { transition-timing-function: var(--ease-grow); }
/* the one signature moment: a soil hairline draws left-to-right on entry.
   Used sparingly (two hairlines, site-wide) — restraint, not confetti. */
html.js [data-grow='rule'] {
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong)) left center / 0% 100% no-repeat;
  transition: background-size var(--dur-load) var(--ease-soil);
}
html.js [data-grow='rule'].is-grown { background-size: 100% 100%; }
html.js [data-grow='rise'] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-screen) var(--ease-ink), transform var(--dur-screen) var(--ease-grow);
}
html.js [data-grow='rise'].is-grown { opacity: 1; transform: none; }
html.js [data-grow='unmask'] > :first-child {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-load) var(--ease-grow);
}
html.js [data-grow='unmask'].is-grown > :first-child { clip-path: inset(-1% -1% -1% -1%); }
html.js [data-grow='unmask'] > figcaption {
  opacity: 0;
  transition: opacity var(--dur-screen) var(--ease-ink) calc(var(--dur-load) - var(--dur-screen));
}
html.js [data-grow='unmask'].is-grown > figcaption { opacity: 1; }
html.js [data-grow='bloom'] {
  opacity: 0;
  transform: scale(0.96);
  transform-origin: 12% 88%;
  transition: opacity var(--dur-screen) var(--ease-ink), transform calc(var(--dur-screen) * 1.4) var(--ease-leaf);
}
html.js [data-grow='bloom'].is-grown { opacity: 1; transform: scale(1); }
html[data-motion='off'] [data-grow],
html[data-motion='off'] [data-grow] > * {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  transition: none !important;
  background-size: 100% 100% !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: grid;
  align-content: center;
  overflow: clip;
}
.living-blueprint {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.living-blueprint > img {
  position: absolute;
  inset: 3% -5% 3% 34%;
  width: 72%;
  height: 94%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.82) contrast(0.96);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 92%, transparent 100%);
  animation: blueprint-breathe 16s var(--ease-grow) both;
}
.living-blueprint::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, var(--paper));
}
.living-blueprint__measure {
  position: absolute;
  inset: 0 0 0 31%;
  width: 72%;
  height: 100%;
  color: #284f67;
  opacity: 0.72;
}
.blueprint-grid path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-dasharray: 2 8;
  opacity: 0.22;
}
.blueprint-draw path,
.blueprint-draw circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: blueprint-draw 2.8s var(--ease-grow) 420ms forwards;
}
.blueprint-labels {
  fill: currentColor;
  font: 11px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  animation: blueprint-label 500ms var(--ease-ink) 2.2s forwards;
}
.hero-ledger {
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  bottom: clamp(2rem, 7vh, 5rem);
  width: min(15rem, 32vw);
  padding: 0.9rem 1rem 0.7rem;
  border: 1px solid rgba(246, 239, 221, 0.45);
  background: rgba(16, 21, 15, 0.88);
  color: var(--glass-text);
  box-shadow: 0 18px 46px rgba(23, 31, 16, 0.16);
  backdrop-filter: blur(7px);
}
.hero-ledger span,
.hero-ledger small {
  display: block;
  font: 0.61rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glass-text-2);
}
.hero-ledger b {
  display: block;
  margin-top: 0.34rem;
  font: 400 2rem/1 var(--serif);
  color: var(--glass-text);
}
.hero-ledger small { margin-top: 0.25rem; color: var(--glass-text-3); }
.hero-ledger svg { margin-top: 0.7rem; width: 100%; }
.hero-ledger__soil { fill: none; stroke: var(--glass-text-3); stroke-width: 1; }
.hero-ledger__growth {
  fill: none;
  stroke: var(--glass-pos);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: ledger-grow 1.8s var(--ease-soil) 1.2s forwards;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 41rem;
  text-shadow: 0 1px 18px var(--paper), 0 0 42px var(--paper);
}
.hero .display {
  font-size: clamp(3.2rem, 8.2vw, 7.2rem);
  margin: 0.55em 0 0.35em;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 30em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.hero-root-note {
  margin-top: clamp(2.5rem, 7vh, 5rem);
  max-width: 36em;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
@keyframes blueprint-draw { to { stroke-dashoffset: 0; } }
@keyframes blueprint-label { to { opacity: 0.8; } }
@keyframes ledger-grow { to { stroke-dashoffset: 0; } }
@keyframes blueprint-breathe {
  from { transform: scale(1.035) translate3d(0.5%, 0, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}
@media (max-width: 760px) {
  .hero { min-height: 880px; align-content: start; padding-top: 4.8rem; }
  .hero .display { font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .hero-copy { max-width: 100%; }
  .living-blueprint > img {
    inset: auto -30% 0 -18%;
    width: 148%;
    height: 49%;
    object-position: 60% center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 23%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 23%, #000 100%);
  }
  .living-blueprint__measure { inset: auto -28% 0 -12%; width: 140%; height: 48%; }
  .hero-ledger { right: 1rem; bottom: 1.2rem; width: 12.6rem; }
  .hero-root-note {
    max-width: 29em;
    margin-top: 2.4rem;
    padding: 0.55rem 0.65rem;
    color: var(--ink-soft);
    background: rgba(251, 247, 236, 0.92);
    box-shadow: 0 0 20px rgba(251, 247, 236, 0.72);
    backdrop-filter: blur(5px);
  }
}

/* ---------- the wire (live network ledger) ---------- */
.wire {
  border-block: 1px solid var(--line-strong);
  background: var(--paper-warm);
}
.wire-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .wire-grid { grid-template-columns: 1fr; } }
.wire h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-top: 0.7rem;
}
.wire-readout {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.wire-readout table { width: 100%; border-collapse: collapse; }
.wire-readout td {
  padding: 0.14em 0;
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.wire-readout td:first-child { width: 72%; }
.wire-readout td:last-child { text-align: right; color: var(--ink-faint); }
.wire-count {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--leaf-deep);
}
.wire-count small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 0.6em;
}
.wire-flat { margin-top: 1.2rem; }
.wire-flat svg { width: 100%; height: 56px; overflow: visible; }
.wire-flat polyline {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1.4;
}
.wire-flat text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--ink-faint);
}
.wire-quiet {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  margin-top: 0.9rem;
}

/* ---------- flagship section ---------- */
.flagship-head { max-width: 21em; }
.flagship-film { margin-top: clamp(2rem, 5vh, 3.6rem); position: relative; }
.flagship-film video, .flagship-film img { width: 100%; }
.glass .caption-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  margin-top: clamp(2.4rem, 6vh, 4.4rem);
  align-items: end;
}
@media (max-width: 760px) { .claim-row { grid-template-columns: 1fr; gap: 2rem; } }
.claim b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  color: var(--leaf-deep);
}
.claim.claim--gold b { color: var(--gold); }
.claim span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 22em;
}
.claim .claim-src {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- creed (principles) ---------- */
.creed { counter-reset: creed; max-width: 46em; }
.creed-row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.creed-row:last-child { border-bottom: 1px solid var(--line); }
.creed-row::before {
  counter-increment: creed;
  content: counter(creed, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold-ink);
  padding-top: 0.45em;
}
.creed-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.35em;
}
.creed-row p { color: var(--ink-soft); max-width: 36em; }
.creed-row:nth-child(odd) { margin-left: clamp(0px, 4vw, 3.2rem); }

/* ---------- thesis panels (observed / modeled) ---------- */
.thesis-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}
@media (max-width: 860px) { .thesis-duo { grid-template-columns: 1fr; } }
.thesis-panel {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.thesis-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.thesis-bar b { color: var(--ink); font-weight: 600; }
.thesis-panel { display: flex; flex-direction: column; }
.thesis-art { padding: 1.2rem; flex: 1; display: flex; align-items: center; }
.thesis-art > img, .thesis-art > svg { width: 100%; }
.thesis-cap { margin-top: auto; }
.thesis-art svg { width: 100%; height: auto; display: block; }
.thesis-cap {
  padding: 0.8rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- method field — organic evidence under designed structure ---------- */
.method-field { isolation: isolate; overflow: clip; }
.method-field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/media/textures/branching-field.jpg') center / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 58%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 58%, transparent 98%);
}

/* ---------- contact line ---------- */
.contact-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink-soft);
}
.contact-line .text-link { color: var(--leaf-deep); }

/* ---------- pull quote / founder fragment ---------- */
.pull {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.22;
  max-width: 19em;
}
.pull-attr {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- glass (product surfaces only) ---------- */
.glass {
  background: var(--glass-bg);
  color: var(--glass-text);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.glass-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--glass-line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--glass-text-3);
}
.glass-bar b { color: var(--glass-text-2); font-weight: 400; }
.glass-pad { padding: 1.1rem 1rem 1.2rem; }
.glass .caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--glass-gold);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--glass-line);
}

/* ---------- live categorizer demo ---------- */
.liverow .trow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--glass-line);
}
.liverow .trow input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--glass-text);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.2em 0;
  min-width: 0;
}
.liverow .trow input:focus {
  outline: none;
  border-bottom-color: var(--glass-gold);
}
.liverow .chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glass-pos);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 0.3em 0.7em;
  min-width: 7.5em;
  text-align: center;
  transition: border-color 0.4s, color 0.4s;
}
.liverow .chip.is-set { border-color: color-mix(in srgb, var(--glass-pos) 45%, transparent); }
.liverow .amt {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--glass-text-2);
  font-variant-numeric: tabular-nums;
}
.liverow .trow.total { border-bottom: 0; padding-top: 0.9rem; }
.liverow .trow.total .lbl {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--glass-text-3);
}
.liverow .trow.total .amt { color: var(--glass-text); font-size: 0.95rem; }
.liverow .addrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
}
.liverow .addrow .inline-note {
  font-size: 0.78rem;
  color: var(--glass-text-3);
}
.liverow .addrow button {
  background: transparent;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  color: var(--glass-text-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.45em 0.9em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.liverow .addrow button:hover { border-color: var(--glass-pos); color: var(--glass-pos); }
.liverow-sprout {
  width: 30px;
  height: 30px;
  flex: none;
}

/* ---------- recurring leak + payoff ---------- */
.weeds .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--glass-line);
  font-size: 0.88rem;
  color: var(--glass-text-2);
}
.weeds .row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--glass-text); }
.weeds .row.tot { border-bottom: 0; color: var(--glass-text); padding-top: 0.8rem; }
.weeds .row.tot .amt { color: var(--glass-gold); }
.leak {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--glass-text-2);
  margin-top: 0.9rem;
}
.leak [data-leak] { color: var(--glass-gold); }
.payoff figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--glass-text-3);
  margin-top: 0.5rem;
}
.slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--glass-text-2);
}
.slider input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--glass-line);
  border-radius: 1px;
}
.slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glass-gold);
  border: 0;
  cursor: pointer;
}
.slider input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glass-gold);
  border: 0;
  cursor: pointer;
}

/* ---------- hold (nothing/everything) ---------- */
.hold-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 760px) { .hold-grid { grid-template-columns: 1fr; } }
.hold-col .ledgerline { margin-bottom: 1rem; }
.hold-col .hold-word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.95;
}
.hold-col:first-child .hold-word { color: var(--ink-faint); }
.hold-col:last-child .hold-word { color: var(--leaf-deep); }
.hold-col p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 24em; }

/* ---------- dare ---------- */
.dare-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
}

/* ---------- drawer (records index) ---------- */
.drawer { border-top: 1px solid var(--line-strong); }
.drawer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 2rem;
  margin-top: 1.6rem;
}
.drawer-list a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.25s;
}
.drawer-list a::after { content: '\2192'; color: var(--gold); opacity: 0; transition: opacity 0.25s; }
.drawer-list a:hover { color: var(--leaf-deep); }
.drawer-list a:hover::after { opacity: 1; }
.drawer-list a span { color: var(--ink-faint); text-transform: none; letter-spacing: 0.03em; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 6vh, 4rem);
}
footer.site .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.6rem 2.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--leaf-deep); }

/* ---------- prose (long-form pages) ---------- */
.prose {
  max-width: 40em;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 2.2em;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin-top: 1.8em;
}
.prose blockquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.2em;
  margin-block: 1.6em;
}
.prose a { color: var(--leaf-deep); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}

/* ---------- page header (secondary pages) ---------- */
.page-head { padding-block: clamp(3.4rem, 8vh, 6rem) clamp(2rem, 4vh, 3rem); }
.page-head .display { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 0.5em; }
.page-head .hero-sub { margin-top: 1.1em; }

/* ---------- note list (field notes / records) ---------- */
.note-list { border-top: 1px solid var(--line-strong); margin-top: 1.5rem; }
.note-entry {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 1.4rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .note-entry { grid-template-columns: 1fr; gap: 0.4rem; } }
.note-entry time {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  padding-top: 0.4em;
}
.note-entry h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
}
.note-entry p { margin-top: 0.4em; color: var(--ink-soft); max-width: 38em; }

/* ---------- record table (ledger / packet) ---------- */
.record-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.record-table th {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-faint);
  font-weight: 400;
  padding: 0.5rem 1.2rem 0.5rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.record-table td {
  padding: 0.7rem 1.2rem 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
  vertical-align: top;
}
.record-table td:first-child { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--gold-ink); white-space: nowrap; }

/* ---------- offline notice ---------- */
.offline-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
}

/* ---------- garden page ---------- */
.garden-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.4rem, 13vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.25em 0 0.2em;
}
.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.duo--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 940px) { .duo, .duo--flip { grid-template-columns: 1fr; } }
.sow-caption {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: space-between;
}

/* ---------- utilities ---------- */
.stack-s > * + * { margin-top: 0.8rem; }
.stack-m > * + * { margin-top: 1.6rem; }
.stack-l > * + * { margin-top: 2.8rem; }
.indent-quarter { margin-left: clamp(0px, 8vw, 12rem); }
.indent-half { margin-left: clamp(0px, 16vw, 22rem); }
.max-copy { max-width: 34em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .living-blueprint > img { animation: none; transform: none; }
  .blueprint-draw path, .blueprint-draw circle, .hero-ledger__growth {
    animation: none;
    stroke-dashoffset: 0;
  }
  .blueprint-labels { animation: none; opacity: 0.8; }
}

/* ---------- lottie mounts ---------- */
.lottie-divider { width: min(320px, 90vw); height: 80px; margin: clamp(2rem, 6vh, 4rem) auto; position: relative; }
.lottie-divider svg { display: block; width: 100%; height: 100%; }
.lottie-divider.is-static::after {
  content: '';
  position: absolute;
  top: 50%; left: 16px; right: 16px; height: 0.75px;
  background: var(--line-strong);
}
.hero-ink-bloom {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-8%);
  mix-blend-mode: multiply; opacity: 0.55; pointer-events: none;
}
.hero-ink-bloom svg { width: 480px; max-width: 70%; height: auto; }
.hero-ink-bloom.is-static { display: none; }

/* ---------- print ---------- */
@media print {
  body::after, .spine, .living-blueprint, .runhead { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   Kapers Penthouse — 2027 studio surface
   The home is the night room; the work remains luminous paper.
   ============================================================ */
:root {
  --night: #0d100c;
  --night-soft: #151914;
  --night-line: rgba(239, 235, 220, 0.18);
  --ivory: #f2eee2;
  --signal: #d0ff4f;
  --copper: #c3985a;
}

.page-penthouse {
  background: var(--night);
  color: var(--ivory);
  overscroll-behavior-x: none;
}
.page-penthouse::after {
  opacity: 0.1;
  mix-blend-mode: screen;
}
.page-penthouse .shell { width: min(100%, 1600px); padding-inline: clamp(1.25rem, 4vw, 4.5rem); }
.penthouse-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; background: rgba(255,255,255,.08); }
.penthouse-progress i { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; will-change: transform; }

.runhead--penthouse {
  position: absolute;
  inset: 0 0 auto;
  border-color: var(--night-line);
  background: linear-gradient(180deg, rgba(13,16,12,.9), transparent);
  color: var(--ivory);
  backdrop-filter: none;
}
.runhead--penthouse .shell { grid-template-columns: minmax(9rem,1fr) auto minmax(9rem,1fr); min-height: 5.8rem; }
.runhead--penthouse .wordmark { color: var(--ivory); font-size: 2rem; }
.runhead--penthouse .wordmark i { color: var(--signal); }
.runhead--penthouse nav { justify-content: center; gap: clamp(1rem, 2.8vw, 3rem); }
.runhead--penthouse nav a { color: rgba(242,238,226,.72); font-size: .68rem; letter-spacing: .12em; }
.runhead--penthouse nav a:hover { color: var(--ivory); }
.runhead-commission { justify-self: end; color: var(--ivory); text-decoration: none; font: 650 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.runhead-commission span { margin-left: .55rem; color: var(--signal); }

.penthouse-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.penthouse-hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 46%; background: linear-gradient(0deg, var(--night), transparent); }
.penthouse-hero__field { position: absolute; z-index: -2; inset: 0 0 0 46%; overflow: hidden; background: #182118; transform: translate3d(var(--field-x,0), var(--field-y,0), 0) scale(1.03); transition: transform 800ms var(--ease-grow); }
.penthouse-hero__field::before { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(13,16,12,.32) 30%, rgba(13,16,12,.05) 65%), linear-gradient(180deg, rgba(13,16,12,.2), transparent 45%, rgba(13,16,12,.68)); }
.penthouse-hero__field::after { content: ''; position: absolute; z-index: 3; inset: 0; background-image: linear-gradient(rgba(208,255,79,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(208,255,79,.12) 1px, transparent 1px); background-size: 12.5% 12.5%; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.penthouse-hero__field img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.48) contrast(1.12) brightness(.63); transform: scale(1.06); }
.penthouse-sigil { position: absolute; z-index: 4; width: min(42vw, 35rem); right: 7%; top: 19%; overflow: visible; color: rgba(208,255,79,.74); animation: penthouse-turn 28s linear infinite; }
.penthouse-sigil path,.penthouse-sigil circle { fill: none; stroke: currentColor; stroke-width: .75; vector-effect: non-scaling-stroke; }
.penthouse-sigil path:last-child { stroke-width: 1.5; }
.penthouse-orbit { position: absolute; z-index: 4; border: 1px solid rgba(242,238,226,.3); border-radius: 50%; }
.penthouse-orbit--one { width: 42rem; aspect-ratio: 1; top: -13rem; right: -18rem; }
.penthouse-orbit--two { width: 12rem; aspect-ratio: 1; right: 4rem; bottom: 7rem; border-color: rgba(208,255,79,.46); }
@keyframes penthouse-turn { to { transform: rotate(360deg); } }

.penthouse-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(14rem, .42fr); gap: 6vw; align-items: end; padding-top: 10rem; padding-bottom: clamp(7rem, 13vh, 10rem); }
.penthouse-hero__copy { max-width: 74rem; }
.penthouse-eyebrow,.penthouse-section-label { font: 600 .66rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.penthouse-eyebrow { color: var(--signal); }
.penthouse-hero h1 { max-width: 10.4em; margin-top: clamp(1.6rem,3.5vh,3rem); font: 400 clamp(4.2rem, 9.2vw, 10.2rem)/.84 var(--serif); letter-spacing: -.052em; text-wrap: balance; }
.penthouse-hero h1 em { color: var(--signal); font-weight: 400; }
.penthouse-deck { max-width: 45rem; margin-top: clamp(2rem,4vh,3.5rem); color: rgba(242,238,226,.76); font-size: clamp(1rem,1.55vw,1.35rem); line-height: 1.55; text-wrap: pretty; }
.penthouse-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.penthouse-button { min-height: 3.3rem; display: inline-flex; align-items: center; justify-content: space-between; gap: 2.8rem; padding: .9rem 1.1rem; border: 1px solid var(--night-line); color: var(--ivory); text-decoration: none; font: 650 .69rem var(--sans); letter-spacing: .09em; text-transform: uppercase; transition: color .25s, background .25s, border-color .25s, transform .25s; }
.penthouse-button:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }
.penthouse-button--light { background: var(--ivory); border-color: var(--ivory); color: var(--night); }
.penthouse-button--light:hover { background: var(--signal); border-color: var(--signal); color: var(--night); }
.penthouse-hero__index { justify-self: end; padding-bottom: .35rem; border-left: 1px solid var(--night-line); padding-left: 1.3rem; font: .66rem/1.65 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(242,238,226,.58); }
.penthouse-hero__index span { color: var(--signal); }
.penthouse-hero__index p { margin-top: 1.2rem; }
.penthouse-hero__ticker { position: absolute; z-index: 3; inset: auto 0 0; display: flex; gap: 2.1rem; align-items: center; white-space: nowrap; overflow: hidden; padding: 1.15rem 2rem; border-top: 1px solid var(--night-line); color: rgba(242,238,226,.56); font: 600 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.penthouse-hero__ticker i { color: var(--signal); font-style: normal; }

.penthouse-statement,.penthouse-world { background: var(--ivory); color: var(--night); }
.penthouse-statement { padding-block: clamp(7rem, 15vh, 13rem); }
.penthouse-section-label { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgba(13,16,12,.32); color: rgba(13,16,12,.58); }
.penthouse-section-label b { color: var(--copper); font-weight: 400; }
.penthouse-section-label--dark { color: rgba(242,238,226,.5); border-color: var(--night-line); }
.penthouse-section-label--dark b { color: var(--signal); }
.penthouse-statement__lead { max-width: 12.8em; margin-top: clamp(4rem, 8vw, 8rem); font: 400 clamp(3rem, 6.6vw, 7rem)/.96 var(--serif); letter-spacing: -.035em; }
.penthouse-statement__lead em { color: var(--leaf); }
.penthouse-statement__grid { width: min(58rem,74%); margin: clamp(4rem,8vw,8rem) 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,7rem); padding-top: 1.5rem; border-top: 1px solid rgba(13,16,12,.35); }
.penthouse-statement__grid p { font-size: clamp(1rem,1.4vw,1.25rem); line-height: 1.6; color: rgba(13,16,12,.7); }

.penthouse-work,.penthouse-practice { background: var(--night); color: var(--ivory); padding-block: clamp(6rem,13vh,11rem); }
.penthouse-feature { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(18rem,.7fr); margin-top: clamp(3rem,6vw,6rem); color: inherit; text-decoration: none; }
.penthouse-feature__media { position: relative; overflow: hidden; background: #11160f; min-height: min(66vw, 52rem); }
.penthouse-feature__media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); background: radial-gradient(circle at var(--focus-x,50%) var(--focus-y,50%), transparent 0 12%, rgba(13,16,12,.12) 58%); pointer-events: none; }
.penthouse-feature__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-grow), filter 900ms; filter: saturate(.82) contrast(1.05); }
.penthouse-feature:hover video { transform: scale(1.02); filter: saturate(1); }
.penthouse-feature__stamp { position: absolute; z-index: 2; inset: auto auto 1.5rem 1.5rem; display: grid; min-width: 10rem; padding: .8rem 1rem; background: var(--signal); color: var(--night); }
.penthouse-feature__stamp span { font: .6rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.penthouse-feature__stamp b { margin-top: .2rem; font: 400 2rem var(--serif); }
.penthouse-feature__copy { border: 1px solid var(--night-line); border-left: 0; padding: clamp(1.5rem,3.6vw,4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.penthouse-feature__copy > div > span { color: var(--signal); font: .62rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.penthouse-feature__copy h2 { margin-top: 1.2rem; font: 400 clamp(2.8rem,4.8vw,5.4rem)/.93 var(--serif); letter-spacing: -.035em; }
.penthouse-feature__copy p { max-width: 31rem; color: rgba(242,238,226,.68); line-height: 1.65; }
.penthouse-arrow { color: var(--ivory); font: 650 .68rem var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.penthouse-proof { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr auto; border-bottom: 1px solid var(--night-line); }
.penthouse-proof > * { min-height: 8.8rem; padding: 1.4rem; border-left: 1px solid var(--night-line); }
.penthouse-proof > *:first-child { border-left: 0; }
.penthouse-proof div { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 1rem; }
.penthouse-proof b { font: 400 clamp(2.2rem,4vw,4.5rem)/.8 var(--serif); color: var(--signal); }
.penthouse-proof span { max-width: 13rem; color: rgba(242,238,226,.55); font: .61rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.penthouse-proof > a { display: flex; align-items: end; color: var(--ivory); text-decoration: none; font: 650 .64rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.penthouse-proof > a:hover { color: var(--signal); }

.penthouse-world { padding-block: clamp(7rem,14vh,12rem); }
.penthouse-world__intro { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(18rem,.55fr); gap: 8vw; align-items: end; margin-block: clamp(4rem,8vw,8rem); }
.penthouse-world__intro h2 { max-width: 9em; font: 400 clamp(3.5rem,7vw,7.5rem)/.9 var(--serif); letter-spacing: -.04em; }
.penthouse-world__intro p { color: rgba(13,16,12,.68); font-size: 1.08rem; line-height: 1.6; }
.penthouse-gallery { position: relative; display: grid; grid-template-columns: repeat(12,1fr); grid-template-rows: minmax(14rem,29vw) minmax(12rem,21vw); gap: clamp(.75rem,1.6vw,1.5rem); color: inherit; text-decoration: none; }
.penthouse-gallery figure { position: relative; overflow: hidden; background: var(--paper-deep); }
.penthouse-gallery figure:nth-child(2) { grid-column: 8 / -1; grid-row: 1; }
.penthouse-gallery figure:nth-child(3) { grid-column: 8 / -1; grid-row: 2; }
.penthouse-gallery__wide { grid-column: 1 / 8; grid-row: 1 / 3; }
.penthouse-gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.02); transition: transform 1s var(--ease-grow), filter 1s; transform-origin: var(--focus-x,50%) var(--focus-y,50%); }
.penthouse-gallery:hover img { filter: saturate(.95); transform: scale(1.018); }
.penthouse-gallery figcaption { position: absolute; inset: auto 0 0; padding: .9rem 1rem; color: var(--ivory); background: linear-gradient(transparent,rgba(13,16,12,.75)); font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.penthouse-gallery__enter { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 9rem; aspect-ratio: 1; border-radius: 50%; background: var(--signal); color: var(--night); display: grid; place-content: center; text-align: center; font: 650 .68rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; transition: transform .35s var(--ease-grow); }
.penthouse-gallery:hover .penthouse-gallery__enter { transform: translate(-50%,-50%) scale(1.08) rotate(-4deg); }
.penthouse-gallery__enter i { font-style: normal; }

.penthouse-practice__head { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(18rem,.55fr); gap: 8vw; align-items: end; margin-block: clamp(4rem,8vw,8rem); }
.penthouse-practice__head h2 { max-width: 10em; font: 400 clamp(3.5rem,7vw,7.5rem)/.9 var(--serif); letter-spacing: -.04em; }
.penthouse-practice__head p { color: rgba(242,238,226,.62); font-size: 1.08rem; line-height: 1.6; }
.penthouse-services { counter-reset: services; border-top: 1px solid var(--night-line); }
.penthouse-services article { display: grid; grid-template-columns: 3.5rem minmax(12rem,.55fr) minmax(18rem,1fr); gap: 2rem; align-items: baseline; padding: clamp(1.5rem,3vw,2.7rem) 0; border-bottom: 1px solid var(--night-line); transition: padding .3s var(--ease-grow), color .3s; }
.penthouse-services article:hover { padding-left: 1rem; color: var(--signal); }
.penthouse-services article > span { color: var(--signal); font: .62rem var(--mono); }
.penthouse-services h3 { font: 400 clamp(2.2rem,4vw,4rem)/1 var(--serif); }
.penthouse-services p { max-width: 38rem; color: rgba(242,238,226,.62); line-height: 1.55; }

.penthouse-contact { position: relative; overflow: hidden; background: var(--signal); color: var(--night); padding-block: clamp(7rem,16vh,14rem); }
.penthouse-contact__wash { position: absolute; width: min(70vw,60rem); aspect-ratio:1; right:-15%; top:-65%; border:1px solid rgba(13,16,12,.28); border-radius:50%; box-shadow: 0 0 0 6rem rgba(13,16,12,.035), 0 0 0 12rem rgba(13,16,12,.025); }
.penthouse-contact .penthouse-eyebrow { color: rgba(13,16,12,.64); }
.penthouse-contact h2 { position: relative; max-width: 9em; margin-top: 2rem; font: 400 clamp(4rem,9vw,10rem)/.84 var(--serif); letter-spacing: -.05em; }
.penthouse-contact h2 em { color: var(--leaf-deep); }
.penthouse-contact p { max-width: 46rem; margin-top: 2.5rem; font-size: clamp(1rem,1.55vw,1.3rem); line-height: 1.55; }
.penthouse-contact__link { display: flex; justify-content: space-between; align-items: baseline; margin-top: clamp(4rem,8vw,7rem); padding-bottom: .55rem; border-bottom: 2px solid var(--night); color: var(--night); text-decoration: none; font: 400 clamp(2rem,5vw,5.5rem)/1 var(--serif); }
.penthouse-contact__link span { font-family: var(--sans); font-size: .5em; }
.penthouse-contact__link:hover { color: var(--leaf-deep); border-color: var(--leaf-deep); }

footer.site.site--penthouse { background: var(--night); border: 0; color: rgba(242,238,226,.55); }
footer.site.site--penthouse .shell { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: start; gap: 3rem; padding-block: 3rem; }
footer.site.site--penthouse .wordmark { color: var(--ivory); font: 400 2rem var(--serif); text-decoration: none; }
footer.site.site--penthouse .wordmark i { color: var(--signal); }
footer.site.site--penthouse p { font: .62rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
footer.site.site--penthouse nav { display: grid; gap: .45rem; }
footer.site.site--penthouse a { color: inherit; }
footer.site.site--penthouse a:hover { color: var(--signal); }

/* Secondary rooms: same house, quieter surface. */
body:not(.page-penthouse) .runhead { border-bottom-color: rgba(13,16,12,.16); }
body:not(.page-penthouse) .runhead .wordmark { font-size: 1.85rem; letter-spacing: -.025em; }
body:not(.page-penthouse) .page-head { background: var(--night); color: var(--ivory); padding-block: clamp(6rem,13vh,11rem); }
body:not(.page-penthouse) .page-head .ledgerline { color: var(--signal); }
body:not(.page-penthouse) .page-head .display { max-width: 13em; font-size: clamp(3.8rem,8vw,8.5rem); line-height: .9; letter-spacing: -.045em; }
body:not(.page-penthouse) .page-head .hero-sub { color: rgba(242,238,226,.68); }
body:not(.page-penthouse) footer.site { background: var(--night); border-color: var(--night); color: rgba(242,238,226,.58); }
body:not(.page-penthouse) footer.site a { color: rgba(242,238,226,.7); }
body:not(.page-penthouse) footer.site a:hover { color: var(--signal); }
body:not(.page-penthouse) .prose { max-width: 53rem; }
body:not(.page-penthouse) .prose h2 { font-size: clamp(2.4rem,4.5vw,4.5rem); letter-spacing: -.025em; }
.work-showcase { padding-block: clamp(4rem,9vw,8rem); }
.work-showcase__feature { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(18rem,.72fr); color: inherit; text-decoration: none; }
.work-showcase__media { position: relative; min-height: min(62vw,48rem); overflow: hidden; background: var(--night); }
.work-showcase__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); transition: transform .8s var(--ease-grow),filter .8s; }
.work-showcase__feature:hover video { transform: scale(1.018); filter: saturate(1); }
.work-showcase__media > span { position: absolute; inset: auto auto 1.2rem 1.2rem; padding: .65rem .85rem; background: var(--signal); color: var(--night); font: .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.work-showcase__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(1.5rem,3.5vw,3.8rem); border: 1px solid var(--line-strong); border-left: 0; }
.work-showcase__copy h2 { margin-top: 1.2rem; font: 400 clamp(2.7rem,5vw,5.5rem)/.92 var(--serif); letter-spacing: -.04em; }
.work-showcase__copy p { color: var(--ink-soft); line-height: 1.65; }
.work-showcase__copy b { font: 650 .68rem var(--sans); text-transform: uppercase; letter-spacing: .09em; }
.work-showcase__artifacts { display: grid; grid-template-columns: minmax(12rem,.72fr) minmax(0,1.4fr); gap: clamp(1rem,2.5vw,2.5rem); align-items: end; margin-top: clamp(4rem,8vw,8rem); }
.work-showcase__artifacts figure { position: relative; overflow: hidden; background: var(--paper-deep); }
.work-showcase__artifacts figure:first-child { width: 78%; }
.work-showcase__artifacts img { width: 100%; max-height: 44rem; object-fit: cover; }
.work-showcase__artifacts figcaption { padding: .75rem 0; color: var(--ink-faint); font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.work-showcase__close { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: clamp(4rem,8vw,8rem); padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.work-showcase__close p { max-width: 23em; font: 400 clamp(2rem,4vw,4rem)/1 var(--serif); }
.case-frame { background: var(--night); color: var(--ivory); padding-bottom: clamp(4rem,9vw,8rem); }
.case-frame video { width: 100%; max-height: 78vh; object-fit: cover; display: block; }
.case-frame__scope { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--night-line); }
.case-frame__scope div { min-height: 8rem; padding: 1.25rem; border-left: 1px solid var(--night-line); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.case-frame__scope div:first-child { border-left: 0; }
.case-frame__scope span { color: var(--signal); font: .61rem var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.case-frame__scope b { color: rgba(242,238,226,.72); font-size: .82rem; line-height: 1.45; font-weight: 500; }
.page-contact main { background: var(--signal); color: var(--night); }
.contact-stage { min-height: 76svh; display: flex; align-items: center; }
.contact-stage h1 { max-width: 9em; margin-top: 1.4rem; font: 400 clamp(4rem,10vw,10rem)/.84 var(--serif); letter-spacing: -.055em; }
.contact-stage h1 em { color: var(--leaf-deep); }
.contact-stage .ledgerline { color: rgba(13,16,12,.62); }
.contact-brief { max-width: 40rem; margin-top: 2rem; font-size: clamp(1rem,1.6vw,1.25rem); line-height: 1.55; }
.page-contact .contact-line { margin-top: clamp(3rem,7vw,6rem); font: 400 clamp(2rem,5vw,5.5rem)/.9 var(--serif) !important; letter-spacing: -.045em; }
.page-contact .contact-line a { color: var(--night); text-decoration-color: rgba(13,16,12,.35); }
.page-contact .small-copy { margin-top: 1.2rem; color: rgba(13,16,12,.62); }

@media (max-width: 900px) {
  .runhead--penthouse .shell { grid-template-columns: 1fr auto; min-height: 4.8rem; }
  .runhead--penthouse nav { display: none; }
  .runhead-commission { font-size: .62rem; }
  .penthouse-hero__field { left: 32%; opacity: .82; }
  .penthouse-hero__grid { grid-template-columns: 1fr; padding-top: 8rem; }
  .penthouse-hero__copy { max-width: 52rem; }
  .penthouse-hero__index { justify-self: start; }
  .penthouse-feature { grid-template-columns: 1fr; }
  .penthouse-feature__media { min-height: 68vw; }
  .penthouse-feature__copy { border-left: 1px solid var(--night-line); }
  .penthouse-proof { grid-template-columns: 1fr 1fr; }
  .penthouse-proof > *:nth-child(3) { border-left: 0; }
  .penthouse-world__intro,.penthouse-practice__head { grid-template-columns: 1fr; }
  footer.site.site--penthouse .shell { grid-template-columns: 1fr 1fr; }
  .work-showcase__feature { grid-template-columns: 1fr; }
  .work-showcase__copy { border-left: 1px solid var(--line-strong); }
  .case-frame__scope { grid-template-columns: 1fr 1fr; }
  .case-frame__scope div:nth-child(3) { border-left: 0; border-top: 1px solid var(--night-line); }
  .case-frame__scope div:nth-child(4) { border-top: 1px solid var(--night-line); }
}

@media (max-width: 640px) {
  .page-penthouse .shell { padding-inline: 1rem; }
  .penthouse-hero { min-height: 880px; }
  .penthouse-hero__field { inset: 0; opacity: .55; }
  .penthouse-hero__field::before { background: linear-gradient(180deg, rgba(13,16,12,.35), var(--night) 82%); }
  .penthouse-sigil { width: 80vw; right: -18%; top: 17%; }
  .penthouse-hero h1 { font-size: clamp(4rem,19vw,6.5rem); }
  .penthouse-deck { max-width: 30rem; font-size: .96rem; }
  .penthouse-button { width: 100%; }
  .penthouse-hero__index { display: none; }
  .penthouse-hero__ticker { gap: 1.3rem; padding-inline: 1rem; }
  .penthouse-statement__lead { font-size: clamp(3rem,14vw,5rem); }
  .penthouse-statement__grid { width: 100%; grid-template-columns: 1fr; }
  .penthouse-feature__media { min-height: 78vw; }
  .penthouse-feature__copy { padding: 1.35rem; }
  .penthouse-proof { grid-template-columns: 1fr; }
  .penthouse-proof > * { border-left: 0; border-top: 1px solid var(--night-line); min-height: 6.5rem; }
  .penthouse-proof > *:first-child { border-top: 0; }
  .penthouse-gallery { display: block; }
  .penthouse-gallery figure { height: 72vw; margin-top: .75rem; }
  .penthouse-gallery figure:first-child { height: 120vw; }
  .penthouse-gallery__enter { position: relative; left: auto; top: auto; transform: none; margin: -2rem auto 0; }
  .penthouse-gallery:hover .penthouse-gallery__enter { transform: rotate(-4deg); }
  .penthouse-services article { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .penthouse-services article p { grid-column: 2; }
  .penthouse-contact__link { font-size: clamp(1.75rem,8.2vw,3rem); }
  footer.site.site--penthouse .shell { grid-template-columns: 1fr; gap: 1.5rem; }
  body:not(.page-penthouse) .page-head .display { font-size: clamp(3.6rem,15vw,6rem); }
  .work-showcase__media { min-height: 86vw; }
  .work-showcase__artifacts { grid-template-columns: 1fr; }
  .work-showcase__artifacts figure:first-child { width: 72%; }
  .work-showcase__close { align-items: flex-start; flex-direction: column; }
  .case-frame__scope { grid-template-columns: 1fr; }
  .case-frame__scope div,.case-frame__scope div:nth-child(3) { border-left: 0; border-top: 1px solid var(--night-line); }
  .case-frame__scope div:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .penthouse-sigil { animation: none; }
  .penthouse-hero__field,.penthouse-gallery img,.penthouse-feature__media video { transform: none !important; transition: none; }
}

/* Product-first correction: legacy secondary-page heroes stay luminous. */
body:not(.page-penthouse) .page-head {
  background: linear-gradient(135deg, #f7f4ea 0%, #e5ebe2 100%);
  color: #17201b;
  border-bottom: 1px solid rgba(23,32,27,.16);
}
body:not(.page-penthouse) .page-head .hero-sub,
body:not(.page-penthouse) .page-head .ledgerline { color: #59645d; }
body:not(.page-penthouse) .runhead {
  background: rgba(247,244,234,.9);
  border-bottom-color: rgba(23,32,27,.16);
}
body:not(.page-penthouse) .runhead .wordmark,
body:not(.page-penthouse) .runhead nav a { color: #17201b; }
.page-contact main { background: #dce8b3; }

@media (max-width: 600px) {
  .page-ledger .record-table { table-layout: fixed; }
  .page-ledger .record-table th,
  .page-ledger .record-table td { padding: .65rem .45rem .65rem 0; overflow-wrap: anywhere; }
  .page-ledger .record-table th { font-size: .55rem; letter-spacing: .05em; }
  .page-ledger .record-table td { font-size: .78rem; line-height: 1.45; }
  .page-ledger .record-table td:first-child { width: 21%; white-space: normal; font-size: .63rem; }
}
