/* =========================================================
   DRIFTWOOD CLUB
   Industrial register on cream paper. Oak green primary.
   The river runs alongside.
   ========================================================= */

:root {
  --paper:        #EBE3CE;
  --paper-deep:   #DFD5BC;
  --paper-edge:   #C6BB9D;

  --ink:          #0F1612;
  --ink-soft:     #3D4A44;
  --ink-faint:    #7A8079;

  --oak:          #1F3A2D;
  --oak-deep:     #122019;
  --oak-bright:   #2D5040;

  --brass:        #A88B5C;
  --brass-soft:   #C4AC82;
  --hi:           #C7A24B;

  --rule:         rgba(15, 22, 18, 0.22);
  --rule-soft:    rgba(15, 22, 18, 0.10);

  --sans:    'IBM Plex Sans', system-ui, sans-serif;
  --cond:    'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 38rem;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --chapter-pad-y: clamp(4rem, 10vw, 8rem);
  --rail-w: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1vw + 13px, 17px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(15,22,18,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,22,18,0.022) 1px, transparent 1px),
    radial-gradient(rgba(15,22,18,0.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 4px 4px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed, fixed, fixed;
}

::selection { background: var(--oak); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
  border-radius: 0;
}

/* ---------- RIVER RAIL ---------- */
.riverbed {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 4;
  pointer-events: none;
}
.riverbed__svg { width: 100%; height: 100%; display: block; }
.riverbed__bed {
  stroke: var(--brass);
  stroke-width: 0.6;
  fill: none;
  opacity: 0.32;
  stroke-dasharray: 2.2 2.4;
  vector-effect: non-scaling-stroke;
}
.riverbed__flow {
  stroke: var(--oak);
  stroke-width: 1.4;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.riverbed__stops {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  pointer-events: none;
}
.riverbed__stops .stop {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--brass);
  opacity: 0.55;
  letter-spacing: 0.04em;
  transition: opacity .6s ease, transform .4s ease, color .6s ease;
}
.riverbed__stops .stop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 1px solid var(--brass);
  font-size: 0.6rem;
  line-height: 1;
}
.riverbed__stops .stop.lit {
  opacity: 1;
  transform: scale(1.04);
}
.riverbed__stops .stop.lit span {
  background: var(--oak);
  border-color: var(--oak);
  color: var(--paper);
}
.riverbed__stops .stop[data-i="I"]   { top: 18%; }
.riverbed__stops .stop[data-i="II"]  { top: 42%; }
.riverbed__stops .stop[data-i="III"] { top: 64%; }
.riverbed__stops .stop[data-i="IV"]  { top: 86%; }

@media (max-width: 860px) {
  .riverbed, .riverbed__stops { display: none; }
  :root { --rail-w: 0px; }
}

/* ---------- MASTHEAD ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  backdrop-filter: blur(6px) saturate(1.05);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.95rem var(--gutter) 0.95rem calc(var(--gutter) + var(--rail-w) * 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--oak);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}
.wordmark__mark {
  color: var(--hi);
  font-size: 0.72rem;
  transform: translateY(-1px);
}
.wordmark__icon {
  height: 28px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover { color: var(--oak); }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- LAYOUT ---------- */
.chapter {
  max-width: 78rem;
  margin: 0 auto;
  padding: var(--chapter-pad-y) var(--gutter) var(--chapter-pad-y) calc(var(--gutter) + var(--rail-w));
  position: relative;
}

.chapter__head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.chapter__label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.85em;
}

.numeral {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.85;
  color: var(--oak);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.numeral::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.18em;
  height: 3px;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s ease .15s;
}
.chapter.in .numeral::after { transform: scaleX(1); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin: 0;
}
.eyebrow--center { text-align: center; }
.eyebrow__dot { margin: 0 0.5em; color: var(--brass-soft); }
.brass { color: var(--brass); }

.chapter__sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- DIVIDERS ---------- */
.chapter-rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: 78rem;
  margin: 0 auto;
}
.chapter-rule--wave {
  background: transparent;
  height: 14px;
  max-width: 78rem;
  margin: 0 auto;
  color: var(--brass);
  opacity: 0.45;
}
.chapter-rule--wave svg { width: 100%; height: 100%; display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(6rem, 14vw, 10rem) var(--gutter) clamp(4rem, 8vw, 6rem) calc(var(--gutter) + var(--rail-w));
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__water {
  display: block;
  width: 100%;
  height: clamp(96px, 14vw, 140px);
  margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 2rem);
  color: var(--oak);
  opacity: 0;
  pointer-events: none;
  animation: hero-waves-in 1.0s cubic-bezier(.2,.7,.2,1) .95s forwards;
}

@keyframes hero-waves-in {
  to { opacity: 0.55; }
}
.hero__water .wave { animation: wave-drift 14s linear infinite; transform-box: view-box; }
.hero__water .wave--1 { animation-duration: 13s; }
.hero__water .wave--2 { animation-duration: 17s; animation-direction: reverse; }
.hero__water .wave--3 { animation-duration: 21s; }

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}

.hero .eyebrow--center {
  text-align: left;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  max-width: 48rem;
}

