/* tinman kinetics · shared stylesheet for the spine and all generated pages.
   Paper and glass: a future grounded in the past. Two-worlds rule:
   dark moss glass = the future we are walking into; paper insets = the
   human practice that carries us there. The heart is folded paper. */

:root {
  /* Deep moss: near-black with green in its bones. From the hero mockups. */
  --slate:        #0D120E;
  --slate-2:      #090C09;
  --slate-3:      #172018;
  --slate-line:   rgba(231,226,209,0.10);
  --slate-line-2: rgba(231,226,209,0.18);

  --bone:         #E7E2CF;
  --bone-2:       #F4EFDC;
  --bone-soft:    #ACA790;
  --bone-muted:   #8A8468;

  --paper:        #FBF7EB;
  --paper-2:      #F5EEDC;
  --card:         #FFFDF7;

  --ink:          #162016;
  --ink-2:        #2E4030;
  --ink-soft:     #4E604F;
  --muted:        #6D7A6D;
  --line:         rgba(22, 32, 22, 0.10);

  --leaf:         #76C35E;
  --leaf-deep:    #4E8A3C;
  --leaf-glow:    #A5D98F;
  --sage:         #88A983;
  --olive:        #777D2B;
  --olive-deep:   #5E6420;
  /* Legacy alias: the shared components still say brass; it now pours leaf. */
  --brass:        var(--leaf);
  --brass-deep:   var(--leaf-deep);
  --teal:         #146A5E;
  --teal-glow:    #34B5A0;
  --coral:        #D9745A;
  --plum:         #6E5B97;
  --plum-glow:    #C8BBE0;
  --amber:        #D69845;
  --red:          #C84B4B;

  --night:        #090C09;
  --night-2:      #111711;
  --night-line:   rgba(255,255,255,0.08);

  /* Glass: the future's material. Paper is reserved for what a person authored. */
  --glass-border: rgba(220,236,215,0.17);
  --glass-fill:   rgba(14,20,15,0.56);
  --glass-hi:     rgba(255,255,255,0.08);

  --radius-lg:    22px;
  --radius-md:    14px;
  --radius-sm:    10px;
  --shadow-paper: 0 40px 100px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(118,195,94,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  --shadow-md:    0 1px 0 rgba(0,0,0,0.08), 0 18px 40px -18px rgba(0,0,0,0.50);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;

  /* Door accent, overridden per page via body[data-accent].
     --accent/--accent-glow live on dark glass; --accent-ink is the same hue
     mixed dark enough to read on paper. Never put glow-side greens on cream. */
  --accent: var(--leaf);
  --accent-glow: var(--leaf-glow);
  --leaf-ink: #41722F;
  --accent-ink: var(--leaf-ink);
}
body[data-accent="teal"]  { --accent: var(--teal);  --accent-glow: var(--teal-glow); --accent-ink: #0F5448; }
body[data-accent="plum"]  { --accent: var(--plum);  --accent-glow: var(--plum-glow); --accent-ink: #554674; }
body[data-accent="coral"] { --accent: var(--coral); --accent-glow: #F0A48D; --accent-ink: #9E4025; }
body[data-accent="amber"] { --accent: var(--amber); --accent-glow: #F2C078; --accent-ink: #85591B; }
body[data-accent="leaf"]  { --accent: var(--leaf);  --accent-glow: var(--leaf-glow); --accent-ink: var(--leaf-ink); }
body[data-accent="sage"]  { --accent: var(--sage);  --accent-glow: #B7CFB2; --accent-ink: #45613F; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--slate);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 72% 8%, rgba(118,195,94,0.07), transparent 30rem),
    linear-gradient(180deg, var(--slate), var(--slate-2));
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 2px; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(11, 15, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--slate-line);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-2);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
}
/* The mark is the folded-paper heart. It beats: a soft double-pulse,
   on hover and occasionally on its own. Technology with heart. */
.brand .heart {
  width: 22px; height: 19px; flex-shrink: 0; display: block;
  transform-origin: 50% 60%;
  transition: transform .3s ease;
}
.brand b { font-weight: inherit; }
.brand b + b { color: var(--sage); transition: color .3s ease; }
.brand:hover b + b { color: var(--leaf-glow); }
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(0.98); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}
.brand:hover .heart, .brand.beat .heart { animation: heart-beat 0.9s cubic-bezier(.36,.07,.19,.97); }
@media (prefers-reduced-motion: reduce) {
  .brand .heart, .brand b + b { transition: none; animation: none !important; }
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14.5px; }
.nav > a, .nav summary {
  padding: 7px 12px; border-radius: 8px; color: var(--bone-soft);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: "▾"; display: inline-block; margin-left: 7px; font-size: 1em; color: var(--bone-soft); transition: transform 0.18s ease; }
.nav-doors[open] > summary::after { transform: rotate(180deg); }
.nav > a:hover, .nav summary:hover { color: var(--bone-2); background: var(--slate-3); }
.nav > a[aria-current="page"] { color: var(--accent-glow); }
.nav-doors { position: relative; }
/* Mega-panel: ten perspectives read as a two-column grid, not a tower. */
.nav-doors-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 2px 10px;
  width: min(80vw, 620px);
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 10px; z-index: 50;
}
.nav-doors-panel a {
  display: block; padding: 9px 12px; border-radius: 8px; font-weight: 600;
}
.nav-doors-panel a:hover { background: var(--paper-2); }
.nav-doors-panel a small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.topbar .btn { margin-left: 8px; }
.topbar-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .topbar-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--slate-line-2);
    color: var(--bone); border-radius: 8px; padding: 8px 10px; cursor: pointer;
  }
  .topbar .btn { display: none; }
  .drawer[hidden] { display: none; }
  .drawer {
    position: fixed; inset: 0; z-index: 60; background: rgba(20,25,18,0.97);
    padding: 70px 28px 28px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  }
  .drawer a { padding: 12px 8px; font-size: 18px; border-bottom: 1px solid var(--slate-line); }
  .drawer .drawer-group { margin-top: 14px; font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-muted); }
  .drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid var(--slate-line-2);
    color: var(--bone); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 15px; }
}

