/* =====================================================================
   FINANSOPHY — styles.css
   Modern fintech product system. Static: no build step, no frameworks.

   Contents
   01. Design tokens
   02. Base & reset
   03. Layout
   04. Type helpers & chips
   05. Buttons & links
   06. Header & navigation
   07. Dark hero bands (home + inner pages)
   08. Home: hero, market line, cover, attribute strip
   09. Panels & cards
   10. Home: current issue, about
   11. Issues page
   12. About page
   13. Team page
   14. Contact page
   15. Legal pages
   16. Footer
   17. Motion
   18. Reduced motion
   ===================================================================== */


/* ---------------------------------------------------------------------
   01. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Colour */
  --navy-950: #060d19;   /* hero base */
  --navy-900: #0a1424;
  --navy-800: #0e1b2c;   /* brand navy */
  --navy-700: #16263c;
  --ink:      #0b1220;   /* text on light */
  --bg:       #f5f6f8;   /* cool off-white page */
  --surface:  #ffffff;
  --surface-2:#f0f2f5;
  --border:   #e2e5ea;
  --border-strong: #cfd4dc;
  --muted:    #5a6372;   /* AA on --bg */
  --gold:     #c7a86b;   /* champagne gold — accents only */
  --gold-ink: #8a6d33;   /* gold for text on light (AA) */
  --on-dark:        #f3f5f8;
  --on-dark-muted:  #9aa6b8;
  --line-dark:      rgba(243, 245, 248, 0.12);
  --line-dark-soft: rgba(243, 245, 248, 0.07);

  /* Type */
  --f-display: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-sans:    "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif:   "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, 0.95rem + 0.35vw, 1.3125rem);
  --fs-lg:   clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  --fs-xl:   clamp(1.75rem, 1.2rem + 2vw, 3.5rem);
  --fs-2xl:  clamp(2.25rem, 1.3rem + 3.6vw, 5.25rem);
  --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 6.5rem);

  /* Space & shape */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: clamp(3rem, 2.4rem + 3vw, 5rem);
  --s-7: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4.5rem);
  --max-width: 1680px;   /* wide screens: content spreads out instead of sitting in a narrow column */
  --header-h: 4.25rem;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow:    0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -12px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.05), 0 24px 48px -20px rgba(11, 18, 32, 0.28);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  160ms;
  --dur:       240ms;
  --dur-slow:  650ms;
  --stagger:   70ms;
  --rise:      16px;
}


/* ---------------------------------------------------------------------
   02. BASE & RESET
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  background: var(--navy-950);   /* dark behind header/footer edges */
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11" 1, "ss01" 1;
  overflow-x: hidden;
}

main { display: block; background: var(--bg); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--navy-800); color: var(--on-dark); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


/* ---------------------------------------------------------------------
   03. LAYOUT
   --------------------------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--s-7); }
.section--tight { padding-top: var(--s-6); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
}


/* ---------------------------------------------------------------------
   04. TYPE HELPERS & CHIPS
   --------------------------------------------------------------------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h-card {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lede {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
}
.prose { max-width: 44rem; color: var(--muted); font-size: var(--fs-md); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 500; }

/* Mono label */
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Chip: small bordered pill with a gold status dot */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.chip--dark {
  border-color: var(--line-dark);
  background: rgba(243, 245, 248, 0.04);
  color: var(--on-dark-muted);
}
.chip--plain::before { display: none; }

/* Placeholders stay visibly marked */
.placeholder { color: var(--muted); }