.hero__headline {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--oak-deep);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.0s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__headline .line--1 { animation-delay: .10s; }
.hero__headline .line--2 { animation-delay: .25s; }
.hero__headline .line--3 { animation-delay: .40s; }
.hero__headline .line--4 { animation-delay: .60s; }

.hero__headline-accent {
  color: var(--oak);
  background: linear-gradient(transparent 62%, rgba(199,162,75,0.30) 62%, rgba(199,162,75,0.30) 92%, transparent 92%);
  padding: 0 0.12em;
  display: inline-block !important;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 44rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: rise 1.0s cubic-bezier(.2,.7,.2,1) .85s forwards;
}

.hero__spec {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  animation: rise 1.0s cubic-bezier(.2,.7,.2,1) 1.0s forwards;
}

.spec-line {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  align-items: baseline;
}

.spec-key { color: var(--hi); font-weight: 600; }
.spec-val { color: var(--ink); font-weight: 400; line-height: 1.55; }

@media (max-width: 560px) {
  .spec-line { grid-template-columns: 1fr; gap: 0.15rem; }
  .spec-val { color: var(--ink-soft); }
}

/* ---------- CHAPTER TITLES & PROSE ---------- */
.chapter__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--oak-deep);
  max-width: 24ch;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.prose {
  max-width: var(--measure);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}
.prose p + p { margin-top: 1.15rem; }

.prose__emphasis {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--oak);
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ---------- CHIPS / TRADES ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 60rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--oak-deep);
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: default;
}
.chip:hover {
  background: var(--oak);
  color: var(--paper);
  border-color: var(--oak);
}

/* ---------- THRESHOLD / MANIFEST ---------- */
.threshold {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  max-width: 52rem;
}
.threshold__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.threshold__lead {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--oak-deep);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.manifest {
  display: flex;
  flex-direction: column;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.manifest li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1rem 0.65rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background-color .2s ease, padding-left .2s ease;
  position: relative;
  cursor: default;
}
.manifest li:first-child {
  border-top: 1px solid var(--rule);
}
.manifest__mark {
  color: var(--hi);
  font-size: 0.6rem;
  flex: 0 0 0.7rem;
  margin-top: 0.45em;
  transition: color .2s ease, transform .2s ease;
}
.manifest__text { flex: 1 1 auto; }
.manifest li:hover {
  background-color: color-mix(in oklab, var(--hi) 8%, transparent);
  padding-left: 1.1rem;
}
.manifest li:hover .manifest__mark {
  color: var(--oak);
  transform: scale(1.4);
}

.threshold__close {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--oak);
  text-transform: uppercase;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(168,139,92,0.08);
  border-left: 3px solid var(--hi);
}

/* ---------- PRACTICE ---------- */
.practice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 56rem;
}
.practice__item {
  padding-top: 1.35rem;
  border-top: 2px solid var(--oak);
}
.practice__head {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--oak);
  margin: 0 0 0.7rem;
}
.practice__body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .practice { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- STANDARD (full-bleed dark) ---------- */
.standard {
  background: var(--oak-deep);
  color: var(--paper);
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(5rem, 12vh, 8rem) calc(var(--gutter) + var(--rail-w));
  position: relative;
  overflow: hidden;
}
.standard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(235,227,206,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(235,227,206,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.standard__inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.standard__logo {
  display: block;
  width: auto;
  max-width: 360px;
  height: auto;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  opacity: 0.95;
}
.standard__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--hi);
  margin-bottom: 2rem;
}
.standard__line {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 2rem;
}
.standard__accent { color: var(--hi); }
.standard__tail {
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(235,227,206,0.78);
  max-width: 48ch;
}

/* ---------- DUES ---------- */
.dues {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  max-width: 60rem;
}
.dues__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.dues__panel {
  background: var(--oak-deep);
  color: var(--paper);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  position: relative;
}
.dues__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hi);
}

.dues__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(235,227,206,0.18);
}

.dues__tier {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--hi);
}

.dues__status {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(235,227,206,0.72);
}

.dues__panel-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.dues__figure { display: flex; flex-direction: column; gap: 0.45rem; }

.dues__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(235,227,206,0.6);
}

.dues__val {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1;
  color: var(--paper);
}
.dues__per {
  font-family: var(--mono);
  font-size: 0.4em;
  font-weight: 500;
  color: rgba(235,227,206,0.6);
  letter-spacing: 0.04em;
  margin-left: 0.2em;
  vertical-align: 0.55em;
}

.dues__panel-note {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(235,227,206,0.75);
  margin-top: 0;
}

@media (max-width: 560px) {
  .dues__panel-figures { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- APPLY FORM ---------- */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  max-width: 56rem;
}

.apply-form__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.apply-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.apply-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apply-form__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--hi);
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form select,
.apply-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  outline: none;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: var(--ink-faint);
  font-style: normal;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--oak);
  background: color-mix(in oklab, var(--paper) 70%, var(--paper-soft));
  box-shadow: inset 0 -2px 0 var(--hi);
}

.apply-form select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--oak) 50%),
    linear-gradient(135deg, var(--oak) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.apply-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.55;
}