/* ── Buttons (matched to the About page system) ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.005em;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
/* Primary: the olive field. Works on glass and paper alike. */
.btn-primary {
  background: linear-gradient(120deg, rgba(135,142,45,0.98), rgba(72,79,28,0.98));
  color: var(--card); border-color: rgba(180,189,82,0.5);
  box-shadow: 0 13px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(148,156,50,1), rgba(83,91,31,1));
  box-shadow: 0 16px 48px rgba(0,0,0,0.34), 0 0 32px rgba(118,195,94,0.09), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-secondary {
  background: rgba(11,16,12,0.43); color: var(--bone);
  border-color: rgba(232,218,185,0.42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-secondary:hover { background: rgba(25,33,25,0.68); border-color: rgba(232,218,185,0.72); transform: translateY(-2px); }
.on-paper .btn-secondary, .artifact .btn-secondary { color: var(--ink-2); border-color: rgba(22,32,22,0.35); background: transparent; backdrop-filter: none; }

/* ── Hero ───────────────────────────────────────────────── */
/* Text-only heroes: keep the top tight; no graphic to make room for. */
.hero { padding: clamp(34px, 5vw, 60px) clamp(18px, 5vw, 60px) clamp(44px, 6vw, 80px); max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-glow); margin-bottom: 22px;
}
/* Pulses a few times when it first scrolls into view (JS adds .go), then rests. */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-glow); box-shadow: 0 0 0 0 var(--accent-glow); }
.pulse.go { animation: pulse 2.4s ease-out 3; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0,0,0,0); } }
h1 {
  font-family: var(--display); font-weight: 560; font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.06; letter-spacing: -0.015em; color: var(--bone-2); margin: 0 0 26px; max-width: 18ch;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-glow); }
p em, li em, .cell em { font-style: italic; color: var(--accent-glow); }
.artifact p em, .artifact li em { color: var(--accent-ink); }
.lead { max-width: 62ch; display: grid; gap: 16px; color: var(--bone-soft); font-size: clamp(16px, 1.6vw, 18.5px); }
.lead p:first-child { color: var(--bone); }
.proof-line {
  margin: 30px 0 0; padding: 16px 20px; max-width: 640px;
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-paper);
  font-size: 15.5px; font-weight: 600; line-height: 1.5;
}
.proof-line::before {
  content: "Proof"; display: block; font-family: var(--mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ── Sections ───────────────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 60px); }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-glow); margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-weight: 560; font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--bone-2); margin: 0 0 18px; max-width: 24ch;
}
.section .paras { max-width: 62ch; display: grid; gap: 14px; color: var(--bone-soft); }