/* ---------------------------------------------------------------------
   05. BUTTONS & LINKS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--on-dark);
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn--light {
  background: var(--on-dark);
  color: var(--navy-900);
}
.btn:active { transform: translateY(1px); }

.arrow {
  width: 16px; height: 16px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

@media (hover: hover) {
  .btn:hover { background: var(--navy-700); box-shadow: var(--shadow); }
  .btn--light:hover { background: #ffffff; }
  .btn:hover .arrow,
  .link-arrow:hover .arrow { transform: translateX(4px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease);
}
@media (hover: hover) {
  .link-arrow:hover span { background-size: 100% 1px; }
}

.link-underline {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 1px; }
}


/* ---------------------------------------------------------------------
   06. HEADER & NAVIGATION
   Every page opens on a dark band, so the header is light-on-dark.
   Scrolled: translucent navy, blur, hairline.
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--on-dark);
  background: rgba(6, 13, 25, 0);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
html:not(.js) .site-header,   /* without JS the header can't track scroll, so keep it solid */
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(6, 13, 25, 0.82);
  border-bottom-color: var(--line-dark-soft);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-2);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.6rem;
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark::before {
  /* small mark: gold square rotated — stands in until the Finansophy Mark is supplied */
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav__link[aria-current="page"] {
  color: var(--on-dark);
  background: rgba(243, 245, 248, 0.08);
}
@media (hover: hover) {
  .site-nav__link:hover { color: var(--on-dark); background: rgba(243, 245, 248, 0.06); }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  color: var(--on-dark);
}
.nav-toggle__lines { position: relative; width: 20px; height: 8px; }
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle__lines::before { top: 0; }
.nav-toggle__lines::after  { top: 6.5px; }
.nav-open .nav-toggle__lines::before { top: 3.25px; transform: rotate(45deg); }
.nav-open .nav-toggle__lines::after  { top: 3.25px; transform: rotate(-45deg); }

@media (max-width: 767px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: var(--s-1) var(--gutter) var(--s-3);
    background: rgba(6, 13, 25, 0.96);
    border-bottom: 1px solid var(--line-dark-soft);
  }
  .js .nav-open .site-nav { display: block; animation: nav-in 220ms var(--ease) both; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .site-nav__link { padding: 0.9rem 0.75rem; font-size: 1.0625rem; }

  html:not(.js) .site-nav { width: 100%; padding-bottom: 0.5rem; overflow-x: auto; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------------------
   07. DARK HERO BANDS
   The header sits on top of the band (negative margin), so the band
   reaches the top of the window.
   --------------------------------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: var(--navy-950);
  color: var(--on-dark);
}
/* Two soft, low-contrast light sources — no colour gradients */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(58, 86, 128, 0.35), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(199, 168, 107, 0.07), transparent 70%);
  pointer-events: none;
}
/* Home hero: the light source follows the cursor (script.js sets --hx/--hy) */
.band.hero::before {
  background:
    radial-gradient(900px circle at var(--hx, 80%) var(--hy, 10%), rgba(58, 86, 128, 0.42), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(199, 168, 107, 0.08), transparent 70%);
}
/* Fine hairline at the foot of every band */
.band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-dark-soft);
}

.page-hero__inner {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero__title {
  margin-top: var(--s-3);
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}
.page-hero__subtitle {
  margin-top: var(--s-3);
  max-width: 36rem;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--on-dark-muted);
}


/* ---------------------------------------------------------------------
   08. HOME: HERO
   --------------------------------------------------------------------- */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  align-items: center;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--s-6);
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.hero__title {
  margin-top: var(--s-4);
  max-width: 15ch;
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--on-dark);
}
/* Word-rise: script.js wraps words in .w > span */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.w > span { display: inline-block; }
.js [data-words] .w > span { transform: translateY(110%); }
.js [data-words].is-in .w > span {
  animation: word-rise 900ms var(--ease) both;
  animation-delay: calc(var(--wi, 0) * 45ms + var(--words-delay, 0ms));
}
.hero__title { --words-delay: 150ms; }
@keyframes word-rise { to { transform: none; } }

