/* Victor Valtchev — forest / gold / paper.
   Full-bleed backgrounds; desktop content narrowed 10% after the 2026-09-14 walk. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Pagella";
  src: url("../fonts/tex-gyre-pagella-regular-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  --forest-deep: #0B211B;
  --forest: #14352C;
  --forest-2: #1F4A3D;
  --forest-3: #2C5F4E;
  --gold: #C4A15A;
  --gold-soft: #E2C98A;
  --gold-deep: #7A5C22;
  --paper: #F7F3E8;
  --paper-2: #EFE8D6;
  --white: #FFFCF4;
  --ink: #1A1814;
  --ink-soft: #4A453C;
  --muted: #6E675A;
  --line: #D9D0B8;
  --line-dark: rgba(247, 243, 232, 0.14);
  --text-on-dark: #F1EBDD;
  --text-on-dark-soft: rgba(241, 235, 221, 0.78);

  --display: "TeX Gyre Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "SFMono-Regular", monospace;

  --gutter: clamp(1.25rem, 4vw, 5rem);
  --container: 1760px;
  --measure: 62ch;
  --measure-wide: 74ch;

  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.4rem + 4.2vw, 5.6rem);

  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3.5rem);
  --space-l: clamp(3.5rem, 7vw, 7rem);
  --space-xl: clamp(5rem, 10vw, 10rem);

  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-m) 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* Layout primitives */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (min-width: 861px) {
  .container { width: min(calc((100% - 2 * var(--gutter)) * .9), 1584px); }
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 3rem); row-gap: var(--space-m); }
.prose { max-width: var(--measure); }
.prose-wide { max-width: var(--measure-wide); }
.kicker { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 1rem; }
.dark .kicker, .on-dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); }
.meta { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--forest); color: var(--paper); padding: .6em 1em; }
.skip:focus { left: 1rem; top: 1rem; }
.section { padding-block: var(--space-l); }
.section-tight { padding-block: var(--space-m); }
.dark { background: var(--forest); color: var(--text-on-dark); }
.dark a { color: var(--gold-soft); }
.dark a:hover { color: var(--white); }
.dark .lede { color: var(--text-on-dark-soft); }
.dark .meta { color: rgba(241, 235, 221, 0.6); }
.deep { background: var(--forest-deep); }
.alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem var(--space-m); margin-bottom: var(--space-m); }
.section-head p { max-width: 44ch; margin: 0; color: var(--ink-soft); }
.dark .section-head p { color: var(--text-on-dark-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
  padding: .95em 1.6em; border-radius: var(--radius); text-decoration: none;
  background: var(--gold); color: var(--forest-deep); border: 1px solid var(--gold);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--gold-soft); color: var(--forest-deep); transform: translateY(-1px); }
