/* ==========================================================================
   APWS home: "The Four Columns"
   Lacquer black · Gold leaf · Ivory · one cinnabar thread
   Loaded only by index.html. Shared chrome (header, footer, dialogs) lives in apws.css.
   ========================================================================== */

body[data-page="index"] {
  --h-black: #0a0908;
  --h-coal: #14110e;
  --h-ivory: #f1ebdf;                     /* logo ivory (AP) */
  --h-text: rgba(241, 235, 223, .74);
  --h-dim: rgba(241, 235, 223, .52);
  --h-gold: #ceb14f;                      /* logo gold (WS) */
  --h-line: rgba(206, 177, 79, .22);
  --h-line-soft: rgba(241, 235, 223, .11);
  --h-seal: #c8402f;                      /* the red thread, used sparingly */
  --h-seal-hi: #e0604c;
  --h-display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --h-script: "WindSong", "Snell Roundhand", cursive;
  --h-pad: clamp(1.25rem, 2.6vw, 2.75rem);
  --serif: var(--h-display);
  background: var(--h-black);
  color: var(--h-ivory);
}
body[data-page="index"]::before {
  opacity: .3; mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .78 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-page="index"] ::selection { background: var(--h-gold); color: var(--h-black); }
body[data-page="index"] :focus-visible { outline-color: var(--h-gold); }

/* --------------------------------------------------------------------------
   Header on the cover: clear until the page moves, monogram hands over on scroll
   -------------------------------------------------------------------------- */
body[data-page="index"] .site-header { background: transparent; box-shadow: none; }
body[data-page="index"] .site-header.is-scrolled {
  background: rgba(10, 9, 8, .88);
  box-shadow: 0 1px 0 var(--h-line), 0 14px 34px -22px rgba(0, 0, 0, .8);
}
body[data-page="index"] .site-header.menu-is-open { background: var(--h-black); }
body[data-page="index"] .site-footer { background: var(--h-black); }
@media (min-width: 1121px) {
  body[data-page="index"] .site-header .brand { transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s; }
  body[data-page="index"] .site-header:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; transform: translateY(-8px); }
}
@media (max-width: 1120px) {
  body[data-page="index"] .nav { background: var(--h-black); }
  body[data-page="index"] .site-header:not(.is-scrolled):not(.menu-is-open) { background: linear-gradient(180deg, rgba(10, 9, 8, .82), rgba(10, 9, 8, 0)); }
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */
.hm-sec { position: relative; padding: clamp(4.5rem, 8.2vw, 7.75rem) 0; }
.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-h2 { margin: 0; font: 300 clamp(2.5rem, 4.8vw, 4.9rem)/1 var(--h-display); letter-spacing: -.015em; color: var(--h-ivory); text-wrap: balance; }
.hm-h2 em { font-style: italic; font-weight: 300; color: var(--h-gold); }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.hm-lede { margin: 0; max-width: 33em; font: 300 clamp(1.05rem, 1.35vw, 1.25rem)/1.65 var(--sans); color: var(--h-text); }

/* Text link: a thread that ends in a gold knot */
.thread-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 .72rem/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; color: var(--h-ivory); transition: color .35s;
}
.thread-link::before { content: ""; order: 1; width: 2.4rem; height: 1px; margin-left: 1rem; background: currentColor; opacity: .5; transition: width .55s var(--ease), opacity .35s; }
.thread-link::after { content: ""; order: 2; width: 7px; height: 7px; flex: none; background: var(--h-gold); transform: rotate(45deg); transition: transform .55s var(--ease); }
.thread-link:hover, .thread-link:focus-visible { color: var(--h-gold); }
.thread-link:hover::before, .thread-link:focus-visible::before { width: 3.8rem; opacity: 1; }
.thread-link:hover::after, .thread-link:focus-visible::after { transform: rotate(135deg) scale(1.2); }

body[data-page="index"] main .btn {
  --bg: var(--h-gold); --fg: var(--h-black);
  min-height: 54px; border-radius: 0; font-size: .72rem; letter-spacing: .2em;
}
body[data-page="index"] main .btn::before { background: var(--h-ivory); }
body[data-page="index"] main .btn:hover, body[data-page="index"] main .btn:focus-visible { color: var(--h-black); border-color: var(--h-ivory); }
body[data-page="index"] main .btn--ghost { --bg: transparent; --fg: var(--h-ivory); border-color: rgba(241, 235, 223, .34); }
body[data-page="index"] main .btn--ghost::before { background: var(--h-gold); }
body[data-page="index"] main .btn--ghost:hover, body[data-page="index"] main .btn--ghost:focus-visible { border-color: var(--h-gold); }

/* --------------------------------------------------------------------------
   Cover
   -------------------------------------------------------------------------- */
