/* ==========================================================================
   Brian Ong — brianrealtrades
   Design tokens sampled directly from Media/00-full-page-desktop.png
   ========================================================================== */

:root {
  /* Surfaces */
  --cream:      #FFFFFF;   /* page background — white, for a cleaner/sleeker feel */
  --sand:       #FAF6F0;   /* hero panel, section bands (subtle warm) */
  --sand-2:     #F6F1E8;   /* alternate band */
  --sand-3:     #FCFAF7;   /* subtle card fill */
  --white:      #FFFFFF;   /* elevated cards */

  /* Ink */
  --forest:     #1C2B24;   /* headings, dark sections, primary button */
  --forest-2:   #233A2C;   /* nested cards inside dark sections */
  --forest-3:   #2C4636;   /* dark borders */
  --sage:       #56745A;   /* muted text on dark */

  /* Accent */
  --gold:       #C98A2E;   /* CTA fill, eyebrow labels, underline swash */
  --gold-ink:   #8A5D16;   /* gold text on light — AA compliant */
  --butter:     #F2C779;   /* accent fills, highlight blocks */

  /* Lines + muted text */
  --border:     #EBE3D6;
  --border-2:   #DED3C0;
  --muted:      #6B6355;   /* 5.6:1 on --cream */
  --muted-dark: #A8B5A4;   /* 6.1:1 on --forest */

  /* Type */
  --font-display: "Lora", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing rhythm (8pt) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  --radius-card: 18px;
  --radius-panel: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(28, 43, 36, .05), 0 10px 28px rgba(28, 43, 36, .07);
  --shadow-lift: 0 2px 6px rgba(28, 43, 36, .07), 0 20px 48px rgba(28, 43, 36, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* sticky header clearance for anchor jumps */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

/* Visible focus for keyboard users on every interactive element */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--space-sm); top: -100px;
  background: var(--forest); color: var(--cream);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 600; z-index: 200;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding-block: var(--space-2xl); }

@media (max-width: 768px) {
  .section { padding-block: var(--space-xl); }
  .wrap { padding-inline: var(--space-sm); }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--space-sm);
}
.eyebrow--on-dark { color: var(--butter); }

/* The hand-drawn gold swash under headings, as in the mockup */
.swash {
  position: relative;
  display: inline-block;
  padding-bottom: .18em;
}
.swash::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: .26em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 10.5C38 4.2 92 1.6 136 3.4c22 .9 44 3.1 62 6.2' fill='none' stroke='%23C98A2E' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.62;
  color: var(--forest);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.fineprint {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}
.fineprint--on-dark { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;           /* touch target */
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--forest); color: var(--cream); }
/* superseded by the gradient hover block below */

.btn--gold { background: var(--gold); color: #2A1B05; }
/* superseded by the gradient hover block below */

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
/* superseded by the gradient hover block below */

.btn--on-dark {
  background: var(--butter);
  color: #2A1B05;
}
/* superseded by the gradient hover block below */

.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Cards + panels
   -------------------------------------------------------------------------- */

.panel {
  background: var(--sand);
  border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 56px);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.card--sand {
  background: var(--sand-3);
  border-color: var(--border);
  box-shadow: none;
}

.card--dark {
  background: var(--forest-2);
  border: 1px solid var(--forest-3);
  color: var(--cream);
  box-shadow: none;
}

/* Cards that are whole-area links */
.card--link {
  display: block;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--sand-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--forest);
  margin: 0 6px 8px 0;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(28, 43, 36, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--forest);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-link {
  font-size: 15px;
  color: var(--forest);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { border-bottom-color: var(--gold); }
.nav-link[aria-current="true"] {
  border-bottom-color: var(--gold);
  font-weight: 650;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    box-shadow: var(--shadow-lift);
  }
  .nav-links[hidden] { display: none !important; }
  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav .btn--nav-cta { display: none; }
  .nav-links .btn { margin-top: var(--space-sm); }
}

@media (min-width: 1001px) {
  .nav-links .btn--mobile-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-panel {
  background: var(--sand);
  border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 64px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Portrait: a solid colour blob with the cutout standing on it, so the
   colour reads through around the figure (the photo is a transparent PNG). */
.portrait {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 1;
  margin-inline: auto;
}

/* the blob itself */
.portrait__blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--butter);
  overflow: hidden;
}
/* slight design inside the blob: a soft lighter sweep */
.portrait__blob::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto -40%;
  height: 70%;
  background: rgba(255, 255, 255, .22);
  border-radius: 50%;
  transform: rotate(-12deg);
  z-index: 0;
}

