:root {
    /* Brand — Blue */
    --hana-blue:      #1283DD;
    --hana-blue-deep: #0E4A7C;
    --hana-blue-soft: #4E9BDA;
    --hana-blue-tint: #E5EEF5;

    /* Neutrals */
    --bg:        #F7F8FA;
    --surface:   #EBEEF2;
    --surface-2: #FFFFFF;
    --line:      #D2D7DE;
    --line-soft: #E5E8EC;

    /* Ink */
    --ink:   #0E1116;
    --ink-2: #444B54;
    --ink-3: #6B7280;

    /* Spacing */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

    /* Elevation — one shadow recipe, soft and single-light */
    --shadow-soft: 0 8px 28px rgba(14, 74, 124, 0.08);

    --max: 1180px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--hana-blue-tint); color: var(--ink); }
  a { color: var(--hana-blue); text-decoration: none; }
  a:hover { color: var(--hana-blue-deep); }
  button { font-family: inherit; }

  /* Keyboard focus — mouse focus stays clean */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid var(--hana-blue);
    outline-offset: 3px;
    border-radius: 3px;
  }
  .decade-chip:focus-visible,
  .btn:focus-visible { outline-offset: 4px; }

  /* ── Hero band (breadcrumb + hero over flow background) ── */
  .hero-band { position: relative; overflow: hidden; }
  .hero-band.hero-band--flow { background: transparent; }

  /* ── Subbar (breadcrumb) ── */
  .subbar { position: relative; z-index: 2; background: transparent; border-bottom: 1px solid rgba(14,74,124,0.10); }
  .subbar-inner {
    max-width: var(--max); margin: 0 auto;
    padding: var(--s-3) var(--s-6);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
    font-size: 13px;
  }
  .crumbs { color: rgba(74,79,88,0.62); }
  .crumbs a { color: inherit; }
  .crumbs a:hover { color: rgba(21,23,28,0.92); }
  .crumbs .sep { margin: 0 var(--s-2); color: rgba(107,114,128,0.45); }
  .crumbs .nolink { color: rgba(74,79,88,0.62); }
  .crumbs span:last-child { color: rgba(21,23,28,0.92); font-weight: 500; }
  .subbar .meta {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px; color: rgba(74,79,88,0.58); letter-spacing: -0.005em;
  }
  @media (max-width: 600px) { .subbar .meta { display: none; } }

  /* ── Hero ── */
  .hero { position: relative; z-index: 2; background: transparent; }
  .hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(64px, 9vw, 112px) var(--s-6) var(--s-8);
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px; font-weight: 500; color: var(--hana-blue);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: var(--s-5);
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--hana-blue);
    box-shadow: 0 0 0 4px var(--hana-blue-tint);
  }
  /* Hero title: "Our journey." then "From 1978 → 2026" (same face and arrow as the old figure) */
  .hero-title {
    margin: 0 0 var(--s-6);
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  .hero-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 clamp(14px, 2.2vw, 28px);
  }
  .hero-title .yr-now { color: var(--hana-blue); }
  .hero-title .arrow {
    display: inline-block;
    flex: 0 0 clamp(44px, 6vw, 88px);
    height: 1px;
    background: var(--ink-3);
    position: relative;
  }
  .hero-title .arrow::after {
    content: "";
    position: absolute;
    right: -1px; top: 50%;
    width: 9px; height: 9px;
    border-top: 1px solid var(--ink-3);
    border-right: 1px solid var(--ink-3);
    transform: translateY(-50%) rotate(45deg);
  }
  .hero-summary {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 620px;
    margin: 0;
  }
  .hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
  .hero-spec {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    max-width: 980px;
  }
  .hero-spec .spec-item {
    padding: 18px 22px;
    border-right: 1px solid var(--line);
  }
  .hero-spec .spec-item:last-child { border-right: none; }
  .hero-spec .spec-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 8px;
  }
  .hero-spec .spec-value {
    font-family: 'Geist', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.25;
  }
  @media (max-width: 820px) {
    .hero-spec { grid-template-columns: repeat(2, 1fr); }
    .hero-spec .spec-item:nth-child(2) { border-right: none; }
    .hero-spec .spec-item:nth-child(1),
    .hero-spec .spec-item:nth-child(2) { border-bottom: 1px solid var(--line); }
    .hero-summary { font-size: 17px; }
  }
  @media (max-width: 720px) {
    .subbar-inner { flex-wrap: wrap; gap: var(--s-3); }
  }
  @media (max-width: 480px) {
    .hero-spec { grid-template-columns: 1fr; }
    .hero-spec .spec-item { border-right: none; border-bottom: 1px solid var(--line); }
    .hero-spec .spec-item:last-child { border-bottom: none; }
  }

  /* ── Decade nav (sticky over the timeline) ── */
  #ir-header { display: contents; }
  #ir-header header { position: static !important; }
  .decade-nav {
    position: sticky; top: 0; z-index: 60;
    background: transparent;
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  /* At rest the bar is transparent so the hero flow shows through; once it
     pins over the timeline it goes solid so timeline content can't bleed. */
  .decade-nav.is-stuck { background: var(--bg); }
  .decade-nav-inner {
    position: relative; z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--s-4) var(--s-6);
    display: flex; align-items: center; justify-content: center;
    gap: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .decade-nav-inner::-webkit-scrollbar { display: none; }
  .decade-chip {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .decade-chip:hover { color: var(--hana-blue); border-color: var(--hana-blue-soft); }
  .decade-chip.is-active {
    background: var(--hana-blue-deep);
    color: #fff;
    border-color: var(--hana-blue-deep);
  }

  /* ── Heritage flow wrapper: one continuous flow field behind
     hero → decade bar → timeline (no overflow — keeps the bar sticky) ── */
  .heritage-flow { position: relative; }

  /* ── Closing ── */
  .closing {
    background: var(--hana-blue-deep);
    color: #fff;
    padding: var(--s-8) var(--s-6);
    text-align: center;
  }
  .closing-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
  .closing .eyebrow { color: rgba(255,255,255,0.65); }
  .closing .eyebrow .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
  .closing h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 var(--s-4);
  }
  .closing p {
    color: rgba(255,255,255,0.78);
    font-size: 18px; line-height: 1.6;
    margin: 0 0 var(--s-7);
  }
  .btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-on-dark { background: #fff; color: var(--hana-blue-deep); border: none; }
  .btn-on-dark:hover { background: var(--hana-blue-tint); }
  .btn-secondary-on-dark {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    margin-left: var(--s-3);
  }
  .btn-secondary-on-dark:hover { border-color: #fff; }
  @media (max-width: 480px) {
    .btn-secondary-on-dark { margin-left: 0; margin-top: var(--s-3); }
  }

  /* ── Footer chrome handled by SubCapFooter (chrome.jsx) ── */

/* ── Vertical timeline (21 Oct 2026) ─────────────────────────────
   Years read top to bottom. Each decade has a large label pinned beside it while
   you scroll through it; a rail on the left draws in Hana blue with your scroll
   position, and each milestone's dot lights as it reaches the middle of the screen.
   Driven by the .tl-v block in js/about-heritage.js. */
.tl-v { position: relative; padding: clamp(40px, 6vw, 80px) var(--s-6) clamp(64px, 8vw, 112px); }
.tl-v-inner { position: relative; max-width: 1040px; margin: 0 auto; }
.tl-decade {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 72px;
  padding-bottom: clamp(48px, 6vw, 80px);
  scroll-margin-top: var(--tl-offset, 96px);
}
.tl-decade-label {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.tl-decade-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #C3CBD6;
  transition: color 500ms cubic-bezier(.16, .84, .3, 1);
}
.tl-decade.is-current .tl-decade-name { color: var(--hana-blue); }
.tl-decade-sum {
  margin: 4px 0 0;
  max-width: 200px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Feature milestones: the turning points get a larger headline, a blue edge,
   a larger dot and, where a plant photo exists, the photo across the card */
.tl-item--feature .tl-card {
  border-left: 3px solid var(--hana-blue);
  padding: 22px 26px 24px;
}
.tl-item--feature .tl-headline { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 8px; }
.tl-item--feature .tl-body { font-size: 16px; }
.tl-item--feature .tl-dot { width: 17px; height: 17px; left: -45px; top: 2px; }
.tl-photo { margin: 18px 0 0; }
.tl-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: 6px;
}
.tl-photo figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.tl-item { position: relative; }
.tl-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--hana-blue);
  margin: 0 0 6px;
}
.tl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px 20px;
  transition: border-color 400ms cubic-bezier(.16, .84, .3, 1), box-shadow 400ms cubic-bezier(.16, .84, .3, 1);
}
.tl-item.is-lit .tl-card { border-color: color-mix(in srgb, var(--hana-blue) 28%, var(--line)); }
.tl-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.tl-body { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* rail: sits in the gap between the decade labels and the cards */
.tl-rail {
  position: absolute;
  top: 8px; bottom: clamp(48px, 6vw, 80px);
  left: calc(200px + 36px - 1px);
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.tl-rail-fill {
  position: absolute; inset: 0;
  background: var(--hana-blue);
  transform-origin: top;
  transform: scaleY(0);
}
.tl-dot {
  position: absolute;
  left: -43px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #C3CBD6;
  z-index: 1;
  transition: background 400ms, border-color 400ms, box-shadow 400ms, transform 400ms cubic-bezier(.16, .84, .3, 1);
}
.tl-item.is-lit .tl-dot {
  background: var(--hana-blue);
  border-color: var(--hana-blue);
  box-shadow: 0 0 0 6px rgba(18, 131, 221, .14);
}

/* entrance (only once the script has started) */
.tl-v.tl-anim .tl-item {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 640ms cubic-bezier(.16, .84, .3, 1), transform 640ms cubic-bezier(.16, .84, .3, 1);
}
.tl-v.tl-anim .tl-item.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .tl-v { padding-left: 20px; padding-right: 20px; }
  .tl-decade { grid-template-columns: minmax(0, 1fr); padding-left: 36px; row-gap: 18px; }
  .tl-decade-label { position: static; align-items: flex-start; text-align: left; gap: 6px; }
  .tl-decade-name { font-size: 36px; }
  .tl-decade-sum { max-width: none; }
  .tl-rail { left: 7px; }
  .tl-dot { left: -35px; }
  .tl-item--feature .tl-dot { left: -37px; }
  .tl-item--feature .tl-headline { font-size: 21px; }
  .tl-photo img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-v.tl-anim .tl-item { opacity: 1; transform: none; transition: none; }
  .tl-decade-name, .tl-dot, .tl-card { transition: none; }
}

/* Decade chips: centred while they fit; when the row scrolls, start from the first chip
   (justify-content:center pushed 1970s off the left edge, out of reach). */
.decade-nav-inner { justify-content: flex-start; }
.decade-chip:first-child { margin-left: auto; }
.decade-chip:last-child { margin-right: auto; }