.hc {
  --cover-h: clamp(620px, 100vh, 72vw);
  --letter: clamp(6rem, min(17vw, 28vh), 20rem);
  --foot-h: 10.75rem;                     /* kept exact by home.js */
  position: relative; height: var(--cover-h); overflow: hidden; isolation: isolate;
  background: var(--h-black);
}
@supports (height: 100svh) {
  .hc { --cover-h: clamp(620px, 100svh, 72vw); --letter: clamp(6rem, min(17vw, 28svh), 20rem); }
}
.hc-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-col { --tone: var(--h-ivory); position: relative; min-width: 0; }
.hc-col--gold { --tone: var(--h-gold); }
.hc-col + .hc-col::before {
  content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 1px; background: var(--h-line);
  transform-origin: top; animation: coverLine 1.7s var(--ease) calc(.12s * var(--i)) both;
}

.hc-photo {
  position: absolute; z-index: 0; inset: 0 0 auto; height: 72%; margin: 0; overflow: hidden;
  opacity: 0; transition: opacity 1.5s var(--ease);
  animation: coverPhoto 2s var(--ease) .25s both;
}
.hc-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 15%);
  transform: scale(1.08); filter: saturate(.84) brightness(.8) contrast(1.05);
  transition: transform 3.2s var(--ease), filter 1.1s var(--ease);
}
.hc-photo::after {
  content: ""; position: absolute; inset: 0 0 -1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, .72) 0, rgba(10, 9, 8, .16) 19%, rgba(10, 9, 8, 0) 40%, rgba(10, 9, 8, .5) 72%, var(--h-black) 97%);
}
.hc-col.is-lit .hc-photo { opacity: 1; }
.hc-col.is-lit .hc-photo img { transform: none; }
.hc-col.is-lit:hover .hc-photo img { filter: saturate(1) brightness(.95) contrast(1.02); }

.hc-mark {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--rest) * 100%);
  display: grid; justify-items: center; gap: clamp(.9rem, 1.5vw, 1.5rem);
  pointer-events: none; transition: transform 1.5s var(--ease);
}
/* A lit letter drops below the faces, but never into the foot of the cover */
.hc-col.is-lit .hc-mark {
  transform: translateY(min(
    calc(var(--cover-h) * (var(--lit) - var(--rest))),
    calc(var(--cover-h) * (1 - var(--rest)) - var(--foot-h) - var(--letter) * .74 - 3.6rem)));
}
/* Outline at rest, solid once its photograph arrives. The stroke is painted
   under the fill so the letterforms stay clean where their strokes overlap. */
.hc-letter {
  display: block; font: 500 var(--letter)/.74 var(--logo-font);
  color: var(--h-black); -webkit-text-stroke: 2px var(--tone); paint-order: stroke fill;
  transition: color 1.2s var(--ease);
  animation: coverRise 1.4s var(--ease) calc(.3s + .11s * var(--i)) both;
}
.hc-col.is-lit .hc-letter { color: var(--tone); }
.hc-word {
  display: block; padding-left: .34em;
  font: 500 .68rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--h-text);
  animation: coverRise 1.4s var(--ease) calc(.45s + .11s * var(--i)) both;
}

.hc-foot {
  position: absolute; z-index: 4; inset: auto 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--h-black); border-top: 1px solid var(--h-line);
  animation: coverRise 1.4s var(--ease) .75s both;
}
.hc-foot > * { min-width: 0; padding: clamp(1.25rem, 2vw, 1.9rem) var(--h-pad) clamp(1.4rem, 2.3vw, 2.1rem); }
.hc-say { grid-column: span 2; align-self: center; }
.hc-line { margin: 0 0 .75rem; font: 300 clamp(1.7rem, 2.75vw, 3rem)/1.04 var(--h-display); letter-spacing: -.012em; }
.hc-line em { font-style: italic; color: var(--h-gold); }
.hc-place { margin: 0; font: 500 .66rem/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--h-dim); }

.hc-next {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: .65rem .7rem;
  border-left: 1px solid var(--h-line); text-decoration: none; color: var(--h-ivory); transition: background .4s;
}
.hc-next:hover, .hc-next:focus-visible { background: rgba(206, 177, 79, .07); }
.hc-next .dot { align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--h-gold); box-shadow: 0 0 0 4px rgba(206, 177, 79, .18); animation: pulse 1.8s infinite; }
.hc-next b { align-self: center; font: 500 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--h-gold); }
.hc-next span { grid-column: 1 / -1; font: 400 clamp(1.1rem, 1.45vw, 1.4rem)/1.2 var(--h-display); color: var(--h-ivory); text-wrap: balance; }

.hc-act { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .55rem; border-left: 1px solid var(--h-line); }
.hc-act .btn { padding-inline: 1.2rem; text-align: center; }