/* Short headline ("Think Finance.") — set larger, second word in gold */
.hero__title--short {
  max-width: none;
  font-size: clamp(3.5rem, 1.5rem + 7.5vw, 10rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.hero__title .accent,
.hero__title .accent-word { color: var(--gold); }

.hero__statement {
  margin-top: var(--s-4);
  max-width: 30rem;
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.hero__statement + .hero__lede { margin-top: var(--s-2); }

.hero__lede {
  margin-top: var(--s-4);
  max-width: 34rem;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.hero__cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* The cover, presented like a product shot */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 17rem);
}
@media (min-width: 1024px) { .hero__visual { width: 100%; max-width: clamp(19rem, 8rem + 16vw, 32rem); justify-self: end; } }

.hero__cover-tag {
  position: absolute;
  z-index: 2;
  left: -1.25rem;
  bottom: 2.5%;   /* covers the draft barcode, clear of the cover lines */
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(10, 20, 36, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.hero__cover-tag strong {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
.hero__cover-tag span {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* Market line: a decorative line that draws across the foot of the hero.
   Illustrative only — it represents no data. */
.market-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(120px, 15vw, 210px);
  pointer-events: none;
}
.market-line svg { width: 100%; height: 100%; }
.market-line__axis { stroke: var(--line-dark-soft); stroke-width: 1; }
.market-line__path {
  fill: none;
  stroke: url(#ml-stroke);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.market-line__area { fill: url(#ml-fill); }
.market-line__dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
}
.market-line__dot::after {
  /* "live" pulse ring */
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2.4s var(--ease) 3.2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.js .market-line__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: line-draw 2400ms var(--ease-io) 500ms both;
}
.js .market-line__area { opacity: 0; animation: fade-in 1200ms var(--ease) 1800ms both; }
.js .market-line__dot  { opacity: 0; animation: fade-in 400ms var(--ease) 2800ms both; }
/* After the draw-in, script.js streams the line; the dash trick is dropped */
.market-line.is-live .market-line__path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.market-line.is-live .market-line__area { opacity: 1; animation: none; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in   { to { opacity: 1; } }

/* Attribute strip under the hero */
.attr-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark-soft);
}
.attr-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem 1.5rem 0;
  font-size: var(--fs-sm);
  color: var(--on-dark);
}
.attr-strip li span {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
@media (min-width: 768px) {
  .attr-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .attr-strip li + li { padding-left: 1.25rem; border-left: 1px solid var(--line-dark-soft); }
}
@media (max-width: 767px) {
  .attr-strip li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-dark-soft); }
  .attr-strip li:nth-child(n + 3) { border-top: 1px solid var(--line-dark-soft); }
}


/* ---------------------------------------------------------------------
   09. PANELS, CARDS & THE COVER OBJECT
   --------------------------------------------------------------------- */
.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card {
  position: relative;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .card--lift:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
  }
}

/* Cover — magazine proportion (B5, 176 × 250) */
.cover {
  position: relative;
  aspect-ratio: 176 / 250;
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-800);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px -24px rgba(0, 0, 0, 0.7),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after {
  /* spine shading */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.05) 60%, transparent);
  pointer-events: none;
}
.cover--light {
  box-shadow:
    0 0 0 1px rgba(11, 18, 32, 0.06),
    0 24px 48px -24px rgba(11, 18, 32, 0.45),
    0 8px 16px -8px rgba(11, 18, 32, 0.2);
}
.cover-parallax { will-change: transform; }

/* Key/value metadata rows */
.kv { border-top: 1px solid var(--border); }
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.kv dt {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv dd { color: var(--ink); font-weight: 500; text-align: right; }
.kv dd.placeholder { color: var(--muted); font-weight: 400; }


/* ---------------------------------------------------------------------
   10. HOME: CURRENT ISSUE & ABOUT
   --------------------------------------------------------------------- */
.section-head { max-width: 50rem; }
.section-head .h-display { margin-top: var(--s-2); }

/* ---- Current issue: pinned scroll section ("si") ----
   Desktop: two full-height halves. The dark stage on the left is pinned
   (sticky) while the stories on the right scroll past; script.js marks
   the story in view (.is-active), rolls the counter and swaps the caption. */
.si {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--navy-900);
  color: var(--on-dark);
}
.si__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--on-dark);
}
.si__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(58, 86, 128, 0.45), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(199, 168, 107, 0.08), transparent 70%);
}
.si__stage-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--gutter);
  text-align: center;
}
.si__cover {
  width: min(72vw, 22rem);
  transform: translate3d(0, calc(var(--si-p, 0) * -18px), 0) scale(calc(1.02 - var(--si-p, 0) * 0.05));
}
.si__readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.5rem;
}
.si__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: clamp(1.75rem, 1rem + 2vw, 3rem);
  line-height: 1;
  color: var(--gold);
}
.si__of { font-size: 0.4em; letter-spacing: 0.1em; color: var(--on-dark-muted); }
.si__caption {
  max-width: 28rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--on-dark-muted);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.si__caption.is-swapping { opacity: 0; transform: translateY(6px); }
.si__stage .cover-note { margin-top: 0; }

