/* ============================================================
   Tasman Cluster — Essington Institute landing page
   Ported from the "Tasman Cluster v2 (raster hero)" prototype.
   Tokens live in tokens-*.css; this file is globals + components.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #EAE2CE; -webkit-text-size-adjust: 100%; }

/* Theme swap fade — same 0.2s register as the icon crossfade. */
body { transition: background 0.2s ease; }
[data-theme], [data-theme] * {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Gentle entrance for click-revealed content (dropdowns, tab panels). */
@keyframes tc-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.tc-reveal { animation: tc-reveal 0.18s ease both; }

::selection { background: var(--tc-signal); color: var(--tc-ink); }

:focus-visible { outline: 2px solid var(--tc-ink); outline-offset: 3px; }
[data-theme="dark"] :focus-visible { outline-color: var(--tc-stock); }

/* ---- Dark theme override (mirrors the prototype's inline block) ---- */
[data-theme="dark"] {
  --tc-ink: #F4F0E5;
  --tc-ink-soft: #C9C4B4;
  --tc-ink-deep: #FFFDF6;
  --tc-stock: #141B18;
  --tc-stock-deep: #1B2420;
  --tc-stock-input: #1F2925;
  --tc-copper: #D98E55;
  --tc-copper-deep: #E2A06C;
  --tc-rule: rgba(244, 240, 229, 0.22);
  --tc-rule-strong: rgba(244, 240, 229, 0.5);
}

.tc-root {
  min-height: 100vh;
  background: var(--tc-stock);
  color: var(--tc-ink);
  font-family: var(--tc-sans);
}

/* ============================================================
   Masthead / navigation
   ============================================================ */
.masthead {
  position: fixed; top: 1.1rem; left: 0; right: 0; z-index: 30; pointer-events: none;
}
.masthead__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.nav-pill {
  pointer-events: auto; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.5rem; border-radius: 0;
  border: 1px solid var(--tc-rule);
  background: color-mix(in srgb, var(--tc-stock) 50%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  white-space: nowrap;
}
.nav-pill nav { display: flex; align-items: center; gap: 0.1rem; }

.nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--tc-text-label); font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase;
  color: var(--tc-ink); text-decoration: none;
  padding: 0.5rem 0.85rem; border-radius: 0;
  transition: background 0.15s ease; background: transparent; border: none; cursor: pointer;
  font-family: var(--tc-sans);
}
.nav-link:hover { background: var(--tc-stock-deep); }

.nav-divider { width: 1px; height: 1.1rem; background: var(--tc-rule); margin: 0 0.45rem; }
.nav-actions { display: flex; align-items: center; gap: 0.35rem; }

.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 0; color: var(--tc-ink);
  cursor: pointer; padding: 0; flex: none; transition: background-color 0.15s ease;
}
/* Hover fill is a fixed translucent black wash — theme-STABLE, so toggling the
   theme never animates this background (the old --tc-stock-deep var shifted
   value on swap and, if the button was hovered/tapped during it, left a ghost
   square fading at the 0.2s theme rate). Hover only on real-hover devices so a
   tap doesn't leave the fill stuck. */
@media (hover: hover) {
  .icon-btn:hover { background: rgba(30, 43, 38, 0.10); }
}
[data-theme="dark"] .icon-btn { transition: background-color 0.15s ease; }
@media (hover: hover) {
  [data-theme="dark"] .icon-btn:hover { background: rgba(244, 240, 229, 0.12); }
}
.icon-stack { position: relative; width: 16px; height: 16px; display: block; flex: none; }

.btn-register {
  display: inline-flex; align-items: center;
  font-size: var(--tc-text-label); font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase;
  color: var(--tc-stock); background: var(--tc-ink); text-decoration: none;
  padding: 0.55rem 1rem; border-radius: 0; transition: background 0.15s ease;
}
.btn-register:hover { background: var(--tc-ink-deep); }

/* Mobile bar + panel */
.mobile-bar {
  display: none; pointer-events: auto; position: relative; z-index: 1; flex: 1 1 auto;
  align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem; border: 1px solid var(--tc-rule);
  background: color-mix(in srgb, var(--tc-stock) 50%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.mobile-bar__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--tc-ink); min-width: 0; }