.apply-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
  padding: 1.1rem 1.6rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--oak);
  border: 1px solid var(--oak);
  border-radius: 0;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.apply-form__submit:hover {
  background: var(--oak-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hi);
}

.apply-form__submit:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--hi);
}

.apply-form__footnote {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .apply-form__row--two { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .apply-form__submit:hover { transform: none; box-shadow: none; }
}

/* ---------- ENTRY LINK ---------- */
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.1rem 1.6rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--oak);
  text-decoration: none;
  border: 1px solid var(--oak);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.entry-link:hover {
  background: var(--oak-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hi);
}
.entry-link-arrow {
  color: var(--hi);
  font-size: 1.05rem;
  transform: translateY(-1px);
}

/* ---------- COLOPHON ---------- */
.colophon {
  background: var(--oak-deep);
  color: rgba(235,227,206,0.7);
  padding: 2.5rem var(--gutter) 2.5rem calc(var(--gutter) + var(--rail-w));
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.colophon__inner {
  max-width: 78rem;
  margin: 0 auto;
}
.colophon__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.8rem;
}
.colophon__mark {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.colophon__icon {
  height: 20px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  opacity: 0.92;
}
.colophon .dot { color: var(--brass); opacity: 0.7; }
.colophon__tail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(235,227,206,0.12);
  font-size: 0.64rem;
  opacity: 0.75;
  letter-spacing: 0.22em;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal .numeral {
  transform: scale(0.92);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2,.9,.3,1.1) .1s, opacity .6s ease .1s;
}
.reveal.in .numeral {
  transform: scale(1);
  opacity: 1;
}

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 640px) {
  .chapter, .hero { padding-left: var(--gutter); padding-right: var(--gutter); }
  .standard { padding-left: var(--gutter); padding-right: var(--gutter); }
  .colophon { padding-left: var(--gutter); padding-right: var(--gutter); }
  .masthead__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
  .chapter__head { gap: 1rem; }
  .numeral { font-size: 3.5rem; }
  .chapter__sub { font-size: 0.72rem; }
  .chips { gap: 0.4rem; }
  .chip { padding: 0.45rem 0.7rem; font-size: 0.66rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal .numeral { opacity: 1; transform: none; }
  .hero__headline .line,
  .hero__kicker,
  .hero__spec { opacity: 1; transform: none; }
  .entry-link:hover { transform: none; box-shadow: none; }
}

/* ---------- PRINT ---------- */
@media print {
  .masthead, .riverbed, .riverbed__stops { display: none; }
  body { background: #fff; }
  .standard, .colophon { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   CHARTER PAGE
   ========================================================= */

.page-charter { --rail-w: 0px; }
.page-charter .riverbed,
.page-charter .riverbed__stops { display: none; }

.nav__current {
  color: var(--oak) !important;
  position: relative;
}
.nav__current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--oak);
  transform: scaleX(1) !important;
}

.page-hero {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  text-align: left;
}
.page-hero .eyebrow--center {
  text-align: left;
  margin-bottom: 1.5rem;
}
.page-hero__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 1.5rem;
}
.page-hero__sub {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* ---------- Charter section shell ---------- */
.charter-section {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.charter-section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 50rem;
}
.charter-section__head .eyebrow {
  margin-bottom: 0.9rem;
}
.charter-section__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--oak-deep);
}
.charter-section__lede {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  max-width: 38rem;
}

/* ---------- Format grid (§1) ---------- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: 64rem;
}
.format-item {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.85rem);
  background: var(--paper);
  position: relative;
}
.format-item__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--hi);
  margin-bottom: 0.5rem;
}
.format-item__name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 0.5rem;
}
.format-item__detail {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.format-item__body {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 720px) {
  .format-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ (§2) ---------- */
.faq {
  max-width: 56rem;
  border-top: 1px solid var(--rule);
}
.faq-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 0.85rem;
}
.faq-a {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 50rem;
  margin: 0;
}

/* ---------- Code list (§3) ---------- */
.code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 56rem;
  border-top: 1px solid var(--oak);
}
.code-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.code-item:last-child {
  border-bottom: 1px solid var(--oak);
}
.code-num {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--hi);
  padding-top: 0.1em;
}
.code-head {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 0.6rem;
}
.code-text {
  font-family: var(--sans);
  font-size: 0.985rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 560px) {
  .code-item { grid-template-columns: 3rem 1fr; gap: 0.85rem; }
  .code-num { font-size: 0.85rem; }
}

/* ---------- Charter CTA ---------- */
.charter-cta {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}
.charter-cta__lede {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--oak-deep);
  margin-bottom: 1.5rem;
  max-width: 32ch;
}
.charter-cta__back {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.charter-cta__back a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.charter-cta__back a:hover {
  color: var(--oak);
  border-color: var(--oak);
}

/* ---------- Inline practice link on main page ---------- */
.practice__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--oak);
  text-decoration: none;
  border-bottom: 1px solid var(--hi);
  padding-bottom: 2px;
  transition: color .2s ease;
}
.practice__link:hover { color: var(--oak-deep); }
