/* ==========================================================================
   Connor C Neville, CPA, PLLC - Components
   ========================================================================== */

/* ---------- 1. Reveal choreography --------------------------------------- */
/* Each section is assigned a DIFFERENT variant so no two consecutive
   sections enter the same way. Children stagger via --i. */

.js [data-reveal] {
  --i: 0;
  --delay: calc(var(--i) * 90ms);
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 820ms var(--ease-out) var(--delay),
    transform 820ms var(--ease-out) var(--delay),
    clip-path 980ms var(--ease-out) var(--delay),
    filter 820ms var(--ease-out) var(--delay);
}

.js [data-reveal='up']    { transform: translate3d(0, 34px, 0); }
.js [data-reveal='down']  { transform: translate3d(0, -26px, 0); }
.js [data-reveal='left']  { transform: translate3d(-46px, 0, 0); }
.js [data-reveal='right'] { transform: translate3d(46px, 0, 0); }
.js [data-reveal='scale'] { transform: scale(0.94); filter: blur(6px); }
.js [data-reveal='clip']  { clip-path: inset(0 100% 0 0); opacity: 1; }
.js [data-reveal='wipe']  { clip-path: inset(100% 0 0 0); opacity: 1; }
.js [data-reveal='mask']  { clip-path: inset(0 0 105% 0); opacity: 1; }
.js [data-reveal='iris']  { clip-path: circle(0% at 50% 50%); opacity: 1; }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}
.js [data-reveal='iris'].is-in { clip-path: circle(75% at 50% 50%); }

/* SVG stroke draw-on */
.js [data-draw] {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1900ms var(--ease-out) var(--delay, 0ms);
}
.js [data-draw].is-in { stroke-dashoffset: 0; }

/* ---------- 2. Buttons --------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 1.05rem 1.85rem;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.btn__arrow {
  width: 1em; height: 1em;
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Fill sweeps in from the left on hover - the one showy micro-interaction. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }

.btn--primary {
  background: var(--brass);
  color: #0E1A17;
  box-shadow: inset 0 0 0 1px var(--brass);
}
.btn--primary::before { background: var(--brass-lt); }
.btn--primary:hover { color: #0E1A17; }

.btn--ghost {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); }

.btn--quiet {
  padding-inline: 0;
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}
.btn--quiet::before { display: none; }
.btn--quiet:hover { color: var(--accent); }

.btn--lg { padding: 1.3rem 2.4rem; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.zone-right .btn-row { justify-content: flex-end; }
.zone-center .btn-row { justify-content: center; }

/* ---------- 3. Header / navigation --------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 420ms var(--ease-out), border-color 420ms var(--ease-out);
}

.header.is-stuck {
  background: rgba(10, 21, 18, 0.97);
  border-bottom-color: var(--ink-line);
}

/* Interior pages have no full-bleed hero, so the bar is solid from load. */
.header--solid {
  background: rgba(10, 21, 18, 0.97);
  border-bottom-color: var(--ink-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-4) var(--gutter);
}

/* -- Wordmark -- */
.brandmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--on-ink);
  flex: none;
}
.brandmark__seal { width: 34px; height: 34px; flex: none; }
.brandmark__text { display: flex; flex-direction: column; line-height: 1; }
.brandmark__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 48;
}
.brandmark__role {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 3px;
}

/* -- Desktop nav -- */
.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.9rem); }

.nav__link {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 228, 0.74);
  padding-block: 0.4rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 340ms var(--ease-out);
}
.nav__link:hover { color: var(--on-ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__link[aria-current='page'] { color: var(--on-ink); }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

.nav__actions { display: none; align-items: center; gap: var(--s-3); }

.nav__portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.05rem;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 59, 0.5);
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__portal:hover { background: rgba(184, 134, 59, 0.12); color: var(--brass-lt); }
.nav__portal svg { width: 12px; height: 12px; }

.nav__cta { padding: 0.78rem 1.25rem; font-size: 0.72rem; }

/* -- Mobile toggle -- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0 8px;
  margin-right: -8px;
  flex: none;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--on-ink);
  transition: transform 380ms var(--ease-out), opacity 200ms linear;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -- Mobile drawer -- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-6);
  padding: 6rem var(--gutter) var(--s-8);
  background: #0A1512;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 620ms var(--ease-out);
  overflow-y: auto;
  pointer-events: none;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
body.nav-open { overflow: hidden; }

.drawer__list { display: flex; flex-direction: column; }
.drawer__item { border-top: 1px solid var(--ink-line); }
.drawer__item:last-child { border-bottom: 1px solid var(--ink-line); }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  color: var(--on-ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), color var(--dur-fast) linear;
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 55ms); }
.drawer__link:hover { color: var(--brass); }
.drawer__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  flex: none;
}

.drawer__foot { display: grid; gap: var(--s-3); }
.drawer__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}

/* ---------- 4. Page masthead (interior pages) ---------------------------- */

.masthead {
  position: relative;
  padding-block: clamp(8.5rem, 6rem + 9vw, 12.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-line);
}

/* Interior mastheads carry a photographic ground. The image is weighted to the
   right and washed out toward the left so the headline keeps full contrast. */
.masthead__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.masthead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
  opacity: .66;
  filter: saturate(.82) contrast(1.05);
  transform: scale(1.07);
  animation: mast-settle 2600ms var(--ease-out) forwards;
}
@keyframes mast-settle { to { transform: scale(1); } }