/* Paper artifact: Layer B/C proof surfaces */
.artifact {
  background: linear-gradient(160deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-paper);
  padding: clamp(24px, 4vw, 44px);
}
.artifact .kicker { color: var(--accent-ink); }
.artifact h1, .artifact h2, .artifact h3 { color: var(--ink); }
.artifact h1 em, .artifact h2 em, .artifact h3 em { color: var(--accent-ink); }
.artifact h1 { font-size: clamp(30px, 4.4vw, 48px); }
.artifact .paras { color: var(--ink-soft); }

/* Objection card */
.objection { margin-top: 8px; }
.objection .obj-q {
  font-family: var(--display); font-style: italic; font-size: clamp(19px, 2.4vw, 24px);
  color: var(--ink); margin-bottom: 12px;
}
.objection .obj-q::before { content: "“"; color: var(--accent-ink); }
.objection .obj-q::after { content: "”"; color: var(--accent-ink); }
.objection .obj-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.objection .obj-a { color: var(--ink-soft); max-width: 62ch; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.stat { background: var(--card); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-md); border-top: 3px solid var(--accent); }
.stat .val { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--ink); }
.stat .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* Spotlight cards: a stat that carries a thumbnail and links to the full story */
.spotlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.spot-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent); color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.spot-card:hover { transform: translateY(-3px); }
.spot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; background: var(--paper-2); }
.spot-card .spot-body { display: block; padding: 16px 20px 18px; }
.spot-card .val { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); }
.spot-card .lbl { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.spot-card .spot-more { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.spot-card:hover .spot-more { text-decoration: underline; }

/* Platform screenshot carousel: scroll-snap, no JS required */
.shots {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin-top: 22px; padding-bottom: 12px;
  scrollbar-color: var(--slate-line-2) transparent;
}
.shots figure { flex: 0 0 min(78%, 720px); margin: 0; scroll-snap-align: center; }
.shots img {
  width: 100%; display: block; border-radius: var(--radius-md);
  border: 1px solid var(--slate-line-2); background: var(--slate-3);
}
.shots:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 4px; }
.shots-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-muted); margin: 6px 0 0; }

/* ── Hero media: image, before/after pair, or the envelope tablet.
   Sits below the copy on mobile, beside it on desktop. ── */
.hero-figure { margin: 30px 0 0; max-width: 860px; }
.hero-figure img, .hero-pair img {
  width: 100%; display: block; border-radius: var(--radius-md);
  border: 1px solid var(--slate-line-2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.hero-media { margin-top: 30px; }
.hero-media .hero-figure { margin-top: 0; }
.hero-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hero-pair figure { margin: 0; }
.hero-pair figcaption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bone-muted); text-align: center; margin-top: 10px;
}
.pair-arrow { color: var(--accent-glow); font-size: 20px; font-weight: 700; }
@media (min-width: 1020px) {
  .hero.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
  }
  .hero.has-media .hero-media,
  .hero.has-media .hero-envelope { margin-top: 0; }
  .hero.has-media .hero-envelope { max-width: none; }
}


/* ── Logo bands: mono wordmarks on dark; image marks for proof credentials ── */
.logo-band {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 30px; margin-top: 20px;
}
.logo-band .li {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.08em;
  color: var(--bone-muted); transition: color 0.15s ease;
}
.logo-band .li:hover { color: var(--bone); }
.logo-band img {
  height: 30px; width: auto;
  opacity: 0.85; transition: opacity 0.15s ease;
}
.logo-band img:hover { opacity: 1; }
.logo-band img[src$=".jpg"], .logo-band img[src$=".png"] {
  height: 42px; border-radius: 8px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
}

