:root {
  --bg: #0b130e;
  --bg-alt: #101a13;
  --paper: #eae4d3;
  --sage: #9fba9f;
  --muted: #82937d;
  --copper: #b0602f;
  --copper-light: #cd8f5c;
  --line: rgb(159 186 159 / 24%);
  --display: 'Oranienbaum', Georgia, serif;
  --sans: 'Quattrocento Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { color: var(--bg); background: var(--copper-light); }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 5px; }
.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px 4vw;
  border-bottom: 1px solid var(--line);
  background: rgb(11 19 14 / 90%);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 30px; height: 30px; }
.brand > span { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; line-height: 1.3; }
.brand small { display: block; margin-top: 3px; color: var(--sage); font-size: 8px; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a, .deck-link, .language button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  transition: color 180ms ease-out;
}
.main-nav a:hover, .deck-link:hover, .language button:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language { display: flex; gap: 3px; }
.language button { padding: 0 6px; border: 0; background: transparent; cursor: pointer; }
.language button[aria-pressed='true'] { color: var(--copper-light); text-decoration: underline; text-underline-offset: 6px; }
.deck-link { white-space: nowrap; }
.section {
  position: relative;
  padding: clamp(76px, 9vw, 132px) 5vw;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-tag { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(46px, 6vw, 80px); }
.section-tag span, .eyebrow, .credit, .note, .sources {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.6;
}
.section-tag { color: var(--sage); }
.section-tag i { display: block; width: 100px; height: 1px; background: var(--copper); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { max-width: 850px; margin-bottom: 32px; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.025em; }
h3 { line-height: 1.15; }
p { max-width: 72ch; }
.lead { color: var(--paper); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.55; }
.sage { color: var(--sage); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.copper { color: var(--copper-light); }
.note { max-width: 850px; margin-top: 48px; color: var(--muted); letter-spacing: .05em; }
.two-column { display: grid; grid-template-columns: 1.08fr .92fr; gap: 8vw; align-items: start; }
.wide-gap { gap: 10vw; }
.column-main > p { margin-bottom: 24px; }
.word-spine { position: relative; margin: 12px 0 0; padding: 0; list-style: none; }
.word-spine::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 18px; width: 1px; background: var(--line); }
.word-spine li { position: relative; margin-bottom: 68px; padding-left: 62px; }
.word-spine li:last-child { margin-bottom: 0; }
.word-spine li::before { content: ''; position: absolute; top: 8px; left: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--copper); }
.word-spine li:nth-child(2)::before { background: var(--copper-light); }
.word-spine li:nth-child(3)::before { background: var(--sage); }
.word-spine strong { display: block; margin-bottom: 12px; font-family: var(--display); font-size: 30px; font-weight: 400; }
.word-spine span { display: block; max-width: 300px; color: var(--muted); font-size: 15px; }
.hero {
  min-height: max(680px, calc(100dvh - 76px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 0;
  background:
    linear-gradient(90deg, rgb(11 19 14 / 92%) 0%, rgb(11 19 14 / 54%) 55%, rgb(11 19 14 / 16%) 100%),
    linear-gradient(0deg, rgb(11 19 14 / 85%) 0%, transparent 55%),
    url('./forest-1.webp') center / cover;
}
.hero .section-tag { margin-bottom: 0; }
.hero-content { position: relative; z-index: 2; margin: auto 0; padding: 64px 0; }
.hero h1 { margin: 20px 0 14px; font-size: clamp(70px, 10vw, 142px); line-height: .95; letter-spacing: -.045em; }
.hero-subtitle { color: var(--sage); font-family: var(--display); font-size: clamp(21px, 2vw, 30px); font-style: italic; }
.eyebrow { color: var(--sage); }
.credit { margin: 48px 0 0; color: var(--sage); font-size: 9px; }
.hero-trail { position: absolute; right: 4vw; bottom: 20%; width: 45%; opacity: .45; pointer-events: none; }
.hero-trail svg { width: 100%; overflow: visible; }
.hero-trail path { fill: none; stroke: var(--sage); stroke-width: 1; }
.hero-trail circle { fill: var(--copper-light); }
.text-link, .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--copper-light);
  color: var(--copper-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  transition: gap 180ms ease-out, color 180ms ease-out;
}
.text-link:hover, .contact-link:hover { gap: 34px; color: var(--paper); }
.photo-panel { background-position: center; background-size: cover; }
.question {
  background-image:
    linear-gradient(90deg, rgb(11 19 14 / 94%), rgb(11 19 14 / 65%)),
    url('./forest-2.webp');
}
blockquote { margin: 0; }
.quote-mark { display: block; color: var(--copper); font-family: var(--display); font-size: 88px; line-height: .6; }
.question blockquote p { max-width: 1020px; margin: 34px 0 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 64px); font-style: italic; line-height: 1.15; }
.question .note { padding-top: 28px; border-top: 1px solid var(--copper); }
.returning { margin-top: 54px; }
.time-bands { display: grid; gap: 12px; }
.time-bands article { padding: 26px 28px; background: #17271c; }
.time-bands article:nth-child(2) { background: #24392a; }
.time-bands article:nth-child(3) { background: #4b3320; }
.time-bands h3 { margin-bottom: 10px; font-size: 25px; }
.time-bands p { margin: 0; color: var(--sage); font-size: 15px; }
.band-note { margin: 12px 0 0; color: var(--copper-light); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.section-heading { max-width: 950px; margin-bottom: 60px; }
.trail { position: relative; height: 480px; margin: 10px 0 45px; }
.trail-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail-line path { fill: none; stroke: var(--sage); stroke-width: 1.2; opacity: .55; }
.trail-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  width: 136px;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  padding: 24px 4px 6px;
  border: 0;
  color: var(--sage);
  background: transparent;
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: color 180ms ease-out, transform 180ms ease-out;
}
.trail-node::before { content: ''; position: absolute; top: 0; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--sage); transition: box-shadow 180ms ease-out, transform 180ms ease-out; }
.trail-node.copper::before { background: var(--copper); }
.trail-node.pale::before { background: var(--paper); }
.trail-node span { position: absolute; top: -24px; color: var(--copper-light); font-family: var(--display); font-size: 24px; }
.trail-node strong { font-family: var(--display); font-size: 23px; font-weight: 400; line-height: 1.05; }
.trail-node small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.trail-node:hover, .trail-node.active { color: var(--paper); transform: translate(-50%, -50%) scale(1.06); }
.trail-node.active::before { box-shadow: 0 0 0 8px rgb(176 96 47 / 18%), 0 0 24px rgb(205 143 92 / 40%); transform: scale(1.2); }
.gesture-detail { display: grid; grid-template-columns: 100px 1fr 1.15fr; gap: 4vw; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gesture-number { color: var(--copper); font-family: var(--display); font-size: 76px; line-height: 1; }
.gesture-detail-heading h3 { margin-bottom: 12px; font-size: 42px; }
.gesture-detail-heading blockquote { margin-top: 24px; color: var(--copper-light); font-family: var(--display); font-size: 19px; font-style: italic; }
.gesture-detail-body p { color: var(--sage); }
.exercise { margin-top: 28px; color: var(--muted) !important; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; }
.nature-bath { min-height: 800px; background-image: linear-gradient(90deg, rgb(11 19 14 / 94%) 10%, rgb(11 19 14 / 55%) 62%, rgb(11 19 14 / 15%)), url('./forest-3.webp'); }
.nature-content { max-width: 800px; }
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; }
.conditions h3 { color: var(--copper-light); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.conditions p { color: var(--sage); font-size: 16px; }
.case-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; }
.case-steps { margin: 0; padding: 0; list-style: none; }
.case-steps li { position: relative; margin-bottom: 34px; padding-left: 42px; }
.case-steps li::before { content: ''; position: absolute; top: 8px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--sage); }
.case-steps li:nth-child(3)::before { background: var(--copper-light); }
.case-steps li:nth-child(4)::before { background: var(--copper); }
.case-steps h3 { margin-bottom: 8px; font-size: 26px; }
.case-steps p { margin: 0; color: var(--muted); font-size: 16px; }
.deliverables { padding-top: 8px; }
.deliverables ol { margin: 28px 0 0; padding: 0; list-style: none; }
.deliverables li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; margin-bottom: 26px; }
.deliverables li span { color: var(--copper); font-family: var(--display); font-size: 40px; line-height: 1; }
.deliverables li p { margin: 0; }
.records-grid { display: grid; grid-template-columns: .85fr 1.25fr .9fr; gap: 5vw; align-items: start; }
.big-number { display: block; color: var(--copper); font-family: var(--display); font-size: 88px; line-height: 1; }
.harvest-start h3 { margin: 22px 0 18px; font-size: 30px; }
.harvest-start p { color: var(--sage); font-size: 16px; }
.sheet-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--copper); }
.sheet-heading p { margin: 0; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); color: var(--sage); background: transparent; font-family: var(--mono); font-size: 9px; cursor: pointer; }
.sheet-actions button:hover { color: var(--paper); border-color: var(--copper-light); }
.harvest-sheet dl { margin: 0; }
.harvest-sheet dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.harvest-sheet dt { color: var(--paper); font-size: 15px; }
.harvest-sheet dd { margin: 0; color: var(--muted); font-size: 14px; }
.evidence ul { margin: 26px 0; padding: 0; list-style: none; }
.evidence li { position: relative; margin-bottom: 15px; padding-left: 18px; }
.evidence li::before { content: '·'; position: absolute; left: 0; color: var(--copper-light); }
.sources { margin-top: 58px; color: var(--muted); font-size: 9px; }
.closing { min-height: 720px; display: flex; flex-direction: column; justify-content: center; background-image: linear-gradient(0deg, rgb(11 19 14 / 92%), rgb(11 19 14 / 48%)), url('./forest-1.webp'); }
.closing-content { margin: auto 0; text-align: center; }
.closing blockquote { max-width: 960px; margin: 0 auto; font-family: var(--display); font-size: clamp(38px, 4.8vw, 70px); font-style: italic; line-height: 1.15; }
.translation { margin-top: 34px; color: var(--sage); font-family: var(--display); font-size: 21px; font-style: italic; }
.verbs { margin: 60px auto 0; color: var(--paper); font-size: 15px; }
.closing .credit { position: absolute; right: 5vw; bottom: 36px; left: 5vw; text-align: center; }
.contact-link { margin-top: 40px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 5vw; border-top: 1px solid var(--line); color: var(--sage); background: var(--bg); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--paper); }
.toast { position: fixed; z-index: 150; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 12px 18px; color: var(--bg); background: var(--paper); font-family: var(--mono); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease-out, transform 180ms ease-out; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 9px; }
  .deck-link { display: none; }
  .records-grid { grid-template-columns: 1fr 1fr; }
  .harvest-start { grid-column: 1 / -1; max-width: 680px; }
}

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 4px 16px; padding: 10px 20px; }
  .main-nav { order: 3; width: 100%; gap: 20px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; }
  .header-actions { margin-left: auto; }
  .section { padding: 70px 24px; }
  .hero { min-height: calc(100dvh - 118px); }
  .two-column, .case-grid { grid-template-columns: 1fr; gap: 60px; }
  .word-spine li { margin-bottom: 44px; }
  .trail { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trail-line { display: none; }
  .trail-node { position: relative; top: auto; left: auto; width: auto; min-height: 96px; justify-content: center; padding: 30px 8px 12px; border: 1px solid var(--line); transform: none; }
  .trail-node:hover, .trail-node.active { transform: none; }
  .trail-node span { top: 8px; font-size: 20px; }
  .trail-node::before { top: 14px; width: 10px; height: 10px; left: calc(50% - 5px); }
  .trail-node strong { font-size: 22px; }
  .gesture-detail { grid-template-columns: 72px 1fr; gap: 28px; }
  .gesture-detail-body { grid-column: 2; }
  .gesture-number { font-size: 60px; }
  .conditions { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: 1fr; gap: 54px; }
  .nature-bath { min-height: 0; }
  .closing { min-height: 650px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer > span { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand > span { font-size: 10px; }
  .brand small { font-size: 7px; }
  .hero h1 { font-size: 66px; }
  .hero-trail { width: 70%; bottom: 26%; }
  h2 { font-size: 45px; }
  .section-tag { margin-bottom: 42px; }
  .section-tag span { font-size: 9px; }
  .question blockquote p { font-size: 34px; }
  .time-bands article { padding: 22px; }
  .gesture-detail { grid-template-columns: 1fr; }
  .gesture-detail-body { grid-column: 1; }
  .gesture-number { font-size: 52px; }
  .harvest-sheet dl > div { grid-template-columns: 1fr; gap: 5px; }
  .verbs { font-size: 13px; line-height: 1.9; }
  .closing blockquote { font-size: 36px; }
  .closing .credit { font-size: 7px; }
  .site-footer { gap: 12px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body * { visibility: hidden; }
  #harvest-sheet, #harvest-sheet * { visibility: visible; }
  #harvest-sheet { position: absolute; top: 0; left: 0; width: 100%; padding: 32px; color: #111; background: #fff; }
  #harvest-sheet dl > div { border-color: #bbb; }
  #harvest-sheet dt, #harvest-sheet dd, #harvest-sheet .eyebrow { color: #111; }
  .sheet-actions { display: none; }
}

.main-nav a.current { color: var(--copper-light); }

/* Hero carries the same page gutter as the presentation sections. */
.hero { padding: clamp(64px, 8vw, 120px) 5vw; }
@media (max-width: 820px) {
  .hero { padding: 56px 24px; }
}

/* Existing Beylongue 3D plan, mirrored with the release. */
.betan-study { background: #0b130e; }
.betan-frame {
  position: relative;
  height: clamp(460px, 58vw, 760px);
  border: 1px solid var(--line);
  background: url('/betan/site/betan-ortho.jpg') center / cover;
}
.betan-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b130e;
}
.betan-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.betan-caption .note { margin-top: 24px; }
.betan-caption .text-link { margin-top: 18px; }
@media (max-width: 820px) {
  .betan-frame { height: 440px; }
}
@media (max-width: 480px) {
  .betan-frame { height: 380px; }
}

/* 2026-11-04: encounter block + footer parentage */
.encounter { max-width: 760px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.encounter > p { margin-bottom: 20px; }
.encounter .eyebrow { margin-bottom: 18px; }
.footer-parentage { text-align: center; }
.footer-parentage a { display: inline; min-height: 0; color: inherit; text-decoration: none; }
@media (max-width: 720px) { .site-footer { flex-wrap: wrap; justify-content: center; text-align: center; } }
