/* THE INNER CLUB · landing · mobile-first
   base = phone · 640px = large phone / small tablet · 901px = desktop layout · 1101px = wide */
:root {
  --ivory: #F8F6EF;
  --stone: #D7D1C8;
  --taupe: #A8988F;
  --olive: #3F4636;
  --burgundy: #5B2D2D;
  --burgundy-deep: #3D1D1E;
  --charcoal: #1F1F1F;
  --ink-soft: #5E534D;          /* secondary text on ivory, 6.6:1 */
  --ivory-soft: rgba(248, 246, 239, .76);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;

  --gutter: 22px;
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --section: 96px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 300 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--burgundy); color: var(--ivory); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--charcoal); padding: 10px 16px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type roles */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.06; text-wrap: balance; }
.display em, h1 em, h2 em { font-style: italic; }
.micro { font: 400 .75rem/1.55 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.lead { font-size: 1.0625rem; line-height: 1.6; }
.smallcaps { font-family: var(--sans); font-weight: 400; font-size: .8em; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.l > span { display: block; }

/* logos: masks so they take currentColor */
.logo { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo--mono  { --m: url(assets/brand/monogram.png); aspect-ratio: 940 / 1223; }
.logo--word  { --m: url(assets/brand/wordmark.png); aspect-ratio: 2810 / 370; }
.logo--stack { --m: url(assets/brand/stacked.png); aspect-ratio: 1109 / 1154; }

/* buttons · full-width thumb target on phones */
.btn {
  position: relative; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1em;
  padding: 1.25em 1.5em; min-height: 56px;
  font: 400 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .5s var(--ease); flex: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.btn:active::before { transform: scaleY(1); }
.btn--ivory { background: var(--ivory); color: var(--burgundy); }
.btn--ivory::before { background: var(--charcoal); }
.btn--ivory:active { color: var(--ivory); }
.btn--burgundy { background: var(--burgundy); color: var(--ivory); }
.btn--burgundy::before { background: var(--charcoal); }
@media (hover: hover) {
  .btn:hover::after, .btn:focus-visible::after { width: 44px; }
  .btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
  .btn--ivory:hover, .btn--ivory:focus-visible { color: var(--ivory); }
}

/* nav · wordmark left, single CTA right */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  color: var(--ivory);
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.nav.is-day { color: var(--charcoal); }
.nav.is-day.is-scrolled { background: rgba(248, 246, 239, .94); }
.nav.is-night.is-scrolled { background: rgba(61, 29, 30, .92); }
.nav.is-ink.is-scrolled { background: rgba(31, 31, 31, .94); }
.nav.is-olive.is-scrolled { background: rgba(63, 70, 54, .94); }
.nav.is-scrolled { box-shadow: 0 1px 0 color-mix(in srgb, currentColor 12%, transparent); }
.nav__brand { display: flex; align-items: center; min-height: 44px; }
.nav__brand .logo { width: clamp(132px, 38vw, 150px); }
.nav__cta {
  display: flex; align-items: center; min-height: 44px; position: relative;
  font: 400 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav__cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform .5s var(--ease); }
.nav__cta:hover::after, .nav__cta:focus-visible::after { transform: scaleX(1); }

/* ───────────── 01 HOOK ───────────── */
.hook { position: relative; height: 100svh; background: var(--burgundy); color: var(--ivory); }
.js .hook { height: 200svh; }
.hook__stage {
  position: relative; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #63302F 0%, var(--burgundy) 45%, var(--burgundy-deep) 100%);
}
.js .hook__stage { position: sticky; top: 0; }

.hook__seal {
  position: absolute; inset: 0 0 50% 0; padding-bottom: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 20px; pointer-events: none;
}
.hook__mono { width: 68px; }
.hook__desc { color: var(--ivory-soft); white-space: nowrap; letter-spacing: .22em; }

/* phone: the door opens to fill the screen */
.door { position: absolute; inset: 0; }
.door__media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 11% 50% 11%); background: var(--burgundy-deep); }
.door__video { width: 100%; height: 100%; object-fit: cover; }
.door__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 12, 12, .4) 0%, rgba(31, 12, 12, .08) 26%, rgba(40, 16, 16, .55) 55%, rgba(40, 16, 16, .94) 100%); }
.door__line { position: absolute; left: 38%; right: 38%; height: 1px; background: var(--ivory); top: 50%; }
.door__line--bottom { top: auto; bottom: 50%; }