/* ── The method loop: think → build governed → measure → keep the reasoning ── */
.mloop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px; align-items: stretch; margin-top: 24px;
}
.mstop {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.mstop .mnum {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--accent-ink); margin-bottom: 8px;
}
.mstop strong {
  display: block; font-family: var(--display); font-size: 19px; font-weight: 560;
  color: var(--ink); margin-bottom: 5px; line-height: 1.15;
}
.mstop .mdesc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.marr { align-self: center; color: var(--accent-ink); font-weight: 700; font-size: 19px; }
.mloop-return {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.mloop-return::before {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.mret { color: var(--accent-ink); font-size: 15px; }
@media (max-width: 860px) {
  .mloop { grid-template-columns: 1fr; }
  .marr { justify-self: center; transform: rotate(90deg); }
}

/* Steps */
.steps { display: grid; gap: 14px; margin-top: 24px; counter-reset: none; }
.step { display: grid; grid-template-columns: 14px 1fr; gap: 16px; align-items: start; }
.step::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.step h3 { font-family: var(--sans); font-weight: 800; font-size: 16.5px; color: var(--ink); margin: 0 0 4px; }
.step p { color: var(--ink-soft); max-width: 62ch; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .hero-actions { margin-top: 22px; }

/* Video slot */
.video-slot {
  border: 1.5px dashed var(--slate-line-2); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); text-align: center; color: var(--bone-muted);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
}
.video-slot .play {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--slate-line-2);
  display: inline-grid; place-items: center; margin-bottom: 14px; color: var(--bone-soft); font-size: 18px;
}

/* Quote slot: renders only when filled */
.quote-slot blockquote {
  margin: 0; font-family: var(--display); font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); line-height: 1.35;
}
.quote-slot cite { display: block; margin-top: 14px; font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--muted); }

/* ── Spine-specific ─────────────────────────────────────── */

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.trio .cell { background: var(--slate-3); border: 1px solid var(--slate-line); border-radius: var(--radius-md); padding: 22px; }
.trio .cell strong { display: block; font-family: var(--display); font-size: 19px; color: var(--bone-2); margin-bottom: 8px; }
.trio .cell p { color: var(--bone-soft); font-size: 15px; }

.contrast { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.contrast .col { border-radius: var(--radius-md); padding: 22px; }
.contrast .col h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.contrast .default { background: var(--night-2); border: 1px solid var(--night-line); }
.contrast .default h3 { color: #FF8585; }
.contrast .heart { background: linear-gradient(160deg, var(--paper), var(--paper-2)); color: var(--ink); box-shadow: var(--shadow-paper); }
.contrast .heart h3 { color: var(--teal); }
.contrast ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.contrast .default li { color: var(--bone-soft); }
.contrast .heart li { color: var(--ink-soft); }
.contrast li strong { color: inherit; }

.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.layer { background: var(--card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-md); }
.layer .kicker { margin-bottom: 8px; color: var(--accent-ink); }
.layer h3 { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.layer p { color: var(--ink-soft); font-size: 14.5px; }

details.disclosure {
  margin-top: 20px; background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
details.disclosure summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "＋"; float: right; color: var(--accent-ink); }
details.disclosure[open] summary::after { content: "－"; }
details.disclosure .disclosure-body { padding: 0 20px 20px; color: var(--ink-soft); font-size: 14.5px; }

.doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.door-card {
  display: block; background: var(--slate-3); border: 1px solid var(--slate-line);
  border-radius: var(--radius-md); padding: 20px 22px; transition: border-color .15s ease, transform .15s ease;
}
.door-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.door-card .kicker { margin-bottom: 6px; font-size: 11px; }
.door-card strong { display: block; font-family: var(--display); font-size: 17.5px; line-height: 1.3; color: var(--bone-2); }
.door-card span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--bone-muted); }

/* Form */
.form-grid { display: grid; gap: 14px; margin-top: 24px; max-width: 560px; }
.form-grid label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.form-grid input, .form-grid textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); width: 100%;
}
.form-grid textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--red); }


/* ── Footer (matched to the About page system) ──────────── */
.foot {
  margin-top: clamp(40px, 7vw, 90px);
  background: var(--slate-2);
  color: var(--bone-muted);
  padding: 60px clamp(20px, 5vw, 56px) 32px;
  border-top: 1px solid var(--slate-line);
}
.foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 60px;
  margin-bottom: 40px;
}
.foot .brand { color: var(--bone-2); font-size: 18px; }
.foot-blurb { font-size: 13px; color: var(--bone-muted); margin-top: 14px; max-width: 28ch; line-height: 1.6; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.foot h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-2);
  margin: 0 0 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { padding: 4px 0; }