/* Right half: dark, editorial serif — echoes the printed cover */
.si__content {
  position: relative;
  padding: var(--s-6) var(--gutter) var(--s-7);
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(58, 86, 128, 0.22), transparent 70%),
    var(--navy-900);
}
.si__title {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 1.5rem + 5vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.si__title em { font-style: italic; color: var(--gold); }
.si__intro .lede { margin-top: var(--s-3); color: var(--on-dark-muted); }
.si__label {
  margin-top: var(--s-5);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
}
.si__story {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-dark-soft);
}
.si__story::before {
  /* gold rule that draws under the active story */
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(199, 168, 107, 0.15));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease);
}
.si__num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  transition: color var(--dur) var(--ease);
}
.si__story-title {
  font-family: var(--f-serif);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  transition: color 450ms var(--ease), transform 450ms var(--ease);
}
.js .si__story:not(.is-active) .si__story-title { color: #6c7a90; }
.si__story.is-active::before { transform: scaleX(1); }
.si__story.is-active .si__num { color: var(--gold); }
.si__story.is-active .si__story-title { transform: translateX(6px); }
.js .si__story .spark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease-io);
}
.js .si__story.is-active .spark path,
.js .si__story.was-active .spark path { stroke-dashoffset: 0; }
.si__cta { margin-top: var(--s-5); }

@media (max-width: 599px) {
  .si__story { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .si__story .spark { display: none; }
}

@media (min-width: 1024px) {
  .si { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .si__stage {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100svh;
  }
  .si__stage-inner {
    height: 100%;
    justify-content: center;
    padding-top: calc(var(--header-h) + var(--s-2));
    padding-bottom: var(--s-4);
  }
  .si__cover { width: min(26vw, 30rem, calc((100svh - 22rem) * 0.706)); }
  .si__content {
    padding: calc(var(--s-7) + var(--s-3)) clamp(2rem, 5vw, 7rem) var(--s-7);
    border-left: 1px solid var(--line-dark-soft);
  }
  .si__story { min-height: 24vh; }
}

/* Odometer: each digit is a column of 0–9 that rolls to its value */
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; }
.odo__col {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--d, 0) * -1em));
  transition: transform 750ms var(--ease);
}
.odo__col span { display: block; height: 1em; line-height: 1; }

/* ---- Big type band: two rows slide in opposite directions with scroll ---- */
.bigtype {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--s-7);
  background: var(--navy-950);
  color: var(--on-dark);
}
.bigtype::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(58, 86, 128, 0.35), transparent 70%),
    radial-gradient(50% 70% at 90% 100%, rgba(199, 168, 107, 0.08), transparent 70%);
}
.bigtype__row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 1rem + 10vw, 13rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--on-dark);
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.bigtype__row span { display: inline-flex; align-items: center; }
.bigtype__row span::after {
  content: "";
  width: 0.14em;
  height: 0.14em;
  margin-inline: 0.35em;
  background: var(--gold);
  transform: rotate(45deg);
}
.bigtype__row em { font-style: normal; color: var(--gold); margin-left: 0.25em; }

/* Second row: an editorial serif italic, echoing the magazine cover */
.bigtype__row--serif {
  margin-top: 0.08em;
  margin-left: -30vw;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--on-dark-muted);
}
.bigtype__row--serif span::after { width: 0.11em; height: 0.11em; margin-inline: 0.45em; }

/* ---- Quote band: full width, image zooms out as it scrolls by ---- */
.quote-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 70vh, 48rem);
  background: var(--navy-950);
  color: var(--on-dark);
}
.quote-band__image {
  position: absolute;
  z-index: -2;
  top: 0; right: 0;
  width: min(64%, 1100px);
  height: 100%;
  object-fit: cover;
  object-position: 65% 60%;
  transform: scale(var(--zoom, 1.12));
  transform-origin: 65% 60%;
  will-change: transform;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, var(--navy-950) 36%, rgba(6, 13, 25, 0.55) 62%, rgba(6, 13, 25, 0.1)),
    linear-gradient(to top, rgba(6, 13, 25, 0.7), transparent 40%);
}
.quote-band__inner { padding-block: var(--s-7); }
.quote-card__quote p {
  max-width: 17ch;
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.1rem + 3.4vw, 5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}
.quote-card__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-card__by::before { content: ""; width: 1.5rem; height: 1px; background: var(--gold); }
@media (max-width: 767px) {
  .quote-band { align-items: flex-end; min-height: 34rem; }
  .quote-band__image { width: 100%; height: 58%; }
  .quote-band::before { background: linear-gradient(to top, var(--navy-950) 48%, rgba(6, 13, 25, 0.3)); }
}