@keyframes coverLine { from { transform: scaleY(0); } }
@keyframes coverRise { from { opacity: 0; transform: translateY(2rem); } }
@keyframes coverPhoto { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes coverTick { from { background-size: 0% 100%, auto; } }
@keyframes coverFade { from { opacity: 0; } }
@keyframes spineWord { 0%, 62% { opacity: 0; } }
@keyframes openWord { 0%, 62% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Introduction: the columns thin out into the page
   -------------------------------------------------------------------------- */
.intro { padding-top: clamp(4.5rem, 9vw, 8.5rem); }
.intro::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(70%, 30rem); pointer-events: none;
  background:
    linear-gradient(var(--h-line), var(--h-line)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--h-line), var(--h-line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--h-line), var(--h-line)) 75% 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.place {
  grid-column: 1 / -1; display: flex; align-items: baseline; margin: 0 0 clamp(2rem, 4.6vw, 4.2rem);
  padding-left: calc(25% - 7vw); white-space: nowrap; line-height: 1; letter-spacing: 0;
}
.place-script {
  position: relative; z-index: 1; margin-right: -.3em;
  font: 400 clamp(4rem, 8.2vw, 9rem)/1 var(--h-script); color: var(--h-gold);
  transform: translateY(.06em) rotate(-5deg); transform-origin: 0 100%;
}
.place-serif { font: 300 clamp(5.4rem, 13.6vw, 15.5rem)/.82 var(--h-display); letter-spacing: -.02em; color: rgba(241, 235, 223, .12); }
.intro-copy { grid-column: 2 / span 2; max-width: 36rem; padding-inline: var(--h-pad); }
.intro-copy p { margin: 0 0 1.5em; font: 300 clamp(1.1rem, 1.5vw, 1.36rem)/1.6 var(--sans); color: var(--h-text); }
.intro-copy p:last-child { margin: 2.2rem 0 0; }
.facts { grid-column: 4; margin: 0; padding-inline: var(--h-pad); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1.15rem 0 1.3rem; border-top: 1px solid var(--h-line); }
.facts > div:last-child { border-bottom: 1px solid var(--h-line); }
.facts dt { font: 300 clamp(2.4rem, 3.4vw, 3.5rem)/.9 var(--h-display); letter-spacing: -.01em; color: var(--h-gold); }
.facts dt sup { font-size: .5em; vertical-align: top; position: relative; top: .1em; margin-left: .06em; color: var(--h-ivory); }
.facts dd { margin: 0; font: 500 .64rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--h-dim); }

/* --------------------------------------------------------------------------
   Belief: two photographs joined by the red thread
   -------------------------------------------------------------------------- */
.belief { padding: clamp(3rem, 6vw, 6rem) 0 clamp(7rem, 13vw, 12rem); }
body[data-page="index"] .belief .thread { inset: 0; width: 100%; height: 100%; }
body[data-page="index"] .belief .thread--sm { display: none; }   /* the phone's own thread */
body[data-page="index"] .belief .thread path { stroke: var(--h-seal); stroke-width: 1.4; }
.belief-photo { position: absolute; z-index: 1; margin: 0; overflow: hidden; background: var(--h-coal); }
.belief-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.9); transition: filter .9s var(--ease), transform 1.6s var(--ease); }
.belief-photo:hover img { filter: none; transform: scale(1.03); }
.belief-photo--a { left: 6vw; top: 0; width: 25vw; aspect-ratio: 1.12; }
.belief-photo--a img { object-position: 50% 30%; }
.belief-photo--b { right: 0; top: 36%; width: 21vw; aspect-ratio: .8; }
.belief-copy { position: relative; z-index: 2; width: min(35vw, 34rem); margin-left: 37.5vw; padding-top: clamp(3rem, 8vw, 8rem); }
.belief-big { margin: 0; font: 300 clamp(1.9rem, 3.05vw, 3.2rem)/1.13 var(--h-display); letter-spacing: -.012em; color: var(--h-ivory); }
.belief-big em { font-style: italic; color: var(--h-seal-hi); }
.belief-sub { margin: 1.5rem 0 0; font: 300 clamp(1.1rem, 1.45vw, 1.3rem)/1.6 var(--sans); color: var(--h-text); }

/* --------------------------------------------------------------------------
   Commitments: one plain photograph, four doors. Sized to sit on one screen.
   -------------------------------------------------------------------------- */
