/* ============================================================
   STARSTRUCK LAB — base.css
   Tokens, type, frame and the components every page shares.

   1  Tokens          5  Buttons and links     9  Forms
   2  Reset           6  The eye (brand mark) 10  Footer
   3  Plates + frame  7  Navigation           11  Motion helpers
   4  Type            8  Mobile menu          12  Reduced motion
   ============================================================ */

/* ---------- 1  Tokens ---------- */
:root {
  /* Layout idea: observation plates on one hairline frame. Copy sits left,
     the instrument sits right, and the eye is the only living symbol. */
  color-scheme: light;

  --burgundy: #800D35;        /* signature accent */
  --burgundy-deep: #59081D;   /* the field behind the logo */
  --ivory: #F5F2ED;
  --gray: #E7E5E4;
  --ink: #171417;
  --white: #FFFFFF;

  --ink-raised: #221D21;      /* raised surface on ink */
  --stone: #6F676B;           /* secondary text on ivory (4.9:1) */
  --mist: rgba(245, 242, 237, .68); /* secondary text on ink and burgundy */

  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tone: var(--burgundy);    /* second tone for emphasis; each plate sets its own */
  --exemplar: "Tenor Sans", Optima, Candara, "Gill Sans", sans-serif;  /* the demo brand's own face */

  --frame: 1360px;
  --edge: clamp(0px, 2.2vw, 32px);
  --pad: clamp(20px, 3.2vw, 48px);
  --section: clamp(100px, 10.5vw, 168px);
  --nav-h: 88px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-186 -186 372 372'%3E%3Cpath d='M0-168.6C0-44.8 60.8 0 186 0C60.8 0 0 44.8 0 168.6C0 44.8-60.8 0-186 0C-60.8 0 0-44.8 0-168.6Z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2  Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* A linked section starts exactly at the top of the screen. Its own top padding
   already clears the floating menu, so nothing of the section before it shows.
   Smaller targets and focused fields keep a margin, so the menu never covers them. */
:where([id]:not(section, main, body), input, select, textarea, button, a, summary, [tabindex]) { scroll-margin-top: 104px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
cite { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--focus, var(--burgundy));
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--burgundy); color: var(--ivory); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- 3  Plates + frame ---------- */
.plate {
  position: relative;
  background: var(--bg);
  color: var(--fg);
}
.plate--ivory {
  --bg: var(--ivory); --fg: var(--ink); --fg-2: var(--stone);
  --rule: rgba(23, 20, 23, .12); --rule-strong: rgba(23, 20, 23, .32);
  --accent: var(--burgundy); --tone: var(--burgundy); --surface: var(--white);
  --btn-bg: var(--burgundy); --btn-fg: var(--ivory); --btn-bg-hover: var(--ink);
  --focus: var(--burgundy);
}
.plate--ink {
  --bg: var(--ink); --fg: var(--ivory); --fg-2: var(--mist);
  --rule: rgba(245, 242, 237, .13); --rule-strong: rgba(245, 242, 237, .36);
  --accent: var(--ivory); --tone: #C9A3AF; --surface: var(--ink-raised);
  --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bg-hover: var(--white);
  --focus: var(--ivory);
}
.plate--burgundy {
  --bg: var(--burgundy); --fg: var(--ivory); --fg-2: rgba(245, 242, 237, .78);
  --rule: rgba(245, 242, 237, .2); --rule-strong: rgba(245, 242, 237, .45);
  --accent: var(--ivory); --tone: rgba(245, 242, 237, .62); --surface: var(--burgundy-deep);
  --btn-bg: var(--ivory); --btn-fg: var(--burgundy); --btn-bg-hover: var(--white);
  --focus: var(--ivory);
}

/* The frame: one measure for the whole site, edged with hairlines. */
.frame {
  position: relative;
  width: min(100% - 2 * var(--edge), var(--frame));
  margin-inline: auto;
  padding-inline: var(--pad);
  border-inline: 1px solid var(--rule);
}
.frame--section { padding-block: var(--section); }
.rule {
  height: 1px; border: 0; margin: 0 calc(var(--pad) * -1);
  background: var(--rule);
}
@media (max-width: 720px) {
  .frame { width: 100%; border-inline: 0; }
}

/* Film grain for the dark plates. */
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain);
  opacity: .22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
:where(.grain) > * { position: relative; z-index: 1; }

