/* Altivon Digital — base layer (foundation team). Loaded after tokens.css on every page.
   Contents: reset · document · type · layout · grounds · buttons · glass · grain · a11y · reveal states ·
   nav · closing CTA + footer · reduced motion · forced colours · print.

   House rules for section teams (they keep the whole site consistent):
   - Write colour against the semantic tokens (--text, --text-2, --text-3, --hairline, --btn-*). The grounds
     below re-point them, so a component works on stone, stone-2 and night without changes.
   - Never clip text: no overflow:hidden on a line box, no masks on headlines (descenders hang below the box
     at leading 0.9).
   - An element GSAP animates must not use the CSS translate/scale/rotate properties: GSAP folds them into
     its transform and writes them inline as "none". Buttons (.btn) use those properties for magnetic pull and
     press, so never tween a .btn directly — tween its wrapper. */

/* ---- Reset ------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, address, fieldset) { margin: 0; }
:where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
:where(img, picture, video, canvas, svg) { display: block; max-width: 100%; }
:where(img, video) { height: auto; }
:where(input, button, textarea, select) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(button) { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:where(address) { font-style: normal; }
:where(p, li, dd, figcaption) { overflow-wrap: break-word; }
:where(a, button, summary, label, input, select, textarea, [role="button"]) { touch-action: manipulation; }
[hidden] { display: none !important; }

/* ---- Document ---------------------------------------------------------------------------------------- */
html {
  color-scheme: light;
  background-color: var(--stone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px); /* keyboard focus never lands under the fixed bar */
}
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip; /* a safety net against sideways scroll; never clips vertically */
  background-color: var(--stone);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-text);
  line-height: var(--lh-body);
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; /* every control has its own pressed state */
}

/* Lenis 1.3.26 (lenis.css, inlined to save a request) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ---- Type (§3) ----------------------------------------------------------------------------------------- */
.t-display, .t-h2 {
  font-weight: var(--fw-display);
  font-stretch: var(--fwd-display);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-display);
  text-wrap: balance;
  color: var(--text);
}
.t-display { font-size: var(--fs-display); }
.t-h2 { font-size: var(--fs-h2); }
.t-sub {
  font-size: var(--fs-sub);
  font-weight: var(--fw-sub);
  letter-spacing: var(--tr-sub);
  line-height: var(--lh-sub);
  text-wrap: balance;
  color: var(--text);
}
.t-lead {
  max-width: var(--measure-lead);
  font-size: var(--fs-lead);
  font-weight: var(--fw-text);
  letter-spacing: var(--tr-lead);
  line-height: var(--lh-lead);
  text-wrap: pretty;
  color: var(--text-2);
}
.t-body {
  max-width: var(--measure-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-text);
  line-height: var(--lh-body);
  text-wrap: pretty;
  color: var(--text-2);
}
.t-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  font-stretch: var(--fwd-label);
  letter-spacing: var(--tr-label);
  line-height: 1.25;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.t-num { font-variant-numeric: tabular-nums; }