/* Details panel — publication facts from the masthead */
.details-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.details-panel .h-display { margin-top: var(--s-2); }
.details-panel > .chip { justify-self: start; align-self: start; }
@media (min-width: 900px) {
  .details-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
}
.details-panel--compact { margin-top: var(--s-2); gap: var(--s-2); }
@media (min-width: 900px) {
  .details-panel--compact { grid-template-columns: 12rem minmax(0, 1fr); align-items: start; }
}
.kv dd a { color: var(--ink); }



/* Draft-cover note, audience and contributor lines */
.cover-note {
  position: relative;
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-dark-muted);
}
.audience {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 38rem;
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
}
.audience .label { color: var(--gold-ink); }
.audience a { color: var(--ink); background-size: 100% 1px; }
.details-panel__text { max-width: 40rem; color: var(--muted); }
.details-panel__text a { color: var(--ink); background-size: 100% 1px; }


/* ---------------------------------------------------------------------
   11. ISSUES PAGE
   To add Issue 02: copy the whole <article class="issue"> block, paste
   it above Issue 01 and change the text, cover and contents.
   --------------------------------------------------------------------- */
.issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}
.issue + .issue { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--border); }

.issue__aside { display: flex; flex-direction: column; gap: var(--s-4); }

/* The cover fills its column — no frame behind it */
.issue__cover { width: min(100%, 26rem); margin-inline: auto; }
.issue__cover .cover { width: 100%; }
.cover-note--light { color: var(--muted); text-align: left; margin-top: var(--s-2); }

.issue__number {
  margin-top: var(--s-2);
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.issue__desc { margin-top: var(--s-2); }

@media (min-width: 900px) {
  .issue { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
  .issue__aside { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
  .issue__cover { width: 100%; max-width: 34rem; margin: 0; }
}

/* In this issue — a reading rail on the left fills as you scroll and
   the story you have reached lights up (script.js sets --rail and
   .is-passed / .is-current). */
.toc { margin-top: var(--s-5); }
.toc__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0.75rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-strong);
}
.toc__head h3 {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.toc__body { position: relative; }
.toc__rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  overflow: hidden;
}
.toc__rail span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(199, 168, 107, 0.3), var(--gold));
  transform: scaleY(var(--rail, 0));
  transform-origin: top center;
}
html:not(.js) .toc__rail span { transform: none; }

