:root {
    --purple: rgb(76,57,111);
    --purple-deep: color-mix(in oklch, var(--purple) 78%, black);
    --purple-muted: color-mix(in oklch, var(--purple) 60%, white);
    --purple-pale: color-mix(in oklch, var(--purple) 18%, white);
    --purple-badge-bg: rgb(249,245,255);
    --purple-badge-bd: rgb(233,215,254);
    --cream: rgb(251,247,236);
    --cream-line: rgb(244,234,204);
    --coral: rgb(223,112,94);
    --serif: "Newsreader", "Source Serif 4", Georgia, serif;
    --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: #fff; }
  body {
    font-family: var(--sans);
    color: var(--purple-deep);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Fixed 1440-wide canvas */
  .canvas {
    position: relative;
    width: 1440px;
    height: 2207px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
  }

  .section {
    position: absolute;
    left: 10px;
    width: 1420px;
    border-radius: 16px;
    overflow: hidden;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 24px;
    border-radius: 100px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    gap: 8px;
  }
  .btn--coral { background: var(--coral); color: #fff; }
  .btn--purple { background: var(--purple); color: #fff; }
  .btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
  .btn--coral { transition: background 0.15s ease; }
  .btn--coral:hover { background: color-mix(in oklch, var(--coral) 88%, black); }
  .btn--purple { transition: background 0.15s ease; }
  .btn--purple:hover { background: color-mix(in oklch, var(--purple) 88%, black); }
  .btn--ghost-light { transition: background 0.15s ease, border-color 0.15s ease; }
  .btn--ghost-light:hover { background: #fff; color: var(--purple); border-color: #fff; }
  .btn--ghost-coral { background: transparent; color: var(--coral); border: 1px solid var(--coral); }
  .btn .arrow-icon { width: 9.33px; height: 9.33px; display: inline-block; }
  .btn .arrow-icon svg { width: 100%; height: 100%; display: block; }

  /* ─── 1. Hero (purple) ─── */
  .hero {
    top: 10px; height: 544px;
    background: var(--purple);
  }
  .hero-inner {
    position: absolute;
    inset: 20px 64px 0 64px;
  }
  .nav {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
  }
  .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -0.005em;
    opacity: 0.85;
    transition: opacity 0.15s ease;
  }
  .nav-menu a:hover { opacity: 1; }
  .logo {
    color: #fff;
    line-height: 1.1;
    width: 139px;
    text-decoration: none;
  }
  .logo .l1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 27.96px;
    letter-spacing: -0.035em;
    display: block;
    text-align: left;
  }
  .logo .l2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    display: block;
    text-align: right;
  }

  .hero-content {
    position: absolute;
    top: 118px;
    left: 0;
    width: 818px;
  }
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 24px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
  }
  .back-btn svg { width: 10px; height: 10px; display: block; }

  .hero-title-block {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .saga-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    background: var(--purple-badge-bg);
    border: 1px solid var(--purple-badge-bd);
    border-radius: 16px;
    padding: 4px 10px;
    color: var(--purple);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.4;
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0;
    max-width: 533px;
  }

  /* Lupines (right side of hero) — two delicate vine stems */
  .hero-lupine {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 217px;
    height: 421px;
    pointer-events: none;
  }
  .hero-lupine img { width: 100%; height: 100%; display: block; }
  .hero-lupine svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* ─── 2. Story body (cream) ─── */
  .story-body {
    top: 564px; height: 881px;
    background: var(--cream);
  }
  .story-container {
    position: absolute;
    inset: 128px 169px 128px 169px;
    display: flex;
    flex-direction: column;
  }
  .story-grid {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 145px;
    align-items: flex-start;
  }
  .meta-sidebar {
    width: 189px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-shrink: 0;
  }
  .meta-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .meta-field .label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(46,35,67,0.5);
  }
  .meta-field .value {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--purple);
  }
  .theme-tags { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .theme-tag {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--cream-line);
    border-radius: 16px;
    padding: 6px 10px;
    color: var(--coral);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
  }

  .article {
    width: 527px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .article p {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: rgb(46,35,67);
    opacity: 0.85;
  }
  .article-cta {
    margin-top: 36px;
    align-self: flex-end;
  }

  .footer-back {
    margin-top: 60px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--purple);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }
  .footer-back:hover { opacity: 1; }
  .footer-back svg { width: 10px; height: 10px; display: block; }

  /* ─── 3. Bottom CTA + 2026 ─── */
  .bottom {
    top: 1455px; height: 648px;
    background: var(--purple);
  }
  .bottom-card {
    position: absolute;
    left: 54px; top: 54px;
    width: 1312px; height: 162px;
    background: var(--coral);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
  }
  .bottom-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
    max-width: 800px;
  }
  .bottom-cta { display: flex; gap: 20px; }
  .year {
    position: absolute;
    left: 54px;
    top: 235px;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 500px;
    line-height: 1.1;
    letter-spacing: -0.036em;
    color: var(--purple-muted);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
  }
  .bottom-lupine {
    position: absolute;
    left: 475px;
    top: 401px;
    width: 133px;
    height: 247px;
    z-index: 2;
    pointer-events: none;
  }
  .bottom-lupine img { width: 100%; height: 100%; display: block; }
  .bottom-lupine svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* Scaler */
  html, body { overflow-x: hidden; }
  body { background: #fff; }
  .viewport-host {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* height set by JS to (CANVAS_H * scale) on desktop */
  }
  .scaler {
    position: absolute;
    left: 50%;
    margin-left: -720px;
    width: 1440px;
    transform-origin: top center;
    /* transform: scale(s) set by JS */
  }

  /* ════════════════════════════════════════════════════════
     FLUID LAYOUT — at/below 1024px
     ════════════════════════════════════════════════════════ */
  @media (max-width: 1024px) {
    .viewport-host { height: auto !important; overflow: visible !important; }
    .scaler {
      position: static !important;
      left: auto !important;
      margin-left: 0 !important;
      width: 100% !important;
      transform: none !important;
    }
    body { height: auto !important; }

    .canvas { width: 100%; height: auto; overflow: visible; padding: 10px; }
    .section {
      position: relative !important;
      top: auto !important;
      left: 0 !important;
      width: 100% !important;
      height: auto !important;
      border-radius: 16px;
      margin-bottom: 10px;
    }
    .section:last-of-type { margin-bottom: 0; }
    .btn { height: 52px; font-size: 15px; }

    /* Hero */
    .hero { padding: 20px 0 64px; }
    .hero-inner { position: relative; inset: auto; padding: 0 24px; }
    .nav { height: auto; padding-top: 4px; }
    .logo { width: auto; }
    .logo .l1 { font-size: 22px; }
    .logo .l2 { font-size: 13px; }
    .hero-content { position: relative; top: auto; left: auto; width: 100%; margin-top: 48px; }
    .back-btn { height: 44px; padding: 0 18px; font-size: 14px; }
    .hero-title-block { margin-top: 48px; gap: 24px; }
    .hero h1 { font-size: 40px; max-width: none; }
    .hero-lupine { top: 80px; right: -20px; width: 130px; height: 280px; opacity: 0.5; }

    /* Story body */
    .story-body { padding: 56px 0 64px; position: relative; }
    .story-container { position: relative; inset: auto; padding: 0 24px; }
    .story-grid { flex-direction: column; gap: 40px; align-items: stretch; }
    .meta-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 24px; }
    .meta-field { flex: 1 1 calc(50% - 12px); min-width: 140px; gap: 8px; }
    .article { width: 100%; }
    .article p { font-size: 15px; }
    .article-cta { margin-top: 24px; align-self: flex-start; }
    .article-cta.btn { width: 100%; }
    .footer-back { margin-top: 40px; }

    /* Bottom */
    .bottom { padding: 32px 0 48px; }
    .bottom-card {
      position: relative; left: 0; top: 0;
      width: calc(100% - 32px);
      margin: 0 16px;
      height: auto;
      padding: 28px 24px;
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
    }
    .bottom-card h2 { font-size: 36px; max-width: none; }
    .bottom-cta { flex-direction: column; gap: 12px; width: 100%; }
    .bottom-cta .btn { width: 100%; }
    .year {
      position: relative; left: 0; top: 0;
      width: 100%;
      margin-top: 32px;
      padding: 0 16px;
      font-size: clamp(140px, 50vw, 200px);
      letter-spacing: -0.05em;
      text-align: left;
      overflow: hidden;
      white-space: normal;
    }
    .bottom-lupine { display: none; }
    /* Footer (mobile) */
    .footer {
      position: relative !important;
      left: 0 !important; top: 0 !important;
      width: 100% !important;
      padding: 24px 14px !important;
      font-size: 14px !important;
    }
    .footer-disclaimer { font-size: 12px; }
    .footer-row { padding-bottom: 0; flex-wrap: wrap; gap: 12px; }
    .footer .links { gap: 20px; }

  }

  /* Tablet enhancements */
  @media (min-width: 641px) and (max-width: 1024px) {
    .hero-inner { padding-left: 48px !important; padding-right: 48px !important; }
    .story-container { padding-left: 48px !important; padding-right: 48px !important; }
    .hero h1 { font-size: 56px !important; }
    .hero-lupine { width: 160px !important; height: 340px !important; right: 0 !important; }

    /* 2-col grid: sidebar | article */
    .story-grid { flex-direction: row !important; gap: 64px !important; align-items: flex-start !important; }
    .meta-sidebar { flex-direction: column !important; flex-wrap: nowrap !important; width: 200px !important; flex-shrink: 0 !important; }
    .meta-field { flex: 0 0 auto !important; min-width: 0 !important; }
    .article { width: auto !important; flex: 1 1 0 !important; max-width: 640px !important; }
    .article-cta { align-self: flex-end !important; }
    .article-cta.btn { width: auto !important; }

    .bottom-card { width: calc(100% - 96px) !important; margin: 0 48px !important; padding: 40px 40px !important; flex-direction: row !important; align-items: center !important; }
    .bottom-card h2 { max-width: 60% !important; font-size: 44px !important; }
    .bottom-cta { flex-direction: row !important; width: auto !important; }
    .bottom-cta .btn { width: auto !important; }
  }
  .footer {
    position: absolute;
    left: 64px;
    top: 2113px;
    width: 1312px;
    padding: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 16px;
    color: var(--purple);
  }
  .footer-disclaimer {
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    color: var(--purple);
    opacity: 0.7;
    max-width: 880px;
  }
  .footer-disclaimer a { color: var(--coral); text-decoration: none; border-bottom: 1px solid currentColor; }
  .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
  }
  .footer .links { display: flex; gap: 28px; }
  .footer a { color: var(--purple); text-decoration: none; }
