/* ==========================================================================
   Helvetia Institute for Science and Innovation
   Design system — brand copper (#D3855D, from the logo) on warm cream.
   ========================================================================== */

:root {
  /* Brand */
  --copper-logo:  #D3855D;   /* exact colour sampled from the institute logo */
  --copper:       #C2703F;   /* UI copper — rules, icons, large display text */
  --copper-deep:  #9C5429;   /* accessible copper for body-size text & links */
  --copper-wash:  #F6E7DC;
  --copper-tint:  #FBF2EB;

  /* Ink */
  --ink:          #1C1714;
  --ink-800:      #2E2721;
  --ink-600:      #52463C;
  --ink-400:      #7C6E62;
  --ink-300:      #9C9087;

  /* Surfaces */
  --cream:        #FDFBF7;
  --paper:        #FFFFFF;
  --sand:         #F5F0E8;
  --line:         #E7DFD3;
  --line-soft:    #F0E9DF;

  /* Foreground roles. Redefined wholesale on dark surfaces below, so any rule
     that uses them flips automatically instead of needing its own override. */
  --fg-heading: var(--ink);
  --fg-strong:  var(--ink);

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(28, 23, 20, .05);
  --shadow-md: 0 14px 40px -24px rgba(28, 23, 20, .35);
}

/* -------------------------------------------------------------- reset --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-800);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--fg-heading);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.42rem); letter-spacing: -.008em; }
h4 { font-size: 1.04rem; letter-spacing: -.004em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper-deep); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }

strong { font-weight: 600; color: var(--fg-strong); }

::selection { background: var(--copper-wash); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: var(--radius);
  font-size: .9rem; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--cream); }

/* ------------------------------------------------------------- layout --- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(60px, 7vw, 108px); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
/* Every dark surface, in one place. Anything using --fg-* inherits the
   inverted value; nothing below needs a per-element override. */
.section--ink,
.cta,
.pagehead,
.panel--ink {
  --fg-heading: var(--cream);
  --fg-strong:  var(--cream);
}

.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #D8CEC4; }
/* :not(.btn) matters — a bare `.section--ink a` outranks the single-class
   button rules and would repaint button labels in the link colour. */
.section--ink a:not(.btn) { color: var(--copper-logo); }
.section--ink a:not(.btn):hover { color: var(--cream); }

.eyebrow {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .715rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: var(--copper); opacity: .75;
  margin-top: .66em;
}
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow,
.cta .eyebrow,
.panel--ink .eyebrow { color: var(--copper-logo); }
.section--ink .eyebrow::before,
.cta .eyebrow::before,
.panel--ink .eyebrow::before { background: var(--copper-logo); }

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-600);
}
.section--ink .lede { color: #C9BEB3; }

.section-head { max-width: 740px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.measure { max-width: 68ch; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .9rem; font-weight: 550;
  letter-spacing: .005em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--primary:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }

.btn--copper { background: var(--copper-deep); color: #fff; border-color: var(--copper-deep); }
.btn--copper:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }

/* Buttons on dark surfaces. Every dark section is listed, not just
   .section--ink: a ghost button styled for light backgrounds is invisible
   until hover on any of them, which is the wrong way round. */
.section--ink .btn--ghost,
.cta .btn--ghost,
.pagehead .btn--ghost,
.panel--ink .btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(253, 251, 247, .38);
}
.section--ink .btn--ghost:hover,
.cta .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.panel--ink .btn--ghost:hover {
  background: rgba(253, 251, 247, .12);
  border-color: var(--cream);
  color: var(--cream);
}

/* The copper button's light-background hover is ink-on-ink here, so send it
   to cream instead. */
.section--ink .btn--copper:hover,
.cta .btn--copper:hover,
.pagehead .btn--copper:hover,
.panel--ink .btn--copper:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

/* Likewise the solid dark button: invert it on dark. */
.section--ink .btn--primary,
.cta .btn--primary,
.pagehead .btn--primary,
.panel--ink .btn--primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.section--ink .btn--primary:hover,
.cta .btn--primary:hover,
.pagehead .btn--primary:hover,
.panel--ink .btn--primary:hover {
  background: var(--copper-logo);
  border-color: var(--copper-logo);
  color: var(--ink);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 550;
  color: var(--copper-deep); text-decoration: none;
}
.link-arrow .arrow { transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------- header --- */

/* Staging banner. Only ever present in a `build.py --staging` build, so it
   cannot appear on the live site by accident. */
.staging-banner {
  background: #8A3324;
  color: #FBEDE8;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.staging-banner strong { color: #fff; font-weight: 650; }
.staging-banner a { color: #FBEDE8; text-underline-offset: .2em; }
.staging-banner a:hover { color: #fff; }

.utility {
  background: var(--ink);
  color: #A99A8C;
  font-size: .745rem;
  letter-spacing: .035em;
}
.utility .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 36px; flex-wrap: wrap;
}
.utility a { color: #C9BBAD; text-decoration: none; }
.utility a:hover { color: var(--copper-logo); }
.utility-note { display: flex; align-items: center; gap: 9px; }
.utility-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper-logo); flex: none; }

@media (max-width: 680px) { .utility { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--sans); font-weight: 700;
  font-size: .845rem; letter-spacing: .085em; text-transform: uppercase;
  color: var(--ink);
}
.brand-sub {
  font-size: .645rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--copper-deep); font-weight: 500; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative;
  padding: 9px 13px;
  font-size: .865rem; font-weight: 500;
  color: var(--ink-600); text-decoration: none;
  border-radius: var(--radius);
  transition: color .16s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1.5px; background: var(--copper);
}
.nav .btn { margin-left: 12px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: 13px 2px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------- hero --- */

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 480px at 78% 18%, rgba(211,133,93,.11), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 76px); align-items: center;
  padding-block: clamp(56px, 7vw, 104px);
}
.hero h1 { margin-bottom: .34em; }
.hero .lede { max-width: 50ch; }

.hero-figure { position: relative; display: grid; place-items: center; }
.hero-figure img { width: min(100%, 400px); filter: drop-shadow(0 24px 48px rgba(156,84,41,.17)); }
.hero-hex {
  position: absolute; inset: -8%;
  color: var(--copper); opacity: .14; z-index: -1;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .79rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 500;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--copper); flex: none;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(62%, 260px); }
}

