/* =========================================================
   THEME OVERRIDE — Armi L. Lavy
   Load AFTER style.css. Delete this file to go back.
   Fraunces + Instrument Sans · Charcoal / Butter / Sage
   ========================================================= */

   :root {
    /* charcoal (replaces the greens) */
    --green: #232625;
    --green-deep: #181a19;
    --green-soft: #e6ebe0;          /* sage tint */
  
    /* surfaces */
    --cream: #f4f1e6;
    --paper: #faf8f1;
  
    /* butter yellow (used on dark surfaces + small accents) */
    --gold: #efd479;
  
    --ink: #1c1f1d;
    --muted: #5d6159;
    --line: #dad8c9;
  
    --sage: #9bae92;
    --sage-deep: #5b7154;           /* readable sage for text on light */
    --butter: #efd479;
    --butter-soft: #f7e8b2;
  
    --serif: "Fraunces", Georgia, serif;
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  
  /* ---------- base type ---------- */
  body {
    font-size: 17px;
    line-height: 1.65;
    font-feature-settings: "kern", "liga";
    text-rendering: optimizeLegibility;
  }
  
  h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-optical-sizing: auto;
    text-wrap: balance;
  }
  
  p { text-wrap: pretty; }
  
  /* body copy was 13–14px; bring it up */
  .hero-content > p       { font-size: 18px; line-height: 1.6; max-width: 520px; }
  .intro-copy p,
  .section-description    { font-size: 17px; line-height: 1.7; max-width: 62ch; }
  
  /* ---------- headings ---------- */
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 8.2vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 11em;
  }
  
  .intro h2,
  .section-heading h2,
  .calculator-intro h2,
  .closing-cta h2,
  .newsletter-copy h2 {
    font-weight: 400;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  
  /* kill the AI-tell italic accent; use color instead */
  h1 em, h2 em, h3 em,
  .intro h2 em,
  .closing-cta h2 em,
  .newsletter-copy h2 em {
    font-style: normal;
    font-weight: 400;
    color: var(--sage-deep);
  }
  .closing-cta h2 em { color: var(--butter); }
  .newsletter-copy h2 em { color: var(--sage-deep); }
  
  /* ---------- eyebrows / labels: quieter ---------- */
  .section-kicker,
  .eyebrow,
  .collection-label,
  .product-eyebrow,
  .journal-category,
  .footer-label,
  .results-label {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;         /* was wide-tracked caps */
    color: var(--sage-deep);
  }
  .light-eyebrow { color: var(--butter); }
  
  /* ---------- accent text on LIGHT backgrounds (old gold) ---------- */
  .section-kicker,
  .journal-section-heading,
  .journal-card h3 a:hover,
  .journal-read-link:hover,
  .fallback-links span { color: var(--sage-deep); }
  
  .main-nav > a:hover { color: var(--sage-deep); }
  .line-icon,
  .contact-link svg,
  .faq-list summary::after { color: var(--sage-deep); }
  .journal-dot { background: var(--sage-deep); }
  .journal-read-link { border-bottom-color: var(--sage-deep); }
  .fallback-links > a:hover { border-color: var(--sage-deep); }
  .journal-featured:hover { border-color: var(--sage); }
  
  /* on dark footer keep butter */
  .footer-label { color: var(--butter); }
  
  /* ---------- accent on DARK surfaces ---------- */
  .slide-dot.is-active,
  .status-dot { background: var(--butter); }
  .calculator-note svg,
  .journal-art-empty { color: var(--butter); }
  .marquee-group li::after { color: var(--butter); }
  .marquee-group a { border-bottom-color: var(--butter); }
  .marquee-group a:focus-visible { color: var(--butter); }
  .button-light:hover { background: var(--butter-soft); }
  
  /* ---------- surfaces ---------- */
  .marquee { background: var(--green); color: #f1eee2; }
  
  .product-image-wrap,
  .product-image-wrap .product-cover,
  .journal-art { background: #e7e6d8; }
  
  .journal-art-empty {
    background:
      radial-gradient(circle at 30% 20%, #3b413d 0, transparent 60%),
      linear-gradient(145deg, #2a2d2b, #181a19);
  }
  .journal-image-missing { background: #2a2d2b; }
  
 /* ---------- HERO: photo mode ---------- */
.hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(24, 26, 25, 0.88) 0%,
        rgba(24, 26, 25, 0.62) 45%,
        rgba(24, 26, 25, 0.15) 100%
      ),
      linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 38%);
  }
  
  /* ---------- buttons ---------- */
  .button { font-weight: 600; letter-spacing: 0; }
  .button-light { background: var(--butter); color: var(--green-deep); }
  
  /* ---------- numbers (calculator, prices) ---------- */
  .results-label ~ *,
  .price,
  [class*="result"] strong,
  [class*="price"] { font-variant-numeric: tabular-nums; }
  
  /* ---------- motion: calmer ---------- */
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  }

  .main-nav .nav-cta {
    background: var(--butter);
    color: var(--green-deep);
  }
  .main-nav .nav-cta:hover {
    background: var(--butter-soft);
    color: var(--green-deep);
  }

  /* ---------- Softer butter ---------- */
:root {
    --butter: #f0dfa6;
    --butter-soft: #f7edc8;
    --gold: #f0dfa6;
  }
  
  /* ---------- Pill buttons ---------- */
  .button,
  .main-nav .nav-cta {
    border-radius: 999px;
    padding: 15px 28px;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }
  .button:hover,
  .main-nav .nav-cta:hover {
    transform: translateY(-1px);
  }
  
  .button-light {
    background: var(--paper);
    color: var(--green-deep);
  }
  .button-light:hover {
    background: var(--butter-soft);
    color: var(--green-deep);
  }
  
  .main-nav .nav-cta {
    background: var(--green);
    color: #fff;
  }
  .main-nav .nav-cta:hover {
    background: var(--butter-soft);
    color: var(--green-deep);
  }

  /* ---------- Nav links: bigger + underline draw on hover ---------- */
.main-nav > a:not(.nav-cta) {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
  }
  
  .main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--sage-deep);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  }
  
  .main-nav > a:not(.nav-cta):hover,
  .main-nav > a:not(.nav-cta):focus-visible {
    color: var(--sage-deep);
  }
  
  .main-nav > a:not(.nav-cta):hover::after,
  .main-nav > a:not(.nav-cta):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  /* =========================================================
   MORE FREE TOOLS
   ========================================================= */