.foot ul li a { font-size: 13px; color: var(--bone-muted); transition: color 0.15s ease; }
.foot ul li a:hover { color: var(--brass); }
.foot-meta {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--slate-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--bone-muted);
}
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Cookie notice: small, dismissible, bottom corner ── */
.cookie-note[hidden] { display: none; }
.cookie-note {
  position: fixed; bottom: 16px; left: 16px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  max-width: 340px; padding: 12px 14px;
  background: var(--slate-2); border: 1px solid var(--slate-line-2);
  border-radius: var(--radius-md); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  font-size: 13px; line-height: 1.45; color: var(--bone-soft);
}
.cookie-note button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: var(--slate-2); border: none;
  flex-shrink: 0;
}
.cookie-note button:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ── Blog index rows ── */
.post-row {
  display: block; padding: 16px 4px; border-bottom: 1px dashed var(--line);
  border-radius: 6px; transition: background 0.15s ease;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--paper-2); }
.post-row .post-date {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.post-row strong {
  display: block; font-family: var(--display); font-size: 21px; font-weight: 560;
  color: var(--ink); line-height: 1.2; margin-bottom: 4px;
}
.post-row strong em { color: var(--accent-ink); }
.post-row .post-desc { font-size: 14px; color: var(--ink-soft); }
.foot-meta a { color: var(--bone-muted); }
.foot-meta a:hover { color: var(--brass); }
.byline {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--bone-muted); border-top: 1px dashed var(--slate-line-2);
  padding-top: 18px; max-width: 62ch;
}

/* ── The method: sticky pull beside numbered discipline lines ── */
.method {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 60px); align-items: start;
}
.method-pull { position: sticky; top: 96px; }
.method-lede { margin-top: 18px; font-size: 16.5px; line-height: 1.55; color: var(--bone-soft); max-width: 46ch; }
.method-line {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px dashed var(--slate-line-2);
}
.method-line:last-child { border-bottom: none; }
.method-line .n { font-family: var(--mono); font-size: 13px; color: var(--accent-glow); padding-top: 3px; }
.method-line strong { display: block; color: var(--bone-2); font-size: 16.5px; line-height: 1.35; margin-bottom: 5px; }
.method-line span { color: var(--bone-soft); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method-pull { position: static; }
}

/* ── Origami: folded corners and creases. Paper remembers its folds. ── */
/* A paper card that was folded once. --fold-bg is whatever sits behind
   the card, so the cut corner reads as a real fold, not a decal. */
.fold { position: relative; --fold-bg: var(--slate); }
.fold::before {
  content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px;
  background:
    linear-gradient(225deg, var(--fold-bg) 0 49.5%, #E9E1C8 50%, var(--paper-2) 72%, #DDD3B4 100%);
  border-bottom-left-radius: 7px;
  box-shadow: -2px 2px 5px rgba(29,42,30,0.10);
}
/* A crease between worlds: hairline with a small folded facet at center. */
.crease {
  position: relative; max-width: 1100px; height: 1px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--slate-line-2) 18%, var(--slate-line-2) 82%, transparent);
}
.crease::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, var(--paper) 0 50%, #D8D0B4 50% 100%);
  box-shadow: 0 0 0 4px var(--slate);
}

/* ── The Conversation: the anti-hero at the end of the scroll.
   Tinman speaks on paper; you answer from the glass. ── */
.convo-thread { display: grid; gap: 22px; margin-top: 30px; max-width: 760px; }
.convo-msg {
  position: relative; max-width: 620px;
  background: linear-gradient(160deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: var(--radius-md); border-top-left-radius: 4px;
  box-shadow: var(--shadow-paper);
  padding: 20px 26px 20px 24px;
}
.convo-msg .convo-heart {
  position: absolute; top: -9px; left: -9px; width: 26px; height: 22px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transform-origin: 50% 60%;
}
.convo-msg h3 {
  font-family: var(--display); font-weight: 560; font-size: 19px;
  color: var(--ink); margin: 0 0 8px;
}
.convo-msg p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.convo-msg p + p { margin-top: 10px; }
.convo-msg p a { color: var(--leaf-ink); font-weight: 600; text-decoration: underline; }
/* Emphasis inside paper surfaces uses the ink shade, not the glow, for contrast. */
.convo-msg em, .proof-line em, .contrast .boxcar em, .contrast .heart em { color: var(--accent-ink); }
.convo-enter { animation: convo-in .45s ease both; }
@keyframes convo-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* Thinking: the heart beats twice before Tinman answers. */
.convo-think {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bone-muted);
}
.convo-think .heart { width: 20px; height: 17px; animation: heart-beat 0.7s ease-in-out infinite; transform-origin: 50% 60%; }
@media (prefers-reduced-motion: reduce) { .convo-think .heart { animation: none; } }
/* Your side: reply chips, right-aligned like the old site. */
.convo-replies { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-left: clamp(0px, 8vw, 90px); }
.convo-replies button {
  font: inherit; font-size: 14px; font-style: italic; text-align: right;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.03); color: var(--bone);
  border: 1px solid var(--slate-line-2);
  transition: border-color .18s ease, background .18s ease, opacity .3s ease, color .18s ease;
}
.convo-replies button:hover { border-color: var(--leaf-glow); background: rgba(118,195,94,0.08); }
.convo-replies button.picked {
  background: rgba(118,195,94,0.16); border-color: var(--leaf);
  color: var(--leaf-glow); font-style: normal; font-weight: 600;
}
.convo-replies.past button:not(.picked) { opacity: 0.35; }
.convo-replies.past button:not(.picked):hover { opacity: 0.9; }
/* The form arrives as the last message in the thread. */
.convo-form[hidden] { display: none; }
.convo-form .artifact { --fold-bg: var(--slate); }
.convo-hint {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--bone-muted); text-align: right; margin-top: 4px;
}
@media (max-width: 640px) {
  .convo-replies { padding-left: 0; }
  .convo-msg { padding: 18px 20px 16px; }
}