/* thin open arc, offset to the left, as a detail */
.portrait__arc {
  position: absolute;
  inset: -5% 6% 5% -6%;
  border: 3px solid var(--gold);
  border-radius: 50%;
  clip-path: polygon(0 6%, 40% 0, 40% 100%, 0 94%);
  opacity: .8;
}

/* second, shorter arc on the opposite side */
.portrait__arc--right {
  inset: 4% -7% -4% 7%;
  border-width: 2px;
  border-color: var(--border-2);
  clip-path: polygon(62% 10%, 100% 18%, 100% 82%, 62% 90%);
  opacity: 1;
}

/* The photo now lives inside the blob, so the circle clips it and the whole
   figure reads as being inside the shape. A gradient mask softens the cut at
   the bottom so his torso blends into the colour instead of ending on a hard
   edge where it meets the curve. */
.portrait__blob img {
  position: absolute;
  left: 51%;                 /* he sits slightly right of centre in the source */
  bottom: 0;
  transform: translateX(-50%);
  height: 96%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, rgba(0,0,0,.55) 94%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 84%, rgba(0,0,0,.55) 94%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .portrait__blob img { transition: transform .5s var(--ease); }
  .hero-panel:hover .portrait__blob img { transform: translateX(-50%) scale(1.02); }
}


.hero-title {
  /* sized so "Hey, I'm Brian" stays on one line in the hero column */
  font-size: clamp(38px, 5.1vw, 68px);
  line-height: 1.06;
  margin-bottom: var(--space-md);
  text-wrap: nowrap;
}
@media (max-width: 420px) {
  /* let it wrap rather than overflow on the narrowest phones */
  .hero-title { text-wrap: balance; font-size: 36px; }
}

.hero-copy {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
  max-width: 56ch;
  margin-bottom: var(--space-lg);
}
.hero-copy strong {
  font-weight: 700;
  border-bottom: 2px solid var(--forest);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Logo / credential rows (set as text wordmarks, matching the mockup)
   -------------------------------------------------------------------------- */

.credrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  padding-block: var(--space-md);
}
.credrow + .credrow { border-top: 1px solid var(--border-2); }

.credrow__label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.credrow__item {
  font-weight: 700;
  color: var(--forest);
  font-size: 17px;
}
.credrow--certs .credrow__item {
  font-family: var(--font-display);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-2);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   P&L gallery — wheel-scroll on hover, drag-to-pan, keyboard + buttons
   -------------------------------------------------------------------------- */

.gallery { position: relative; }

.gallery__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px var(--space-sm);
  /* hide scrollbar but keep it operable */
  scrollbar-width: thin;
  scrollbar-color: var(--forest-3) transparent;
  cursor: grab;
}
.gallery__track::-webkit-scrollbar { height: 8px; }
.gallery__track::-webkit-scrollbar-track { background: transparent; }
.gallery__track::-webkit-scrollbar-thumb {
  background: var(--forest-3);
  border-radius: var(--radius-pill);
}
.gallery__track[data-dragging="true"] {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.gallery__item {
  flex: 0 0 auto;
  width: 216px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--forest-3);
  border: 1px solid var(--forest-3);
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: auto;
  pointer-events: none;   /* so drag never starts a native image drag */
  -webkit-user-drag: none;
}

.gallery__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted-dark);
  background: var(--forest-2);
}
.gallery__amount {
  font-weight: 700;
  color: var(--butter);
  font-variant-numeric: tabular-nums;
}

.gallery__badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(28, 43, 36, .86);
  color: var(--butter);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.gallery__btn {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--forest-2);
  border: 1px solid var(--forest-3);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.gallery__btn:hover:not([disabled]) { background: var(--forest-3); }