.toc__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: center;
  padding: 1.35rem 0.75rem 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease);
}
.toc__num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.toc__title {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--dur-slow) var(--ease), transform var(--dur) var(--ease);
}
/* Decorative trend line on each row; draws when the row is reached */
.spark { width: 80px; height: 24px; flex: none; overflow: visible; }
.spark path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.js .spark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease-io);
}
.js .toc__item.is-passed .spark path { stroke-dashoffset: 0; }
.js .toc__item:not(.is-passed) .toc__title { color: #7a8392; }
.toc__item.is-passed .toc__num { color: var(--gold-ink); }
.toc__item.is-current { background: var(--surface); }
.toc__item.is-current .toc__title { transform: translateX(4px); }

@media (hover: hover) {
  .toc__item:hover { background: var(--surface); }
}
@media (max-width: 599px) {
  .toc__item { grid-template-columns: 2rem minmax(0, 1fr); }
  .spark { display: none; }
}


/* ---- Dark variant (Issues page): same palette and serif as the
   homepage issue section ---- */
.section--dark {
  background:
    radial-gradient(50% 35% at 100% 0%, rgba(58, 86, 128, 0.22), transparent 70%),
    var(--navy-900);
  color: var(--on-dark);
}
.section--dark .issue__number {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 1.5rem + 5vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.section--dark .issue__number em { font-style: italic; color: var(--gold); }
.section--dark .lede { color: var(--on-dark-muted); }
.section--dark .cover-note--light { color: var(--on-dark-muted); }
.section--dark .cover--light {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px -24px rgba(0, 0, 0, 0.7),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.section--dark .kv { border-top-color: var(--line-dark); }
.section--dark .kv > div { border-bottom-color: var(--line-dark-soft); }
.section--dark .kv dt { color: var(--on-dark-muted); }
.section--dark .kv dd { color: var(--on-dark); }
.section--dark .toc__head { border-bottom-color: var(--line-dark); }
.section--dark .toc__head h3 { color: var(--on-dark); }
.section--dark .toc__head .label { color: var(--on-dark-muted); }
.section--dark .toc__rail { background: var(--line-dark-soft); }
.section--dark .toc__item { border-bottom-color: var(--line-dark-soft); }
.section--dark .toc__num { color: var(--on-dark-muted); }
.section--dark .toc__item.is-passed .toc__num { color: var(--gold); }
.section--dark .toc__title { color: var(--on-dark); }
.js .section--dark .toc__item:not(.is-passed) .toc__title { color: #6c7a90; }
.section--dark .toc__item.is-current { background: rgba(243, 245, 248, 0.04); }
@media (hover: hover) {
  .section--dark .toc__item:hover { background: rgba(243, 245, 248, 0.04); }
}


/* ---------------------------------------------------------------------
   12. ABOUT PAGE
   --------------------------------------------------------------------- */
.lead-statement {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.relation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  color: var(--on-dark);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.relation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 100% 0%, rgba(58, 86, 128, 0.35), transparent 70%);
}
.relation-card .h-display { color: var(--on-dark); margin-top: var(--s-2); }
.relation-card .prose { color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .relation-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6); align-items: end; }
}


/* ---------------------------------------------------------------------
   13. TEAM PAGE
   One row per person: index, name, title chip. Hover lifts the row onto
   a white surface with a gold edge; the others recede slightly.
   --------------------------------------------------------------------- */
.people-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0 1rem 0.9rem;
}
.people-head h2 { color: var(--ink); }
.people { border-top: 1px solid var(--border-strong); }

.person {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-areas: "num name" ".   role";
  gap: 0.6rem var(--s-2);
  align-items: center;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition:
    opacity var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.person::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem; bottom: 1.1rem;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 320ms var(--ease);
}
.person__num {
  grid-area: num;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.person__name {
  grid-area: name;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: transform var(--dur) var(--ease);
}
.person__role { grid-area: role; justify-self: start; }

@media (min-width: 768px) {
  .person {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas: "num name role";
    padding: 2rem 1.25rem;
  }
  .person__role { justify-self: end; }
}

@media (hover: hover) and (pointer: fine) {
  .people:hover .person:not(:hover) { opacity: 0.55; }
  .person:hover {
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
  }
  .person:hover::before { transform: scaleY(1); }
  .person:hover .person__name { transform: translateX(4px); }
}


/* ---------------------------------------------------------------------
   14. CONTACT PAGE
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 13rem;
}
.contact-card__value {
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-card__value a { color: var(--ink); }


/* ---------------------------------------------------------------------
   15. LEGAL PAGES
   --------------------------------------------------------------------- */
.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .legal { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .legal-nav { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 900px) { .legal-nav { flex-direction: column; } }
.legal-nav a {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.legal-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 500; }
@media (hover: hover) { .legal-nav a:hover { color: var(--ink); background: var(--surface-2); } }

.legal-placeholder {
  padding: var(--s-5) var(--s-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-md);
  text-align: center;
}


/* ---------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  padding-block: var(--s-6) var(--s-4);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-dark-soft);
}
.site-footer__tagline {
  margin-top: var(--s-3);
  max-width: 22rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.site-footer__heading {
  margin-bottom: var(--s-2);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.site-footer__list a {
  display: inline-block;
  padding-block: 0.35rem;
  font-size: var(--fs-sm);
  color: var(--on-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
@media (hover: hover) { .site-footer__list a:hover { color: var(--gold); } }
.site-footer__bottom {
  padding-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}


/* ---------------------------------------------------------------------
   17. MOTION
   Crisp interface motion: short rises, quick fades, one easing curve.
   Revealed elements are hidden only when JS runs (html.js).
   --------------------------------------------------------------------- */
body { animation: page-in 260ms var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Load sequence for hero content: style="--i: n" sets the order */
[data-enter] {
  animation: enter 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 100ms);
}
@keyframes enter {
  from { opacity: 0; transform: translateY(var(--rise)); }
  to   { opacity: 1; transform: none; }
}

/* Scroll reveal. [data-reveal] on a single element, or [data-stagger]
   on a parent to reveal its children in sequence. */
.js [data-reveal],
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(var(--rise));
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--si, 0) * var(--stagger));
}
.js [data-reveal].is-visible,
.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}
/* After revealing, children keep their own hover transitions */
.js [data-stagger].is-done > * { transition-delay: 0ms; }
.js [data-stagger].is-done > .card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.js [data-stagger].is-done > .person {
  transition:
    opacity var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

@media (max-width: 767px) {
  :root { --rise: 12px; --stagger: 55ms; }
}


/* ---------------------------------------------------------------------
   17b. FINTECH MOTION LAYER
   Everything below is driven by script.js and switched off for reduced
   motion. Touch screens keep the scroll effects but not the pointer ones.
   --------------------------------------------------------------------- */

/* Reading progress — a thin gold line under the header */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, rgba(199, 168, 107, 0.2), var(--gold));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* Ticker tape */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  border-block: 1px solid var(--line-dark-soft);
  color: var(--on-dark);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
  padding-block: 0.95rem;
}
.ticker__item {
  padding-inline: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-dark);
}
.ticker__item:nth-child(4n + 1) { color: var(--gold); }
.ticker__sep { font-size: 0.5rem; color: var(--gold); opacity: 0.7; }