:where(h1, h2, h3, h4) { text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---- Layout (§4) ----------------------------------------------------------------------------------------
   .wrap   page margins (plus the notch insets in landscape), max 1800px of content.
   .grid   12 columns. Children span the full width on phones; place them with custom properties:
             --col-sm  under 768px (default 1 / -1)
             --col     768px and up (default 1 / -1)
             --col-lg  1100px and up (default: --col)
           e.g. <p style="--col: 7 / span 5; --col-lg: 8 / span 4">
   .section the spec's section padding. */
.wrap {
  width: 100%;
  max-width: calc(1800px + 2 * var(--margin));
  margin-inline: auto;
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * { grid-column: var(--col-sm, 1 / -1); min-width: 0; }
@media (min-width: 48em) { .grid > * { grid-column: var(--col, 1 / -1); } }
@media (min-width: 68.75em) { .grid > * { grid-column: var(--col-lg, var(--col, 1 / -1)); } }
.subgrid { display: grid; grid-template-columns: subgrid; }
.section { position: relative; padding-block: var(--section-pad); }
.stack > * + * { margin-top: var(--stack-gap, 1em); }

/* ---- Grounds (§2) ---------------------------------------------------------------------------------------
   No two neighbouring sections share a ground: stone → night → stone-2 → stone → night → stone → night. */
.ground-stone { --ground: var(--stone); background-color: var(--stone); background-image: var(--grey-light); color: var(--text); }
.ground-stone-2 { --ground: var(--stone-2); --text-3: var(--ink-3-deep); background-color: var(--stone-2); background-image: var(--grey-light); color: var(--text); }
.ground-night, [data-theme="night"] {
  --ground: var(--night);
  --text: var(--on-night);
  --text-2: var(--on-night-2);
  --text-3: var(--on-night-2);
  --hairline: var(--line-night);
  --surface: var(--night-2);
  --btn-bg: var(--on-night);
  --btn-bg-hover: #FFFFFF;
  --btn-fg: var(--night);
  --accent: var(--royal-night);
  --focus-ring: var(--royal-night);
  color-scheme: dark;
  color: var(--text);
}
.ground-night { background-color: var(--night); background-image: var(--night-light); }
/* the hero: night ground under the studio light */
.ground-sweep { background-color: var(--night); background-image: var(--sweep); }

/* ---- Buttons (§5) ----------------------------------------------------------------------------------------
   Primary: <a class="btn" href="…"><span>Message us on Instagram</span><svg class="btn__arrow" …/></a>
   Magnetic on fine pointers (core.js, ≤ 8px pull, via the CSS translate property), press scales to .97.
   On night the semantic tokens invert it. .btn--sm is the 40px nav size (hit area still 48px). */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 0 24px 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: var(--fs-ui);
  font-weight: var(--fw-ui);
  font-stretch: 100%;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    translate .7s var(--ease-out),
    scale var(--dur-press) var(--ease-press),
    background-color .3s var(--ease-out),
    color .3s var(--ease-out);
}
.btn:hover { background-color: var(--btn-bg-hover); }
.btn:active { scale: .97; }
.btn__arrow { flex: none; width: 14px; height: 14px; transition: translate .5s var(--ease-out); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { translate: 4px 0; }
.btn--sm { --btn-h: 40px; gap: 8px; padding: 0 18px; }
.btn--sm::after { content: ""; position: absolute; inset: -4px -2px; } /* 48px hit area around the 40px pill */
.btn--block { width: 100%; }

/* Secondary: a text link whose underline draws from the left on hover and leaves to the right. */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--target);
  color: var(--text);
  font-size: var(--fs-ui);
  font-weight: var(--fw-ui);
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
}
.link::before, .link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% - .92em);
  height: 1px;
  background-color: currentColor;
  pointer-events: none;
}
.link::before { opacity: .26; }
.link::after { scale: 0 1; transform-origin: right center; transition: scale .6s var(--ease-out); }
.link:hover::after, .link:focus-visible::after { scale: 1 1; transform-origin: left center; }
.link__arrow { flex: none; width: 12px; height: 12px; transition: translate .5s var(--ease-out); }
.link:hover .link__arrow, .link:focus-visible .link__arrow { translate: 3px 0; }
.link:hover .link__arrow--up, .link:focus-visible .link__arrow--up { translate: 0 -3px; }
.link--quiet { font-weight: var(--fw-text); color: var(--text-2); }
.link--quiet:hover, .link--quiet:focus-visible { color: var(--text); }

/* ---- Glass (§5) -------------------------------------------------------------------------------------------
   .glass for static bars and panels; .glass-chip for DM bubbles and small floating UI.
   Phones: no backdrop blur on moving layers (§9) — add .glass-lite to a chip that moves. */