.gallery__btn[disabled] { opacity: .35; cursor: not-allowed; }

.gallery__progress {
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--forest-3);
  overflow: hidden;
}
.gallery__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--butter);
  border-radius: inherit;
  transition: width .15s linear;
}

.gallery__count {
  font-size: 13px;
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallery__hint {
  font-size: 12px;
  color: var(--muted-dark);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Testimonial carousel
   -------------------------------------------------------------------------- */

.quotes__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.quotes__item {
  flex: 0 0 min(420px, 84vw);
  scroll-snap-align: start;
}

.quote__text {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}
.quote__by {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Timeline (quant journey)
   -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-md);
  position: relative;
  margin-top: var(--space-lg);
}
.phase { position: relative; padding-top: 34px; }
.phase::before {
  content: "";
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 2px;
  background: var(--border-2);
}
.phase__dot {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--border-2);
}
.phase[data-state="done"] .phase__dot { background: var(--gold); border-color: var(--gold); }
.phase[data-state="active"] .phase__dot { background: var(--butter); border-color: var(--gold); }
.phase__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.phase[data-state="done"] .phase__status,
.phase[data-state="active"] .phase__status { color: var(--gold-ink); }
.phase__name { font-weight: 650; font-size: 15px; margin-bottom: 4px; }
.phase__desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--space-md); }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field__req { color: #A33; }

.field__hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 16px;            /* prevents iOS zoom-on-focus */
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 136px; resize: vertical; line-height: 1.55; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 138, 46, .22);
}

.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #A33;
  box-shadow: 0 0 0 3px rgba(170, 51, 51, .15);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #8E2A2A;
  margin-top: 7px;
}
.field__error:empty { display: none; }

.form-status {
  margin-top: var(--space-sm);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] {
  background: #FBEAEA;
  border: 1px solid #E5BFBF;
  color: #7A2020;
}
.form-status[data-tone="info"] {
  background: var(--sand-2);
  border: 1px solid var(--border-2);
  color: var(--forest);
}

/* Dark-section form (newsletter) */
.form--dark .field__label { color: var(--cream); }
.form--dark .input {
  background: var(--forest-2);
  border-color: var(--forest-3);
  color: var(--cream);
}
.form--dark .input::placeholder { color: var(--muted-dark); }
.form--dark .field__hint { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Calculator widget
   -------------------------------------------------------------------------- */

.calc-out {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: var(--space-md);
}
.calc-out__big {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--butter);
  font-variant-numeric: tabular-nums;
}
.calc-out__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--forest-3);
  font-size: 14px;
}
.calc-out__val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--sand);
  padding-block: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer a { color: var(--forest); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 820px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}
.footer__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; font-size: 15px; }

.footer__legal {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-2);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 90ch;
}

/* --------------------------------------------------------------------------
   Scroll reveal — opt-in, and fully disabled under reduced motion
   -------------------------------------------------------------------------- */

/* Only hidden once JS confirms it is running — see js-reveal in main.js.
   Without this gate a JS failure would leave sections permanently invisible. */
