/* ============ Tokens ============ */
:root {
  --bg: #FAF7F2;
  --bg-hero: #FBF3E8;
  --bg-alt: #F3EFE8;
  --surface: #FFFFFF;
  --ink: #0D0D0D;
  --ink-2: #33302C;
  --muted: #6B6660;
  --line: #E6E0D6;
  --line-strong: #D5CEC3;

  --brand: #FE5301;          /* logo orange: decor, marks, focus */
  --orange-btn: #CF4200;     /* white text 4.7:1 */
  --orange-btn-hover: #B63A00;
  --orange-text: #C23E00;    /* on cream 4.9:1 */
  --green: #15803D;
  --road-green: #0F6B3B;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --fs-eyebrow: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.75rem, 1.4rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 2.9vw, 3.5rem);
  --fs-h3: 1.0625rem;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgb(20 14 6 / 0.05), 0 8px 24px -12px rgb(20 14 6 / 0.14);
  --shadow-hover: 0 2px 4px rgb(20 14 6 / 0.06), 0 22px 40px -18px rgb(20 14 6 / 0.28);
  --shadow-btn: 0 10px 22px -10px rgb(207 66 0 / 0.65);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; left: 1rem; top: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: var(--space-4);
}
.section-lede { color: var(--ink-2); max-width: 34ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 0.975rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 1.05rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--orange-btn-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2724; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.btn[aria-busy="true"] { pointer-events: none; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.4); border-top-color: #fff; animation: spin 700ms linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgb(250 247 242 / 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-6); }
.brand { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); margin-left: clamp(1rem, 5vw, 5rem); }
.nav a { font-size: 0.95rem; font-weight: 500; text-decoration: none; position: relative; padding: 0.4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.search {
  display: flex; align-items: center; gap: 0.55rem;
  width: clamp(200px, 17vw, 250px); height: 42px; padding: 0 0.9rem;
  background: rgb(255 255 255 / 0.82); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(254 83 1 / 0.18); }
.search svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; border: 0; background: none; outline: none; font-size: 0.875rem; }
.search input::placeholder { color: #8C867E; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.x-link {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.x-link svg { width: 17px; height: 17px; fill: currentColor; }
.x-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-nav { align-items: center; }
.x-link-sm { width: 36px; height: 36px; }
.x-link-sm svg { width: 15px; height: 15px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; place-items: center; align-content: center; gap: 6px; }
.menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-5); }
.mobile-menu nav { display: grid; gap: var(--space-1); }
.mobile-menu a { padding: 0.85rem 0; font-size: 1.125rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: var(--space-4); }
.search-mobile { width: 100%; height: 48px; margin-bottom: var(--space-2); }
.search-mobile input { font-size: 1rem; }

/* ============ Shared art box (image + overlays keep one aspect ratio) ============ */
.art-box { position: relative; container-type: inline-size; }
.art-box img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Hero ============ */
.hero {
  --hero-h: clamp(640px, 50vw, 780px);
  --art-w: calc(var(--hero-h) * 1.2737);
  --copy-w: 570px;
  position: relative; overflow: hidden;
  min-height: var(--hero-h);
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg-hero) 45%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.hero-art {
  position: absolute; top: 0; bottom: 0; width: var(--art-w);
  /* flush right, but never earlier than the end of the copy column (chair starts ~7.6% into the art) */
  left: max(calc(100% - var(--art-w)), calc((100% - min(100% - 2 * var(--gutter), var(--shell))) / 2 + var(--copy-w) - var(--art-w) * 0.07));
}
.hero-art .art-box {
  height: 100%; aspect-ratio: 1936 / 1520;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 0.6) 8%, #000 16%);
          mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / 0.6) 8%, #000 16%);
}
.wall-note {
  display: none; /* only where the window part of the art is on screen */
  position: absolute; left: 81.5%; top: 3.6%; margin: 0;
  font-family: var(--font-hand); font-size: clamp(11px, 1.9cqw, 22px); line-height: 1.02;
  color: #16120E; text-transform: uppercase; transform: rotate(-9deg); transform-origin: left top;
}
.wall-note svg { width: 5.4em; height: 0.7em; margin-top: 0.15em; fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; }