.glass, .glass-chip {
  background-color: var(--glass);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: var(--glass-filter-chip);
  backdrop-filter: var(--glass-filter-chip);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-chip);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: var(--fw-nav);
  line-height: 1.2;
  white-space: nowrap;
}
.ground-night .glass, .ground-night .glass-chip {
  background-color: var(--glass-night);
  box-shadow: inset 0 0 0 1px var(--glass-edge-night);
  color: var(--on-night);
}
@media (pointer: coarse) {
  .glass-lite { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(244, 246, 249, .88); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-chip { background-color: var(--glass-solid); }
  .ground-night .glass, .ground-night .glass-chip { background-color: var(--glass-solid-night); }
}

/* ---- Film grain (§2) -------------------------------------------------------------------------------------
   One fixed layer, normal blending, no mix-blend-mode. grain.png holds two independent noise fields baked
   into grey + alpha so that, at this opacity, the layer equals "multiply at 4.5%" on light pixels plus
   "screen at 3%" on dark ones (night sections get their light grain automatically). It also dithers the
   studio-sweep gradients. Regenerate with tools/foundation-assets.sh. */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-grain);
  width: 100%;
  height: 100lvh;
  background: url("../img/grain.png") 0 0 / 128px 128px repeat;
  opacity: .07365; /* = 1 − (1 − .045)(1 − .03); the tile's alpha is normalised to it */
  pointer-events: none;
}

/* ---- Accessibility ---------------------------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
/* Programmatic focus targets (skip link, anchor jumps) are not controls: no ring around a whole section. */
:where(main, section, [data-scroll-target])[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: fixed;
  top: 10px;
  left: max(10px, env(safe-area-inset-left));
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background-color: var(--ink);
  color: var(--stone);
  font-size: var(--fs-ui);
  font-weight: var(--fw-ui);
  text-decoration: none;
  translate: 0 calc(-100% - 20px);
  transition: translate .4s var(--ease-out);
}
.skip-link:focus { translate: none; outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
::selection { background-color: var(--royal); color: #FFFFFF; }
.ground-night::selection, .ground-night ::selection, [data-theme="night"] ::selection { background-color: var(--royal-night); color: var(--night); }

/* ---- Reveal states (core.js) ---------------------------------------------------------------------------------
   [data-reveal] (words | lines | block) starts visible. The inline head script adds .js to <html>, and only
   then is it hidden until core.js plays it; if core.js has not taken over within 3s the head script adds
   .js-failsafe and everything shows. Reduced motion never hides anything. */
.js [data-reveal]:not(.is-revealed) { opacity: 0; }
.js-failsafe [data-reveal] { opacity: 1 !important; }
.rv-w, .rv-c { display: inline-block; }
.rv-l { display: block; }

/* ---- Nav (§5) -------------------------------------------------------------------------------------------------
   Fixed 64px bar. Transparent at the very top, frosted glass once the page leaves the top, hidden while
   scrolling down, back on scroll up. Night theme while a night section is under it. Phones: wordmark,
   "Message us" and a menu button that drops a glass sheet below the bar. */
.nav {
  --nav-glass: var(--glass);
  --nav-edge: var(--glass-edge);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  color: var(--text);
  transition: translate .6s var(--ease-out);
}
.nav.is-hidden { translate: 0 calc(-100% - 2px); }
.nav.is-night {
  --nav-glass: var(--glass-night);
  --nav-edge: var(--glass-edge-night);
  --text: var(--on-night);
  --text-2: var(--on-night-2);
  --text-3: var(--on-night-2);
  --hairline: var(--line-night);
  --btn-bg: var(--on-night);
  --btn-bg-hover: #FFFFFF;
  --btn-fg: var(--night);
  --focus-ring: var(--on-night);
}
.nav__bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--nav-h);
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
}
.nav__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--nav-glass);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 -1px 0 var(--hairline);
  opacity: 0;
  transition: opacity .45s var(--ease-out), background-color .45s var(--ease-out);
  pointer-events: none;
}
.nav.is-night .nav__bar::before { background-image: none; }
.nav.is-scrolled .nav__bar::before, .nav.is-open .nav__bar::before { opacity: 1; }
.nav__bar > * { position: relative; }

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
  text-decoration: none;
}
/* the client's logo: chrome on navy, navy over the grey sections (core.js sets .is-night) */
.nav__logo { display: block; width: auto; height: 30px; }
.nav__logo--light { display: none; }
.nav:not(.is-night) .nav__logo--dark { display: none; }
.nav:not(.is-night) .nav__logo--light { display: block; }
@media (max-width: 47.99em) { .nav__logo { height: 26px; } }