.masthead__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      var(--ink) 0%, var(--ink) 24%,
      rgba(14, 26, 23, .90) 44%,
      rgba(14, 26, 23, .42) 76%,
      rgba(14, 26, 23, .20) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(14, 26, 23, 0) 34%);
}

/* A brass seam where the masthead meets the page. */
.masthead::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(to right,
    var(--brass) 0%, rgba(184, 134, 59, .35) 32%, rgba(184, 134, 59, 0) 72%);
}
.masthead__inner { position: relative; z-index: 2; max-width: 58rem; }
/* Interior headlines sit a step below the home hero in the type hierarchy;
   at full hero scale a long one runs past the fold. */
.masthead h1 {
  margin-block: var(--s-5) var(--s-5);
  font-size: var(--fs-display);
  line-height: 0.98;
}
.masthead .lead { max-width: 52ch; }

/* Oversized brass numeral bleeding off the right edge. */
.masthead__ghost {
  position: absolute;
  z-index: 1;
  right: -0.08em;
  bottom: -0.34em;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(11rem, 30vw, 26rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 134, 59, 0.16);
  pointer-events: none;
  user-select: none;
}

/* ---------- 5. Marquee --------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-block: 1px solid var(--rule);
  background: var(--bg);
  color: var(--fg);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  font-family: var(--font-display);
  font-size: var(--fs-marquee);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 144;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.marquee__group span { padding-inline: 0.22em; }
.marquee__group .is-solid { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 6. Stats ----------------------------------------------------- */

.stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.stat {
  padding: var(--s-6) 0 var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 144;
  color: var(--accent);
}
.stat__suffix { font-size: 0.42em; letter-spacing: -0.01em; }
.stat__label {
  margin-top: var(--s-4);
  max-width: 26ch;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--fg-mute);
}

/* ---------- 7. Ledger grid (services, inclusions, criteria) -------------- */
/* Not cards - a ruled table. Hairlines form the structure. */

.ledger {
  display: grid;
  border-top: 1px solid var(--rule);
}
.ledger__row {
  position: relative;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule);
}
.ledger__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.ledger__title { font-size: var(--fs-h3); }
.ledger__body { color: var(--fg-mute); max-width: 54ch; text-wrap: pretty; }
.ledger__row--feature .ledger__title { font-size: var(--fs-h2); }

/* Checklist of inclusions */
.checks { display: grid; gap: var(--s-4); }
.checks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: var(--s-3);
  align-items: start;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
  color: var(--fg-mute);
}
.checks li strong { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.checks svg { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; color: var(--accent); flex: none; }

/* Two-column fit / not-a-fit */
.fitgrid { display: grid; gap: var(--s-8); }
.fitcol { padding-top: var(--s-5); border-top: 2px solid var(--accent); }
.fitcol--no { border-top-color: var(--tension); }
.fitcol--no .fitcol__head { color: var(--tension); }
.fitcol__head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.fitlist { display: grid; gap: var(--s-4); }
.fitlist li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: var(--s-3);
  align-items: start;
  color: var(--fg-mute);
  line-height: 1.55;
}
.fitlist svg { width: 0.95rem; height: 0.95rem; margin-top: 0.42rem; flex: none; }

/* ---------- 8. Price block ----------------------------------------------- */

.price {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-7) 0;
  border-block: 1px solid var(--rule);
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 2rem + 7vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variation-settings: 'opsz' 144;
  color: var(--fg);
}
.price__currency { font-size: 0.36em; color: var(--accent); align-self: flex-start; margin-top: 0.22em; }
.price__period {
  font-family: var(--font-body);
  font-size: 0.16em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.price__note { color: var(--fg-mute); max-width: 48ch; }

/* Anchoring comparison rows */
.anchor { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.anchor__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.anchor__label { color: var(--fg-mute); }
.anchor__figure {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tension);
  font-variation-settings: 'opsz' 72;
}
.anchor__row--good .anchor__figure { color: var(--accent); }

/* ---------- 9. Reviews --------------------------------------------------- */

.reviews { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.review {
  display: grid;
  gap: var(--s-4);
  /* Reviews vary a lot in length. Pinning the stars to the top and the name to
     the bottom keeps both lines level across a row, however uneven the quotes. */
  align-content: space-between;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule);
}
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__stars svg { width: 15px; height: 15px; }
.review__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.75vw, 1.5rem);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 72;
  color: var(--fg);
  text-wrap: pretty;
}
.review__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.review__name { color: var(--accent); }