/* ---------- 4  Type ---------- */
.display {
  font-weight: 300;
  font-size: clamp(3rem, 8.6vw, 8.75rem);
  line-height: .92;
  letter-spacing: -.05em;
}
.h2 {
  font-weight: 300;
  font-size: clamp(2.125rem, 5vw, 4.625rem);
  line-height: 1.01;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h3 {
  font-weight: 400;
  font-size: clamp(1.3125rem, 1.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.028em;
}
.lead {
  font-size: clamp(1.0625rem, 1.32vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -.012em;
  color: var(--fg-2);
  max-width: 34em;
}
.small { font-size: .875rem; line-height: 1.5; }
.label {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .005em;
  text-transform: lowercase;
  color: var(--fg-2);
}
.muted { color: var(--fg-2); }

/* One typeface throughout. Emphasis is the same face in the plate's
   second tone: never a second font, never an italic. */
em {
  font-style: normal;
  font-weight: inherit;
  color: var(--tone);
}
.h2 em { display: block; }

/* A four-point star set inline with text. */
.star {
  display: inline-block;
  width: .8em; height: .8em;
  fill: currentColor;
  vertical-align: -.04em;
  flex: none;
}

.starlist { display: grid; gap: 10px; }
.starlist li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
}
.starlist li::before {
  content: "";
  position: absolute; left: 0; top: .32em;
  width: 13px; height: 13px;
  background: var(--accent);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
}

/* Figure captions follow the lab's own document convention. */
.figcap {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 46em;
}
.figcap b { font-weight: 600; color: var(--fg); }

/* Values still to be supplied by the studio (see js/config.js). */
.todo {
  padding: 0 .3em;
  border-radius: 3px;
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 -1px 0 0 var(--accent);
  font-style: normal;
  white-space: nowrap;
}

/* ---------- 5  Buttons and links ---------- */
.btn {
  --btn-h: 54px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--btn-h);
  padding: 7px 7px 7px 26px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9375rem; font-weight: 600; line-height: 1.1; letter-spacing: -.012em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn__ico {
  flex: none;
  display: grid; place-items: center;
  width: calc(var(--btn-h) - 14px); height: calc(var(--btn-h) - 14px);
  border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg);
  overflow: hidden;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn__ico svg { width: 18px; height: 18px; }
.btn--plain { padding-inline: 26px; justify-content: center; }
.btn--ghost {
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn--sm { --btn-h: 44px; font-size: .875rem; padding-left: 18px; gap: 12px; }
.btn--sm .btn__ico svg { width: 15px; height: 15px; }
.btn--lg { --btn-h: 62px; font-size: 1.0625rem; padding-left: 30px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

@media (hover: hover) {
  .btn:hover { background: var(--btn-bg-hover); }
  .btn:hover .btn__ico { color: var(--btn-bg-hover); }
  .btn:hover .btn__ico svg { animation: ico-fly .6s var(--ease-out); }
  .btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--fg); }
}
@keyframes ico-fly {
  0%   { transform: translate(0, 0); }
  44%  { transform: translate(150%, -150%); }
  45%  { transform: translate(-150%, 150%); }
  100% { transform: translate(0, 0); }
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: currentColor; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 6  The eye (brand mark) ---------- */
.eye { overflow: visible; }
.eye-lid {
  fill: none;
  stroke: currentColor;
  stroke-width: 34;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
}
.eye-star { fill: currentColor; }
.eye--fine .eye-lid {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: inherit; text-decoration: none;
}
.brand__mark { width: 42px; height: auto; flex: none; }
.brand__mark .eye-star { transform-box: fill-box; transform-origin: center; }
.brand__name {
  font-size: 1.0625rem; font-weight: 600; line-height: 1; letter-spacing: -.035em;
  white-space: nowrap;
}
.brand__name em { font-weight: 300; color: inherit; }
@media (hover: hover) {
  .brand:hover .brand__mark .eye-star { animation: star-turn 1s var(--ease-out); }
}
@keyframes star-turn {
  50% { transform: rotate(90deg) scale(.84); }
  100% { transform: rotate(180deg) scale(1); }
}

/* ---------- 7  Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 14px var(--edge) 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 22px;
  max-width: var(--frame); height: 60px;
  margin-inline: auto;
  padding: 0 8px 0 var(--pad);
  border: 1px solid transparent; border-radius: 999px;
  color: var(--ivory);
  --focus: var(--ivory);
  transition: max-width .7s var(--ease-out), padding .7s var(--ease-out),
    background-color .4s, border-color .4s, box-shadow .4s, color .3s;
}
.nav .brand { margin-right: auto; }
html:not(.js) .nav { position: absolute; }   /* without JS the bar simply stays over the hero */
.nav.is-stuck .nav__bar {
  max-width: 1040px;
  padding-left: 22px;
  background: rgba(23, 20, 23, .74);
  border-color: rgba(245, 242, 237, .12);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 44px -22px rgba(23, 20, 23, .6);
  color: var(--ivory);
}
.top-light .nav:not(.is-stuck) .nav__bar { color: var(--ink); --focus: var(--burgundy); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .875rem; font-weight: 500; letter-spacing: -.008em;
  text-decoration: none;
  opacity: .74;
  transition: opacity .25s;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a::before {
  content: "";
  position: absolute; left: 3px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  background: currentColor;
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  opacity: 0; transform: scale(.2) rotate(-90deg);
  transition: opacity .3s, transform .5s var(--ease-out);
}
.nav__links a[aria-current="true"]::before { opacity: 1; transform: none; }

.nav .btn { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bg-hover: var(--white); }
.top-light .nav:not(.is-stuck) .btn { --btn-bg: var(--burgundy); --btn-fg: var(--ivory); --btn-bg-hover: var(--ink); }
.nav__cta-short { display: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .9;
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .lucide-x { display: none; }
.menu-open .nav__toggle .lucide-x { display: block; }
.menu-open .nav__toggle .lucide-menu { display: none; }

@media (max-width: 1000px) {
  .nav { padding-inline: 10px; padding-top: 10px; }
  .nav__bar { height: 56px; padding: 0 6px 0 16px; gap: 8px; }
  .nav.is-stuck .nav__bar { padding-left: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .brand__mark { width: 38px; }
  .brand__name { font-size: 1rem; }
}
@media (max-width: 380px) {
  .nav .brand__name { display: none; }
}

/* ---------- 8  Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: grid; grid-template-rows: 1fr auto; gap: 24px;
  padding: 104px 24px 28px;
  background: var(--ink); color: var(--ivory);
  --focus: var(--ivory);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
.menu::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 80% 0%, rgba(128, 13, 53, .5), rgba(128, 13, 53, 0) 70%);
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease-out); }
.menu-open { overflow: hidden; }
.menu__links { display: grid; align-content: center; gap: 2px; }
.menu__links a {
  display: block;
  padding: 6px 0;
  font-size: clamp(2.25rem, 10vw, 3.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -.045em;
  text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 16px; }
.menu__foot .btn { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bg-hover: var(--white); }
.menu__meta { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--mist); text-decoration: none; }
.menu__meta .icon { width: 16px; height: 16px; }
@media (min-width: 1001px) { .menu { display: none; } }

/* ---------- 9  Forms ---------- */
.form { display: grid; gap: 30px; }
.form__row { display: grid; gap: 30px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label,
.field > legend,
.field__label {
  padding: 0;
  font-size: .8125rem; font-weight: 600; line-height: 1.4; letter-spacing: -.004em;
}
.field .opt { font-weight: 400; color: var(--fg-2); }
.field__hint { font-size: .8125rem; line-height: 1.45; color: var(--fg-2); }

.input {
  width: 100%;
  padding: 12px 0 12px;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  background: transparent;
  font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.012em;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: color-mix(in srgb, var(--fg) 36%, transparent); opacity: 1; }
.input:hover { border-bottom-color: var(--fg); }
.input:focus-visible {
  outline: 0;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.chip span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: .9375rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip input:hover + span { box-shadow: inset 0 0 0 1px var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 0;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input::after {
  content: "";
  width: 12px; height: 12px;
  background: var(--bg);
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  transform: scale(0) rotate(-90deg);
  transition: transform .35s var(--ease-out);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: none; }
.check a { color: var(--fg); }

.field.is-invalid .input { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field.is-invalid .check input { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field__error {
  display: none;
  align-items: flex-start; gap: 6px;
  font-size: .8125rem; font-weight: 500; line-height: 1.4;
  color: var(--accent);
}
.field__error svg { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.field.is-invalid .field__error { display: flex; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.form__note { flex: 1 1 260px; font-size: .8125rem; line-height: 1.5; color: var(--fg-2); }
.form__status {
  display: none;
  padding: 16px 18px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: .9375rem; line-height: 1.5;
}
.form__status.is-shown { display: block; }
.form__status b { font-weight: 600; }

/* ---------- 10  Footer ---------- */
.footer { overflow: clip; }
.footer__frame { padding-top: clamp(56px, 7vw, 96px); container-type: inline-size; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer__about { display: grid; gap: 18px; align-content: start; max-width: 22rem; }
.footer__about p { color: var(--fg-2); font-size: .9375rem; line-height: 1.55; }
.footer__col h2 {
  margin-bottom: 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .005em; text-transform: lowercase;
  color: var(--fg-2);
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a, .footer__col button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; text-align: left;
  font-size: .9375rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--fg);
  opacity: .86;
  transition: opacity .2s;
}
.footer__col a:hover, .footer__col button:hover { opacity: 1; text-decoration: underline; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.footer__col .icon { width: 15px; height: 15px; }

.footer__word {
  margin: 0 calc(var(--pad) * -1);
  padding: clamp(20px, 3vw, 44px) var(--pad) 0;
  border-top: 1px solid var(--rule);
  font-size: 18.6cqw;
  font-weight: 300; line-height: .82; letter-spacing: -.062em;
  white-space: nowrap;
  user-select: none;
}
.footer__word em { margin-left: .12em; font-weight: 200; color: var(--fg); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin: 0 calc(var(--pad) * -1);
  padding: clamp(28px, 3.4vw, 44px) var(--pad) 28px;
  font-size: .8125rem; line-height: 1.5; color: var(--fg-2);
}
.footer__base p { max-width: 62em; }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
}

/* ---------- 11  Motion helpers ---------- */
/* Editorial text reveal: words rise through a mask. Visible without JS. */
.js [data-reveal] .w {
  display: inline-block;
  clip-path: inset(-.16em -.14em -.24em -.14em);
}
.js [data-reveal] .w > span {
  display: inline-block;
  transform: translateY(140%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 46ms + var(--d, 0ms));
}
.js [data-reveal].is-in .w > span { transform: none; }

/* Page-to-page transition (browsers with cross-document view transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .26s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 12  Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