.reveal { opacity: 1; transform: none; }

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-reveal .reveal[data-shown="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .gallery__controls, .nav-toggle { display: none; }
  body { background: #fff; }
  .gallery__track { overflow: visible; flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   TODO markers — links whose destination Brian hasn't supplied yet.
   Visible to him, unobtrusive to a visitor. Delete this block once every
   data-todo attribute has been replaced with a real href.
   -------------------------------------------------------------------------- */

/* Dev markers are hidden from visitors. They still exist in the markup as
   data-todo attributes, and audit mode below reveals them on demand. */
.todo-link:not(.card) { text-decoration: none; }

/* Flip this to `block` to audit every unfinished link at a glance. */
[data-todo]::after {
  content: " ⚠";
  display: none;
  color: var(--gold-ink);
}
body[data-audit="true"] [data-todo]::after { display: inline; }
body[data-audit="true"] [data-todo] { outline: 2px dashed var(--gold); outline-offset: 2px; }
body[data-audit="true"] .todo-link:not(.card) {
  text-decoration: underline dotted; text-underline-offset: 3px;
}

/* Whole-card TODO links get a corner marker instead of underlined text. */
/* the corner dot on whole-card TODO links is audit-only too */
body[data-audit="true"] a.card.todo-link { position: relative; }
body[data-audit="true"] a.card.todo-link::before {
  content: "";
  position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); opacity: .8;
}

/* --------------------------------------------------------------------------
   Two-column blocks collapse on narrow viewports
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .lead-grid,
  .story-grid,
  .proof-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  #calc .field + .field,
  #calc > div > div > div { grid-template-columns: 1fr !important; }
  .hero-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Overflow containment
   A grid/flex item defaults to min-width:auto, so an overflow-x scroller
   inside one stretches the column to its full intrinsic content width and
   the whole page scrolls sideways. min-width:0 lets the scroller shrink.
   -------------------------------------------------------------------------- */

[data-scroller],
.gallery,
.gallery__track,
.quotes__track { min-width: 0; }

.proof-grid > *,
.story-grid > *,
.lead-grid > *,
.hero-grid > * { min-width: 0; }

/* --------------------------------------------------------------------------
   Target size — WCAG 2.2 AA wants 24x24 CSS px for pointer targets.
   Standalone card links and footer links sit at ~17px without this.
   -------------------------------------------------------------------------- */

.card > a:not(.btn):not(.card),
.footer__list a,
.quote__by a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* --------------------------------------------------------------------------
   Brand lockup — candlestick mark + BrianRealTrades wordmark,
   extracted from the logo and recoloured black on transparent.
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-height: 44px;
}
.brand__mark { height: 30px; width: auto; }
.brand__word { height: 15px; width: auto; }

@media (max-width: 420px) {
  .brand__mark { height: 26px; }
  .brand__word { height: 13px; }
}

.footer .brand__mark { height: 34px; }
.footer .brand__word { height: 17px; }

/* --------------------------------------------------------------------------
   Press grid — four thumbnails, all identical 16:9
   -------------------------------------------------------------------------- */

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}
@media (max-width: 1080px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .press-grid { grid-template-columns: 1fr; } }

.press-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.press-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sand-2);
  overflow: hidden;
}
.press-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* identical box for every thumbnail */
}

.press-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.press-card__play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(28, 43, 36, .82);
  display: grid; place-items: center;
}

.press-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.press-card__title {
  font-size: 17px;
  margin-bottom: 8px;
  text-wrap: balance;
}
.press-card__desc { font-size: 14px; color: var(--muted); margin-bottom: var(--space-md); }
.press-card__cta {
  margin-top: auto;
  font-weight: 650;
  font-size: 14px;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* --------------------------------------------------------------------------
   Video embed
   -------------------------------------------------------------------------- */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--forest);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   NOTE on the "weird f" in "portfolio":
   It is not a ligature. Measured in-browser, "portfolio" renders at an
   identical width with ligatures on and off, because p-o-r-t-f-o-l-i-o
   contains no fi pair. The hooked f is simply how Playfair Display draws its
   lowercase f. Disabling ligatures here would only harm real pairs
   (first, fine, fluff, offer), so it is deliberately NOT done.
   Resolved: the display face is now Lora, whose f is open and conventional.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Track record: both panels share one row, so they size identically.
   -------------------------------------------------------------------------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;          /* equal height */
}
.proof-grid > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* push the closing fine print to the bottom of each panel so the two
   columns line up even when their content differs in length */
.proof-grid > .card > .fineprint:last-child { margin-top: auto; padding-top: var(--space-sm); }

/* --------------------------------------------------------------------------
   YouTube section still
   -------------------------------------------------------------------------- */

.yt-still {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--forest);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.yt-still:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.yt-still img { width: 100%; height: 100%; object-fit: cover; }

.yt-still__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;        /* bottom-left, so it doesn't cover his face */
  padding: 16px;
  pointer-events: none;
}
.yt-still__play svg {
  width: 22px; height: 22px;
  padding: 14px 13px 14px 17px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(201, 46, 46, .92);     /* YouTube-style play affordance */
}