.pledge { padding-block: clamp(3rem, 5vw, 4.5rem); }
.pledge-grid {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: stretch;
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
}
.pledge-frame { position: relative; height: 100%; min-height: 21rem; overflow: hidden; background: var(--h-coal); }
.pledge-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 2.4s var(--ease);
}
.pledge-frame img.is-on { opacity: 1; transform: none; }
.pledge .hm-h2 { font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
.pledge-list { list-style: none; margin: clamp(1.5rem, 2.4vw, 2.2rem) 0 0; padding: 0; border-top: 1px solid var(--h-line-soft); }
.pledge-list a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start;
  padding: clamp(1rem, 1.4vw, 1.25rem) 0; border-bottom: 1px solid var(--h-line-soft);
  text-decoration: none; color: inherit;
}
.pledge-list a::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--h-gold); transition: width 1s var(--ease); }
.pledge-list a.is-active::before { width: 100%; }
.pledge-list h3 { font: 300 clamp(1.75rem, 2.3vw, 2.3rem)/1.05 var(--h-display); letter-spacing: -.01em; color: var(--h-ivory); transition: color .45s, transform .65s var(--ease); }
.pledge-list p { grid-column: 1; margin: .4rem 0 0; font: 300 .95rem/1.55 var(--sans); color: var(--h-text); }
.pledge-go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center;
  width: 42px; height: 42px; border: 1px solid var(--h-line); border-radius: 50%; color: var(--h-gold);
  transition: background .45s var(--ease), color .45s, border-color .45s, transform .45s var(--ease);
}
.pledge-go svg { width: 15px; }
.pledge-list a.is-active h3 { color: var(--h-gold); }
.pledge-list a:hover h3, .pledge-list a:focus-visible h3 { transform: translateX(.6rem); }
.pledge-list a:hover .pledge-go, .pledge-list a:focus-visible .pledge-go { background: var(--h-gold); border-color: var(--h-gold); color: var(--h-black); transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Next gathering: the invitation (markup comes from apws-events.js)
   -------------------------------------------------------------------------- */
/* Hold the invitation's place while the calendar loads */
#next-gathering:empty { display: grid; place-items: center; min-height: clamp(360px, 34vw, 480px); background: var(--h-coal); border: 1px solid var(--h-line); }
#next-gathering:empty::before { content: "Opening the calendar"; font: 500 .64rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--h-dim); animation: pulse 1.8s infinite; }
#next-gathering .next-event { position: relative; background: var(--h-coal); border: 1px solid var(--h-line); color: var(--h-ivory); }
#next-gathering .next-event::after { content: ""; position: absolute; inset: 9px; border: 1px solid var(--h-line-soft); pointer-events: none; }
#next-gathering .next-event-media { background: #000; }
#next-gathering .next-event-media .blur { filter: blur(34px) brightness(.34) saturate(1.25); }
#next-gathering .next-event-body { padding: clamp(2rem, 4.4vw, 4rem); }
#next-gathering .date-block .day { font-weight: 300; color: var(--h-gold); }
#next-gathering .date-block .mo b { color: var(--h-ivory); }
#next-gathering .date-block .mo span, #next-gathering .muted, #next-gathering .label { color: var(--h-dim); }
#next-gathering .pill { color: var(--h-gold); }
#next-gathering .tag { border-color: var(--h-line-soft); color: var(--h-text); }
#next-gathering h3 { font-weight: 300; font-size: clamp(2.1rem, 3.7vw, 3.4rem); color: var(--h-ivory); text-wrap: balance; }
#next-gathering .meta-list li { border-bottom: 1px solid var(--h-line-soft); color: var(--h-text); }
#next-gathering .meta-list li b { color: var(--h-dim); }
#next-gathering .ev-ribbon { background: var(--h-gold); color: var(--h-black); }
#next-gathering .live-dot { background: var(--h-black); }

/* --------------------------------------------------------------------------
   Council: a slow belt of arched portraits, in full colour
   Without JS or with reduced motion it rests as a row you can scroll.
   -------------------------------------------------------------------------- */
.belt { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.belt::-webkit-scrollbar { display: none; }
.belt-track { display: flex; width: max-content; padding-inline: var(--gutter) 0; }
.belt-track figure { flex: none; width: clamp(168px, 17.5vw, 268px); margin: 0 clamp(1.1rem, 2.2vw, 2.2rem) 0 0; scroll-snap-align: start; }
.belt .portrait { aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--h-coal); box-shadow: 0 0 0 1px var(--h-line-soft); }
.belt .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.belt figure:hover .portrait img { transform: scale(1.045); }
.belt figcaption { padding-top: 1.1rem; text-align: center; }
.belt figcaption b { display: block; font: 400 clamp(1.25rem, 1.7vw, 1.65rem)/1.1 var(--h-display); color: var(--h-ivory); }
.belt figcaption span { display: block; margin-top: .5rem; font: 500 .6rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--h-dim); }