.tools-section { background: var(--cream); }

.tools-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.tools-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.tools-head p { color: var(--muted); font-size: 17px; margin: 0; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
  }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3.4vw, 40px);
}

.tool-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
}
.tool-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tool-sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }

.tool-card .field { margin-bottom: 18px; }

.tool-result {
  background: var(--green);
  color: #f1eee2;
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 26px;
}
.tool-result[hidden] { display: none; }
.tool-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--butter);
}
.tool-result-main {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 8px 0 10px;
  font-variant-numeric: tabular-nums;
}
.tool-result-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tool-result-text { margin: 0; color: rgba(241, 238, 226, 0.82); font-size: 16px; line-height: 1.6; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.tool-result .button-dark { background: var(--paper); color: var(--green-deep); }
.tool-result .button-dark:hover { background: var(--butter-soft); }
.tool-result .text-link {
  background: none;
  border: 0;
  color: #f1eee2;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font-size: 15px;
}

.tool-disclaimer { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* checklist */
.check-item {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 16px 0;
}
.check-item legend { padding: 0; font-size: 16px; line-height: 1.5; margin-bottom: 10px; float: left; width: 100%; }
.check-options { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.check-options label { cursor: pointer; }
.check-options input { position: absolute; opacity: 0; pointer-events: none; }
.check-options span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.check-options label:hover span { border-color: var(--sage-deep); }
.check-options input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.check-options input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

.tool-progress { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* equal-height cards, disclaimer pinned to the bottom */
.tool-card {
    display: flex;
    flex-direction: column;
  }
  .tool-disclaimer {
    margin-top: auto;
    padding-top: 20px;
  }

  .tool-card .input-with-prefix,
.tool-card select {
  border-radius: 16px;
}
.tool-card .input-with-prefix input {
  background: transparent;
}

/* ---------- Safety result: reveal animation ---------- */
.tool-result.is-revealed {
    animation: resultIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  
  .tool-result.is-revealed > * {
    animation: resultChild 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .tool-result.is-revealed > :nth-child(1) { animation-delay: 0.10s; }
  .tool-result.is-revealed > :nth-child(2) { animation-delay: 0.22s; }
  .tool-result.is-revealed > :nth-child(3) { animation-delay: 0.32s; }
  .tool-result.is-revealed > :nth-child(4) { animation-delay: 0.42s; }
  .tool-result.is-revealed > :nth-child(5) { animation-delay: 0.52s; }
  
  @keyframes resultIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes resultChild {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* score dots */
  .pips {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
  }
  .pip {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(241, 238, 226, 0.28);
    background: transparent;
  }
  .pip.is-yes    { background: var(--butter); border-color: var(--butter); }
  .pip.is-unsure { border-color: var(--sage); background: rgba(155, 174, 146, 0.35); }
  
  .tool-result.is-revealed .pip {
    animation: pipPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.35s + var(--i) * 0.09s);
  }
  @keyframes pipPop {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* =========================================================
   RHYTHM: quote band, asymmetry, glossary
   ========================================================= */

/* ---------- glossary terms + tooltip ---------- */
.gl-term {
    all: unset;
    cursor: help;
    color: inherit;
    border-bottom: 1.5px dotted var(--sage-deep);
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .gl-term:hover,
  .gl-term:focus-visible { color: var(--sage-deep); border-bottom-style: solid; }
  .gl-term:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 3px; }
  
  .gl-tip {
    position: fixed;
    z-index: 1000;
    max-width: 320px;
    background: var(--green);
    color: #f1eee2;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.55;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    animation: tipIn 0.18s ease both;
  }
  .gl-tip[hidden] { display: none; }
  .gl-tip strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    margin-bottom: 4px;
  }
  .gl-tip span { display: block; color: rgba(241, 238, 226, 0.85); }
  .gl-tip a {
    display: inline-block;
    margin-top: 10px;
    color: var(--butter);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  @keyframes tipIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* ---------- quote band ---------- */
  .quote-band {
    position: relative;
    overflow: hidden;
    background: var(--green-deep);
    color: #f1eee2;
    padding: clamp(80px, 12vw, 160px) var(--page-pad);
  }
  .quote-band::before {
    content: "“";
    position: absolute;
    top: -0.12em;
    left: calc(var(--page-pad) - 0.05em);
    font-family: var(--serif);
    font-size: clamp(14rem, 30vw, 28rem);
    line-height: 1;
    color: var(--sage);
    opacity: 0.14;
    pointer-events: none;
  }
  .quote-inner {
    position: relative;
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    gap: 40px;
  }
  .quote-band blockquote { margin: 0; }
  .quote-band blockquote p {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.8vw, 4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .quote-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 22px;
    border-left: 2px solid var(--butter);
  }
  .quote-name { font-weight: 600; font-size: 17px; }
  .quote-role { color: rgba(241, 238, 226, 0.7); font-size: 15px; }
  
  @media (min-width: 1001px) {
    .quote-inner { grid-template-columns: 8fr 3fr; align-items: end; gap: 80px; }
    .quote-meta { margin-bottom: 0.6em; }
  }
  
  /* ---------- asymmetric intro + staggered principles (desktop only) ---------- */
  @media (min-width: 1001px) {
    .intro-grid {
      grid-template-columns: 7fr 4fr;
      gap: clamp(48px, 8vw, 120px);
      align-items: start;
    }
    .intro h2 {
      font-size: clamp(3rem, 6vw, 5.2rem);
      line-height: 1;
      letter-spacing: -0.03em;
    }
    .intro-copy {
      margin-top: clamp(60px, 9vw, 140px);
      padding-left: 28px;
      border-left: 2px solid var(--sage);
    }
  }
  @media (min-width: 901px) {
    .principle:nth-child(2) { margin-top: 40px; }
    .principle:nth-child(3) { margin-top: 80px; }
  }
  
  /* ---------- glossary ---------- */
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  
  .glossary { background: var(--cream); display: grid; gap: 40px; }
  .glossary-side h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .glossary-side p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
  .glossary-side input[type="search"] {
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 16px;
    color: var(--ink);
  }
  .glossary-side input[type="search"]:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 2px;
  }
  
  .glossary-list { margin: 0; }
  .gl-item { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
  .gl-item[hidden] { display: none; }
  .gl-item dt {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .gl-item dd { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; }
  .gl-item:target { background: var(--green-soft); border-radius: 16px; padding-left: 20px; padding-right: 20px; }
  .gl-empty { color: var(--muted); padding: 22px 0; margin: 0; }
  .gl-empty[hidden] { display: none; }
  
  @media (min-width: 1001px) {
    .glossary { grid-template-columns: 4fr 7fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
    .glossary-side { position: sticky; top: 110px; }
  }

  /* ---------- Footer is light: use sage instead of butter ---------- */
.footer-label {
    color: var(--sage-deep);
  }
  
  .brand-mark {
    border-color: var(--sage-deep);
  }
  
  .footer-links a:focus-visible {
    border-bottom-color: var(--sage-deep);
  }
  
  .contact-link:focus-visible,
  textarea:focus-visible {
    outline-color: var(--sage-deep);
  }

  /* ---------- Intro: calmer asymmetry ---------- */
@media (min-width: 1001px) {
    .intro-grid {
      grid-template-columns: 6fr 5fr;
      gap: clamp(40px, 6vw, 96px);
      align-items: start;
      margin-top: 40px;
    }
  
    /* wrap heading into 3 lines so its height matches the paragraph */
    .intro h2 {
      max-width: 8.5em;
    }
  
    /* only a slight drop, so it looks intentional */
    .intro-copy {
      margin-top: clamp(16px, 3vw, 48px);
    }
  }

  /* ---------- Intro: raise paragraph a bit ---------- */
@media (min-width: 1001px) {
    .intro-copy {
      margin-top: 12px;
    }
  }

  /* =========================================================
   SCROLL REVEAL
   ========================================================= */
html.reveal [data-reveal] {
    opacity: 0;
    transition:
      opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  html.reveal [data-reveal="up"]    { transform: translateY(36px); }
  html.reveal [data-reveal="left"]  { transform: translateX(-48px); }
  html.reveal [data-reveal="right"] { transform: translateX(48px); }
  html.reveal [data-reveal="zoom"]  { transform: translateY(20px) scale(0.95); }
  html.reveal [data-reveal="blur"]  { transform: translateY(20px); filter: blur(14px); }
  html.reveal [data-reveal="mask"]  {
    transform: translateY(24px);
    clip-path: inset(0 0 100% 0);
  }
  
  html.reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  html.reveal [data-reveal="mask"].is-in {
    clip-path: inset(-20% -5% -20% -5%);
  }
  
  /* ---------- hero: gentle entrance on page load ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
      animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .hero-content > :nth-child(1) { animation-delay: 0.10s; }
    .hero-content > :nth-child(2) { animation-delay: 0.25s; }
    .hero-content > :nth-child(3) { animation-delay: 0.40s; }
    .hero-content > :nth-child(4) { animation-delay: 0.55s; }
  }
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ---------- Header stays visible while scrolling ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 241, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    transition: box-shadow 0.3s ease;
  }
  
  /* anchor links (About, Resources, etc.) no longer land under the header */
  html {
    scroll-padding-top: 88px;
  }
  
  /* calculator intro sticks below the header */
  .calculator-intro {
    top: 110px;
  }
  
  @media (max-width: 900px) {
    html { scroll-padding-top: 80px; }
  }

  /* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 40;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: var(--butter);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(24, 26, 25, 0.28);
  
    /* hidden state (exit animation) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.85);
    transition:
      opacity 0.3s ease,
      transform 0.35s cubic-bezier(0.55, 0, 0.7, 0.2),
      visibility 0s linear 0.35s,
      background 0.25s ease,
      color 0.25s ease;
  }
  
  /* visible state (entrance animation) */
  .to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.35s ease,
      transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
      visibility 0s linear 0s,
      background 0.25s ease,
      color 0.25s ease;
  }
  
  .to-top svg {
    transition: transform 0.3s ease;
  }
  .to-top:hover {
    background: var(--butter-soft);
    color: var(--green-deep);
  }
  .to-top:hover svg {
    transform: translateY(-3px);
  }
  .to-top:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 3px;
  }
  
  @media (max-width: 600px) {
    .to-top { width: 48px; height: 48px; }
  }

  /* =========================================================
   SUBPAGES: page hero, teasers, active nav
   ========================================================= */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--green);
    color: #f1eee2;
    padding: clamp(72px, 10vw, 140px) var(--page-pad) clamp(56px, 8vw, 100px);
  }
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(55% 80% at 90% 10%, rgba(155, 174, 146, 0.22), transparent 70%),
      radial-gradient(40% 50% at 5% 100%, rgba(240, 223, 166, 0.10), transparent 70%);
    pointer-events: none;
  }
  .page-hero-inner { position: relative; max-width: var(--content-max); margin: 0 auto; }
  .page-hero h1 {
    margin: 18px 0 20px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 12em;
    text-wrap: balance;
  }
  .page-hero p {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: rgba(241, 238, 226, 0.82);
  }
  
  /* active nav link */
  .main-nav > a[aria-current="page"]:not(.nav-cta) { color: var(--sage-deep); }
  .main-nav > a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
  
  /* learn page: target highlight (works with JS-rendered items) */
  .gl-item.is-target {
    background: var(--green-soft);
    border-radius: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* ---------- homepage teasers ---------- */
  .teasers { background: var(--paper); }
  .teasers-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 640px; }
  .teasers-head h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .teasers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 32px);
  }
  @media (max-width: 900px) { .teasers-grid { grid-template-columns: 1fr; } }
  
  .teaser-card {
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    padding: clamp(26px, 3.6vw, 44px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  }
  .teaser-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(24, 26, 25, 0.14); }
  .teaser-dark  { background: var(--green); color: #f1eee2; }
  .teaser-light { background: var(--green-soft); color: var(--ink); }
  
  .teaser-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
  .teaser-dark .teaser-label  { color: var(--butter); }
  .teaser-light .teaser-label { color: var(--sage-deep); }
  
  .teaser-card h3 {
    margin: 14px 0 10px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .teaser-card p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; max-width: 40ch; opacity: 0.85; }
  .teaser-list { list-style: none; margin: 0 0 32px; padding: 0; }
  .teaser-list li { padding: 11px 0; border-top: 1px solid rgba(127, 136, 120, 0.35); font-size: 16px; }
  .teaser-cta {
    margin-top: auto;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .teaser-cta span { transition: transform 0.3s ease; }
  .teaser-card:hover .teaser-cta span { transform: translateX(6px); }

  /* =========================================================
   PAGE LOAD ANIMATION
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
    body {
      animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
  
    @keyframes pageIn {
      from {
        opacity: 0;
        transform: translateY(16px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }

  /* Hide primary hero button on mobile */
@media (max-width: 600px) {
    .hero-actions .button {
      display: none;
    }
  }