/* ==========================================================================
   Marquee — "As featured on" / "Registered & certified with"
   The track holds the items twice; translating by exactly -50% loops
   seamlessly because the second copy lands where the first started.
   ========================================================================== */

.marquee {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: var(--space-md);
  overflow: hidden;
}
.marquee + .marquee { border-top: 1px solid var(--border-2); }

.marquee__label {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* fade the items out at both edges instead of clipping them hard */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  /* Longhands, not the `animation` shorthand: a var() inside the shorthand
     computed to 0s here and the marquee never moved. */
  animation-name: marquee-scroll;
  animation-duration: var(--marquee-duration, 34s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
}
.marquee__viewport:hover .marquee__track,
.marquee__viewport:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item {
  flex: 0 0 auto;
  padding-inline: 26px;
  font-weight: 700;
  font-size: 17px;
  color: var(--forest);
  white-space: nowrap;
}
.marquee--certs .marquee__item {
  font-family: var(--font-display);
  font-size: 16px;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Motion is decorative here, so stop it entirely and let the row scroll
   manually instead. */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   Help-section icon tiles
   ========================================================================== */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
/* 5 cards in a 3-col grid leaves a hole; let the last one fill the gap */
.help-grid > .help-card--wide { grid-column: span 2; }

@media (max-width: 980px) {
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid > .help-card--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .help-grid { grid-template-columns: 1fr; }
  .help-grid > .help-card--wide { grid-column: span 1; }
}

.help-card { display: flex; flex-direction: column; }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
  background: var(--sand-2);
  border: 1px solid var(--border);
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease);
}
.icon-tile svg { width: 28px; height: 28px; display: block; }