.hook__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom)); }
.hook__title { text-wrap: balance; font-family: var(--serif); font-size: clamp(2.2rem, 10.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: .5em; }
.hook__lede { color: var(--ivory-soft); font-size: .9688rem; line-height: 1.55; margin-bottom: 1.5em; max-width: 34em; }
.hook__action { display: grid; gap: 14px; }
.hook__note { color: var(--ivory-soft); letter-spacing: .12em; font-size: .75rem; text-align: center; }
.hook__place { display: none; }

.hook__cue { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ivory-soft); }
.hook__cue i { width: 1px; height: 40px; background: linear-gradient(var(--ivory), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* no-JS / reduced motion: final composition */
.rm .hook { height: 100svh; }
.rm .hook__stage { position: relative; }
html:not(.js) .door__media, .rm .door__media { clip-path: inset(0); }
html:not(.js) .hook__seal, .rm .hook__seal, html:not(.js) .hook__cue, .rm .hook__cue, html:not(.js) .door__line, .rm .door__line { display: none; }

/* ───────────── 02 IDEIA ───────────── */
.idea { padding: var(--section) 0 calc(var(--section) * .8); }
.idea__statement { font-size: clamp(2.1rem, 9vw, 3rem); max-width: 15.5em; }
.idea__statement .w { opacity: .14; }
.idea__body { display: grid; gap: 40px; margin-top: 56px; }
.idea__fig { aspect-ratio: 4 / 5; overflow: hidden; }
.idea__fig img { width: 100%; height: 100%; object-fit: cover; }
.idea__text { max-width: 34em; }
.ruled { margin: 2em 0 2.2em; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.ruled li { position: relative; padding: .75em 0; }
.ruled li::before, .ruled li:last-child::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; opacity: .28; transform-origin: left; transform: scaleX(var(--s, 1)); }
.ruled li::before { top: 0; }
.ruled li:last-child::after { bottom: 0; }
.ruled--tight { font-size: 1.15rem; }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--burgundy); }