.belt.is-moving {
  overflow: hidden; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* home.js lays the set out three times, so one third of the track is exactly one lap */
.belt.is-moving .belt-track { padding-inline: 0; animation: beltMove var(--belt-time, 64s) linear infinite; }
@media (hover: hover) { .belt.is-moving:hover .belt-track { animation-play-state: paused; } }
.belt.is-moving:focus-visible .belt-track { animation-play-state: paused; }
@keyframes beltMove { to { transform: translateX(calc(-100% / 3)); } }

/* --------------------------------------------------------------------------
   Member companies: ten different logos set in one ivory tone on one grid
   -------------------------------------------------------------------------- */
.firms { padding-top: clamp(1rem, 2.4vw, 2.5rem); }
.firm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--h-line); }
.firm-grid li { display: grid; place-items: center; height: clamp(8.25rem, 12.4vw, 11.25rem); border-bottom: 1px solid var(--h-line); }
.firm-grid li:not(:nth-child(5n + 1)) { border-left: 1px solid var(--h-line); }
/* --w is each mark's width, set so wide wordmarks and round emblems carry the same weight */
.firm-grid img { width: min(var(--w), 74%); height: auto; opacity: .9; }
.firm-note { margin: 1.5rem 0 0; font: 500 .62rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--h-dim); }

/* --------------------------------------------------------------------------
   Why now: four figures on the same four columns
   -------------------------------------------------------------------------- */
.context-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 5rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
body[data-page="index"] .stats { border-top: 1px solid var(--h-line); }
body[data-page="index"] .stat + .stat { border-left-color: var(--h-line); }
body[data-page="index"] .stat-num { font-weight: 300; font-size: clamp(3.4rem, 6.2vw, 6.6rem); color: var(--h-gold); }
body[data-page="index"] .stat-num sup { color: var(--h-ivory); }
body[data-page="index"] .stat-label { font-weight: 300; color: var(--h-text); }
body[data-page="index"] .stat-src { font-weight: 500; color: var(--h-dim); }
.context-more { margin: clamp(2.4rem, 4vw, 3.5rem) 0 0; }

/* --------------------------------------------------------------------------
   Founders' voice over the panorama
   -------------------------------------------------------------------------- */
.voice { position: relative; padding-bottom: clamp(5rem, 10vw, 9.5rem); }
.voice-photo { position: relative; margin: 0; height: clamp(300px, 50vw, 720px); overflow: hidden; }
.voice-photo img { position: absolute; left: 0; top: -90px; width: 100%; height: calc(100% + 180px); object-fit: cover; object-position: 50% 45%; filter: saturate(.86) brightness(.84); }
.voice-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--h-black) 0, rgba(10, 9, 8, 0) 26%, rgba(10, 9, 8, .06) 48%, rgba(10, 9, 8, .82) 82%, var(--h-black) 100%); }
.voice-copy { z-index: 1; margin-top: clamp(-6rem, -6vw, -2rem); text-align: center; }
.voice blockquote { margin: 0; font: 300 clamp(1.9rem, 3.7vw, 3.7rem)/1.13 var(--h-display); letter-spacing: -.012em; color: var(--h-ivory); text-wrap: balance; }
.voice blockquote::before { content: "\201C"; display: block; margin-bottom: .2rem; font: italic 300 6.5rem/.6 var(--h-display); color: var(--h-gold); }
.voice cite { display: block; margin-top: 2.2rem; font: 500 .68rem/1.6 var(--sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--h-dim); }

/* --------------------------------------------------------------------------
   Two ways in
   -------------------------------------------------------------------------- */
