/* ==========================================================================
   HELP — Human Environmental Life Protection, Inc.
   Site styles. Brand marks: the seal's ink-black serif with cyan/magenta
   chromatic fringe, carried through as the accent system.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0b0b0d;
  --ink-soft:   #16161a;
  --ink-line:   #23232a;
  --paper:      #ffffff;
  --paper-warm: #f6f5f2;
  --paper-sink: #eceae5;

  --cyan:       #00b8c4;
  --cyan-bright:#2ae4ef;
  --magenta:    #d4118f;
  --magenta-bright:#ff45d2;

  --text:       #14141a;
  --text-soft:  #55555f;
  --text-faint: #86868f;
  --line:       #e2e0dc;

  --surface:    #ffffff;
  --surface-2:  var(--paper-warm);
  --surface-3:  var(--paper-sink);

  --accent:     var(--magenta);
  --accent-2:   var(--cyan);
  --focus:      var(--cyan);

  --font-display: "Instrument Serif", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.36rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.7rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.8vw, 4rem);
  --step-5:  clamp(3rem, 1.9rem + 5.4vw, 6.4rem);

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --measure: 66ch;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12,12,20,.05), 0 6px 16px -8px rgba(12,12,20,.12);
  --shadow-md: 0 2px 4px rgba(12,12,20,.05), 0 18px 38px -18px rgba(12,12,20,.28);
  --ring: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:       #eceaf2;
    --text-soft:  #a9a8b5;
    --text-faint: #7d7c89;
    --line:       #26262e;
    --surface:    #0b0b0d;
    --surface-2:  #121218;
    --surface-3:  #191921;
    --paper:      #0b0b0d;
    --paper-warm: #121218;
    --accent:     var(--magenta-bright);
    --accent-2:   var(--cyan-bright);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px -10px rgba(0,0,0,.7);
    --shadow-md: 0 2px 6px rgba(0,0,0,.5), 0 24px 46px -22px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"] {
  --text:#eceaf2; --text-soft:#a9a8b5; --text-faint:#7d7c89; --line:#26262e;
  --surface:#0b0b0d; --surface-2:#121218; --surface-3:#191921;
  --paper:#0b0b0d; --paper-warm:#121218;
  --accent: var(--magenta-bright); --accent-2: var(--cyan-bright);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 400; letter-spacing: -0.01em; }
h1,h2,h3 { font-family: var(--font-display); }
p { margin: 0 0 1.15em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: 6px;
}
::selection { background: var(--cyan-bright); color: #08080a; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }
.section { padding: clamp(3.75rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section--dark { background: var(--ink); color: #eceaf2; }
.section--dark { --text: #eceaf2; --text-soft: #a3a2b0; --text-faint:#7c7b88; --line: #26262e; --surface-2:#131319; --accent: var(--magenta-bright); --accent-2: var(--cyan-bright); }
.section--warm { background: var(--surface-2); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.flow > * + * { margin-top: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  flex: none;
}
.display { font-family: var(--font-display); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lede { font-size: var(--step-1); color: var(--text-soft); max-width: var(--measure); line-height: 1.55; }
.small { font-size: var(--step--1); color: var(--text-faint); }
.mono-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.fringe { position: relative; display: inline-block; }
.fringe::before, .fringe::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.fringe::before { color: var(--cyan-bright); transform: translate(-0.035em, 0.012em); mix-blend-mode: screen; }
.fringe::after  { color: var(--magenta-bright); transform: translate(0.035em, -0.012em); mix-blend-mode: screen; }
.fringe > span { position: relative; z-index: 1; }

.underline-accent {
  background-image: linear-gradient(90deg, var(--accent-2), var(--accent));
  background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 100%;
  padding-bottom: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--give {
  --btn-bg: linear-gradient(100deg, var(--magenta) 0%, #a41cc4 55%, var(--cyan) 130%);
  --btn-line: transparent; --btn-fg: #fff;
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--magenta) 80%, transparent);
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-line: color-mix(in srgb, var(--text) 28%, transparent); }
.btn--ghost:hover { --btn-line: var(--text); }
.btn--light { --btn-bg: #fff; --btn-fg: #0b0b0d; --btn-line: #fff; }
.btn--sm { padding: .62rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header--over {
  position: fixed; inset-inline: 0; top: 0; background: transparent; backdrop-filter: none;
  color: #fff;
}
.site-header--over.is-stuck {
  position: fixed; background: color-mix(in srgb, #0b0b0d 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: #22222a;
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand picture { display: flex; flex: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.05; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: .04em; font-weight: 400; white-space: nowrap; }
.brand-text span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header--over .brand-text span { color: rgba(255,255,255,.62); }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  text-decoration: none; font-size: .93rem; font-weight: 500; padding: .5rem .8rem; border-radius: 8px;
  color: color-mix(in srgb, currentColor 78%, transparent); transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.nav-toggle { display: none; flex: none; align-items: center; justify-content: center; background: none; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-links {
    position: absolute; inset-inline: var(--gutter); top: calc(100% + .4rem);
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); color: var(--text); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: .6rem; box-shadow: var(--shadow-md);
    display: none;
  }
  .site-header--over .nav-links { background: #101015; color: #fff; border-color: #26262e; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75rem .85rem; }
  .nav-cta .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand-text b { font-size: 1.18rem; }
  .nav-cta .btn--sm { padding: .55rem .95rem; font-size: .82rem; }
  .nav { min-height: 64px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding: clamp(8rem, 18vw, 12rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: image-set(url("../img/team-crew.webp") type("image/webp"), url("../img/team-crew.jpg") type("image/jpeg"));
  background-size: cover; background-position: 50% 42%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(0,184,196,.32), transparent 58%),
    radial-gradient(90% 80% at 92% 82%, rgba(212,17,143,.30), transparent 60%),
    linear-gradient(180deg, rgba(8,8,11,.86) 0%, rgba(8,8,11,.66) 38%, rgba(8,8,11,.93) 100%);
}
.hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { font-size: var(--step-5); line-height: .96; letter-spacing: -0.03em; margin-bottom: .35em; max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,.82); max-width: 54ch; font-size: var(--step-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-actions .btn--ghost { --btn-fg: #fff; --btn-line: rgba(255,255,255,.4); }
.hero-actions .btn--ghost:hover { --btn-line: #fff; background: rgba(255,255,255,.08); }
.hero-note { margin-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 0 4px rgba(42,228,239,.18); flex: none; }
.dot--magenta { background: var(--magenta-bright); box-shadow: 0 0 0 4px rgba(255,69,210,.18); }

.hero-seal {
  position: absolute; z-index: -1; right: clamp(-6rem, -4vw, 0rem); top: 18%;
  width: clamp(280px, 38vw, 520px); opacity: .10; pointer-events: none;
  animation: seal-drift 26s ease-in-out infinite alternate;
}
@keyframes seal-drift { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-seal { animation: none; } }

/* ---------- Ticker / stats strip ---------- */
.statbar { border-block: 1px solid var(--line); background: var(--surface-2); }
.statbar .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: clamp(1.4rem, 3vw, 2.2rem) 1rem; border-inline-end: 1px solid var(--line); text-align: center; }
.stat:last-child { border-inline-end: 0; }
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1; font-weight: 400; letter-spacing: -0.02em;
}
.stat span { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
@media (max-width: 620px) {
  .statbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-block-end: 1px solid var(--line); }
  .stat:nth-child(even) { border-inline-end: 0; }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem); position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.card h3 { font-size: clamp(1.32rem, 1.2rem + .45vw, 1.58rem); margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, color-mix(in srgb, var(--cyan) 18%, transparent), color-mix(in srgb, var(--magenta) 16%, transparent));
  color: var(--text);
}
.card .icon svg { width: 21px; height: 21px; }
.card--flush { background: transparent; border-color: transparent; padding-inline: 0; }
.card--flush:hover { transform: none; box-shadow: none; }
.section--dark .card { background: #101016; border-color: #22222b; }

.tick { display: grid; gap: .55rem; margin-top: 1.1rem; }
/* The marker is positioned rather than laid out in a grid column: a grid item
   splits inline children (<b>, <a>) and text runs into separate cells, which
   pushed any list item containing markup into a second row. */
.tick li { position: relative; padding-left: 1.75rem; font-size: .92rem; color: var(--text-soft); line-height: 1.5; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .26rem; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(140deg, var(--cyan), var(--magenta));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Split / media ---------- */
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split > *, .cards > *, .grid > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split--reverse > :first-child { order: 2; }
}
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3/4; }
.media--wide { aspect-ratio: 4/3; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8,8,11,.85));
  color: rgba(255,255,255,.9); font-size: .8rem; line-height: 1.45;
}
.media-frame { position: relative; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.media-frame::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 62%; z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--cyan), var(--magenta)); opacity: .22;
}