/* ── Cinematic hero: the artwork is the room, the copy stands in it. ──
   Used on pages that carry a hero image via --hero-image. Keep the source
   image free of website text; the vignette makes the copy corner safe. */
.hero-cine {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(54rem, 92svh);
  display: grid; align-items: end;
  padding: clamp(90px, 13vh, 150px) clamp(20px, 5vw, 56px) clamp(40px, 7vh, 68px);
}
.hero-cine::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background-image: var(--hero-image);
  background-repeat: no-repeat; background-size: cover;
  background-position: 68% center;
  filter: saturate(0.88) contrast(1.04) brightness(0.78);
  transform: scale(1.015);
}
.hero-cine::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,9,7,0.97) 0%, rgba(7,10,8,0.92) 27%, rgba(8,11,9,0.48) 50%, rgba(8,11,9,0.10) 72%, rgba(8,11,9,0.30) 100%),
    linear-gradient(180deg, rgba(5,8,6,0.66) 0%, transparent 24%, transparent 67%, rgba(5,8,6,0.92) 100%),
    radial-gradient(ellipse at 68% 52%, transparent 0%, rgba(8,11,9,0.10) 48%, rgba(5,8,6,0.58) 100%);
}
.hero-cine .grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.055; pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.hero-cine .hero-copy { max-width: 47rem; }
.hero-cine h1 {
  max-width: 15ch;
  font-size: clamp(40px, 5.8vw, 78px);
  font-weight: 480; line-height: 0.97; letter-spacing: -0.035em;
  text-shadow: 0 0.12em 1em rgba(0,0,0,0.25);
  text-wrap: balance;
}
.hero-cine .lead { max-width: 39rem; }
/* The one italic line a hero gets. */
.hero-line {
  margin: 18px 0 0;
  font-family: var(--display); font-style: italic;
  font-size: clamp(20px, 1.1rem + 0.7vw, 29px); line-height: 1.3;
  color: var(--leaf-glow);
}
@media (max-width: 720px) {
  /* Mobile: artwork first, copy below, image feathered into the dark. */
  .hero-cine { min-height: 100svh; align-items: end; padding-top: clamp(26rem, 60vh, 34rem); padding-bottom: 2rem; }
  .hero-cine::before {
    inset: 4.6rem 0 auto; height: clamp(19rem, 52vh, 28rem);
    background-position: 54% center; transform: none;
    filter: saturate(0.9) contrast(1.03) brightness(0.83);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  }
  .hero-cine::after {
    background:
      linear-gradient(180deg, rgba(5,8,6,0.68) 0, transparent 14rem),
      linear-gradient(180deg, transparent 16rem, var(--slate-2) 29rem),
      radial-gradient(circle at center 11rem, transparent, rgba(5,8,6,0.12));
  }
  .hero-cine h1 { font-size: clamp(38px, 12vw, 56px); max-width: 11ch; }
}

/* ── Glass surfaces: for systems, mechanisms, and proof. Paper stays human. ── */
.glass {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--glass-hi), transparent 42%), var(--glass-fill);
  box-shadow: 0 22px 64px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.055);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