a.btn, .dark a.btn, .site-nav a.btn, .site-nav a.btn:hover, .dark a.btn:hover { color: var(--forest-deep); }
a.btn-forest, a.btn-forest:hover { color: var(--paper); }
.dark a.btn-ghost, .hero a.btn-ghost, .site-nav a.btn-ghost { color: var(--text-on-dark); }
.hero a.btn-ghost:hover { color: var(--white); }
.dark a.btn-ghost:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--line-dark); }
.btn-ghost:hover { background: rgba(247, 243, 232, 0.08); color: var(--white); border-color: rgba(247, 243, 232, 0.4); }
.btn-forest { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-2); color: var(--white); }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; padding-block: 1.1rem; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--display); font-size: 1.35rem; color: var(--text-on-dark); text-decoration: none; letter-spacing: .01em; }
.wordmark:hover { color: var(--gold-soft); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.site-nav a { color: var(--text-on-dark-soft); text-decoration: none; font-size: var(--step--1); letter-spacing: .02em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.site-nav .btn { padding: .6em 1.1em; font-size: var(--step--1); background: transparent; border-color: rgba(226, 201, 138, 0.55); }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--gold-soft); }
.site-nav a.btn:hover { background: rgba(196, 161, 90, 0.12); border-color: var(--gold); transform: none; }
.nav-toggle { display: none; order: 2; }
.site-nav { order: 3; }
.site-nav { margin-left: auto; }
.header-cta { order: 4; padding: .65em 1em; font-size: .9rem; white-space: nowrap; }
.teaching-card { display: grid; align-content: center; gap: 1.25rem; border: 1px solid var(--line-dark); padding: clamp(1.5rem, 4vw, 4rem); background: var(--forest-deep); }
.teaching-card h3 { max-width: 20ch; color: var(--gold-soft); }
.teaching-card p { max-width: 38ch; color: var(--text-on-dark-soft); }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--forest-deep); color: var(--text-on-dark); overflow: hidden; }
.hero-scene { position: absolute; inset: -30% -50%; z-index: -1; pointer-events: none; }
.hero-scene canvas { width: 100%; height: 100%; display: block; }
.hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 33, 27, 0.85) 0%, rgba(11, 33, 27, 0.35) 45%, rgba(11, 33, 27, 0) 70%), linear-gradient(to top, rgba(11, 33, 27, 0.9) 0%, rgba(11, 33, 27, 0) 30%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; align-content: center; gap: clamp(1.5rem, 4vw, 5rem); min-height: 100svh; padding-block: 8rem 4rem; }
.hero-copy { position: relative; z-index: 1; max-width: 56rem; }
.hero-copy h1 { color: var(--white); margin-bottom: 1.5rem; max-width: 22ch; text-wrap: pretty; }
.hero-copy h1 { font-size: clamp(2.6rem, 1.4rem + 3.1vw, 4.8rem); }
.hero-copy .lede { color: var(--text-on-dark-soft); max-width: 36rem; margin-bottom: 2rem; }
.hero-copy .lede strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; align-items: center; }
.hero-note { margin-top: 1.25rem; color: rgba(241, 235, 221, 0.6); }
.hero-portrait { position: relative; isolation: isolate; justify-self: end; width: min(100%, 40rem); margin: 0; }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 2px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); }
.hero-portrait::before { content: ""; position: absolute; inset: 0; transform: translate(1.1rem, -1.1rem); border: 1px solid rgba(196, 161, 90, 0.55); border-radius: 2px; pointer-events: none; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; transform: translate(-1.1rem, 1.1rem); border: 1px solid rgba(196, 161, 90, 0.55); border-radius: 2px; pointer-events: none; }
.hero-results { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; max-width: 42rem; color: var(--text-on-dark-soft); }
.hero-results li { padding-left: 1rem; border-left: 2px solid var(--gold); }
.hero-results strong { color: var(--white); font-weight: 600; }
.hero-copy .hero-intro { max-width: 38rem; margin-bottom: 1rem; font-size: var(--step-1); color: var(--text-on-dark-soft); }
.hero-copy .hero-assurance { max-width: 36rem; margin: 1.25rem 0; color: var(--text-on-dark-soft); }
.testimonials { padding-block: clamp(2rem, 3vw, 3rem); }
.testimonial-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.testimonial-heading h2 { font-size: clamp(1.65rem, 2.2vw, 2rem); line-height: 1.2; }
.testimonial-heading p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.testimonial-viewport { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; padding-bottom: .5rem; }
.testimonial-viewport:focus-visible { outline-offset: -3px; }
.testimonial-track { display: flex; width: max-content; }
.testimonial-set { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0 0 0 1.25rem; width: max-content; }
.testimonial { flex: 0 0 auto; width: min(25rem, calc(100vw - 3.5rem)); display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; min-height: 20rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.testimonial-topic { display: block; min-height: 1.5rem; font: 500 .75rem/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.testimonial-top { display: flex; align-items: center; justify-content: space-between; min-height: 1.5rem; gap: .75rem; }
.testimonial-mark { height: 1.5rem; color: var(--gold); font: 3.5rem/.95 var(--display); }
.testimonial-body { margin: 0; flex: 1; }
.testimonial-body p { margin: 0; }
.testimonial-quote .testimonial-body p, .testimonial-reported .testimonial-body p { font: 1.25rem/1.5 var(--display); letter-spacing: -.01em; }
.testimonial-body h3 { font-size: 1.5rem; line-height: 1.25; text-wrap: pretty; margin-bottom: .85rem; }
.testimonial-story .testimonial-body > p, .testimonial-result:not(.testimonial-quote) .testimonial-body > p { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-soft); }
.testimonial-person { display: grid; gap: .2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial-person strong { font-size: .9rem; line-height: 1.4; color: var(--forest); }
.testimonial-person > span { font-size: .75rem; line-height: 1.5; color: var(--muted); }
.testimonial-result { background: var(--forest); border-color: var(--forest); color: var(--text-on-dark); }
.testimonial-result .testimonial-topic { color: var(--gold-soft); }
.testimonial-value { display: block; font: 2.75rem/1.1 var(--display); color: var(--gold-soft); margin-bottom: .4rem; }
.testimonial-result .testimonial-body > p { color: var(--text-on-dark-soft); }
.testimonial-result .testimonial-person { border-color: var(--line-dark); }
.testimonial-result .testimonial-person strong { color: var(--text-on-dark); }
.testimonial-result .testimonial-person > span { color: var(--text-on-dark-soft); }
.testimonial-viewport.is-moving { overflow-x: hidden; }
.is-moving .testimonial-track { animation: testimonial-drift var(--testimonial-duration, 120s) linear infinite; will-change: transform; }
.testimonial-viewport:not(.is-moving) [data-testimonial-copy] { display: none; }
.is-suspended .testimonial-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .testimonial-viewport.is-moving:hover .testimonial-track { animation-play-state: paused; }
}
@keyframes testimonial-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .testimonial-viewport.is-moving { overflow-x: auto; }
  .is-moving .testimonial-track { animation: none; transform: none; }
  [data-testimonial-copy] { display: none; }
}
@media print {
  .testimonial-viewport, .testimonial-viewport.is-moving { overflow: visible; }
  .testimonial-track, .testimonial-set { width: auto; }
  .testimonial-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .testimonial { width: auto; min-height: 0; break-inside: avoid; }
  .is-moving .testimonial-track { animation: none; transform: none; }
  [data-testimonial-copy] { display: none; }
}
.process-card, .milestone-card { margin: 0; padding: clamp(1.5rem, 3vw, 3rem); border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); color: var(--ink); }
.process-card figcaption, .milestone-card > span { font: .8rem var(--mono); letter-spacing: .06em; color: var(--gold-deep); }
.process-card :is(ol, ul) { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.process-card li { padding: .75rem 1rem; border-left: 2px solid var(--gold); background: var(--paper); }
.process-card ol li + li::before { content: '↓'; display: block; color: var(--gold-deep); margin-top: -1.5rem; padding-bottom: .25rem; }
.page-hero .process-card { background: rgba(11, 33, 27, .6); border-color: var(--line-dark); color: var(--text-on-dark); }
.page-hero .process-card figcaption { color: var(--gold-soft); }
.page-hero .process-card li { background: var(--forest); }
.page-hero .process-card li::before { color: var(--gold); }
.milestone-card h3 { margin: 1rem 0; }
.era:has(> :only-child) { grid-template-columns: 1fr; }
.proof-summary { padding: 1.25rem 0; border-top: 1px solid var(--line-dark); }
.proof-summary strong { color: var(--gold); }
.hero-strip { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); background: rgba(11, 33, 27, 0.55); backdrop-filter: blur(6px); }
.hero-strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .6rem clamp(1.5rem, 4vw, 4rem); font-family: var(--mono); font-size: var(--step--1); color: var(--text-on-dark-soft); letter-spacing: .03em; }
.hero-strip li strong { color: var(--gold); font-weight: 500; }
@media (min-width: 1100px) { .hero-strip ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; } .hero-strip li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer { background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; min-height: 100%; transition: background .25s var(--ease); }
.offer:hover { background: var(--white); }
.offer .index { font-family: var(--mono); color: var(--gold-deep); font-size: var(--step--1); letter-spacing: .12em; }
.offer h3 { font-size: var(--step-2); }
.offer p { color: var(--ink-soft); flex: 1; }
.offer .who { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }

/* Proof */
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-m) clamp(2rem, 5vw, 6rem); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m) var(--space-s); }
.stat .num { font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; color: var(--white); }
.stat .num small { font-size: .38em; color: var(--gold); margin-left: .1em; }
.stat p { margin-top: .75rem; color: var(--text-on-dark-soft); max-width: 22ch; }
.pull { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: var(--white); border-left: 2px solid var(--gold); padding-left: 1.25rem; margin: 0; }
.pull cite { display: block; font-family: var(--mono); font-style: normal; font-size: var(--step--1); color: var(--text-on-dark-soft); margin-top: .8rem; letter-spacing: .04em; }
.img-band { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--forest-2); }
.img-band img { width: 100%; height: 100%; object-fit: cover; }
.img-band.placeholder { display: grid; place-items: center; border: 1px dashed rgba(226, 201, 138, 0.45); color: var(--gold-soft); font-family: var(--mono); font-size: var(--step--1); text-align: center; padding: 1rem; letter-spacing: .04em; }
.img-band.placeholder span { opacity: 1; }
.systems { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.systems li { background: var(--forest); padding: 1.25rem 1.4rem; }
.systems .sector { font-family: var(--mono); font-size: var(--step--1); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
.systems p { margin: 0; color: var(--text-on-dark-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); counter-reset: step; }
.step { border-top: 1px solid var(--forest); padding-top: 1.25rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--gold-deep); letter-spacing: .12em; display: block; margin-bottom: .6rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-soft); }