/* Leave-a-review ask */
.ask {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-7);
  border: 1px solid var(--rule);
  border-radius: 1px;
  text-align: center;
  justify-items: center;
}

/* ---------- 10. FAQ ------------------------------------------------------ */

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  padding: var(--s-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 48;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__sign {
  position: relative;
  flex: none;
  width: 15px; height: 15px;
  margin-top: 0.42em;
  color: var(--accent);
}
.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 420ms var(--ease-out);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding-bottom: var(--s-6); }
.faq__a p { max-width: 60ch; color: var(--fg-mute); text-wrap: pretty; }
.faq__a p + p { margin-top: var(--s-4); }
.faq__item[open] .faq__a { animation: faq-open 480ms var(--ease-out); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 11. Forms ---------------------------------------------------- */

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }

.field { display: grid; gap: var(--s-2); }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field__req { color: var(--tension); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--fg);
  font-size: 1.0625rem;
  transition: border-color var(--dur) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brass-lt);
  outline-offset: 4px;
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238A6229' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 12px 8px;
}
[data-zone='ink-deep'] .field select,
.section:not([data-zone]) .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23B8863B' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
}
.field select option { background: var(--cream); color: var(--on-cream); }

.field textarea { resize: vertical; min-height: 6rem; }

.form__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--fg-faint);
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 12. Contact rail --------------------------------------------- */

.rail { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.rail__item {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
}
.rail__key {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.rail__val {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 48;
  color: var(--fg);
  transition: color var(--dur-fast) var(--ease-out);
}
a.rail__val:hover { color: var(--accent); }

.map-frame {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 1px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(0.9) sepia(0.22); }
.map-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s-3);
  justify-items: center;
  text-align: center;
  padding: var(--s-5);
  /* The panel is always dark ink, so this must not follow the light zone. */
  color: rgba(244, 239, 228, .62);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 13. Portrait treatment --------------------------------------- */

.portrait {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 1px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  /* The image blends in luminosity mode, so it takes its hue from this ramp.
     Brass through to ink gives a true two-tone rather than a green cast. */
  background: linear-gradient(168deg, #C89546 0%, #8A6229 38%, #2A3A32 78%, #14201C 100%);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.14) brightness(1.06);
  mix-blend-mode: luminosity;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(184,134,59,.08) 0%, rgba(14,26,23,0) 40%, rgba(10,21,18,.62) 100%),
    repeating-linear-gradient(to bottom, rgba(10,21,18,.10) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-4);
  text-align: center;
  padding: var(--s-5);
  color: rgba(244, 239, 228, .62);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.9;
}
.portrait__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  background: linear-gradient(to top, rgba(10,21,18,.96) 30%, rgba(10,21,18,.7) 65%, transparent);
}

/* ---------- 14. Timeline (About) ----------------------------------------- */

.timeline { display: grid; gap: 0; position: relative; }
.timeline__item {
  position: relative;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) 0 var(--s-7) var(--s-6);
  border-left: 1px solid var(--rule);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -4.5px; top: calc(var(--s-6) + 0.55rem);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.timeline__item--peak::before { background: var(--accent); }