.nav__links ul { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 40px); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--text);
  font-size: var(--fs-ui);
  font-weight: var(--fw-nav);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color .45s var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  background-color: currentColor;
  scale: 0 1;
  transform-origin: right center;
  transition: scale .6s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="true"]::after {
  scale: 1 1;
  transform-origin: left center;
}
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }

.nav__toggle {
  display: none;
  place-items: center;
  width: var(--target);
  height: var(--target);
  margin-right: -10px;
  border-radius: var(--radius-pill);
  color: var(--text);
  transition: color .45s var(--ease-out), background-color .3s var(--ease-out);
}
.nav__toggle:active { background-color: var(--hairline); }
.nav__toggle-icon { position: relative; width: 20px; height: 8px; }
.nav__toggle-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background-color: currentColor;
  transition: translate var(--dur-morph) var(--ease-spring), rotate var(--dur-morph) var(--ease-spring);
}
.nav__toggle-icon i:first-child { top: 0; }
.nav__toggle-icon i:last-child { bottom: 0; }
.nav.is-open .nav__toggle-icon i:first-child { translate: 0 3.25px; rotate: 45deg; }
.nav.is-open .nav__toggle-icon i:last-child { translate: 0 -3.25px; rotate: -45deg; }
.nav__toggle--nojs {
  display: none;
  align-items: center;
  min-height: var(--target);
  padding-inline: 8px;
  font-size: var(--fs-ui);
  font-weight: var(--fw-nav);
  text-decoration: none;
}

.nav__sheet {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px max(var(--margin), env(safe-area-inset-right)) 22px max(var(--margin), env(safe-area-inset-left));
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background-color: var(--nav-glass);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 -1px 0 var(--nav-edge), var(--shadow-sheet);
  opacity: 0;
  translate: 0 -10px;
  visibility: hidden;
  transition:
    opacity .28s var(--ease-out),
    translate var(--dur-morph) var(--ease-spring),
    visibility 0s linear var(--dur-morph);
}
.nav.is-open .nav__sheet {
  opacity: 1;
  translate: none;
  visibility: visible;
  transition: opacity .32s var(--ease-out), translate var(--dur-morph) var(--ease-spring), visibility 0s;
}
.nav__sheet-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-size: var(--fs-sub);
  font-weight: var(--fw-sub);
  letter-spacing: var(--tr-sub);
  line-height: 1.1;
  text-decoration: none;
}
.nav__sheet-links a:active { opacity: .6; }
.nav__sheet-links svg { width: 14px; height: 14px; color: var(--text-3); }
.nav__sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}
.nav__sheet-foot a { font-size: var(--fs-ui); font-weight: var(--fw-ui); color: var(--text); text-decoration: none; }
.nav__scrim {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background-color: rgba(6, 11, 26, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease-out), visibility 0s linear .32s;
}
.nav.is-open .nav__scrim { opacity: 1; visibility: visible; transition: opacity .32s var(--ease-out), visibility 0s; }

@media (max-width: 47.99em) {
  .nav__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .nav__links { display: none; }
  .js .nav__toggle { display: inline-grid; }
  html:not(.js) .nav__toggle--nojs { display: inline-flex; }
}
@media (min-width: 48em) { .nav__sheet, .nav__scrim { display: none; } }
@media (max-width: 23.49em) { .nav__logo { height: 23px; } } /* up to 375px phones: keep the bar on one line */