/* ---------- Pull quote ---------- */
.quote { border-left: 2px solid transparent; border-image: linear-gradient(180deg, var(--cyan), var(--magenta)) 1; padding-left: clamp(1rem, 3vw, 2rem); }
.quote p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; }
.quote cite { font-style: normal; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

/* ---------- Donate widget ---------- */
.give-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
}
.section--dark .give-panel { background: #101016; border-color: #26262e; }
.toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .28rem;
  background: var(--surface-3); border-radius: 999px; margin-bottom: 1.4rem;
}
.section--dark .toggle { background: #1a1a22; }
.toggle button {
  border: 0; background: transparent; padding: .62rem 1rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--text-soft); transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.section--dark .toggle button[aria-pressed="true"] { background: #2a2a34; color: #fff; }
.toggle button .flag { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.amounts button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: .85rem .5rem;
  font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: all .16s ease;
}
.section--dark .amounts button { background: #15151c; border-color: #2a2a34; }
.amounts button:hover { border-color: var(--accent-2); }
.amounts button[aria-pressed="true"] {
  border-color: transparent; color: #fff;
  background: linear-gradient(120deg, var(--magenta), #9a1fc9 60%, var(--cyan) 140%);
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--magenta) 85%, transparent);
}
.amount-custom { position: relative; margin-top: .55rem; }
.amount-custom span { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-weight: 600; }
.amount-custom input {
  width: 100%; padding: .85rem 1rem .85rem 2rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); -moz-appearance: textfield;
}
.section--dark .amount-custom input { background: #15151c; border-color: #2a2a34; }
.amount-custom input::-webkit-outer-spin-button,
.amount-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.impact-line {
  margin: 1.25rem 0 1.4rem; padding: .95rem 1.1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 26%, transparent);
  font-size: .92rem; line-height: 1.5; color: var(--text);
}
.impact-line b { font-weight: 650; }

/* ---------- Thermometer ---------- */
.thermo { margin-top: 1.5rem; }
.thermo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.thermo-head b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; }
.thermo-track { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.section--dark .thermo-track { background: #22222b; }
.thermo-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
@media (prefers-reduced-motion: reduce) { .thermo-fill { transition: none; } }

/* ---------- Allocation bars ---------- */
.alloc { display: grid; gap: 1.1rem; }
.alloc-row { display: grid; gap: .4rem; }
.alloc-top { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; }
.alloc-top span:last-child { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.alloc-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.section--dark .alloc-track { background: #22222b; }
.alloc-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.alloc-row p { font-size: .84rem; color: var(--text-faint); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta), color-mix(in srgb, var(--text) 12%, transparent));
}
@media (min-width: 860px) { .timeline::before { left: 15px; } }
.phase { position: relative; padding-left: 3.1rem; }
.phase::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--text-faint); z-index: 1;
}
.phase[data-status="done"]::before { background: linear-gradient(140deg, var(--cyan), var(--magenta)); border-color: transparent; }
.phase[data-status="active"]::before { background: var(--surface); border-color: var(--magenta); box-shadow: 0 0 0 5px color-mix(in srgb, var(--magenta) 20%, transparent); }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-bottom: .3rem; }
.phase-when { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.phase h3 { font-size: var(--step-2); margin: 0 0 .35em; }
.phase-body { color: var(--text-soft); }
.phase-card {
  margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  background: var(--surface-2); display: grid; gap: .85rem;
}
.section--dark .phase-card { background: #121219; border-color: #24242d; }
.phase-card h4 { margin: 0 0 .35rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-sans); font-weight: 700; }
.phase-cost { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.phase-cost b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; }
.phase-cost span { font-size: .84rem; color: var(--text-faint); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--text-soft); background: var(--surface);
}
.section--dark .chip { background: #15151c; border-color: #2a2a34; }
.chip--done { color: #067a6b; border-color: color-mix(in srgb, #0aa38f 45%, transparent); background: color-mix(in srgb, #0aa38f 12%, transparent); }
.chip--active { color: var(--magenta); border-color: color-mix(in srgb, var(--magenta) 45%, transparent); background: color-mix(in srgb, var(--magenta) 10%, transparent); }
.section--dark .chip--done { color: #3fe0c6; }
.chip--next { color: var(--text-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: clamp(.6rem, 1.4vw, 1rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.4rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 1.45rem; width: 13px; height: 13px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--text-soft); max-width: var(--measure); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.05rem; }
.form > *, .field > *, .field-row > *, .checks > * { min-width: 0; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 600; letter-spacing: .01em; }
.field label .req { color: var(--accent); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; max-width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease;
}
.section--dark .field input:not([type="checkbox"]):not([type="radio"]), .section--dark .field select, .section--dark .field textarea { background: #15151c; border-color: #2a2a34; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 1.05rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: .5rem; }
.check {
  display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; font-size: .92rem; transition: border-color .15s ease, background-color .15s ease;
}
.check:hover { border-color: var(--accent-2); }
.check input { width: auto; margin-top: .22rem; accent-color: var(--magenta); flex: none; }
.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--magenta) 7%, transparent); }
.form-note { font-size: .82rem; color: var(--text-faint); }
.form-status { font-size: .9rem; padding: .8rem 1rem; border-radius: 11px; display: none; }
.form-status.is-shown { display: block; }
.form-status[data-kind="ok"] { background: color-mix(in srgb, #0aa38f 12%, transparent); border: 1px solid color-mix(in srgb, #0aa38f 40%, transparent); }
.form-status[data-kind="err"] { background: color-mix(in srgb, #d4118f 10%, transparent); border: 1px solid color-mix(in srgb, #d4118f 40%, transparent); }

/* ---------- Callout / CTA band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.6rem);
  background: var(--ink); color: #fff; isolation: isolate;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 120% at 8% 0%, rgba(0,184,196,.35), transparent 55%),
              radial-gradient(80% 120% at 100% 100%, rgba(212,17,143,.4), transparent 58%);
}
.band h2 { font-size: var(--step-3); max-width: 20ch; }
.band p { color: rgba(255,255,255,.78); max-width: 52ch; }
.band .btn--ghost { --btn-fg: #fff; --btn-line: rgba(255,255,255,.42); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h4 { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 1rem; }
.footer-grid li + li { margin-top: .5rem; }
.footer-brand { max-width: 34ch; }
.footer-brand img { width: 54px; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid #22222a;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.social { display: flex; gap: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #26262e; display: grid; place-items: center; }
.social a:hover { border-color: var(--cyan-bright); }
.social svg { width: 17px; height: 17px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.skip-link {
  position: absolute; left: .75rem; top: .75rem; transform: translateY(-160%);
  background: #fff; color: #0b0b0d; padding: .6rem 1rem; border-radius: 8px; z-index: 100;
  text-decoration: none; font-weight: 600; transition: transform .16s ease;
}
.skip-link:focus { transform: none; }

.page-head { padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(2rem, 4vw, 3.5rem); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.breadcrumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; font-weight: 600; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.note-box {
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .88rem; color: var(--text-soft);
}
.note-box b { color: var(--text); }