.timeline__era {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__item--peak .timeline__era { color: var(--tension); }
.timeline__body { color: var(--fg-mute); max-width: 56ch; text-wrap: pretty; }

/* ---------- 15. Pull quote / callout ------------------------------------- */

.pullquote {
  position: relative;
  padding: var(--s-6) 0 var(--s-6) var(--s-6);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.024em;
  font-variation-settings: 'opsz' 144;
  color: var(--fg);
  text-wrap: balance;
}
.pullquote--tension { border-left-color: var(--tension); }

.callout {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 1px;
}
.callout--tension { border-left-color: var(--tension); }
.callout__head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.callout--tension .callout__head { color: var(--tension); }

/* ---------- 16. CTA band -------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 3.5rem + 8vw, 10rem);
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
}
.cta-band__inner { position: relative; z-index: 2; display: grid; gap: var(--s-5); justify-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { max-width: 50ch; margin-inline: auto; }

/* ---------- 17. Footer ---------------------------------------------------- */

.footer {
  position: relative;
  background: #0A1512;
  color: var(--on-ink);
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
}
.footer__grid { display: grid; gap: var(--s-8); }
.footer__col { display: grid; gap: var(--s-4); align-content: start; }
.footer__head {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer__list { display: grid; gap: var(--s-3); }
.footer__list a { color: rgba(244,239,228,.66); font-size: 0.9375rem; transition: color var(--dur-fast) var(--ease-out); }
.footer__list a:hover { color: var(--brass); }
.footer__blurb { color: var(--on-ink-mute); font-size: 0.9375rem; max-width: 34ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}
.footer__bottom a:hover { color: var(--brass); }
.footer__disclaimer {
  margin-top: var(--s-5);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(244,239,228,.52); /* 5.14:1 on footer ink */
  max-width: 70ch;
}

/* ---------- 17b. Inline SVG charts --------------------------------------- */

.chart {
  width: 100%;
  height: auto;
  color: var(--fg-mute);
  overflow: visible;
}


/* ---------- 17c. Year wheel (The Plan) ----------------------------------- */
/* Twelve month ticks, four quarterly arcs. The structure is the content:
   books close monthly, we sit down quarterly. */

.yearwheel {
  width: 100%;
  max-width: 27rem;
  height: auto;
  margin-inline: auto;
  color: var(--fg-mute);
  overflow: visible;
}
.yearwheel__q {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: var(--fg-mute);
  text-anchor: middle;
  dominant-baseline: central;
}
.yearwheel__node {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.2);
  transition: opacity 520ms var(--ease-out) var(--delay, 0ms),
              transform 620ms var(--ease-out) var(--delay, 0ms);
}
.is-in .yearwheel__node,
.yearwheel.is-in .yearwheel__node { opacity: 1; transform: scale(1); }
.yearwheel__spin {
  transform-origin: 200px 200px;
  animation: yw-spin 90s linear infinite;
}
@keyframes yw-spin { to { transform: rotate(360deg); } }

.yearwheel-cap {
  margin-top: var(--s-5);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--fg-mute);
}
.yearwheel-cap b { color: var(--accent); font-weight: 500; }

/* ---------- 17d. Revenue threshold scale (Who It's For) ------------------ */

.scale { display: grid; gap: var(--s-5); }
.scale__track {
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr;
}
.scale__band {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.85rem 1rem;
  background: var(--tint);
  border-left: 3px solid var(--rule);
}
.scale__band--under {
  color: var(--fg-faint);
  border-left-color: rgba(158, 59, 42, .45);
}
.scale__band--over {
  color: var(--fg);
  background: rgba(184, 134, 59, .13);
  border-left-color: var(--accent);
}
.scale__figure {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 48;
  font-variant-numeric: tabular-nums;
}
.scale__verdict {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.scale__band--over .scale__verdict { color: var(--accent); }
.scale__band--under .scale__verdict { color: var(--tension); }

/* The threshold rule that splits the two halves. */
.scale__line {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-block: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.scale__line::before,
.scale__line::after {
  content: '';
  height: 1px;
  background: var(--accent);
  opacity: .55;
}
.scale__line::before { width: 1.75rem; flex: none; }
.scale__line::after { flex: 1; }

/* Bands fill from the left as the block reveals. */
.js .scale__band { clip-path: inset(0 100% 0 0); }
.js .scale__band { transition: clip-path 760ms var(--ease-out) var(--delay, 0ms); }
.js [data-reveal].is-in .scale__band,
.js .scale.is-in .scale__band { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .yearwheel__spin { animation: none; }
  .yearwheel__node { opacity: 1; transform: none; }
  .js .scale__band { clip-path: none; }
}

/* ---------- 18. Divider ornaments ---------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--accent);
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .3;
}
.ornament svg { width: 22px; height: 22px; flex: none; }

/* ---------- 19. Responsive ------------------------------------------------ */

/* Below 600px the label wraps under the right-aligned figure and the row reads
   as two disconnected fragments. Stack it instead. */
@media (max-width: 599px) {
  .anchor__row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
  .anchor__figure { justify-self: start; }
}

@media (max-width: 767px) {
  .masthead__media img { object-position: 66% 38%; opacity: .5; }
  .masthead__media::after {
    background:
      linear-gradient(to bottom,
        rgba(14, 26, 23, .58) 0%, rgba(14, 26, 23, .90) 46%, var(--ink) 100%),
      linear-gradient(100deg, var(--ink) 0%, rgba(14, 26, 23, .55) 60%, rgba(14, 26, 23, .38) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead__media img { animation: none; transform: none; }
}

@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
  .rail { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
}

@media (min-width: 768px) {
  .ledger--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
  .fitgrid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .reviews { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .ledger__row {
    grid-template-columns: 4rem 1fr;
    column-gap: var(--s-5);
    align-items: start;
  }
  .ledger__index { grid-row: span 2; padding-top: 0.55rem; }
  .checks--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__actions { display: flex; }
  .nav-toggle { display: none; }
  .drawer { display: none; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .reviews--3 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }

  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 6.5rem);
    align-items: center;
  }
  .split--wide-left  { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
  .split--top { align-items: start; }
}

@media (min-width: 1280px) {
  .ledger--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-7); }
}