/* Story teaser */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-m) clamp(2rem, 5vw, 6rem); align-items: center; }
.story-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.story-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.beats { list-style: none; padding: 0; margin: var(--space-s) 0 var(--space-m); display: grid; gap: 1rem; }
.beats li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.beats .when { font-family: var(--mono); color: var(--gold-deep); font-size: var(--step--1); letter-spacing: .08em; padding-top: .25rem; }
.beats p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-m); align-items: end; }
.contact h2 { color: var(--white); margin-bottom: 1rem; }
.contact .lede { max-width: 36rem; }
.contact-side { font-family: var(--mono); font-size: var(--step--1); color: var(--text-on-dark-soft); display: grid; gap: .5rem; justify-items: start; }
.contact-side a { color: var(--gold-soft); }

/* Footer */
.site-footer { background: var(--forest-deep); color: rgba(241, 235, 221, 0.6); padding-block: 2rem; border-top: 1px solid var(--line-dark); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-family: var(--mono); font-size: var(--step--1); }
.site-footer a { color: rgba(241, 235, 221, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Inner pages */
.page-hero { background: var(--forest-deep); color: var(--text-on-dark); padding: 8rem 0 var(--space-l); position: relative; isolation: isolate; overflow: hidden; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .lede { max-width: 38rem; margin-top: 1.25rem; color: var(--text-on-dark-soft); }
.page-hero-copy .btn { margin-top: 1.5rem; }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-m) clamp(2rem, 5vw, 6rem); align-items: center; }
.page-hero .container > .page-hero-copy { grid-column: 1; }
.page-hero-media { grid-column: 2; }
.page-hero-media .img-band { aspect-ratio: 3 / 2; }
.page-hero .pull { margin-top: var(--space-m); max-width: 40rem; }
.instrument { margin: 0; justify-self: end; width: min(100%, 26rem); }
.instrument svg { width: 100%; height: auto; }
.story-hero-portrait { margin: 0; justify-self: end; width: min(100%, 26rem); position: relative; }
.story-hero-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: 2px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); }
.story-hero-portrait::before { content: ""; position: absolute; inset: 0; transform: translate(1.1rem, -1.1rem); border: 1px solid rgba(196, 161, 90, 0.55); border-radius: 2px; pointer-events: none; }
@media (max-width: 860px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero-media { grid-column: 1; } .story-hero-portrait { justify-self: start; width: min(100%, 20rem); } .instrument { display: none; } }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 85% 20%, rgba(196, 161, 90, 0.16), transparent 60%); }
.article { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-l) clamp(2rem, 6vw, 8rem); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: var(--step-2); margin-top: var(--space-m); }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { max-width: var(--measure); color: var(--ink-soft); }
.article-body details {
  border-top: 1px solid var(--line);
  padding: .85rem 0 0;
}
.article-body summary {
  font-family: var(--display);
  font-size: var(--step-1);
  cursor: pointer;
  color: var(--ink);
}
.article-body summary::-webkit-details-marker { color: var(--gold-deep); }
.article-body details[open] summary { margin-bottom: .6rem; }
@media print {
  .article-body details > *:not(summary) { display: block !important; }
}
.aside { position: sticky; top: 2rem; align-self: start; display: grid; gap: 1.5rem; }
.aside-card { border: 1px solid var(--line); background: var(--white); padding: 1.5rem; border-radius: var(--radius); }
.aside-card h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.aside-card p { color: var(--ink-soft); }
.aside-card .btn { margin-top: .6rem; }
.aside-card ul { padding-left: 1.1em; color: var(--ink-soft); }
.figure { margin: 0; }
.figure figcaption { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }

/* Timeline (story page) */
.timeline { position: relative; display: grid; gap: var(--space-l); padding-left: clamp(1.5rem, 4vw, 4rem); }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--line)); }
.era { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-m) clamp(2rem, 5vw, 6rem); align-items: start; }
.era::before { content: ""; position: absolute; left: calc(-1 * clamp(1.5rem, 4vw, 4rem) + .1rem); top: .55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.era.now::before { background: var(--forest); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold); }
.era .when { font-family: var(--mono); color: var(--gold-deep); letter-spacing: .1em; text-transform: uppercase; font-size: var(--step--1); margin-bottom: .6rem; }
.era h2 { font-size: var(--step-3); margin-bottom: .75rem; }
.era p { color: var(--ink-soft); max-width: var(--measure); }
.era .img-band { background: var(--paper-2); }
.era .img-band.placeholder { border: 1px dashed var(--line); color: var(--muted); }