/* Proof band: dates and facts in a different texture than prose. */
.proof-band { padding: 22px clamp(20px, 3vw, 34px); display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.proof-band .pb {
  border-left: 2px solid rgba(118,195,94,0.35); padding-left: 16px;
}
.proof-band .pb b { display: block; font-family: var(--display); font-weight: 560; font-size: 19px; color: var(--bone-2); margin-bottom: 4px; }
.proof-band .pb span { font-size: 13.5px; color: var(--bone-soft); line-height: 1.5; }

/* The four-beat mechanism: how every engagement runs. */
.mech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.mech .m {
  padding: 16px 18px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: var(--glass-fill);
}
.mech .m i {
  display: block; font-style: normal; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf-glow); margin-bottom: 8px;
}
.mech .m b { display: block; font-weight: 700; font-size: 14.5px; color: var(--bone-2); line-height: 1.35; }
.mech .m span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--bone-soft); line-height: 1.5; }
@media (max-width: 860px) { .mech { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mech { grid-template-columns: 1fr; } }

/* Three principles, glass. Short on purpose. */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.principles .p { padding: 20px 22px; }
.principles .p b { display: block; font-family: var(--display); font-weight: 560; font-size: 18px; color: var(--bone-2); line-height: 1.3; }
.principles .p span { display: block; margin-top: 7px; font-size: 14px; color: var(--bone-soft); line-height: 1.55; }

/* Section artwork: full-width figure with a handwritten caption. */
.figure-cine { margin: 26px 0 0; }
.figure-cine img {
  width: 100%; display: block; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.6);
}
.figure-cine figcaption {
  margin-top: 10px; font-family: var(--hand); font-size: 19px;
  color: var(--bone-soft); text-align: right;
}
/* An emphasis line inside a section: display italic, leaf. One per section, at most. */
.section .em-line {
  margin-top: 20px;
  font-family: var(--display); font-style: italic;
  font-size: clamp(19px, 1rem + 0.7vw, 26px); line-height: 1.35;
  color: var(--leaf-glow);
}
/* Mixed emphasis line: white lead-in, its <em> stays the accent for the punch. */
.section .em-line.mixed { color: var(--bone-2); }
.artifact .em-line { color: var(--leaf-ink); }

/* ── Story hero: the artwork tells the whole story, so show all of it.
   Copy stands to the left; the intent card and its glass panels stay intact. ── */
.hero-story {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(300px, 30rem) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px); align-items: center;
  min-height: min(50rem, 88svh);
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 56px);
  /* Near-black to meet the artwork's own ground, easing back into moss below. */
  background:
    radial-gradient(circle at 78% 30%, rgba(118,195,94,0.05), transparent 34rem),
    linear-gradient(180deg, #050705 0%, #050705 78%, var(--slate) 100%);
}
.hero-story .grain {
  position: absolute; inset: 0; z-index: 0; opacity: 0.05; pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.hero-story .hero-copy { position: relative; z-index: 1; max-width: 34rem; }
.hero-story h1 {
  max-width: 16ch;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 480; line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-story .hero-art { position: relative; z-index: 1; align-self: center; }
.hero-story .hero-art img {
  width: 100%; height: auto; display: block;
  /* The artwork's own black vignette does the blending; a soft mask helps the edges. */
  -webkit-mask-image: radial-gradient(115% 115% at 50% 48%, #000 72%, transparent 100%);
  mask-image: radial-gradient(115% 115% at 50% 48%, #000 72%, transparent 100%);
}
@media (max-width: 880px) {
  .hero-story { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; gap: 6px; }
  .hero-story .hero-art { order: -1; margin: 0 -10px; }
  .hero-story .hero-copy { max-width: none; }
  .hero-story h1 { font-size: clamp(32px, 9vw, 44px); }
}

/* ── Talk to a Person: the contact form as a modal dialog ── */
.contact-modal {
  border: none; background: transparent; padding: 18px;
  width: min(660px, 94vw); max-height: 92svh; overflow-y: auto;
}
.contact-modal::backdrop {
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.contact-modal .artifact { position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }

/* Sub-page story heroes: same richness as home, slightly tighter. */
.hero-sub { min-height: min(40rem, 74svh); }
.hero-sub h1 { font-size: clamp(32px, 3.2vw, 50px); }
@media (max-width: 880px) { .hero-sub { min-height: 0; } }