.hero-inner { position: relative; z-index: 1; padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-7); }
.hero-copy { max-width: var(--copy-w); }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.045em; line-height: 0.98; margin-bottom: var(--space-5); }
.hero h1 .nowrap { display: inline-block; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 30rem; margin-bottom: var(--space-6); line-height: 1.5; }
.stats { display: flex; margin-top: var(--space-7); }
.stats div { display: flex; flex-direction: column-reverse; gap: 0.3rem; padding-right: clamp(1.25rem, 3vw, 2.5rem); margin-right: clamp(1.25rem, 3vw, 2.5rem); border-right: 1px solid var(--line-strong); }
.stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dd { font-size: clamp(1.5rem, 1rem + 1.3vw, 2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats dt { font-size: var(--fs-small); color: var(--muted); }

/* ============ How it works ============ */
.how { padding: var(--space-9) 0; background: var(--bg); }
.how-grid { display: grid; grid-template-columns: minmax(330px, 0.85fr) 2.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.how h2 { font-size: var(--fs-h2); margin-bottom: var(--space-5); }
.how .section-lede { margin-bottom: var(--space-6); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2.25rem); counter-reset: step; }
.step { position: relative; }
.step img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: var(--space-2); transition: transform 400ms var(--ease); }
.step:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 34%; right: calc(-1 * clamp(1rem, 2.4vw, 2.25rem) / 2 - 7px);
  width: 14px; height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230D0D0D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h13m-5-5 5 5-5 5'/%3E%3C/svg%3E");
}
.step-num { display: block; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 0.35rem; }
.step h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* ============ Explore ============ */
.explore { padding: var(--space-8) 0 var(--space-9); background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.explore h2 { font-size: var(--fs-h2); }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.75rem, 1.4vw, 1.1rem); }
.card { min-width: 0; }
.card[hidden] { display: none; }
.card-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card-link picture { aspect-ratio: 16 / 10; overflow: hidden; background: #E9E3D9; }
.card-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card-link:hover img { transform: scale(1.04); }
.card-body { padding: 1rem 1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1rem; letter-spacing: -0.015em; line-height: 1.2; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.card-perf { display: flex; align-items: flex-end; gap: 0.6rem; margin-top: auto; padding-top: 1.1rem; }
.gain { font-size: 1.15rem; font-weight: 700; color: var(--green); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.spark { flex: 1; min-width: 0; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.period { font-size: 0.7rem; color: var(--muted); line-height: 1; }

.filter-status { font-size: var(--fs-small); color: var(--muted); margin: calc(-1 * var(--space-4)) 0 var(--space-4); min-height: 0; }
.filter-status:empty { display: none; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--space-6); display: grid; gap: var(--space-4); justify-items: start; }
.empty p { color: var(--ink-2); }
.fineprint { margin-top: var(--space-5); font-size: 0.78rem; color: var(--muted); }

/* ============ CTA ============ */
.cta {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 46vw, 700px);
  background: linear-gradient(90deg, var(--bg) 0%, #FAF1E4 50%);
  display: flex; align-items: center;
}
.cta-art { position: absolute; inset: 0 0 0 auto; height: 100%; }
.cta-art .art-box {
  height: 100%; aspect-ratio: 2688 / 1520;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgb(0 0 0 / 0.55) 22%, #000 36%);
          mask-image: linear-gradient(90deg, transparent 4%, rgb(0 0 0 / 0.55) 22%, #000 36%);
}
.road-sign {
  position: absolute; left: 66%; top: 7.6%; width: 27.4%; height: 19.4%;
  display: flex; align-items: center; justify-content: space-between; gap: 4%;
  padding: 0 4.5% 0 5.5%;
  color: #fff; font-size: clamp(10px, 1.55cqw, 22px); font-weight: 500; line-height: 1.22; letter-spacing: 0.005em;
}
.road-sign li { white-space: nowrap; }
.road-sign svg { flex-shrink: 0; align-self: flex-start; margin-top: 7%; width: 2.6em; height: 2.6em; fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }

.cta-inner { position: relative; z-index: 1; padding: var(--space-9) 0; }
.cta-copy { max-width: 520px; }
.cta h2 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.25rem); letter-spacing: -0.045em; margin-bottom: var(--space-5); }
.cta .section-lede { max-width: 30rem; margin-bottom: var(--space-6); }
.pillars { display: flex; flex-wrap: wrap; gap: var(--space-4) clamp(1.5rem, 3vw, 2.75rem); margin-top: var(--space-7); }
.pillars li { display: grid; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.pillars svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Footer ============ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: var(--space-6) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.site-footer .brand img { height: 26px; }
.footer-tag { font-size: var(--fs-small); color: var(--muted); }
.footer-nav { display: flex; gap: var(--space-5); margin-left: auto; }
.footer-nav a { font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { width: 100%; font-size: 0.78rem; color: var(--muted); }

/* ============ Dialogs ============ */
.modal {
  width: min(100% - 2rem, 460px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(20 14 6 / 0.45);
}
.modal::backdrop { background: rgb(20 16 12 / 0.45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop 260ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-inner { position: relative; padding: 2rem 1.75rem 1.75rem; }
.modal h2 { font-size: 1.75rem; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: var(--space-5); }
.modal .eyebrow { margin-bottom: var(--space-3); }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--line); }

.field { margin: 0 0 var(--space-5); padding: 0; border: 0; }
.field label, .field legend { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 0.45rem; padding: 0; }
.field input[type="text"] {
  width: 100%; height: 48px; padding: 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input[type="text"]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(254 83 1 / 0.2); }
.field input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgb(180 35 24 / 0.12); }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.error { font-size: 0.8rem; color: #B42318; margin-top: 0.4rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.85rem;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chips span:hover { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.modal-success { text-align: left; }
.modal-success p { color: var(--ink-2); margin-bottom: var(--space-5); }
.success-mark { width: 48px; height: 48px; border-radius: 50%; background: #E8F5EC; display: grid; place-items: center; margin-bottom: var(--space-4); }
.success-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.wallet-list { display: grid; gap: 0.6rem; }
.wallet-option {
  display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  font-weight: 600; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.wallet-option::after { content: "→"; color: var(--muted); }
.wallet-option:hover { border-color: var(--ink); background: var(--bg); }
.wallet-option[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: spin 700ms linear infinite; }
.wallet-status { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--space-4); }
.wallet-status:empty { display: none; }

/* ============ Load motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-art { animation: fade 1000ms var(--ease) both; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ============ Responsive ============ */
@media (min-width: 1700px) {
  .wall-note { display: block; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .search { width: 210px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-intro { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-6); align-items: end; }
  .how-intro .eyebrow, .how-intro h2 { grid-column: 1 / -1; }
  .how .section-lede { margin-bottom: 0; }

  .cta { display: flex; flex-direction: column-reverse; min-height: 0; background: #FAF3E8; }
  .cta-inner { padding: var(--space-8) 0 var(--space-5); }
  .cta-copy { max-width: 640px; }
  .cta-art { position: relative; inset: auto; height: auto; width: 100%; overflow: hidden; }
  .cta-art .art-box {
    height: auto; width: 110%; margin-left: -10%;
    -webkit-mask-image: none; mask-image: none;
  }
  .cta-art::before { content: ""; position: absolute; inset: 0 0 auto; height: 20%; z-index: 1; background: linear-gradient(#FAF3E8, transparent); pointer-events: none; }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .hero { --copy-w: 470px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-actions .search, .header-actions > .btn { display: none; }
  .menu-toggle { display: grid; }
  .site-header { background: rgb(250 247 242 / 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .brand img { height: 26px; }

  .hero { display: flex; flex-direction: column; min-height: 0; background: var(--bg-hero); }
  .hero-inner { order: 1; }
  .hero-inner { padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-5); }
  .hero-copy { max-width: none; }
  .stats { margin-top: var(--space-6); }
  .hero-art { order: 2; position: relative; inset: auto; left: auto; width: 100%; height: auto; overflow: hidden; }
  .hero-art .art-box {
    height: auto; width: 128%; margin-left: -18%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-art::before { content: ""; position: absolute; inset: 0 0 auto; height: 18%; z-index: 1; background: linear-gradient(var(--bg-hero), transparent); pointer-events: none; }

  .how { padding: var(--space-8) 0; }
  .how-intro { display: block; }
  .how .section-lede { margin-bottom: var(--space-5); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-6); }
  .step::after { display: none; }

  .cards { grid-template-columns: 1fr; }
  .card-link { flex-direction: row; }
  .card-link picture { aspect-ratio: auto; width: min(38%, 240px); flex-shrink: 0; }
  .card-body { padding: 1rem 1.1rem; }
  .section-head { align-items: flex-start; flex-direction: column; }

  .cta-art .art-box { width: 165%; margin-left: -62%; }
}

@media (max-width: 520px) {
  .hero h1 .nowrap { white-space: normal; }
  .stats div { padding-right: 1rem; margin-right: 1rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-nav { margin-left: 0; }
  .pillars { display: grid; grid-template-columns: 1fr 1fr; }
}