/* Work cases */
.cases { display: grid; gap: var(--space-l); }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-m) clamp(2rem, 5vw, 6rem); align-items: center; }
.case:nth-child(even) .img-band { order: 2; }
.case h2 { font-size: var(--step-3); margin-bottom: .75rem; }
.case p:not(.kicker) { color: var(--ink-soft); max-width: var(--measure); }
.case .img-band.placeholder { background: var(--paper-2); border: 1px dashed var(--line); color: var(--muted); }
.offers-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbered { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 1rem; }
.numbered li { counter-increment: n; display: flex; gap: 1rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: .9rem; }
.numbered li::before { content: "0" counter(n); flex: 0 0 3rem; font-family: var(--mono); color: var(--gold-deep); letter-spacing: .1em; }
.numbered li > * { flex: 1 1 auto; }
.timeline .story-portrait { max-width: 30rem; }
@media (max-width: 860px) {
  .case, .offers-2 { grid-template-columns: 1fr; }
  .case:nth-child(even) .img-band { order: 0; }
  .timeline .story-portrait { max-width: 22rem; }
}

/* Utilities */
.hide-mobile { display: initial; }
.only-mobile { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive */
@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .systems { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 6rem 0; align-items: start; gap: .5rem; }
  .hero-scene { display: none; }
  .hero-portrait { order: -1; width: min(100%, 19rem); justify-self: start; margin: 0 0 1rem; }
  .hero-portrait img { aspect-ratio: 1 / 1; object-position: 50% 12%; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
  .hero-copy .kicker { margin-bottom: .75rem; letter-spacing: .1em; font-size: .8rem; }
  .hero-copy .lede { margin-bottom: 1.25rem; }
  .hero-portrait::before, .hero-portrait::after, .story-hero-portrait::before { display: none; }
  .site-nav a.btn { display: none; }
  .hero-copy { padding-bottom: var(--space-m); }
  .hero-copy h1 { font-size: clamp(1.9rem, 8.2vw, 3.2rem); margin-bottom: 1rem; }
  .proof-grid, .story-grid, .contact-grid, .era { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-s); }
  .stats { grid-template-columns: 1fr 1fr; }
  /* Phone navigation. Without JavaScript the links simply stay visible and wrap; with it, they live in a drawer behind the toggle. */
  .site-nav { gap: .9rem 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
  html.js .site-nav a:not(.btn) { display: none; }
  html.js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 1px solid var(--line-dark); color: var(--text-on-dark); font-family: var(--mono); font-size: var(--step--1); padding: .55em .9em; border-radius: var(--radius); cursor: pointer; margin-left: auto; }
  html.js .site-nav.open a:not(.btn) { display: block; }
  html.js .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--forest-deep); border-bottom: 1px solid var(--line-dark); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: 1rem; }
  html.js .site-nav.open a:not(.btn) { font-size: var(--step-1); }
  html.js .site-nav.open a.btn { display: inline-flex; align-self: start; margin-top: .5rem; }
  .site-header .container { position: relative; gap: .65rem; }
  html.js .site-nav { margin: 0; }
  html:not(.js) .site-header { position: relative; background: var(--forest-deep); }
  html:not(.js) .site-header .container { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 5; flex-basis: 100%; justify-content: flex-start; }
  .hide-mobile { display: none; }
  .only-mobile { display: initial; }
  .beats li { grid-template-columns: 5rem 1fr; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 1.08rem; white-space: nowrap; }
  .header-cta { font-size: .8rem; padding: .75em .65em; min-height: 44px; }
  html.js .nav-toggle { font-size: .75rem; padding: .65em; min-height: 44px; }
  .hero-portrait { width: min(100%, 17.5rem); }
  .offers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-strip ul { gap: .4rem 1.25rem; }
}
@media (max-width: 360px) {
  .site-header .container { gap: .3rem; }
  .wordmark { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .arrow-link::after { transition: none; }
}
@media print {
  .hero-scene, .site-header .btn, .nav-toggle { display: none; order: 2; }
.site-nav { order: 3; }
  .hero, .dark, .deep, .site-footer, .page-hero { background: #fff; color: #000; }
}
