/* The Arches Project: homepage design
   Tokens come from the logo (three painted arches: sky, raspberry, orange)
   and the space itself (blue-black viaduct brick, white gallery walls). */

@font-face { font-family: 'Anybody'; src: url('../fonts/anybody.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-italic.woff2') format('woff2'); font-weight: 400 500; font-style: italic; font-display: swap; }

:root {
  --ink: #15102a;
  --ink-2: #1f1838;
  --ink-3: #2b2350;
  --wall: #f4f2f7;
  --paper: #ffffff;
  --sky: #6db0e3;
  --rasp: #e9305f;
  --rasp-deep: #cf1f4d;
  --tang: #f5892a;
  --plum: #7e3767;
  --text: #15102a;
  --muted: #4d4662;
  --on-dark: #f4f2f7;
  --on-dark-muted: #c9c3d9;

  --display: 'Anybody', 'Arial Black', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --quote: 'Newsreader', Georgia, serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --maxw: 1680px;
  --pad-y: clamp(4rem, 10vh, 7.5rem);
  --header-h: 98px;
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.04; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tang); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.h2 {
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -.015em;
}
.lede { font-size: clamp(1.08rem, 1.15vw, 1.22rem); line-height: 1.55; }

/* SplitText line masks: all the negative margin on the bottom (collapses between lines) */
.line-mask { display: block; overflow: clip; padding: .2em .15em .5em; margin: 0 -.15em -.7em; }
.line-mask:first-child { margin-top: -.2em; }
.line-mask:last-child { margin-bottom: -.5em; }
.split-ready { display: flow-root; }

/* ---------- Buttons: arch-topped, like the logo's shapes ---------- */
.btn {
  --bg: var(--rasp-deep); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em .75em;
  border-radius: 2em 2em .45em .45em;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  font-size: 1rem; letter-spacing: .01em; line-height: 1.1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { --bg: #b3163f; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { --bg: var(--sky); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { --bg: rgba(255,255,255,.12); }
.on-light .btn--ghost:hover { --bg: rgba(21,16,42,.07); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { --bg: var(--ink-3); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(21,16,42,.08);
  transition: box-shadow .4s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .45s var(--ease);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 70px; width: auto; transition: height .45s var(--ease); }
.is-scrolled .site-header { box-shadow: 0 10px 30px -18px rgba(21,16,42,.45); }
.is-scrolled .site-header__inner { height: 70px; }
.is-scrolled .brand img { height: 50px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav__list { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 2px;
  font-family: var(--display); font-weight: 600; font-stretch: 104%; font-size: .98rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--rasp); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link .chev { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__login { display: inline-flex; align-items: center; gap: 7px; }
.nav__login svg { width: 18px; height: 18px; }
.nav .btn { min-height: 46px; padding: .7em 1.3em .65em; font-size: .95rem; }

.dropdown {
  position: absolute; top: 100%; left: -18px; min-width: 250px;
  padding-top: 14px;
  visibility: hidden; pointer-events: none;
}
.dropdown__panel {
  list-style: none; margin: 0; padding: 10px;
  background: var(--paper); border-radius: 22px 22px 10px 10px;
  box-shadow: 0 24px 50px -20px rgba(21,16,42,.45), 0 0 0 1px rgba(21,16,42,.06);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 12px; white-space: nowrap;
  text-decoration: none; font-weight: 500; color: var(--ink);
  transition: background-color .25s, color .25s, padding .3s var(--ease);
}
.dropdown a::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--rasp)); opacity: 0; transform: scale(.4); transition: .3s var(--ease); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--wall); padding-left: 18px; }
.dropdown a:hover::after, .dropdown a:focus-visible::after { opacity: 1; transform: scale(1); }
.nav__item.is-open .dropdown { visibility: visible; pointer-events: auto; }
.nav__item.is-open .dropdown__panel { opacity: 1; transform: none; }

.burger {
  display: none; position: relative; z-index: 120;
  width: 48px; height: 48px; border-radius: 24px 24px 8px 8px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .mobile-menu { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2)); transition: clip-path .75s var(--ease), visibility 0s; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; padding: 8px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 700; font-stretch: 108%;
  color: var(--on-dark); text-decoration: none;
}
.mobile-menu__link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.mobile-menu__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mobile-sub > ul { overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 4px; }
.mobile-sub.is-open { grid-template-rows: 1fr; }
.mobile-sub a { display: block; padding: 10px 0; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; font-size: 1.1rem; }
.mobile-sub.is-open > ul { padding-bottom: 14px; }
.mobile-menu__foot { margin-top: 32px; display: grid; gap: 16px; }
.mobile-menu__foot .btn { justify-content: center; }
.mobile-menu__contact { color: var(--on-dark-muted); font-size: 1rem; }
.mobile-menu__contact a { color: var(--on-dark); }