.mobile-bar__star {
  width: 30px; height: 30px; flex: none; transform: translateY(-2.6px); background: var(--tc-ink);
  -webkit-mask: url('../assets/tilted-star.svg') center / contain no-repeat;
  mask: url('../assets/tilted-star.svg') center / contain no-repeat;
}
.mobile-bar__name {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.2rem; letter-spacing: 0.01em;
  line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-bar__actions { display: flex; align-items: center; gap: 0.2rem; flex: none; }
.burger {
  width: 44px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 0; color: var(--tc-ink); cursor: pointer;
  padding: 0; flex: none; transition: background-color 0.15s ease;
}
@media (hover: hover) {
  .burger:hover { background: rgba(30, 43, 38, 0.10); }
  [data-theme="dark"] .burger:hover { background: rgba(244, 240, 229, 0.12); }
}
.burger__stack { position: relative; width: 18px; height: 18px; display: block; flex: none; }

.mobile-panel { /* dynamic styles applied via JS toggle of [data-open] */
  position: fixed; inset: 0; height: 100dvh; z-index: 0;
  background: color-mix(in srgb, var(--tc-stock) 80%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  display: flex; flex-direction: column; padding: 6.5rem 1.5rem 2rem; overflow-y: auto;
  opacity: 0; transform: translateY(-0.5rem); visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.mobile-panel[data-open="true"] {
  opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
.mobile-panel nav { display: grid; }
.mobile-panel nav a {
  display: flex; align-items: center; min-height: 56px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase; color: var(--tc-ink); text-decoration: none;
}
.mobile-panel nav a + a { border-top: 1px solid var(--tc-rule); }
.mobile-panel nav a:last-child { border-bottom: 1px solid var(--tc-rule); }
.mobile-panel__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.8rem; }
.mobile-panel__theme {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 48px;
  background: transparent; border: 1px solid var(--tc-ink); border-radius: 0; color: var(--tc-ink);
  cursor: pointer; font-family: var(--tc-sans); font-size: var(--tc-text-label); font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase;
}
.mobile-panel__register {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  font-size: var(--tc-text-label); font-weight: 600; letter-spacing: var(--tc-track-label);
  text-transform: uppercase; color: var(--tc-stock); background: var(--tc-ink); text-decoration: none;
}

/* Theme / burger icon crossfade */
.ico { position: absolute; inset: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.ico--moon  { opacity: 1; transform: rotate(0deg); }
.ico--sun   { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .ico--moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .ico--sun  { opacity: 1; transform: rotate(0deg); }
.ico--burger { opacity: 1; transform: rotate(0deg); }
.ico--close  { opacity: 0; transform: rotate(-90deg); }
.mobile-bar[data-open="true"] .ico--burger { opacity: 0; transform: rotate(90deg); }
.mobile-bar[data-open="true"] .ico--close  { opacity: 1; transform: rotate(0deg); }

/* ============================================================
   Sections / shell
   ============================================================ */
.section { border-bottom: 1px solid var(--tc-rule-strong); }
.section__inner { max-width: 1180px; margin: 0 auto; padding: 4.5rem 3rem; }
.label-row { margin-bottom: 1.6rem; }

.marginal-label {
  font-family: var(--tc-sans); font-size: var(--tc-text-marginal, 11px); font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase; color: var(--tc-copper);
  padding-top: 0.5rem;
}

.h2 {
  font-family: var(--tc-serif); font-weight: 600; font-size: var(--tc-text-h2);
  color: var(--tc-ink); margin: 0 0 1.4rem;
}
.lede {
  font-family: var(--tc-serif); font-size: var(--tc-text-lede); line-height: var(--tc-leading-body);
  color: var(--tc-ink-soft); margin: 0 0 2.6rem;
}
.body {
  font-family: var(--tc-serif); font-size: var(--tc-text-body); line-height: var(--tc-leading-body);
  color: var(--tc-ink); margin: 0 0 1.2rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--tc-rule-strong); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 7.5rem 3rem 3.5rem; width: 100%;
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
}
.logo-lockup { display: flex; align-items: center; gap: 1.275rem; }
.logo-lockup__star {
  width: 78.2px; height: 78.2px; flex: none; transform: translateY(-6.4px); background: var(--tc-ink);
  -webkit-mask: url('../assets/tilted-star.svg') center / contain no-repeat;
  mask: url('../assets/tilted-star.svg') center / contain no-repeat;
}
.logo-lockup__name {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: 2.89rem; letter-spacing: 0.01em;
  color: var(--tc-ink); line-height: 1.02;
}
.hero__h1 {
  font-family: var(--tc-serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: var(--tc-track-tight); line-height: 1.08; color: var(--tc-ink); margin: 0; max-width: 24ch;
}

/* ============================================================
   Purpose / cards
   ============================================================ */
.wipe-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purpose-cell { background: var(--tc-stock); padding: 1.6rem; }
.purpose-cell--first { padding-left: 0; }
.purpose-cell__kicker {
  font-size: var(--tc-text-micro); font-weight: 600; letter-spacing: var(--tc-track-wide);
  text-transform: uppercase; color: var(--tc-copper); margin-bottom: 0.6rem;
}
.purpose-cell p { font-size: 0.9rem; line-height: 1.5; color: var(--tc-ink-soft); margin: 0; }

/* Standing — counters */
.count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.count-cell { background: var(--tc-stock); padding: 2rem 1.8rem; }
.count-cell--first { padding-left: 0; }
.counter__fig {
  font-family: var(--tc-serif); font-weight: 600; font-size: var(--tc-text-num); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--tc-ink);
}
.counter__plus, .counter__sym { color: var(--tc-copper); }
.counter__label {
  margin-top: 0.7rem; font-family: var(--tc-sans); font-size: 0.9rem; color: var(--tc-ink-soft);
  line-height: 1.45; max-width: 16rem;
}

/* Threat scatter (ApexCharts, themed to the page) */
.threat-chart { margin: 2.8rem 0 0; }
.threat-chart__plot { background: transparent; }
.threat-chart__src {
  font-family: var(--tc-sans); font-size: var(--tc-text-micro); line-height: 1.5;
  letter-spacing: 0.01em; color: var(--tc-ink-soft); margin: 0.9rem 0 2.8rem;
}
.threat-chart__src em { font-style: italic; }
/* ApexCharts overrides to match the austere, hairline aesthetic */
.threat-chart .apexcharts-tooltip {
  background: var(--tc-ink) !important; color: var(--tc-stock) !important;
  border: none !important; border-radius: 0 !important; box-shadow: none !important;
  font-family: var(--tc-sans) !important;
}
.threat-chart .apexcharts-tooltip-title {
  background: var(--tc-ink) !important; border: none !important;
  font-weight: 600 !important; font-size: 0.8rem !important;
}
.threat-chart .apexcharts-xaxistooltip, .threat-chart .apexcharts-yaxistooltip { display: none !important; }

/* The work — bordered cards */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.work-card {
  background: var(--tc-stock); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.work-card__kicker {
  font-size: var(--tc-text-micro); font-weight: 600; letter-spacing: var(--tc-track-wide);
  text-transform: uppercase; color: var(--tc-copper);
}
.work-card__title { font-family: var(--tc-serif); font-size: 1.35rem; font-weight: 600; color: var(--tc-ink); }
.work-card p { font-size: 0.95rem; line-height: 1.55; color: var(--tc-ink-soft); margin: 0; }
.work-card__links { margin-top: auto; }
.work-card__link {
  display: block; padding: 0.6rem 0 0.55rem; border-top: 1px solid var(--tc-rule);
  font-size: 0.85rem; font-weight: 500; color: var(--tc-ink); text-decoration: none;
  transition: color 0.15s ease;
}
.work-card__link:hover { color: var(--tc-copper); }

/* ============================================================
   Guide accordion (What we do — three named activities)
   Ported from the design-system GuideAccordion handoff, neutral
   (signal=false) variant: stock-deep paper rows, 1px ink hairline
   grid, rotating chevron, grid-rows height animation.
   ============================================================ */
.guide-acc {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--tc-ink); border: 1px solid var(--tc-ink); font-family: var(--tc-sans);
}
.guide-acc__item { background: var(--tc-stock-deep); }
.guide-acc__btn {
  width: 100%; background: transparent; border: none; cursor: pointer; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem;
  text-align: left; color: var(--tc-ink); font-family: var(--tc-sans); transition: background 0.15s ease;
}
.guide-acc__btn:hover,
.guide-acc__item[data-open="true"] .guide-acc__btn { background: var(--tc-stock); }
.guide-acc__title { font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.guide-acc__icon { display: inline-flex; color: var(--tc-copper); }
.guide-acc__icon svg { width: 22px; height: 22px; display: block; }
.guide-acc__chevron {
  width: 0.65rem; height: 0.65rem; border-right: 2px solid var(--tc-ink); border-bottom: 2px solid var(--tc-ink);
  transform: rotate(45deg); transition: transform 0.2s ease; justify-self: end; margin-right: 0.2rem;
}
.guide-acc__item[data-open="true"] .guide-acc__chevron { transform: rotate(-135deg); }
.guide-acc__reveal {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease;
}
.guide-acc__item[data-open="true"] .guide-acc__reveal { grid-template-rows: 1fr; }
.guide-acc__inner { overflow: hidden; min-height: 0; }
.guide-acc__panel {
  padding: 0.5rem 1.4rem 1.6rem;
  opacity: 0; transition: opacity 0.2s ease 0.05s;
}
.guide-acc__item[data-open="true"] .guide-acc__panel { opacity: 1; }
.guide-acc__panel p {
  font-family: var(--tc-serif); font-size: var(--tc-text-body); line-height: var(--tc-leading-body);
  margin: 0 0 1.2rem; color: var(--tc-ink);
}
.guide-acc__panel p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .guide-acc__reveal, .guide-acc__panel { transition: none; }
}

/* Endnote references + the list at the page foot. */
.fn-ref { font-size: 0.7em; line-height: 0; vertical-align: super; }
.fn-ref a { color: var(--tc-copper); text-decoration: none; padding: 0 0.05em; font-weight: 600; }
.fn-ref a:hover { text-decoration: underline; }
.endnotes {
  width: 100%; list-style: decimal; padding-left: 1.2rem; margin: 0 0 2.4rem;
  border-top: 1px solid var(--tc-rule); padding-top: 1.6rem;
  font-size: 0.8rem; line-height: 1.55; color: var(--tc-ink-soft);
}
.endnotes li { margin: 0 0 0.5rem; scroll-margin-top: 5rem; }
.endnotes a { color: var(--tc-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.endnotes a:hover { color: var(--tc-copper); }

/* ============================================================
   Forms (register + invitation)
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: 1.4rem; }
.field { margin-bottom: 1.2rem; }
.field__label {
  display: block; font-family: var(--tc-sans); font-size: var(--tc-text-micro); font-weight: 600;
  letter-spacing: var(--tc-track-label); text-transform: uppercase; color: var(--tc-ink-soft); margin-bottom: 0.45rem;
}
.field__control {
  width: 100%; background: var(--tc-stock-input); border: 1px solid var(--tc-rule-strong); color: var(--tc-ink);
  font-family: var(--tc-sans); font-size: 0.98rem; padding: 0.8rem 0.95rem; border-radius: 0; outline: none;
}
.field__control:focus { border-color: var(--tc-ink); }
select.field__control {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--tc-ink) 50%),
                    linear-gradient(135deg, var(--tc-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font-family: var(--tc-sans); font-weight: 600;
  font-size: var(--tc-text-ui); letter-spacing: var(--tc-track-ui); text-transform: uppercase; line-height: 1.1;
  padding: 0.8rem 1.3rem; border: 1px solid var(--tc-ink); border-radius: 0; background: transparent;
  color: var(--tc-ink); transition: background 0.15s ease, color 0.15s ease; text-align: center;
}
.btn--primary { background: var(--tc-ink); color: var(--tc-stock); }
.btn--primary:hover { background: var(--tc-ink-deep); }
.btn--secondary:hover { background: var(--tc-stock-deep); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.78rem; }

/* ============================================================
   CTA row (Register interest — four audience routes)
   ============================================================ */
.cta-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--tc-rule-strong); border: 1px solid var(--tc-rule-strong);
}
.cta {
  display: block; background: var(--tc-stock); padding: 1.6rem 1.7rem; text-decoration: none;
  transition: background 0.15s ease;
}
.cta:hover { background: var(--tc-stock-deep); }
.cta__title {
  font-family: var(--tc-serif); font-size: 1.2rem; font-weight: 600; color: var(--tc-ink);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.cta__title::after {
  content: "→"; color: var(--tc-copper); font-family: var(--tc-sans); font-weight: 400;
  transition: transform 0.15s ease;
}
.cta:hover .cta__title::after { transform: translateX(3px); }
.cta__desc { font-size: 0.9rem; line-height: 1.5; color: var(--tc-ink-soft); margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--tc-stock); }
.footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 2.5rem 3rem; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__star {
  width: 32px; height: 32px; flex: none; transform: translateY(-3.1px); background: var(--tc-ink);
  -webkit-mask: url('../assets/tilted-star.svg') center / contain no-repeat;
  mask: url('../assets/tilted-star.svg') center / contain no-repeat;
}
.footer__name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 1.4rem; letter-spacing: 0.01em; color: var(--tc-ink); line-height: 1; }
.footer__meta { display: flex; align-items: center; gap: 1.4rem; }
.footer__forming {
  font-size: var(--tc-text-micro); font-weight: 600; letter-spacing: var(--tc-track-wide);
  text-transform: uppercase; color: var(--tc-ink-soft); margin: 0;
}
.footer__flags { display: flex; align-items: center; gap: 0.6rem; }
.footer__flags svg { display: block; flex: none; }

/* ============================================================
   GSAP entrance initial states.
   The hidden pre-reveal state is applied ONLY while motion is armed
   (data-motion="armed" on the root, set by JS just before gsap.set()).
   GSAP then animates these to visible and clears its inline props on
   complete; because the hidden state is gated on the armed attribute,
   nothing lingers to re-hide the element. With no JS / reduced motion
   the attribute is never set, so the page renders fully visible.
   ============================================================ */
[data-motion="armed"] [data-rise] { opacity: 0; transform: translateY(14px); }

/* ============================================================
   Responsive — mirrors the prototype's media blocks
   ============================================================ */
@media (max-width: 1120px) {
  .masthead__inner { padding: 0 1rem; }
  .nav-pill nav .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; }
}
@media (max-width: 780px) {
  .section__inner, .footer__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero__inner { padding: 6.5rem 1.25rem 2.5rem; }
  .logo-lockup { margin-left: 0; }
  .logo-lockup__star { width: 54px; height: 54px; }
  .logo-lockup__name { font-size: 2rem; }
  .wipe-grid-3, .count-grid, .work-grid, .cta-row { grid-template-columns: 1fr; }
  .count-cell, .purpose-cell { padding-left: 0; padding-right: 0; }
  .activity { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 720px) {
  .nav-pill { display: none; }
  .mobile-bar { display: flex; }
  /* The wordmark lives in the menu bar on mobile, so drop the big hero
     lockup; the hero just shows the map + headline. */
  [data-hero-logo] { display: none; }
}
@media (min-width: 721px) {
  .mobile-panel { display: none; }
}
@media (max-width: 520px) {
  .section__inner, .footer__inner { padding-left: 1rem; padding-right: 1rem; }
  .hero__inner { padding: 5.5rem 1rem 2rem; }
  .work-card { padding: 1.5rem 1.25rem; }
  .count-cell { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer__meta { flex-wrap: wrap; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  body, [data-theme], [data-theme] * { transition: none; animation: none !important; }
  /* Force-visible even if the armed attribute somehow got set. */
  [data-motion="armed"] [data-rise] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Coming-soon home + register page (minimal launch pages)
   ============================================================ */

/* Home hero: brief explainer sits in the hero's third (bottom) flex slot. */
.hero--home .hero__lede { max-width: 34rem; }

/* No visible divider between the home hero and the section below it. */
.hero--home { border-bottom: 0; }


/* Subtle scroll cue — hints there's more below the full-height hero. Also a
   real link to #about, so it's clickable and keyboard-focusable. */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--tc-sans); font-size: var(--tc-text-micro); font-weight: 600;
  letter-spacing: var(--tc-track-wide); text-transform: uppercase;
  color: var(--tc-ink-soft); text-decoration: none; z-index: 2;
  transition: color 0.15s ease;
}
.hero__scroll:hover { color: var(--tc-ink); }
.hero__scroll svg { animation: hero-scroll-bob 2.2s ease-in-out infinite; }
@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll svg { animation: none; }
}

/* Section 1 (home): a centred 1180px column with equal side margins (the
   .section__inner 3rem padding). The content fills the full width between
   those margins — every block (label, headline, prose, stat, CTA) spans edge
   to edge, so both sides have matching whitespace. */
.section--intro { border-bottom: 0; }
.section__inner--intro { padding-top: 5.5rem; padding-bottom: 6rem; }
.intro-measure { max-width: none; }
.body--who { margin-top: 2rem; margin-bottom: 0; color: var(--tc-ink); }

/* Strategic / industrial / household cards. */
.intro-cards { margin: 1.8rem 0 2.4rem; }

/* Closing call to action at the foot of the section. */
.intro-cta { margin-top: 2.8rem; }
.btn--intro { padding: 1rem 1.9rem; }

/* Pulled-out statistic — the section's single visual anchor. Figure + label sit
   together in a centred top row (both equally prominent), with the citation on
   its own line beneath. Hairline rules run the full content width. */
.stat {
  margin: 2.6rem 0 3rem; padding: 1.8rem 0; text-align: center;
  border-top: 1px solid var(--tc-rule); border-bottom: 1px solid var(--tc-rule);
}
.stat__row {
  display: flex; align-items: center; justify-content: center;
  gap: 1.6rem; flex-wrap: wrap;
}
.stat__fig {
  font-family: var(--tc-serif); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
  color: var(--tc-copper); font-variant-numeric: tabular-nums; flex: none;
}
.stat__in { color: var(--tc-ink-soft); font-weight: 400; font-size: 0.6em; }
/* Label: a confident serif in ink, sized to sit alongside the figure without
   competing with it. Vertically centred against the numeral (align-items). */
.stat__label {
  font-family: var(--tc-serif); font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2;
  color: var(--tc-ink); max-width: 18ch; text-align: left;
}
/* Citation: its own line below both, small. */
.stat__src {
  display: block; margin-top: 1.1rem; font-size: var(--tc-text-micro);
  line-height: 1.5; color: var(--tc-ink-soft); font-style: normal;
}
@media (max-width: 720px) {
  .section__inner--intro { padding-top: 4rem; padding-bottom: 4.5rem; }
  .stat__row { gap: 0.6rem; }
  .stat__label { text-align: center; max-width: none; }
}
.hero__blurb {
  font-family: var(--tc-serif); font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5;
  color: var(--tc-ink); margin: 0; max-width: 34ch;
}

/* ============================================================
   Register page (register.html) — masthead + embedded Tally form.
   Follows the OS colour scheme (no manual toggle); see js/register.js.
   ============================================================ */

/* No-flash: paint the body ground to match the OS scheme before JS sets the
   theme (data-boot-theme is written by an inline <head> script). */
html[data-boot-theme="dark"], html[data-boot-theme="dark"] body { background: #141B18; }

.register-page { min-height: 100dvh; padding: 8.5rem 1.5rem 4rem; }
.register-page__inner { max-width: 720px; margin: 0 auto; }
/* Brand lockup above the heading. The star (mask over --tc-ink) and the
   wordmark (--tc-ink) both recolour with the theme automatically. */
.register-page__lockup { margin-bottom: 1.6rem; }
.register-page__title {
  font-family: var(--tc-serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: var(--tc-track-tight);
  line-height: 1.08; color: var(--tc-ink); margin: 0 0 2.4rem;
}
.register-form { display: block; width: 100%; border: 0; background: transparent; }

@media (max-width: 720px) {
  .register-page { padding: 7rem 1rem 3rem; }
}