body[data-page="index"] .dual { border-top: 1px solid var(--h-line); }
body[data-page="index"] .dual > a:first-child { background: linear-gradient(135deg, #e8d795 0%, #ceb14f 44%, #b2912f 100%); color: var(--h-black); }
body[data-page="index"] .dual > a:last-child { background: var(--h-black); color: var(--h-ivory); }
body[data-page="index"] .dual h2 { font-weight: 300; font-size: clamp(2.7rem, 5.2vw, 5.2rem); line-height: .97; }
body[data-page="index"] .dual > a:last-child h2 em { color: var(--h-gold) !important; }
body[data-page="index"] .dual .label { font-weight: 500; letter-spacing: .28em; }
body[data-page="index"] .dual > a:first-child .label { color: rgba(10, 9, 8, .72); }
body[data-page="index"] .dual > a:last-child .label { color: var(--h-gold); }
body[data-page="index"] .dual-foot p { font-weight: 400; opacity: .86; }
body[data-page="index"] .dual > a:last-child .dual-foot p { font-weight: 300; }
body[data-page="index"] .dual > a:first-child .circle-arrow { border-color: rgba(10, 9, 8, .5); }
body[data-page="index"] .dual > a:first-child:hover .circle-arrow { background: var(--h-black); color: var(--h-gold); }
body[data-page="index"] .dual > a:last-child .circle-arrow { border-color: var(--h-line); color: var(--h-gold); }
body[data-page="index"] .dual > a:last-child:hover .circle-arrow { background: var(--h-gold); color: var(--h-black); }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hc-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-say { grid-column: 1 / -1; border-bottom: 1px solid var(--h-line); }
  .hc-next { border-left: 0; }
  .hc { --cover-h: clamp(700px, 100vh, 92vw); --foot-h: 15.9rem; }
  @supports (height: 100svh) { .hc { --cover-h: clamp(700px, 100svh, 92vw); } }
  .hc-photo { height: 62%; }

  .place { padding-left: var(--gutter); }
  .intro-copy { grid-column: 1 / span 3; max-width: none; padding-inline: var(--gutter) var(--h-pad); }
  .facts { grid-column: 4; padding-inline: 0 var(--gutter); }

  .belief-photo--a { left: var(--gutter); width: 30vw; }
  .belief-photo--b { width: 24vw; top: 44%; }
  .belief-copy { margin-left: 40vw; width: 34vw; }

  .pledge-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 3.5rem); }

  .firm-grid img { width: min(calc(var(--w) * .82), 72%); }

  .context-head { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Phone: the four columns fold into a 2 x 2 seal
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  /* The cover runs to the top edge; its four letters are the logo until the page moves */
  body[data-page="index"] .site-header .brand { transition: opacity .5s var(--ease), visibility .5s; }
  body[data-page="index"] .site-header:not(.is-scrolled):not(.menu-is-open) .brand { opacity: 0; visibility: hidden; }
  /* and the clear bar lets taps through to the columns beneath it */
  body[data-page="index"] .site-header:not(.is-scrolled):not(.menu-is-open) { pointer-events: none; }
  body[data-page="index"] .site-header .menu-toggle { pointer-events: auto; }

  .hm-sec { padding-block: clamp(4rem, 15vw, 5.5rem); }
  .hm-h2 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); line-height: 1.02; }
  .hm-head { flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 2rem; }
  .hm-lede { font-size: 1.04rem; }
  body[data-page="index"] main .btn { min-height: 52px; line-height: 1.25; }

  /* Cover on a phone: the four columns stand as four spines, and one of them is open on its
     photograph. home.js opens the next every few seconds; tapping a spine opens that one. */
  .hc {
    --cols-h: clamp(22rem, calc(100vh - 21rem), 32rem);
    --spine-letter: clamp(1.9rem, 9.4vw, 2.6rem);
    height: auto; overflow: visible;
  }
  @supports (height: 100svh) { .hc { --cols-h: clamp(22rem, calc(100svh - 17.5rem), 32rem); } }
  .hc-cols { position: relative; inset: auto; display: flex; height: var(--cols-h); }

  /* One switch per column; every rule below reads from it. */
  .hc .hc-col {
    --open: 0; --fill: var(--h-black); --word: var(--h-dim); --word-mode: vertical-rl; --word-size: .54rem; --word-in: spineWord; --tick: none; --tick-w: 0%;
    flex: 13 1 0; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: flex-grow 1.15s var(--ease);
  }
  .hc.is-live .hc-col.is-lit,
  .hc:not(.is-live) .hc-col:first-child {   /* until home.js takes over, the first column is the open one */
    --open: 1; --fill: var(--tone); --word: var(--h-ivory); --word-mode: horizontal-tb; --word-size: .6rem; --word-in: openWord; --tick: coverTick; --tick-w: 100%;
    flex-grow: 61; cursor: default;
  }
  /* closed, the letters sit at four different heights, as they do on a wide screen */
  .hc-col:nth-child(1) { --at: .2; }
  .hc-col:nth-child(2) { --at: .36; }
  .hc-col:nth-child(3) { --at: .15; }
  .hc-col:nth-child(4) { --at: .4; }

  /* the photograph keeps its size while the column opens over it like a curtain */
  .hc .hc-col .hc-photo { inset: 0 0 auto; height: 76%; opacity: var(--open); transition: opacity 1.15s var(--ease); }
  .hc .hc-col .hc-photo img, .hc .hc-col.is-lit:hover .hc-photo img {
    position: absolute; top: 0; left: 50%; width: 61vw; max-width: none; height: 100%;
    object-position: var(--pos-sm, 50% 12%);
    transform: translateX(-50%) scale(calc(1.08 - .08 * var(--open)));
    filter: saturate(.94) brightness(.92) contrast(1.03);
  }
  .hc-photo::after { background: linear-gradient(180deg, rgba(10, 9, 8, .55) 0, rgba(10, 9, 8, 0) 22%, rgba(10, 9, 8, 0) 52%, rgba(10, 9, 8, .66) 80%, var(--h-black) 98%); }

  .hc .hc-col .hc-mark {
    top: calc(var(--at) * 100%); right: 0; bottom: auto; left: 0; width: auto; justify-items: center; gap: .8rem;
    transform: translateY(calc(var(--open) * var(--cols-h) * (.79 - var(--at))));
    transition: transform 1.15s var(--ease);
  }
  .hc .hc-col .hc-letter {
    font-size: var(--spine-letter); color: var(--fill); -webkit-text-stroke-width: 1px;
    transform: scale(calc(1 + 1.4 * var(--open))); transform-origin: 50% 100%;
    transition: transform 1.15s var(--ease), color .9s var(--ease);
    animation: coverFade 1.2s var(--ease) calc(.25s + .1s * var(--i)) both;
  }
  /* the word runs down a closed spine and sits under the letter of the open one; it fades
     back in after the turn so the change of direction is never seen */
  .hc .hc-col .hc-word {
    padding: 0; writing-mode: var(--word-mode); white-space: nowrap;
    font-size: var(--word-size); letter-spacing: .32em; color: var(--word);
    animation: var(--word-in) 1.25s var(--ease) both;
  }
  /* a rule along the foot of the cover; under the open column it fills in gold while its photograph is up */
  .hc .hc-col::after {
    content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 1px;
    background: linear-gradient(var(--h-gold), var(--h-gold)) 0 0 / var(--tick-w) 100% no-repeat, var(--h-line);
    animation: var(--tick) 5.2s linear both;
  }

  .hc-foot { position: static; grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .hc-foot > * { padding: 1.5rem var(--gutter); }
  .hc-say { grid-column: auto; padding-top: 1.7rem; padding-bottom: 1.4rem; border-bottom: 0; }
  .hc-line { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: .9rem; text-wrap: balance; }
  .hc-place { font-size: .6rem; letter-spacing: .22em; }
  .hc-act { order: 2; align-items: stretch; justify-content: flex-start; padding-top: 0; padding-bottom: 1.6rem; border-left: 0; }
  .hc-act .thread-link { display: none; }
  .hc-next { order: 3; margin: 0 var(--gutter); padding: 1.15rem 0 1.3rem; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }
  .hc-next span { font-size: 1.2rem; }

  .intro { padding-top: 3.6rem; }
  .intro::before { display: none; }
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .place { grid-column: 1; display: grid; justify-items: start; padding-left: var(--gutter); margin-bottom: 1.8rem; }
  .place-script { margin: 0 0 -.32em .1em; font-size: clamp(3.8rem, 20vw, 5.6rem); }
  .place-serif { font-size: clamp(5rem, 27vw, 7.4rem); }
  .intro-copy { grid-column: 1; padding-inline: var(--gutter); }
  .intro-copy p { font-size: 1.04rem; line-height: 1.65; }
  .intro-copy p:first-child { font-size: 1.14rem; line-height: 1.6; color: var(--h-ivory); }
  .intro-copy p:last-child { margin-top: 1.4rem; }
  .facts { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.6rem; padding-inline: var(--gutter); }
  .facts > div { padding: 1.1rem .9rem 1.2rem 0; }
  .facts > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--h-line); }
  .facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--h-line); }
  .facts dt { font-size: 2.6rem; }
  .facts dd { font-size: .58rem; letter-spacing: .18em; }

  .belief { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 0 .9rem; padding: 1rem var(--gutter) 4.5rem; }
  .belief-photo { position: relative; inset: auto; width: auto; }
  .belief-photo--a { grid-column: 1; aspect-ratio: 1.02; }
  .belief-photo--b { grid-column: 2; aspect-ratio: .74; margin-bottom: -2.2rem; }
  /* the thread leaves one photograph, loops once and meets the other */
  body[data-page="index"] .belief .thread--sm { display: block; position: relative; inset: auto; grid-column: 1 / -1; width: 100%; height: 5.4rem; }
  .belief-copy { grid-column: 1 / -1; width: auto; margin: 0; padding-top: .9rem; }
  .belief-big { font-size: clamp(1.95rem, 8.4vw, 2.7rem); line-height: 1.14; }
  .belief-sub { font-size: 1.06rem; }

  .pledge { padding-block: 3.25rem; }
  .pledge-grid { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .pledge-body { display: contents; }
  .pledge .hm-h2 { order: 1; }
  .pledge-media { order: 2; }
  .pledge-list { order: 3; }
  .pledge-frame { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .pledge-frame img { object-position: 50% var(--y, 38%); }
  .pledge .hm-h2 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); }
  .pledge-list { margin-top: 0; }
  .pledge-list a { grid-template-columns: minmax(0, 1fr) 38px; column-gap: 1rem; padding-block: 1.05rem; }
  .pledge-list h3 { font-size: 1.85rem; }
  .pledge-list p { margin-top: .3rem; font-size: .93rem; line-height: 1.5; }
  .pledge-go { width: 38px; height: 38px; }
  .pledge-list a:hover h3 { transform: none; }

  /* the card carries its own calendar button */
  .gather .hm-head { margin-bottom: 1.6rem; }
  .gather .hm-head .thread-link { display: none; }
  #next-gathering .next-event { border-radius: 0; overflow: hidden; }
  #next-gathering .next-event::after { inset: 6px; }
  #next-gathering .next-event-media { min-height: 0; height: clamp(11.5rem, 54vw, 14.5rem); }
  #next-gathering .next-event-media .fit { padding: .9rem; }
  #next-gathering .next-event-body { min-width: 0; padding: 1.7rem 1.4rem 1.6rem; }
  #next-gathering .date-block { gap: 1rem; margin-bottom: 1.5rem; }
  #next-gathering .date-block .day { font-size: 4.2rem; }
  #next-gathering .date-block .mo b { font-size: .7rem; letter-spacing: .16em; }
  #next-gathering .date-block .mo span { font-size: .86rem; }
  #next-gathering .pill, #next-gathering .tag { max-width: 100%; white-space: normal; font-size: .58rem; line-height: 1.4; letter-spacing: .1em; }
  #next-gathering h3 { font-size: clamp(2rem, 8.4vw, 2.7rem); line-height: 1.06; margin-bottom: .5rem; }
  #next-gathering .meta-list { margin: 1rem 0 1.5rem; gap: 0; }
  #next-gathering .meta-list li { grid-template-columns: 52px minmax(0, 1fr); gap: .8rem; padding-block: .8rem; font-size: .94rem; line-height: 1.6; }
  #next-gathering .meta-list li b { padding-top: .1rem; font-size: .61rem; letter-spacing: .14em; }
  #next-gathering .meta-list li span { overflow-wrap: anywhere; }
  #next-gathering .next-event-body > .btn-row:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  #next-gathering .next-event-body > .btn-row:last-child .btn { width: 100%; min-width: 0; padding: .9rem .8rem; font-size: .66rem; letter-spacing: .12em; text-align: center; }

  .belt-track figure { width: clamp(136px, 39vw, 178px); margin-right: 1.1rem; }
  .belt figcaption { padding-top: .9rem; }
  .belt figcaption b { font-size: 1.25rem; }
  .belt figcaption span { font-size: .55rem; letter-spacing: .15em; }

  .firms { padding-top: 0; }
  .firm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firm-grid li { height: 7.25rem; }
  .firm-grid li:not(:nth-child(5n + 1)) { border-left: 0; }
  .firm-grid li:nth-child(even) { border-left: 1px solid var(--h-line); }
  .firm-grid img { width: min(calc(var(--w) * .84), 72%); }
  .firm-note { margin-top: 1.2rem; font-size: .56rem; letter-spacing: .18em; }

  body[data-page="index"] .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="index"] .stat, body[data-page="index"] .stat + .stat { min-width: 0; margin: 0; padding: 1.5rem 1rem 1.5rem 0; border: 0; }
  body[data-page="index"] .stat:nth-child(even) { padding-left: 1rem; padding-right: 0; border-left: 1px solid var(--h-line); }
  body[data-page="index"] .stat:nth-child(n+3) { border-top: 1px solid var(--h-line); }
  body[data-page="index"] .stat-num { font-size: clamp(2.6rem, 11vw, 4rem); white-space: nowrap; }
  body[data-page="index"] .stat-label { margin-top: .9rem; font-size: .88rem; line-height: 1.5; }
  body[data-page="index"] .stat-src { margin-top: .75rem; font-size: .57rem; line-height: 1.55; letter-spacing: .1em; }
  .context-head { margin-bottom: 2.2rem; gap: 1.2rem; }

  .voice { padding-bottom: 4.5rem; }
  .voice-photo { height: clamp(250px, 72vw, 340px); }
  .voice-copy { margin-top: -1.6rem; text-align: left; }
  .voice blockquote { font-size: clamp(1.9rem, 8.2vw, 2.7rem); line-height: 1.16; }
  .voice blockquote::before { font-size: 5.4rem; }
  .voice cite { margin-top: 1.5rem; font-size: .6rem; line-height: 1.7; letter-spacing: .16em; }

  body[data-page="index"] .dual > a { min-height: 330px; padding: 2.2rem var(--gutter); gap: 1.5rem; }
  body[data-page="index"] .dual h2 { font-size: clamp(2.6rem, 11vw, 3.5rem); line-height: 1; text-wrap: balance; }
  body[data-page="index"] .dual-foot { gap: 1rem; align-items: center; }
  body[data-page="index"] .dual-foot p { font-size: .95rem; line-height: 1.6; }
  body[data-page="index"] .dual .circle-arrow { width: 52px; height: 52px; }
  body[data-page="index"] .dual .circle-arrow svg { width: 20px; }
}

@media (max-width: 420px) {
  #next-gathering .next-event-body > .btn-row:last-child { grid-template-columns: minmax(0, 1fr); }
  .context-more .thread-link::before { width: 1.5rem; margin-left: .7rem; }
}
@media (max-width: 350px) {
  .context-more .thread-link { white-space: normal; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-photo img, .pledge-frame img { transform: none; }
}