/* ---------- Hero: through the arches ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  background: var(--ink); color: var(--on-dark);
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; --shift: 20%; translate: 0 var(--shift); }
@media (max-width: 700px) { .hero__media { --shift: 30%; } }
.hero__video, .hero__media > img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(21,16,42,.88) 0%, rgba(21,16,42,.55) 34%, rgba(21,16,42,.08) 62%, rgba(21,16,42,0) 100%);
}
.hero__viaduct { position: absolute; inset: 0; pointer-events: none; }
.viaduct { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.viaduct--tall { display: none; }
.viaduct .ring { fill: none; stroke-width: 5; stroke-linecap: round; }
.hero__content {
  --h1: clamp(2.6rem, min(6.9vw, 11.6vh), 7rem);
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4.5vh, 3.5rem));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
}
.hero__title {
  grid-area: 1 / 1 / 2 / 3;
  font-size: var(--h1);
  font-weight: 800; font-stretch: 100%;
  line-height: .98; letter-spacing: -.025em;
  max-width: none;
}
.hero__title .w-unknown { font-weight: 250; font-stretch: 100%; color: var(--on-dark-muted); }
.hero__title .w-known { color: #fff; font-weight: 900; font-stretch: 112%; }
.hero__lede { grid-column: 1 / -1; max-width: 108ch; margin: clamp(.9rem, 2.6vh, 1.6rem) 0 0; font-size: clamp(1.05rem, 1.2vw, 1.25rem); color: #fff; text-shadow: 0 1px 18px rgba(21,16,42,.6); }
.hero__ctas { grid-area: 1 / 2 / 2 / 3; align-self: start; margin-top: calc(var(--h1) * .49 - 26px); display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1099px) {
  .hero__content { grid-template-columns: minmax(0, 1fr); }
  .hero__title { grid-area: auto; }
  .hero__ctas { grid-area: auto; order: 3; margin-top: 1.2rem; }
}
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 23px 23px 8px 8px;
  border: 2px solid rgba(255,255,255,.55); color: #fff; text-decoration: none;
}
.hero__scroll svg { width: 16px; height: 16px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ---------- Ways in (service cards) ---------- */
.ways { background: var(--wall); padding: var(--pad-y) 0; position: relative; }
.ways__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 4.5vh, 3rem); }
.ways__head .h2 { flex: 0 1 auto; }
.ways__head p { flex: 1 1 380px; margin: 0; color: var(--muted); max-width: 120ch; }
.ways__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 30px); }
.way {
  --c: var(--sky);
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transform-style: preserve-3d; will-change: transform;
}
.way__frame {
  position: relative; height: min(38vh, 380px); min-height: 240px;
  margin: 12px 12px 0 0;
}
.way__outline {
  position: absolute; inset: -12px -12px 12px 12px;
  border: 2px solid var(--c); border-radius: var(--arch);
  transition: transform .6s var(--ease);
}
.way__img {
  position: absolute; inset: 0; border-radius: var(--arch); overflow: hidden;
  background: var(--c);
}
.way__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.way__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--c), transparent 55%);
  mix-blend-mode: multiply; opacity: 0; transition: opacity .6s var(--ease);
}
.way:hover .way__img img { transform: scale(1.07); }
.way:hover .way__img::after { opacity: .75; }
.way:hover .way__outline { transform: translate(-6px, 6px); }
.way__body { padding: 20px 0 0; display: flex; flex-direction: column; flex: 1; }
.way__title { font-size: clamp(1.3rem, 1.5vw, 1.65rem); font-weight: 800; font-stretch: 106%; margin-bottom: 8px; }
.way__body p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.way__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-stretch: 110%; }
.way__go i { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 18px 18px 6px 6px; background: var(--c); color: var(--ink); transition: transform .5s var(--ease); }
.way__go svg { width: 16px; height: 16px; }
.way:hover .way__go i { transform: translateX(6px); }
.way--mag .way__img { background: linear-gradient(160deg, #8cc3ec, var(--sky)); }
.way--mag .way__img img { object-fit: contain; object-position: 50% 62%; padding: 18% 4% 0; }

/* ---------- Jacob Chandler story ---------- */
.story { background: var(--ink-2); color: var(--on-dark); padding: var(--pad-y) 0; position: relative; overflow: clip; }
.story::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/brick-tile.webp') center / 900px auto repeat;
  opacity: .22; mix-blend-mode: luminosity;
}
.story__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.story__art { position: relative; height: min(74vh, 660px); min-height: 440px; }
.story__main {
  position: absolute; left: 6%; top: 0; bottom: 0; width: 64%;
  border-radius: var(--arch); overflow: hidden; background: var(--ink-3);
}
.story__main img { width: 100%; max-width: none; height: 115%; object-fit: cover; object-position: 30% 50%; }
.story__ring { position: absolute; left: calc(6% - 16px); top: 16px; bottom: -16px; width: 64%; border: 2px solid var(--tang); border-radius: var(--arch); }
.story__pin {
  position: absolute; right: 0; bottom: 6%; width: 46%; margin: 0;
  background: var(--paper); padding: 10px 10px 12px; border-radius: 6px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); color: var(--ink);
  rotate: 2.5deg;
}
.story__pin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.story__pin figcaption { font-size: .9rem; color: var(--muted); padding: 8px 4px 0; line-height: 1.35; }
.story__cover { position: absolute; right: 8%; top: 2%; width: 26%; rotate: -5deg; box-shadow: 0 26px 50px -20px rgba(0,0,0,.8); border-radius: 4px; overflow: hidden; }
.story__cover img { width: 100%; aspect-ratio: 560 / 792; object-fit: cover; }
.story__text .h2 { margin-bottom: clamp(1rem, 3vh, 1.6rem); }
.story__text p { color: var(--on-dark-muted); }
.story__text p.lede { color: var(--on-dark); }
.quote-fill {
  font-family: var(--quote); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem); line-height: 1.18; margin: clamp(1.2rem, 3.5vh, 2rem) 0 .6rem;
  color: #fff;
}
.quote-fill .w { opacity: 1; }
.quote-cite { display: block; font-family: var(--display); font-weight: 700; font-stretch: 110%; color: var(--tang); font-size: 1rem; margin-bottom: 1.6rem; }