/* ------------------------------------------------------------ pagehead -- */

.pagehead {
  background: var(--ink);
  color: #C9BEB3;
  position: relative; overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 88% 0%, rgba(211,133,93,.22), transparent 64%);
  pointer-events: none;
}
.pagehead .wrap { position: relative; z-index: 1; padding-block: clamp(52px, 6vw, 88px); }
.pagehead h1 { max-width: 17ch; }
.pagehead .lede { color: #C2B6AA; max-width: 60ch; margin-top: 20px; }
.pagehead .eyebrow { color: var(--copper-logo); }
.pagehead .eyebrow::before { background: var(--copper-logo); }

.crumbs {
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-300); margin-bottom: 20px;
}
.crumbs a { color: #A9988A; text-decoration: none; }
.crumbs a:hover { color: var(--copper-logo); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* -------------------------------------------------------------- cards --- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card--link:hover {
  border-color: var(--copper); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .935rem; color: var(--ink-600); }
.card .link-arrow { margin-top: auto; padding-top: 20px; }

.card-num {
  /* --copper is a display-size accent; at label size it needs --copper-deep
     to clear 4.5:1 on both paper and the copper tint. */
  font-family: var(--serif); font-size: .82rem; font-weight: 600;
  color: var(--copper-deep); letter-spacing: .08em;
  margin-bottom: 16px;
}

.card-icon {
  width: 38px; height: 38px; margin-bottom: 20px;
  color: var(--copper);
}

.section--sand .card { background: var(--paper); }
.section--ink .card {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.12);
}
.section--ink .card p { color: #BBAFA4; }

/* -------------------------------------------------------------- stats --- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 26px;
  background: var(--paper);
}
.stat-value {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.stat-value small { font-size: .5em; color: var(--copper-deep); font-weight: 600; margin-left: 2px; }
.stat-label {
  margin-top: 12px; font-size: .775rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-400); font-weight: 500;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------- split --- */

.split {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 76px); align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.sticky-head { position: sticky; top: 108px; }
@media (max-width: 900px) { .sticky-head { position: static; } }

/* --------------------------------------------------------------- list --- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feature-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  font-size: .945rem;
}
.feature-list li:first-child { border-top: 1px solid var(--line-soft); }
.feature-list svg { width: 17px; height: 17px; color: var(--copper); margin-top: 5px; }

.section--ink .feature-list li,
.section--ink .feature-list li:first-child { border-color: rgba(255, 255, 255, .12); }
.section--ink .feature-list svg { color: var(--copper-logo); }
.section--ink .feature-list span { color: #BBAFA4; }
.feature-list strong { display: block; color: var(--fg-strong); font-weight: 600; margin-bottom: 2px; }
.feature-list span { color: var(--ink-600); }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  position: relative; padding: 0 0 12px 22px;
  font-size: .945rem; color: var(--ink-600);
}
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; background: var(--copper); opacity: .55;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ------------------------------------------------------------- people --- */

.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.person-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--copper-tint);
  border: 1px solid var(--copper-wash);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  color: var(--copper-deep); letter-spacing: .01em;
  margin-bottom: 20px; flex: none;
}
.person-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.person-role { font-size: .775rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-deep); font-weight: 600; margin: 0 0 14px; }
.person-bio { font-size: .915rem; color: var(--ink-600); margin: 0; }
.person-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