/* ---- Closing CTA + footer (§7.7, night) ------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-top: var(--section-pad);
  padding-bottom: clamp(88px, 10vw, 160px);
  /* a soft key light from above: the night stage, not a flat fill */
  background-image: radial-gradient(90% 70% at 30% 0%, rgba(125, 149, 255, .09) 0%, rgba(125, 149, 255, 0) 62%);
}
.cta__inner { container-type: inline-size; }
.cta__label { margin-bottom: clamp(28px, 3.4vw, 56px); }
/* Display size, held to two lines: the longer line ("Your customers are") is 8.45em at these settings. */
.cta__title { font-size: min(var(--fs-display), 100cqi / 8.8); }
.cta__body { row-gap: 32px; margin-top: clamp(40px, 5.2vw, 88px); }
.cta__lead { --col: 7 / -1; --col-lg: 7 / span 5; color: var(--text-2); }
.cta__actions {
  --col: 7 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.cta__handle {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: var(--target);
  align-items: center;
  color: var(--text);
}
.cta__handle-text {
  font-size: 1.0625rem;
  font-weight: var(--fw-ui);
  letter-spacing: -0.01em;
  -webkit-user-select: all;
  user-select: all;
  cursor: text;
}
@media (max-width: 47.99em) {
  .cta__actions .btn { width: 100%; }
}

.footer {
  position: relative;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.footer__inner { container-type: inline-size; }
.footer__cols {
  row-gap: 36px;
  padding-top: clamp(36px, 4.4vw, 64px);
  border-top: 1px solid var(--hairline);
}
.footer__col--site { --col-sm: 1 / span 6; --col: 1 / span 3; }
.footer__col--contact { --col-sm: 7 / span 6; --col: 4 / span 3; }
.footer__col--small { --col: 7 / span 4; --col-lg: 7 / span 4; }
.footer__col--top { --col: 11 / span 2; justify-self: end; align-self: start; }
@media (max-width: 47.99em) { .footer__col--top { justify-self: start; } }
.footer__heading { margin-bottom: 10px; }
.footer__list { display: grid; }
.footer__list .link { font-size: var(--fs-ui); }
.footer__small {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.credits { display: grid; gap: 6px; color: var(--text-3); font-size: var(--fs-label); line-height: 1.5; }
.credits a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.credits a:hover { color: var(--text); text-decoration-color: currentColor; }
.footer__wordmark {
  display: block;
  margin-top: clamp(56px, 8vw, 136px);
}
/* the logo as the footer's closing statement, the full width of the page */
.footer__wordmark img { display: block; width: 100%; height: auto; }
/* the studio that built the site: a clear credit under the logo */
.footer__credit {
  display: inline-flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(36px, 5vw, 72px);
  padding: 16px 26px 16px 30px; border-radius: var(--radius-pill);
  background: rgba(238, 241, 246, .06); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .18);
  color: var(--on-night); text-decoration: none; font-size: 1.1875rem; font-weight: 560; letter-spacing: -.01em;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), translate .3s var(--ease-out);
}
.footer__credit img { display: block; width: auto; height: 50px; }
.footer__credit-arrow { width: 14px; height: 14px; opacity: .7; transition: translate .3s var(--ease-out), opacity .3s; }
.footer__credit:hover { background: rgba(238, 241, 246, .1); box-shadow: inset 0 0 0 1px rgba(238, 241, 246, .34); }
.footer__credit:hover .footer__credit-arrow { translate: 2px -2px; opacity: 1; }
.footer__credit:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
@media (max-width: 47.99em) { .footer__credit { gap: 16px; padding: 14px 22px 14px 24px; font-size: 1.0625rem; } .footer__credit img { height: 42px; } }

/* ---- Reduced motion (§6): no travel, fades only --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; }
  .btn:active { scale: none; }
  .btn:hover .btn__arrow, .btn:focus-visible .btn__arrow,
  .link:hover .link__arrow, .link:focus-visible .link__arrow { translate: none; }
  .link::after, .nav__link::after { scale: 1 1; opacity: 0; transition: opacity .3s ease; }
  .link:hover::after, .link:focus-visible::after,
  .nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="true"]::after { opacity: 1; }
  .nav, .nav.is-hidden { translate: none; transition: none; }
  .nav__sheet { translate: none; }
  .nav__toggle-icon i { transition: none; }
  .skip-link { transition: none; }
}

/* ---- Forced colours and print ------------------------------------------------------------------------------ */
@media (forced-colors: active) {
  body::after { display: none; }
  .btn { border: 1px solid ButtonText; }
  .nav__bar::before { opacity: 1; background: Canvas; box-shadow: inset 0 -1px 0 CanvasText; }
  .js [data-reveal] { opacity: 1 !important; }
}
@media print {
  body::after, .nav, .skip-link { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; }
}