/* ---------- Magazine shelf ---------- */
.mag { background: var(--sky); color: var(--ink); padding: clamp(3.5rem, 8.5vh, 6.5rem) 0 clamp(2.5rem, 6vh, 4rem); position: relative; overflow: clip; }
.mag__deco { position: absolute; right: -6vw; top: -8vh; width: min(46vw, 640px); opacity: .5; pointer-events: none; }
.mag__top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem clamp(2rem, 5vw, 6rem); align-items: start; }
.mag__top .h2 { grid-column: 1 / -1; }
.mag__top p { margin: 0; }
.mag__side { display: grid; gap: 1.1rem; }
.mag__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.shelf { position: relative; margin-top: clamp(1.6rem, 4.5vh, 3rem); }
.shelf__viewport { overflow: hidden; padding: 18px 0 10px; cursor: grab; touch-action: pan-y; }
.shelf__viewport:active { cursor: grabbing; }
.shelf__track { display: flex; gap: clamp(16px, 1.8vw, 28px); width: max-content; padding-inline: var(--gutter); }
.cover { flex: none; width: calc(min(34vh, 310px) * .707); margin: 0; user-select: none; -webkit-user-drag: none; }
.cover__img {
  display: block; position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 22px 40px -22px rgba(21,16,42,.75), 0 2px 0 rgba(255,255,255,.4) inset;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cover__img img { width: 100%; aspect-ratio: 560 / 792; object-fit: cover; pointer-events: none; }
.cover:hover .cover__img, .cover:focus-within .cover__img { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 34px 50px -24px rgba(21,16,42,.85); }
.cover figcaption { padding-top: 12px; line-height: 1.3; }
.cover figcaption strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.05rem; }
.cover figcaption span { display: block; font-size: .95rem; color: #1f2a44; }
.cover--new .cover__img::after { content: 'Latest'; position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 12px 12px 4px 4px; background: var(--rasp-deep); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.shelf__ui { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.shelf__bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(21,16,42,.18); }
.shelf__thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 4px; background: var(--ink); }
.shelf__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 24px 24px 8px 8px;
  border: 2px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink);
  transition: background-color .3s, color .3s;
}
.shelf__btn:hover { background: var(--ink); color: #fff; }
.shelf__btn svg { width: 18px; height: 18px; }
.shelf__count { font-family: var(--display); font-weight: 700; font-stretch: 110%; min-width: 5.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.drag-label {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 84px; height: 84px; border-radius: 42px 42px 12px 12px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: .95rem;
  opacity: 0; scale: .4;
}

/* ---------- Journey (pinned horizontal timeline) ---------- */
.journey { background: var(--ink); color: var(--on-dark); position: relative; overflow: clip; }
.journey::before { content: ''; position: absolute; inset: 0; background: url('../img/brick-tile.webp') center top / 900px auto repeat; opacity: .16; }
.journey__pin { position: relative; overflow: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 1.5rem) 0 clamp(4.5rem, 10vh, 6rem); }
.journey__track { display: flex; align-items: stretch; gap: 0; width: max-content; padding-left: var(--gutter); will-change: transform; }
.jpanel { flex: none; width: min(78vw, 560px); padding-right: clamp(28px, 4vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.jpanel--intro { width: min(86vw, 760px); }
.jpanel--intro .h2 { margin-bottom: 1.2rem; }
.jpanel--intro p { color: var(--on-dark-muted); }
.jpanel__year {
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(3rem, min(7vw, 11vh), 6.4rem); line-height: .9; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--c, var(--sky));
  background: linear-gradient(90deg, var(--c, var(--sky)) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 14px; width: max-content;
}
.jpanel__frame {
  position: relative; height: min(42vh, 400px); min-height: 200px; border-radius: var(--arch); overflow: hidden;
  background: var(--ink-3);
}
.jpanel__frame img { position: absolute; left: -12%; top: 0; width: 124%; max-width: none; height: 100%; object-fit: cover; }
.jpanel__frame figcaption {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; max-width: calc(100% - 28px);
  padding: 6px 14px; border-radius: 14px 14px 5px 5px; background: rgba(21,16,42,.78); color: #fff;
  font-size: .9rem; line-height: 1.3; text-align: center; backdrop-filter: blur(4px);
}
.jpanel__title { font-size: clamp(1.25rem, 1.6vw, 1.7rem); font-weight: 800; font-stretch: 106%; margin: 18px 0 6px; }
.jpanel__body { color: var(--on-dark-muted); font-size: 1rem; margin: 0; }
.jpanel--end { width: min(80vw, 520px); }
.jpanel--end .h2 { font-size: clamp(1.8rem, 2.8vw, 3rem); margin-bottom: 1.2rem; }
.journey__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.6rem, 4vh, 2.6rem); display: flex; align-items: center; gap: 18px; }
.journey__line { position: relative; flex: 1; height: 3px; background: rgba(255,255,255,.16); border-radius: 3px; }
.journey__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), var(--rasp), var(--tang)); border-radius: 3px; }
.journey__count { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: #fff; min-width: 4ch; }

/* ---------- Membership ---------- */
.member { background: var(--wall); padding: var(--pad-y) 0; position: relative; overflow: clip; }
.member__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.member__price { display: flex; align-items: baseline; gap: 12px; margin: .5rem 0 .8rem; flex-wrap: wrap; }
.member__price strong { font-family: var(--display); font-size: clamp(2.4rem, 3.6vw, 3.6rem); font-weight: 900; font-stretch: 118%; line-height: 1; color: var(--rasp-deep); }
.member__price span { font-size: 1.1rem; color: var(--muted); }
.benefits { list-style: none; margin: 0 0 1.4rem; padding: 0; border-top: 1px solid rgba(21,16,42,.14); }
.benefit { border-bottom: 1px solid rgba(21,16,42,.14); }
.benefit__btn {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: clamp(44px, 6.2vh, 56px); padding: 6px 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: clamp(1.08rem, 1.25vw, 1.3rem);
}
.benefit__name { flex: 1 1 0; min-width: 0; }
.benefit__dot { flex: none; width: 14px; height: 14px; border-radius: 7px 7px 2px 2px; background: var(--c); transition: transform .45s var(--ease); }
.benefit__btn[aria-selected="true"] .benefit__name { flex: 1 1 0; min-width: 0; }
.benefit__dot { transform: scale(1.45); }
.benefit__btn::after { content: ''; flex: none; width: 22px; height: 2px; background: currentColor; opacity: .3; transition: width .45s var(--ease), opacity .3s; }
.benefit__btn[aria-selected="true"]::after, .benefit__btn:hover::after { width: 40px; opacity: 1; }
.benefit__btn[aria-selected="true"] { color: var(--rasp-deep); }
.benefit__desc { display: none; margin: 0; padding: 0 0 14px 30px; color: var(--muted); }
.no-js .benefit__desc { display: block; }
.benefit-detail { min-height: 4.2em; margin: 0 0 1rem; padding: 14px 18px; border-radius: 18px 18px 6px 6px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(21,16,42,.08); }
.no-js .benefit-detail { display: none; }
.member__note { color: var(--muted); font-size: 1rem; margin-bottom: 1.4rem; }
.member__cta { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.pane { position: relative; height: min(72vh, 640px); min-height: 360px; }
.pane__ring { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--c, var(--sky)); border-radius: var(--arch); transition: border-color .6s; }
.pane__frame { position: absolute; inset: 0; border-radius: var(--arch); overflow: hidden; background: var(--ink-3); }
.pane__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pane__img.is-active { opacity: 1; }
.pane__tag {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 2;
  padding: 8px 16px; border-radius: 16px 16px 5px 5px; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: .98rem; white-space: nowrap;
  box-shadow: 0 16px 30px -16px rgba(21,16,42,.5);
}

/* ---------- Mission, recognition and partners ---------- */
.mission { background: var(--rasp-deep); color: #fff; padding: var(--pad-y) 0 0; position: relative; overflow: clip; }
.mission__deco { position: absolute; left: -8vw; bottom: 40px; width: min(40vw, 560px); opacity: .22; pointer-events: none; mix-blend-mode: screen; }
.mission__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.mission__grid .h2 { margin-bottom: clamp(1.2rem, 3.5vh, 2rem); }
.statement { margin-bottom: clamp(1.2rem, 3vh, 1.8rem); }
.statement h3 { font-size: 1.05rem; font-weight: 800; font-stretch: 115%; letter-spacing: .02em; margin-bottom: 6px; color: #ffd7c0; }
.statement p { margin: 0; font-family: var(--display); font-weight: 600; font-stretch: 100%; font-size: clamp(1.25rem, 1.75vw, 1.85rem); line-height: 1.3; }
.statement .w { opacity: 1; }
.award { display: flex; align-items: center; gap: 16px; margin-top: .6rem; }
.award svg { width: 54px; height: 54px; flex: none; }
.award p { flex: 1 1 0; min-width: 0; margin: 0; font-size: 1.05rem; }
.award strong { font-family: var(--display); font-stretch: 108%; }
.mission__art { position: relative; height: min(66vh, 580px); min-height: 380px; }
.mission__art figure { margin: 0; position: absolute; overflow: hidden; }
.mission__a { left: 0; right: 0; top: 0; height: 80%; border-radius: var(--arch); }
.mission__b { left: 0; bottom: 0; width: 52%; height: 44%; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
.mission__art img { width: 100%; height: 100%; object-fit: cover; }
.mission__ring { position: absolute; left: 14px; right: -14px; top: -14px; height: 80%; border: 2px solid var(--tang); border-radius: var(--arch); }
.partners { position: relative; margin-top: clamp(2.2rem, 5vh, 3.5rem); background: var(--paper); color: var(--ink); padding: clamp(1.4rem, 3.5vh, 2.2rem) 0; }
.partners__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 40px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.partners__head p { margin: 0; font-size: 1.02rem; color: var(--muted); }
.partners__head strong { color: var(--ink); font-family: var(--display); font-stretch: 108%; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 90px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: clamp(46px, 6vh, 64px); width: auto; flex: none; }
.marquee__track img.is-wide { height: clamp(32px, 4vh, 42px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Donate ---------- */
.donate { background: var(--ink-2); color: var(--on-dark); padding: var(--pad-y) 0; position: relative; overflow: clip; }
.donate__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.donate__art { position: relative; height: min(72vh, 640px); min-height: 400px; margin-inline: 20px; }
.donate__art .ring { position: absolute; inset: 0; border-radius: var(--arch); border: 2px solid var(--c); }
.donate__art .ring:nth-child(1) { --c: var(--sky); transform: translate(-18px, -10px); }
.donate__art .ring:nth-child(2) { --c: var(--rasp); transform: translate(18px, 10px); }
.donate__frame { position: absolute; inset: 0; border-radius: var(--arch); overflow: hidden; }
.donate__frame img { width: 100%; height: 100%; object-fit: cover; }
.donate__text .h2 { margin-bottom: 1.2rem; }
.donate__text > p { color: var(--on-dark-muted); }
.gives { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gives li { padding: 18px 18px 16px; border-radius: 22px 22px 8px 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 1rem; line-height: 1.45; }
.gives li b { display: block; font-family: var(--display); font-stretch: 110%; color: var(--c); margin-bottom: 4px; font-size: 1.05rem; }
.testimonial { margin: 0 0 1.6rem; padding-left: 22px; border-left: 3px solid var(--tang); }
.testimonial p { font-family: var(--quote); font-style: italic; font-size: clamp(1.15rem, 1.35vw, 1.4rem); line-height: 1.45; color: #fff; margin-bottom: .6rem; }
.testimonial cite { font-style: normal; font-family: var(--display); font-weight: 700; font-stretch: 110%; color: var(--tang); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); position: relative; overflow: clip; }
.news { background: var(--wall); color: var(--ink); padding: clamp(2.6rem, 7vh, 4.5rem) 0; position: relative; overflow: clip; }
.news__art { align-self: stretch; width: clamp(160px, 20vw, 320px); margin-block: calc(-1 * clamp(2.6rem, 7vh, 4.5rem)); position: relative; }
.news__arches { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 88%; pointer-events: none; }
.news__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title art' 'form art'; align-items: center; gap: 18px 48px; }
.news__inner h2 { grid-area: title; }
.news__inner .news__form { grid-area: form; }
.news__inner .news__art { grid-area: art; }
.news h2 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); font-weight: 800; font-stretch: 108%; }
.news__form { display: flex; gap: 10px; width: min(100%, 680px); position: relative; }
.news__form input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 20px; border-radius: 27px 27px 8px 8px;
  border: 2px solid var(--ink); background: var(--paper); font: inherit; color: var(--ink);
}
.news__form input::placeholder { color: #6a6480; }
.news__msg { position: absolute; left: 20px; top: 100%; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.footer__main { padding: clamp(3rem, 8vh, 5rem) 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 64px); }
.footer__about { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.plaque { display: inline-block; background: var(--paper); padding: 22px 24px 18px; border-radius: 26px 26px 8px 8px; line-height: 0; }
.plaque img { height: 62px; width: auto; }
.footer__about p { flex: 1 1 320px; min-width: 0; margin: 0; color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.5; }
.footer__col h3 { font-size: 1.05rem; font-weight: 800; font-stretch: 112%; margin-bottom: 14px; color: #fff; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__col a, .footer__col address { color: var(--on-dark-muted); text-decoration: none; font-style: normal; line-height: 1.6; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px 22px 7px 7px; background: rgba(255,255,255,.08); color: #fff; padding: 0; transition: background-color .3s; }
.socials a:hover { background: var(--rasp-deep); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; color: var(--on-dark-muted); font-size: .95rem; }
.footer__bottom a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom p { margin: 0; display: flex; align-items: center; }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Decorative painted arches (the logo's language, not the logo) ---------- */
.deco-arches path { mix-blend-mode: multiply; }
.on-dark .deco-arches path { mix-blend-mode: screen; }

/* ---------- Hero first-paint fallback: if scripts never arrive, show everything ---------- */
.motion .hero [data-in] { opacity: 0; animation: reveal-fallback .01s 2.8s forwards; }
.motion.is-ready .hero [data-in] { animation: none; }
.motion .viaduct .ring { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: ring-fallback .01s 2.8s forwards; }
.motion.is-ready .viaduct .ring { animation: none; }
@keyframes ring-fallback { to { stroke-dashoffset: 0; } }
@keyframes reveal-fallback { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1239px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }
  .is-scrolled .site-header__inner { height: 64px; }
  .is-scrolled .brand img { height: 44px; }
  .story__grid, .member__grid, .mission__grid, .donate__grid { grid-template-columns: minmax(0, 1fr); }
  .story__art { height: min(62vh, 520px); min-height: 380px; }
  .mag__top { grid-template-columns: minmax(0, 1fr); }
  .pane { height: min(56vh, 460px); }
  .member__grid .pane { order: -1; margin: 0 18px 0 0; }
  .mission__art { height: min(56vh, 460px); }
  .donate__art { height: min(60vh, 480px); }
  .gives { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .viaduct--wide { display: none; }
  .viaduct--tall { display: block; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .ways__grid { grid-template-columns: minmax(0, 1fr); }
  .way__frame { height: min(34vh, 300px); }
  .footer__main { grid-template-columns: minmax(0, 1fr); }
  .hero__scroll { display: none; }
  .story__cover { width: 30%; right: 2%; }
  .story__pin { width: 52%; }
}

/* Reduced motion and no-JS: no pins, the timeline lays out as a grid */
.no-motion .journey__pin, .no-js .journey__pin { min-height: 0; padding: var(--pad-y) 0; }
.no-motion .journey__track, .no-js .journey__track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 44px 32px; padding-inline: var(--gutter); }
.no-motion .jpanel, .no-js .jpanel { width: auto; padding-right: 0; }
.no-motion .jpanel--intro, .no-js .jpanel--intro { grid-column: 1 / -1; }
.no-motion .journey__rail, .no-js .journey__rail { display: none; }
.no-motion .jpanel__year, .no-js .jpanel__year { background-position: 0 0; }
.no-js .pane__img:first-child { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.pane__img--contain { object-fit: contain; background: linear-gradient(160deg, #8cc3ec, var(--sky)); padding: 12% 6%; }
@media (max-width: 900px) {
  .news__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'form' 'art'; }
  .news__art { width: auto; height: 110px; margin: 0 0 calc(-1 * clamp(2.6rem, 7vh, 4.5rem)); }
  .news__arches { height: 100%; }
}

/* No-motion fallbacks: everything laid out, nothing clipped */
.no-motion .shelf__track, .no-js .shelf__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(44%, 170px), 1fr)); gap: 28px 20px; width: auto; }
.no-motion .cover, .no-js .cover { width: auto; }
.no-motion .shelf__ui, .no-js .shelf__ui { display: none; }
.no-motion .shelf__viewport, .no-js .shelf__viewport { overflow: visible; cursor: auto; }
.no-motion .journey__track, .no-js .journey__track { grid-template-columns: repeat(auto-fill, min(78vw, 560px)); justify-content: start; }
.no-motion .jpanel, .no-js .jpanel { width: min(78vw, 560px); padding-right: clamp(28px, 4vw, 72px); }
.no-motion .jpanel--intro, .no-js .jpanel--intro { width: min(86vw, 760px); }
.no-js .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
.no-js .marquee__track [aria-hidden="true"] { display: none; }
.no-js .marquee { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 700px) {
  .news__form .btn { padding-inline: 1.1em; }
}
@media (max-width: 700px) {
  .benefit__btn::after { display: none; }
  .benefit__btn { gap: 14px; }
}