/* each tile gets its own tint so the row reads as a set, not a repeat */
.icon-tile--gold   { background: #FBEFD8; border-color: #EFDCB4; }
.icon-tile--sage   { background: #E8EFE7; border-color: #CFDDCC; }
.icon-tile--clay   { background: #F7E7DC; border-color: #E8CDB8; }
.icon-tile--sky    { background: #E4ECF2; border-color: #C9DAE5; }
.icon-tile--mint   { background: #E6F7F1; border-color: #BCE5D6; }

.card:hover .icon-tile { transform: translateY(-2px) rotate(-3deg); }

/* ==========================================================================
   Hover states — colour shifts, not just opacity

   Implemented as an animated background-position rather than a pseudo-element:
   a z-index:-1 ::after inside an `isolation: isolate` button paints BEHIND the
   button's own background-color and is never visible.

   background-size is 200% tall and the gradient's lower half is the hover
   colour, so sliding the position from top to bottom wipes the new colour
   upward across the button.
   ========================================================================== */

.btn {
  position: relative;
  background-repeat: no-repeat;
  /* The hover colour lives in the lower half of this background. Two things
     made a sliver of it show along the bottom edge at rest:
       1. background-clip defaults to border-box, so it painted *under* the
          2px transparent border.
       2. at exactly 200% the 50% colour stop lands on the element's bottom
          edge, and subpixel rounding leaked a 1px line.
     padding-box fixes the first; 204% pushes the stop ~1px clear of the
     visible area, which fixes the second without affecting the hover. */
  background-clip: padding-box;
  background-size: 100% 204%;
  background-position: 0 0;
  transition: background-position .34s var(--ease),
              color .22s var(--ease),
              border-color .22s var(--ease),
              transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.btn:hover, .btn:focus-visible { background-position: 0 100%; }

.btn--primary {
  background-color: var(--forest);
  background-image: linear-gradient(to top, var(--gold) 50%, transparent 50%);
}
.btn--primary:hover, .btn--primary:focus-visible { color: #2A1B05; }

.btn--gold {
  background-color: var(--gold);
  background-image: linear-gradient(to top, var(--forest) 50%, transparent 50%);
}
.btn--gold:hover, .btn--gold:focus-visible { color: var(--cream); }

.btn--ghost {
  background-color: transparent;
  background-image: linear-gradient(to top, var(--forest) 50%, transparent 50%);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--cream); border-color: var(--forest); }

.btn--on-dark {
  background-color: var(--butter);
  background-image: linear-gradient(to top, var(--cream) 50%, transparent 50%);
}
.btn--on-dark:hover, .btn--on-dark:focus-visible { color: var(--forest); }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,43,36,.16); }
  .btn:active { transform: translateY(0); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color .01ms, color .01ms; background-image: none; }
  .btn--primary:hover { background-color: var(--gold); }
  .btn--gold:hover { background-color: var(--forest); }
  .btn--ghost:hover { background-color: var(--forest); }
  .btn--on-dark:hover { background-color: var(--cream); }
}

/* Cards pick up a gold edge on hover */
.card--link:hover,
.help-grid .card:hover,
.press-card:hover { border-color: var(--gold); }

.help-grid .card {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .help-grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* Inline "Get started ->" links: arrow slides, colour deepens */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin-top: auto;
  font-weight: 650;
  font-size: 15px;
  color: var(--gold-ink);
  text-decoration: none;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow svg { transition: transform .22s var(--ease); }
.link-arrow:hover { color: var(--forest); gap: 11px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Stat counters
   ========================================================================== */

.stat__num {
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.1em;              /* replaces the wide word-space in "18 mths" */
  white-space: nowrap;
}
/* hold the digits' width steady while they tick up so nothing reflows */
.stat__num > [data-count-to] { display: inline-block; text-align: right; }

.stat__affix { margin-right: -0.04em; }
.stat__unit  { font-size: .82em; }
.stat__unit--tight { margin-left: -0.06em; font-size: 1em; }

/* ==========================================================================
   Footer — underlined links + social icons
   ========================================================================== */

.footer__list a,
.footer a.footer-inline {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-2);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer__list a:hover,
.footer a.footer-inline:hover {
  color: var(--gold-ink);
  text-decoration-color: var(--gold);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.social {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand-2);
  border: 1px solid var(--border-2);
  color: var(--forest);
  text-decoration: none;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), border-color .22s var(--ease);
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--butter);
}
@media (prefers-reduced-motion: no-preference) {
  .social:hover { transform: translateY(-3px); }
}


/* ==========================================================================
   Help cards light up in their own colour on hover
   Each card inherits the tint from its icon tile, so the row reads as a set.
   ========================================================================== */

.help-card {
  --tint: var(--sand-2);
  --tint-edge: var(--border-2);
  transition: background-color .28s var(--ease), border-color .28s var(--ease),
              transform .25s var(--ease), box-shadow .28s var(--ease);
}
/* bright, solid fills — each card owns a colour */
.help-card:has(.icon-tile--gold) { --tint: #FFA94D; --tint-edge: #F08C1E; }  /* orange */
.help-card:has(.icon-tile--sage) { --tint: #FFD43B; --tint-edge: #E8BC13; }  /* yellow */
.help-card:has(.icon-tile--clay) { --tint: #B197FC; --tint-edge: #9478F0; }  /* light purple */
.help-card:has(.icon-tile--sky)  { --tint: #74C0FC; --tint-edge: #4DA8F5; }  /* light blue */
.help-card:has(.icon-tile--mint) { --tint: #63E6BE; --tint-edge: #38D9A9; }  /* mint */

.help-card:hover,
.help-card:focus-within {
  background-color: var(--tint);
  border-color: var(--tint-edge);
  box-shadow: 0 16px 38px rgba(28, 43, 36, .18);
}
/* muted grey and gold-ink both fail against a saturated fill — go to dark ink */
.help-card:hover h3,
.help-card:hover .muted,
.help-card:hover .link-arrow,
.help-card:focus-within h3,
.help-card:focus-within .muted,
.help-card:focus-within .link-arrow { color: #15211B; }

.help-card:hover .icon-tile,
.help-card:focus-within .icon-tile {
  background: #fff;
  border-color: rgba(21, 33, 27, .25);
}

/* :has() is widely supported now, but fall back to a neutral tint without it */
@supports not selector(:has(*)) {
  .help-card:hover { background-color: var(--sand-3); border-color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  .help-card { transition: background-color .01ms, border-color .01ms; }
}

/* ==========================================================================
   Hero text column, centred
   ========================================================================== */

.hero-grid > div:last-child { text-align: center; }
.hero-grid .hero-copy { margin-inline: auto; }
.hero-grid .hero-actions { justify-content: center; }
.hero-grid .pill { margin-inline: auto; }

/* the swash is sized to the text it sits under, so it stays correct when centred */
.hero-title .swash { display: inline-block; }

@media (max-width: 900px) {
  .hero-grid > div:last-child { text-align: center; }
}


/* ==========================================================================
   Trading Journal screenshot — clean white frame, no stray rules
   ========================================================================== */

.journal-shot {
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 6px solid #FFFFFF;        /* white outline, as asked */
  box-shadow: 0 2px 4px rgba(28, 43, 36, .06),
              0 18px 42px rgba(28, 43, 36, .13);
  aspect-ratio: 1560 / 920;          /* matches the crop exactly, so nothing
                                        is re-cropped and no edge lines show */
}
.journal-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ==========================================================================
   Portfolio chart, v2
   Uses the site's existing tokens only. No new palette.
   [COMPLIANCE REVIEW REQUIRED BEFORE PUBLISH]
   ========================================================================== */

.pg2 {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: clamp(22px, 3vw, 40px);
  color: var(--forest);
}

.pg2__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 12px;
}
.pg2__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,138,46,.16);
}

.pg2__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08; margin: 0 0 12px; color: var(--forest);
}
.pg2__title span { color: var(--gold-ink); }

.pg2__sub {
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6;
  color: var(--muted); max-width: 56ch; margin: 0 0 var(--space-lg);
}

/* ---- stats row ---------------------------------------------------- */
.pg2__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.pg2__stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 14px 16px;
}
.pg2__stat dt {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 6px;
}
.pg2__stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 2vw, 25px); font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.pg2__asof { font-size: 13px; color: var(--muted); margin: 0 0 var(--space-md); }

/* ---- toolbar ------------------------------------------------------ */
.pg2__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); flex-wrap: wrap; margin-bottom: 10px;
}
.pg2__readout { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pg2__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pg2__when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pg2__scale { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--radius-pill); overflow: hidden; }
.pg2__scale button {
  font: inherit; font-size: 13px; font-weight: 650;
  padding: 9px 16px; min-height: 40px; border: 0; cursor: pointer;
  background: var(--white); color: var(--muted);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.pg2__scale button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.pg2__scale button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* ---- plot --------------------------------------------------------- */
.pg2__plot {
  position: relative; width: 100%;
  aspect-ratio: 1000 / 420; min-height: 260px;
  touch-action: pan-y;
}
.pg2__plot svg { display: block; width: 100%; height: 100%; }
.pg2__plot:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }

.pg2-grid     { stroke: var(--border-2); stroke-width: 1; }
.pg2-axis     { fill: var(--muted); font: 500 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.pg2-line     { fill: none; stroke: var(--gold); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pg2-guide    { stroke: var(--forest); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; }
.pg2-dot      { fill: var(--gold); stroke: var(--sand); stroke-width: 3; opacity: 0; }
.pg2__plot[data-active="true"] .pg2-guide,
.pg2__plot[data-active="true"] .pg2-dot { opacity: 1; }
.pg2-anno     { fill: var(--muted); font: 500 11px var(--font-sans); }

.pg2__tip {
  position: absolute; pointer-events: none; z-index: 3;
  background: var(--forest); color: var(--cream);
  border-radius: 10px; padding: 8px 11px;
  font-size: 13px; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--shadow-lift); opacity: 0;
  transform: translate(-50%, -128%);
  transition: opacity .15s var(--ease);
}
.pg2__plot[data-active="true"] .pg2__tip { opacity: 1; }
.pg2__tip b { display: block; font-variant-numeric: tabular-nums; }
.pg2__tip span { color: var(--muted-dark); font-size: 12px; }

.pg2__hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---- disclaimer: body size, not fine print ------------------------ */
.pg2__legal {
  margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid var(--border-2);
  font-size: 14px; line-height: 1.6; color: var(--forest);
  max-width: 78ch;
}
.pg2__legal strong { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .pg2-guide, .pg2-dot, .pg2__tip, .pg2__scale button { transition: none; }
}