/* Text decode — mono labels resolve from random characters */
.decode-text { display: inline; }

/* Section headings: word-rise uses the same mask as the hero */
[data-words] .w { padding-right: 0.02em; }

/* Image wipe: covers are uncovered from the bottom up */
/* (the clip sits on the children: a clipped element can't be seen by
   the IntersectionObserver that triggers it) */
.js [data-wipe]:not(.is-visible) > * { clip-path: inset(100% 0 0 0); }
.js [data-wipe].is-visible > * { animation: wipe-up 1100ms var(--ease) backwards; }
.js [data-wipe].is-visible > :nth-child(2) { animation-delay: 250ms; }
.js [data-wipe].is-visible img { animation: settle 1600ms var(--ease) backwards; }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle  { from { transform: scale(1.12); } to { transform: none; } }

/* Cover tilt + light sheen (fine pointers) */
.cover[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
  will-change: transform;
}
.cover[data-tilt].is-tilting { transition: transform 120ms linear; }
.cover__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, 0.22), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.cover.is-tilting .cover__sheen { opacity: 1; }

/* Spotlight border on panels and cards: a gold edge follows the pointer */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(199, 168, 107, 0.85), rgba(199, 168, 107, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.spotlight.is-lit::after { opacity: 1; }
.spotlight.is-lit {
  background-image: radial-gradient(600px circle at var(--mx) var(--my), rgba(199, 168, 107, 0.06), transparent 45%);
}

/* Magnetic buttons */
.btn { --bx: 0px; --by: 0px; transform: translate3d(var(--bx), var(--by), 0); }
.btn:active { transform: translate3d(var(--bx), calc(var(--by) + 1px), 0); }
.btn.is-magnet { transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 90ms linear; }

/* Panels settle in with a slight scale */
.js .panel[data-reveal] { transform: translateY(var(--rise)) scale(0.985); }
.js .panel[data-reveal].is-visible { transform: none; }

/* Page transition: a quick fade before leaving for another page */
body.is-leaving main,
body.is-leaving .site-footer {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}


/* ---------------------------------------------------------------------
   18. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  [data-enter] { animation-name: page-in !important; }
  .js [data-reveal],
  .js [data-stagger] > *,
  .js [data-words] .w > span,
  .cover[data-tilt],
  .btn,
  .cover-parallax { transform: none !important; }
  .js .market-line__path { stroke-dashoffset: 0; }
  .js .spark path { stroke-dashoffset: 0; }
  .js [data-wipe]:not(.is-visible) > * { clip-path: none; }
  .market-line__dot::after { display: none; }
  .ticker__track { transform: none !important; }
  .bigtype__row { transform: none !important; }
  .quote-band__image, .si__cover { transform: none !important; }
}