.tag {
  font-size: .715rem; letter-spacing: .05em; text-transform: uppercase;
  font-weight: 550;
  padding: 5px 10px; border-radius: 2px;
  background: var(--sand); color: var(--ink-600);
  border: 1px solid var(--line);
}
.tag--copper { background: var(--copper-tint); color: var(--copper-deep); border-color: var(--copper-wash); }
.tag--open { background: transparent; color: var(--ink-400); border-style: dashed; }

/* -------------------------------------------------------------- roles --- */

.roles { border-top: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: 1.05fr 1.5fr 190px;
  gap: 18px 32px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.role-title { font-family: var(--serif); font-size: 1.13rem; font-weight: 600; color: var(--ink); letter-spacing: -.008em; }
.role-note { font-size: .905rem; color: var(--ink-600); }
.role-holder { font-size: .83rem; color: var(--ink-400); text-align: right; }
.role-holder strong { color: var(--fg-strong); font-weight: 600; }
@media (max-width: 760px) {
  .role { grid-template-columns: 1fr; gap: 8px; }
  .role-holder { text-align: left; }
}

/* ------------------------------------------------------------- quotes --- */

.pullquote {
  border-left: 2px solid var(--copper);
  padding: 4px 0 4px 28px;
  margin: 0;
}
.pullquote p {
  font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem);
  line-height: 1.42; color: var(--ink); letter-spacing: -.012em;
}
.pullquote footer { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400); margin-top: 16px; }

/* ------------------------------------------------------------- panels --- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 46px);
}
.panel--copper {
  background: var(--copper-tint);
  border-color: var(--copper-wash);
}
.panel--ink { background: var(--ink); border-color: var(--ink); color: #C9BEB3; }
.panel--ink { color: #C9BEB3; }

.notice {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px;
  background: var(--copper-tint); border: 1px solid var(--copper-wash);
  border-radius: var(--radius); padding: 18px 22px;
  font-size: .9rem; color: var(--ink-600);
}
.notice svg { width: 18px; height: 18px; color: var(--copper-deep); margin-top: 3px; }
.notice strong { color: var(--fg-strong); }

/* --------------------------------------------------------------- defs --- */

.defs { margin: 0; }
.defs > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 10px 32px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.defs > div:first-child { border-top: 1px solid var(--line); }
.defs dt { font-size: .775rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); font-weight: 550; }
.defs dd { margin: 0; font-size: .95rem; color: var(--ink-800); }
@media (max-width: 640px) { .defs > div { grid-template-columns: 1fr; gap: 4px; } }

/* --------------------------------------------------------------- flow --- */

.flow { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 26px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--copper); letter-spacing: .04em; padding-top: 2px;
}
.flow-step h3 { margin-bottom: .3em; }
.flow-step p { font-size: .93rem; color: var(--ink-600); }
@media (max-width: 560px) { .flow-step { grid-template-columns: 1fr; gap: 6px; } }

/* -------------------------------------------------------------- cta ----- */

.cta {
  background: var(--ink); color: #C9BEB3;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 20% 110%, rgba(211,133,93,.24), transparent 60%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta .lede { color: #C2B6AA; }

/* ------------------------------------------------------------- footer --- */

.site-footer { background: #15110F; color: #8E8176; padding-block: 64px 0; font-size: .89rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 52px;
}
.footer-brand img { width: 150px; margin-bottom: 20px; }
.footer-brand p { color: #8E8176; font-size: .875rem; max-width: 34ch; }
.site-footer h4 {
  color: #E0D5C9; font-family: var(--sans);
  font-size: .715rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: #A2958A; text-decoration: none; }
.footer-links a:hover { color: var(--copper-logo); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 24px 30px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; align-items: center;
  font-size: .79rem; color: #8E8176;
}
.footer-bottom a { color: #8E8176; text-decoration: none; }
.footer-bottom a:hover { color: var(--copper-logo); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- misc ----- */

.hex-divider { display: flex; align-items: center; gap: 12px; justify-content: center; padding-block: 8px; }
.hex-divider span { width: 9px; height: 10px; background: var(--copper); opacity: .35;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.hex-divider span:nth-child(2) { opacity: .6; }

.mono-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82em; letter-spacing: .02em;
}

/* Reveal on scroll. Scoped to .js so that without JavaScript — or if the
   script fails — every block is simply visible from the start. */
.anim { transition: opacity .6s ease, transform .6s ease; }
.js .anim { opacity: 0; transform: translateY(14px); }
.js .anim.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .anim { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- small screens -- */

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .hero-meta { font-size: .72rem; gap: 8px 18px; }
  .stat { padding: 24px 20px; }
  .card { padding: 26px 22px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 10px; }
}