/* ───────────── 03 O QUE É ───────────── */
.what { padding: calc(var(--section) * .4) 0 var(--section); }
.what__title { font-size: clamp(2.1rem, 9vw, 3rem); }
.what__title em { color: var(--burgundy); }
.what__intro { margin-top: 1.4em; color: var(--ink-soft); max-width: 30em; }
.what__grid { margin-top: 40px; }
.what__media { display: none; }
.what__item { position: relative; padding: 28px 0 48px; }
.what__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--charcoal); opacity: .25; }
.what__item::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.what__item.is-on::after { transform: scaleX(1); }
.what__thumb { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 24px; }
.what__thumb img { width: 100%; height: 100%; object-fit: cover; }
.what__item h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin-bottom: .5em; transition: color .6s var(--ease); }
.what__item p { max-width: 28em; color: var(--ink-soft); margin: 0; }
.what__close { margin: 32px 0 0; max-width: 36em; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.what__close em { color: var(--burgundy); }

/* ───────────── 04 PARA QUEM (ink) ───────────── */
.who { background: var(--charcoal); color: var(--ivory); padding: var(--section) 0; }
.who__grid { display: grid; gap: 44px; }
.who__fig { aspect-ratio: 4 / 5; overflow: hidden; }
.who__fig img { width: 100%; height: 115%; object-fit: cover; }
.who__text { max-width: 34em; color: var(--ivory-soft); }
.who__title { font-size: clamp(2.1rem, 9vw, 3rem); margin-bottom: 36px; }
.who__strikes { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.who__strikes li { padding: .4em 0; color: var(--ivory-soft); }
.strike { text-decoration: none; color: var(--ivory); }
.strike span { background: linear-gradient(var(--taupe), var(--taupe)) no-repeat 0 60% / calc(var(--s, 1) * 100%) 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.who__but { font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.25; margin: 1.1em 0 0; color: var(--ivory); max-width: 22em; }

/* ───────────── 05 DENTRO (olive) ───────────── */
.inside { background: var(--olive); color: var(--ivory); padding: var(--section) 0; overflow: hidden; }
.inside__grid { display: grid; gap: 48px; }
.inside__arch { width: 78%; max-width: 380px; margin: 0 auto; aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; background: #2E3427; }
.inside__arch video { width: 100%; height: 100%; object-fit: cover; }
.inside__title { font-size: clamp(2.1rem, 9vw, 3rem); margin-bottom: .7em; }
.inside__copy > p { color: var(--ivory-soft); max-width: 32em; }
/* vertical line on phones, horizontal from desktop */
.formats { position: relative; display: grid; gap: 26px; margin: 2em 0 2.4em; padding-left: 34px; }
.formats::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--ivory); opacity: .5; transform: scaleY(var(--s, 1)); transform-origin: top; }
.formats li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.formats__code { font: 400 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 246, 239, .66); margin-bottom: 2px; }
.formats__dot { position: absolute; top: 3px; left: -34px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ivory); background: var(--olive); }
.formats strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.formats small { font-size: .875rem; color: var(--ivory-soft); line-height: 1.45; }
.withouts li { position: relative; padding: .35em 0 .35em 32px; color: var(--ivory-soft); }
.withouts li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.inside__equation { margin-top: 88px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.inside__equation .display { font-size: clamp(1.75rem, 7.6vw, 2.6rem); margin: 0; }
.inside__equation .dim { color: rgba(248, 246, 239, .5); }
.inside__rule { width: 70vw; max-width: 560px; height: 1px; background: var(--ivory); opacity: .6; transform: scaleX(var(--s, 1)); }

/* ───────────── 06 ANTES ───────────── */
.before { padding: var(--section) 0 calc(var(--section) * .7); overflow: hidden; }
.before__head { display: grid; gap: 24px; }
.before__head h2 { font-size: clamp(2.1rem, 9vw, 3rem); }
.before__head h2 em { color: var(--burgundy); }
.before__head p { color: var(--ink-soft); max-width: 30em; margin: 0; }
.reel { margin-top: 44px; }
/* phones: native swipe with snap + a progress line */
.reel__track {
  display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter) 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__item, .reel__film { flex: none; position: relative; overflow: hidden; scroll-snap-align: start; }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel__item--tall, .reel__film { width: 72vw; max-width: 340px; aspect-ratio: 2 / 3; }
.reel__film { aspect-ratio: 9 / 16; background: var(--charcoal); }
.reel__item--wide { width: 84vw; max-width: 460px; aspect-ratio: 4 / 3; }
.reel__item figcaption, .film__label small { font: 400 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.reel__item figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 36px 16px 14px; color: var(--ivory); background: linear-gradient(transparent, rgba(20, 12, 10, .6)); }
.reel__progress { margin: 22px var(--gutter) 0; height: 1px; background: rgba(31, 31, 31, .18); overflow: hidden; }
.reel__progress span { display: block; height: 100%; background: var(--burgundy); transform-origin: left; transform: scaleX(var(--p, .12)); transition: transform .2s linear; }
.film { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; overflow: hidden; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: brightness(.7); }
.film:focus-visible { outline: 1px solid var(--burgundy); outline-offset: 4px; }
.film__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1px solid var(--ivory); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .6s var(--ease); }
.film__play svg { width: 20px; height: 20px; fill: var(--ivory); margin-left: 3px; }
.film__label { position: absolute; left: 18px; right: 18px; bottom: 18px; color: var(--ivory); display: flex; flex-direction: column; gap: 6px; }
.film__label strong { font: 400 1.5rem/1.1 var(--serif); font-style: italic; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (hover: hover) {
  .film:hover img, .film:focus-visible img { transform: scale(1.04); filter: brightness(.6); }
  .film:hover .film__play { transform: scale(1.08); background: rgba(91, 45, 45, .6); }
}
.marquee { margin-top: 56px; border-top: 1px solid rgba(31, 31, 31, .2); border-bottom: 1px solid rgba(31, 31, 31, .2); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 36s linear infinite; font-family: var(--serif); font-size: 1.35rem; font-style: italic; white-space: nowrap; color: var(--ink-soft); }
.marquee__track i { width: 32px; height: 1px; background: var(--burgundy); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── 07 CURADORIA (burgundy) ───────────── */
.curation { background: var(--burgundy); color: var(--ivory); padding: var(--section) 0; }
.curation__title { font-size: clamp(2.1rem, 9vw, 3rem); max-width: 14em; }
.curation__cols { display: grid; gap: 4px; margin-top: 32px; max-width: 64em; color: var(--ivory-soft); }
/* criteria: vertical timeline on phones */
.criteria { position: relative; display: grid; gap: 28px; margin-top: 56px; padding-left: 34px; }
.criteria::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--ivory); opacity: .55; transform: scaleY(var(--s, 1)); transform-origin: top; }
.criteria li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.criteria li::before { content: ""; position: absolute; left: -34px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--burgundy); border: 1px solid var(--ivory); }
.criteria strong { font: 400 1.6rem/1.15 var(--serif); }
.criteria span { color: var(--ivory-soft); font-size: .9375rem; }
.questions { margin-top: 88px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.questions .micro { color: var(--ivory-soft); }
.questions__q { font-size: clamp(1.75rem, 7.6vw, 2.6rem); margin: 0 0 .6em; }
.questions__q--a { color: rgba(248, 246, 239, .5); }

/* ───────────── 08 FOUNDING ───────────── */
.founding { background: var(--stone); padding: var(--section) 0; overflow: hidden; }
.founding__grid { display: grid; gap: 40px; }
.founding__title { font-size: clamp(2rem, 8.4vw, 2.8rem); }
.founding__title em { color: var(--burgundy); }
.founding__card { display: flex; justify-content: center; }
.founding__copy p { max-width: 32em; color: #3F3733; }
.founding__copy .btn { margin-top: 1.4em; }
.card { width: 100%; max-width: 440px; aspect-ratio: 1.58; perspective: 1200px; }
.card__inner {
  position: relative; width: 100%; height: 100%; padding: 18px 20px;
  background: radial-gradient(130% 120% at 20% 0%, #6A3535 0%, var(--burgundy) 45%, #47211F 100%);
  color: var(--ivory); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto;
  box-shadow: 0 2px 2px rgba(40, 14, 14, .18), 0 30px 60px -24px rgba(40, 14, 14, .55);
  transform-style: preserve-3d; transition: transform .8s var(--ease); overflow: hidden;
}
.card__mono { width: 26px; grid-column: 1; grid-row: 1; }
.card__kind { grid-column: 2; grid-row: 1; color: var(--ivory-soft); align-self: start; font-size: .625rem; }
.card__title { grid-column: 1 / -1; grid-row: 2; align-self: end; font: 400 clamp(1.45rem, 7vw, 2.25rem)/1.02 var(--serif); letter-spacing: -.01em; }
.card__rule { grid-column: 1 / -1; grid-row: 3; height: 1px; width: 48px; background: var(--ivory); margin: 12px 0 10px; opacity: .8; }
.card__year { grid-column: 1; grid-row: 4; color: var(--ivory-soft); letter-spacing: .14em; align-self: end; font-size: .625rem; }
.card__num { grid-column: 2; grid-row: 4; font: italic 400 .95rem/1 var(--serif); align-self: end; }
.card__num i { display: inline-block; min-width: 1.6em; text-align: center; border-bottom: 1px solid rgba(248, 246, 239, .6); font-style: normal; }
.card__sheen { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 240, 230, .14) 50%, transparent 60%); transform: translateX(var(--sx, -30%)); pointer-events: none; }
.seats { width: 100%; margin-top: 8px; }
.seats svg { width: 100%; height: auto; overflow: visible; }
.seats__table { stroke: var(--charcoal); stroke-width: 1.4; }
.seats circle { fill: var(--stone); stroke: var(--charcoal); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.seats figcaption { display: grid; justify-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.seats figcaption .display { font-size: 1.5rem; color: var(--burgundy); }
.seats figcaption .micro { color: var(--ink-soft); letter-spacing: .2em; }

/* ───────────── 09 FILIPA ───────────── */
.founder { padding: var(--section) 0; }
.founder__by { color: var(--ink-soft); }
.founder__quote { margin: .8em 0 1em; font-size: clamp(2rem, 8.6vw, 2.8rem); line-height: 1.08; }
.founder__quote p { margin: 0; }
.founder__quote em { color: var(--burgundy); }
.founder__text { max-width: 33em; }
.founder__text > p { color: #3F3733; }
.founder__sign { display: flex; flex-direction: column; gap: 8px; margin-top: 2.2em; }
.founder__sign .display { font-size: 2rem; }
.founder__sign .micro { color: var(--ink-soft); letter-spacing: .2em; }

/* ───────────── 10 FECHO ───────────── */
.close { background: radial-gradient(110% 80% at 50% 30%, var(--burgundy) 0%, var(--burgundy-deep) 75%); color: var(--ivory); padding: var(--section) 0 0; text-align: center; }
.close__inner { display: grid; justify-items: center; padding: 0 var(--gutter); }
.close__title { font-size: clamp(2.1rem, 9.4vw, 3.2rem); margin: 0; }
.close__rule { width: 60vw; max-width: 640px; height: 1px; background: var(--ivory); margin: 24px 0; opacity: .7; transform: scaleX(var(--s, 1)); }
.close__sig { display: grid; justify-items: center; gap: 20px; margin: 72px 0 36px; }
.close__logo { width: 104px; }
.close__sig .micro { color: var(--ivory-soft); max-width: 22em; }
.close__inner .btn { max-width: 420px; }
.close__note { max-width: 30em; margin: 22px auto 0; color: var(--ivory-soft); font-size: .9375rem; }
.foot { margin-top: var(--section); padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(248, 246, 239, .18); display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot__word { width: 160px; }
.foot .micro { color: var(--ivory-soft); letter-spacing: .2em; }

/* grain · light on phones (no blend), richer on desktop */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reveal defaults (JS only; content visible without JS) */
.js:not(.rm) .reveal-img { clip-path: inset(100% 0 0 0); }
.js:not(.rm) .reveal-img img, .js:not(.rm) .reveal-img video { transform: scale(1.14); }

/* ═════════════ 640px+ ═════════════ */
@media (min-width: 640px) {
  :root { --gutter: 40px; --section: 128px; --nav-h: 76px; }
  body { font-size: 1.0625rem; }
  .btn { display: inline-flex; width: auto; justify-content: flex-start; gap: 1.1em; padding: 1.15em 2.1em; letter-spacing: .3em; }
  .nav__cta { letter-spacing: .22em; }
  .nav__brand .logo { width: 172px; }
  .hook__action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
  .hook__note { text-align: left; }
  .hook__lede { font-size: 1.0625rem; }
  .idea__fig, .who__fig { max-width: 520px; }
  .curation__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .criteria { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 40px 32px; }
  .criteria::before { display: none; }
  .criteria li { padding-top: 22px; border-top: 1px solid rgba(248, 246, 239, .4); }
  .criteria li::before { left: 0; top: -6px; }
  .card__inner { padding: 26px 30px; }
  .card__kind, .card__year { font-size: .75rem; }
  .foot { display: flex; justify-content: space-between; text-align: left; }
}

/* ═════════════ 901px+ desktop layout ═════════════ */
@media (min-width: 901px) {
  :root { --gutter: clamp(40px, 5.5vw, 96px); --section: clamp(140px, 15vw, 220px); --nav-h: 84px; }
  .nav { transition: color .5s var(--ease), background-color .5s var(--ease), height .5s var(--ease); }
  .nav.is-scrolled { height: 66px; }
  .nav.is-day.is-scrolled { background: rgba(248, 246, 239, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav.is-night.is-scrolled { background: rgba(61, 29, 30, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav.is-ink.is-scrolled { background: rgba(31, 31, 31, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav.is-olive.is-scrolled { background: rgba(63, 70, 54, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav__brand .logo { width: clamp(180px, 15vw, 220px); }

  /* hook: a framed door that slides right */
  .js .hook { height: 340vh; }
  .hook__mono { width: clamp(70px, 8vh, 96px); }
  .door { --dh: 74vh; --dw: calc(var(--dh) * .6); inset: auto; left: 50%; top: 50%; width: var(--dw); height: var(--dh); margin: calc(var(--dh) / -2) 0 0 calc(var(--dw) / -2); }
  .door__media { clip-path: inset(50% 0 50% 0); box-shadow: 0 40px 80px -30px rgba(20, 6, 6, .7); }
  .door__video { transform: scale(1.12); }
  .door__shade { background: linear-gradient(180deg, rgba(31, 12, 12, .15) 0%, rgba(31, 12, 12, 0) 40%, rgba(31, 12, 12, .55) 100%); }
  .door__line { left: 30%; right: 30%; }
  html:not(.js) .door, .rm .door { left: 72%; }
  .hook__copy { left: var(--gutter); right: auto; bottom: auto; top: 50%; transform: translateY(-48%); width: min(46vw, 700px); }
  .hook__title { font-size: clamp(2.5rem, 4.4vw, 4.9rem); margin-bottom: .5em; }
  .hook__lede { margin-bottom: 2.2em; }
  .hook__note { letter-spacing: .16em; }
  .hook__place { display: block; position: absolute; left: 0; bottom: calc(-1 * clamp(64px, 12vh, 120px)); color: var(--ivory-soft); }

  .idea__statement, .what__title, .before__head h2, .curation__title { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
  .who__title { font-size: clamp(2.6rem, 4.8vw, 5rem); margin-bottom: clamp(40px, 6vw, 80px); }
  .inside__title { font-size: clamp(2.4rem, 4.4vw, 4.6rem); }
  .founding__title { font-size: clamp(2.2rem, 3.5vw, 3.7rem); }

  .idea__body { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 128px); margin-top: clamp(72px, 10vw, 150px); align-items: end; }
  .idea__fig, .who__fig { max-width: none; }
  .ruled { font-size: clamp(1.35rem, 2vw, 1.75rem); }
  .ruled--tight { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
  .sign { font-size: 1.35rem; }

  .what__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 128px); margin-top: clamp(56px, 7vw, 110px); }
  .what__media { display: block; position: relative; }
  .what__frame { position: sticky; top: 14vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
  .what__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); }
  .what__frame img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); }
  .what__thumb { display: none; }
  .what__item { padding: clamp(40px, 6vh, 64px) 0 clamp(64px, 16vh, 180px); }
  .what__item h3 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
  .js:not(.rm) .what__item h3 { color: rgba(31, 31, 31, .4); }
  .js:not(.rm) .what__item.is-on h3 { color: var(--charcoal); }
  .what__close { margin: clamp(48px, 8vw, 120px) 0 0 auto; font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-align: right; }

  .who__grid { grid-template-columns: 7fr 4fr; grid-template-areas: "head fig" "text fig"; gap: clamp(40px, 6vw, 100px) clamp(32px, 7vw, 128px); align-items: start; }
  .who__head { grid-area: head; }
  .who__fig { grid-area: fig; aspect-ratio: 9 / 15; margin-top: 18vh; }
  .who__text { grid-area: text; }
  .who__strikes { font-size: clamp(1.3rem, 2vw, 1.75rem); }
  .who__but { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }

  .inside__grid { grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 128px); align-items: center; }
  .inside__arch { width: 100%; max-width: none; aspect-ratio: 3 / 4.4; }
  .inside__equation { margin-top: clamp(90px, 13vw, 190px); gap: clamp(18px, 2.4vw, 34px); }
  .inside__equation .display { font-size: clamp(2rem, 4.6vw, 4.8rem); }
  .inside__rule { width: min(560px, 60vw); }

  .before__head { grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
  .reel { margin-top: clamp(56px, 8vw, 120px); }
  .reel__progress { display: none; }
  .reel__track { width: max-content; overflow: visible; align-items: flex-end; gap: clamp(16px, 2.2vw, 36px); scroll-snap-type: none; padding-bottom: 0; }
  .reel__item--tall { width: clamp(240px, 24vw, 380px); max-width: none; }
  .reel__film { width: clamp(260px, 24vw, 380px); max-width: none; }
  .reel__item--wide { width: clamp(320px, 36vw, 560px); max-width: none; aspect-ratio: 3 / 2; margin-bottom: clamp(40px, 8vh, 120px); }
  .film__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .film__label strong { font-size: 1.6rem; }
  .marquee { margin-top: clamp(56px, 8vw, 110px); padding: 22px 0; }
  .marquee__track { gap: 36px; animation-duration: 48s; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
  .marquee__track i { width: 44px; }

  .curation__cols { gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 6vw, 90px); }
  .criteria { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(80px, 10vw, 150px); }
  .criteria::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform: scaleX(var(--s, 1)); transform-origin: left; }
  .criteria li { border-top: 0; padding: 36px 24px 0 0; gap: 10px; }
  .criteria strong { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
  .questions { margin-top: clamp(100px, 14vw, 200px); gap: 14px; }
  .questions__q { font-size: clamp(2rem, 4.4vw, 4.4rem); margin-bottom: .5em; }

  .founding__grid { grid-template-columns: 6fr 5fr; grid-template-areas: "title card" "copy card"; gap: 0 clamp(48px, 7vw, 128px); align-items: start; }
  .founding__title { grid-area: title; margin-bottom: .8em; }
  .founding__card { grid-area: card; align-self: end; padding-bottom: clamp(40px, 6vw, 80px); }
  .founding__copy { grid-area: copy; }
  .seats { grid-area: seats; margin-top: 0; }
  .seats figcaption .display { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  .card__title { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
  .card__mono { width: 30px; }
  .card__rule { width: 56px; margin: 16px 0 14px; }
  .card__num { font-size: 1.05rem; }
  .seats__table, .seats circle { stroke-width: 1; }

  .founder__quote { font-size: clamp(2.1rem, 3.8vw, 3.8rem); }
  .founder__sign .display { font-size: 2.2rem; }

  .close__title { font-size: clamp(2.6rem, 6vw, 6rem); }
  .close__rule { margin: clamp(26px, 3vw, 44px) 0; }
  .close__sig { margin: clamp(80px, 10vw, 140px) 0 44px; }
  .close__logo { width: clamp(110px, 10vw, 150px); }
  .close__sig .micro { max-width: none; }
  .foot__word { width: 170px; }

  .grain { inset: -50%; opacity: .07; mix-blend-mode: multiply; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); white-space: normal; }
  .marquee__track > :nth-child(n+15) { display: none; }
  .hook__cue i { animation: none; }
  .what__frame img { transition: none; }
}

/* ───────────── additions: briefing web ───────────── */
.what__code { font: 400 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 .7em; }
.inside__between { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ivory); margin: 0 0 1.6em; }
.renew { border-top: 1px solid rgba(248, 246, 239, .3); padding-top: 1.2em; color: var(--ivory-soft); max-width: 34em; }
.renew strong { font-weight: 500; color: var(--ivory); }
.founder__belief { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--burgundy); margin-top: 1.4em; }
.founder__role { font-size: .875rem; line-height: 1.55; color: var(--ink-soft); }

/* como se entra: vertical path on phones */
.path { margin-top: 96px; padding-top: 56px; border-top: 1px solid rgba(248, 246, 239, .25); }
.path__title { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 36px; }
.path__steps { position: relative; display: grid; gap: 30px; padding-left: 40px; }
.path__steps::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--ivory); opacity: .5; transform: scaleY(var(--s, 1)); transform-origin: top; }
.path__steps li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.path__steps li::before { content: ""; position: absolute; left: -40px; top: 7px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--ivory); background: var(--burgundy); }
.path__steps li.is-now::before { background: var(--ivory); box-shadow: 0 0 0 5px rgba(248, 246, 239, .16); }
.path__n { font: 400 .75rem/1.4 var(--sans); letter-spacing: .16em; color: rgba(248, 246, 239, .62); }
.path__steps strong { font: 400 1.35rem/1.2 var(--serif); }
.path__steps li > span:not(.path__n) { color: var(--ivory-soft); font-size: .9375rem; line-height: 1.5; max-width: 30em; }
.path__here { align-self: flex-start; margin-top: 8px; font: 400 .75rem/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); background: var(--ivory); padding: 6px 10px; }
.path__note { margin: 36px 0 0; color: var(--ivory-soft); font-size: .9375rem; }

/* faq */
.faq { background: var(--stone); padding: var(--section) 0; }
.faq__grid { display: grid; gap: 40px; }
.faq__title { font-size: clamp(2.1rem, 9vw, 3rem); }
.faq__title em { color: var(--burgundy); }
.faq__list { border-top: 1px solid rgba(31, 31, 31, .25); }
.faq details { border-bottom: 1px solid rgba(31, 31, 31, .25); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0; font: 400 1.15rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--burgundy); transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details > div { padding: 0 0 22px; color: #3F3733; max-width: 40em; }
.faq details > div p { margin: 0; }
.faq summary:focus-visible { outline-offset: 2px; }

/* close */
.close__lede { max-width: 28em; margin: 30px auto 28px; color: var(--ivory-soft); }
.close__sign { font-size: 1.4rem; margin: 0; }
.foot__meta { margin: 0; font-size: .8125rem; color: var(--ivory-soft); }

@media (min-width: 640px) {
  .path__steps { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 40px 32px; }
  .path__steps::before { display: none; }
  .path__steps li { padding-top: 26px; border-top: 1px solid rgba(248, 246, 239, .35); }
  .path__steps li::before { left: 0; top: -7px; }
  .faq summary { font-size: 1.3rem; }
}
@media (min-width: 901px) {
  .path { margin-top: clamp(100px, 12vw, 180px); padding-top: clamp(56px, 6vw, 90px); }
  .path__title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); margin-bottom: clamp(48px, 6vw, 80px); }
  .path__steps { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .path__steps::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform: scaleX(var(--s, 1)); transform-origin: left; }
  .path__steps li { border-top: 0; padding: 30px 22px 0 0; }
  .path__steps strong { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
  .path__steps li > span:not(.path__n) { font-size: .875rem; }
  .faq__grid { grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 128px); align-items: start; }
  .faq__title { font-size: clamp(2.6rem, 5vw, 5rem); position: sticky; top: 18vh; }
  .faq summary { font-size: clamp(1.25rem, 1.7vw, 1.55rem); min-height: 76px; }
  .founder__belief { font-size: 1.45rem; }
  .close__sign { font-size: 1.7rem; }
}

/* ───────────── founder v2: portraits that follow the text ───────────── */
.founder__grid { display: block; }
.founder__media { margin: 0 calc(-1 * var(--gutter)); }
/* phones: swipe strip with counter */
.founder__stage { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; }
.founder__stage::-webkit-scrollbar { display: none; }
.founder__stage figure { flex: none; width: 78vw; max-width: 380px; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.founder__stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__meta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; padding: 18px var(--gutter) 0; }
.founder__count { font: 400 .8125rem/1 var(--sans); letter-spacing: .12em; color: var(--ink-soft); }
.founder__count b { font-weight: 500; color: var(--charcoal); }
.founder__bar { position: relative; height: 1px; background: rgba(31, 31, 31, .18); overflow: hidden; }
.founder__bar i { position: absolute; inset: 0; background: var(--burgundy); transform-origin: left; transform: scaleX(var(--p, .333)); transition: transform .5s var(--ease); }
.founder__cap { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--burgundy); }
.founder__copy { padding-top: 40px; }

@media (min-width: 901px) {
  .founder__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 128px); align-items: start; }
  .founder__media { margin: 0; position: sticky; top: 13vh; }
  .founder__stage { display: block; position: relative; overflow: hidden; padding: 0; aspect-ratio: 4 / 5; height: auto; max-height: 72vh; width: 100%; background: var(--stone); }
  .founder__stage figure { position: absolute; inset: 0; width: 100%; max-width: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
  .founder__stage figure img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
  .founder__stage figure.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
  .founder__stage figure.is-on img { transform: scale(1); }
  .founder__stage figure.was-on { clip-path: inset(0 0 0 0); z-index: 0; }
  .founder__meta { padding: 20px 0 0; grid-template-columns: auto 1fr auto; }
  .founder__cap { grid-column: auto; font-size: 1.1rem; }
  .founder__copy { grid-column: 2; grid-row: 1; padding-top: 2vh; }
}

/* ───────────── v3: content update 07/10 ───────────── */
.tag { display: inline-block; vertical-align: middle; font: 500 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; margin-right: 10px; background: var(--burgundy); color: var(--ivory); }
.tag--light { background: var(--ivory); color: var(--olive); margin: 0 0 0 10px; position: relative; top: -2px; }
.optional-note { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid rgba(31, 31, 31, .18); font-size: .9375rem; color: var(--ink-soft); }
.who__lead { color: var(--ivory-soft); max-width: 34em; }
.who__lead em { color: var(--ivory); font-family: var(--serif); font-size: 1.1em; }
.who__strikes li { color: var(--ivory-soft); }
.formats .formats__code { font: 400 1.3rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory); margin: 0 0 4px; }
.formats__desc { font-size: .9375rem; line-height: 1.55; color: var(--ivory-soft); max-width: 30em; }
.formats li.is-optional .formats__dot { background: var(--ivory); }
.inside__note { font-size: .9375rem; color: var(--ivory-soft); border-top: 1px solid rgba(248, 246, 239, .3); padding-top: 1.1em; max-width: 34em; }
.path__steps strong { font-size: 1.25rem; line-height: 1.3; }
.path__cta { margin-top: 56px; }
.founder__quote { font-size: clamp(1.75rem, 7.4vw, 2.4rem); line-height: 1.12; margin: 0 0 1em; }
.close__sig .micro + .micro { margin-top: -10px; }
@media (min-width: 640px) {
  .path__steps--three { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .path__steps--three { grid-template-columns: repeat(3, 1fr); }
  .path__steps--three li { padding-right: 40px; }
  .path__steps strong { font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
  .founder__quote { font-size: clamp(2rem, 3vw, 3rem); }
  .who__strikes { margin-top: 0; }
}

/* v4: path spacing on phones + founder authority */
.path__steps { margin-bottom: 8px; }
.path__note { margin-top: 28px; }
.founder__role-block { margin: 2.4em 0 0; }
.founder__role-title { font: 400 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 .4em; }
.founder__role-block .ruled { margin-top: .6em; }
.founder__creds { margin: 2.6em 0 0; border-top: 1px solid rgba(31, 31, 31, .2); display: grid; }
.founder__creds div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(31, 31, 31, .2); }
.founder__creds dt { font: 400 1.2rem/1.2 var(--serif); }
.founder__creds dd { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.founder__creds a { color: var(--burgundy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 640px) {
  .founder__creds div { grid-template-columns: 11em 1fr; align-items: baseline; gap: 20px; }
}

/* back to top */
.totop {
  --bg: var(--burgundy); --fg: var(--ivory);
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg); color: var(--fg); display: grid; place-items: center;
  box-shadow: 0 10px 28px -10px rgba(31, 12, 12, .55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.92);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s, background-color .5s var(--ease), color .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop.on-dark { --bg: var(--ivory); --fg: var(--burgundy); }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__track, .totop__progress { fill: none; stroke: currentColor; stroke-width: 1; }
.totop__track { opacity: .25; }
.totop__progress { stroke-dasharray: 150.8; stroke-dashoffset: calc(150.8 * (1 - var(--p, 0))); }
.totop__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.totop:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
@media (hover: hover) { .totop:hover .totop__arrow { transform: translateY(-3px); } }
@media (min-width: 901px) { .totop { right: calc(var(--gutter) * .5 + 8px); bottom: 32px; width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .totop, .totop__arrow { transition: opacity .2s linear; } }

/* footer legal links */
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; width: 100%; }
.foot__legal a { font-size: .8125rem; color: var(--ivory-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.foot__legal a:hover { color: var(--ivory); }
@media (min-width: 640px) { .foot__legal { width: auto; justify-content: flex-end; } }

/* legal pages */
.page-legal { background: var(--ivory); }
.page-legal .nav { position: sticky; }
.legal { padding: 56px 0 96px; }
.legal__wrap { max-width: 760px; }
.legal__title { font-size: clamp(2.1rem, 8vw, 3.4rem); margin-bottom: .3em; }
.legal__title em { color: var(--burgundy); }
.legal__updated { color: var(--ink-soft); font-size: .875rem; margin-bottom: 2.6em; }
.legal section { padding: 28px 0; border-top: 1px solid rgba(31, 31, 31, .18); }
.legal h2 { font: 400 clamp(1.35rem, 4.6vw, 1.7rem)/1.2 var(--serif); margin-bottom: .7em; }
.legal h3 { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); margin: 1.4em 0 .6em; }
.legal p, .legal li { color: #3F3733; }
.legal ul { list-style: none; padding: 0; margin: 0 0 1.1em; }
.legal li { position: relative; padding: .3em 0 .3em 28px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 16px; height: 1px; background: var(--burgundy); }
.legal a:not(.btn) { color: var(--burgundy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal__card { background: var(--stone); padding: 20px 22px; line-height: 1.8; }
.legal mark.todo { background: #F3D9A4; color: var(--charcoal); padding: 0 4px; }
.legal__back { margin-top: 40px; }
.foot--legal { background: var(--burgundy-deep); color: var(--ivory); margin-top: 0; }
@media (min-width: 640px) { .legal { padding: 88px 0 128px; } .legal__back .btn { width: auto; } }
