/* ==========================================================================
   DEFY STUDIOS — base.css
   Tokens, type, layout and everything shared between pages.

   Palette is fixed by the brand: black dominates, white carries the reading,
   amber #FFB400 is spent deliberately — interactions, indicators, a word or
   two. Never as text on white: at 1.9:1 it fails contrast there.
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --amber: #FFB400;
  /* the light sections' surface (the user's chosen grey); js/scroll.js
     reads it for the black-to-light crossfade */
  --paper: #C2C2C2;

  /* tonal blacks, only where depth is needed */
  --ink-1: #0a0a0a;
  --ink-2: #111;
  --ink-3: #1b1b1b;

  /* role tokens — light sections redefine these */
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .62);   /* 7.4:1 on black */
  --faint: rgba(255, 255, 255, .38);   /* decoration only */
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .28);

  /* one family, art-directed through its width axis: expanded caps for
     labels and display, normal width for reading */
  --ff: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-micro: 11.5px;
  --fs-small: clamp(13px, .78rem + .1vw, 14px);
  --fs-body: clamp(16px, .94rem + .22vw, 19px);
  --fs-lead: clamp(19px, .9rem + .9vw, 30px);
  --fs-h3: clamp(30px, 1.1rem + 2.8vw, 68px);
  --fs-d2: clamp(46px, 1.2rem + 6.4vw, 136px);
  --fs-d1: clamp(64px, 1.4rem + 12.4vw, 248px);

  --pad: clamp(20px, 4.2vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(110px, 16vw, 260px);
  --nav-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);        /* the house curve: fast out, long settle */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--black);
  --muted: rgba(0, 0, 0, .68);          /* ~5.7:1 on the grey */
  --faint: rgba(0, 0, 0, .42);
  --line: rgba(0, 0, 0, .14);
  --line-2: rgba(0, 0, 0, .3);
  background: var(--bg);
  color: var(--fg);
}

/* ---- reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font: 400 var(--fs-body)/1.55 var(--ff);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--black); }

/* one visible focus treatment, everywhere */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--pad); top: 12px; z-index: 1000;
  padding: 12px 18px; background: var(--amber); color: var(--black);
  font: 600 expanded var(--fs-small)/1 var(--ff); text-transform: uppercase; letter-spacing: .1em;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---- layout + type primitives ---------------------------------------- */
.wrap { width: 100%; max-width: 1840px; margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font: 600 expanded var(--fs-micro)/1 var(--ff);
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  display: flex; gap: .9em; align-items: baseline;
}
.eyebrow span { color: var(--amber); }
[data-theme="amber"] {
  --bg: var(--amber);
  --fg: var(--black);
  --muted: rgba(0, 0, 0, .7);
  --faint: rgba(0, 0, 0, .42);
  --line: rgba(0, 0, 0, .16);
  --line-2: rgba(0, 0, 0, .32);
  background: var(--bg);
  color: var(--fg);
}
[data-theme="light"] .eyebrow span, [data-theme="amber"] .eyebrow span { color: var(--fg); }

/* ---- surface crossfade -------------------------------------------------
   With motion on, the page has one surface that fades between black and
   white as sections pass (js/scroll.js writes the tokens on <html>). Every
   section paints that surface and inherits its text and line colours, so
   type, rules and backgrounds all move together. data-theme still says
   which surface a section wants; without motion it applies directly. */
.surface-fade [data-theme] { --bg: inherit; --fg: inherit; --muted: inherit; --faint: inherit; --line: inherit; --line-2: inherit; }
.surface-fade main > section:not(.hero), .surface-fade .footer { background: var(--bg); color: var(--fg); }
/* the hero keeps its own white-on-black type colours, but its backdrop is
   the page surface: as the Manifesto arrives the 3D stage dissolves into it,
   so there is no edge where the hero ends (js/scroll.js sets --page-*) */
.surface-fade .hero { background: var(--page-bg, #000); }
.hero {
  --bg: var(--black); --fg: var(--white);
  --muted: rgba(255, 255, 255, .62); --faint: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .28);
  color: var(--fg);
}

.display-2 {
  font-size: var(--fs-d2);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
}

/* film grain, very low, so black reads as a material rather than a void */
body::after {
  /* just larger than the screen (the shake moves it at most 3.6%), so the
     compositor carries 1.4 screens of texture rather than 4 */
  content: ""; position: fixed; inset: -10%; z-index: 900; pointer-events: none; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .055;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---- NAV --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding-inline: var(--pad);
  color: var(--white);
  transition: color .5s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
/* a soft fall-off behind the bar once the page is underway, never a slab */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .6s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-over-hero::before { opacity: 0; }
.nav.is-light { color: var(--black); }
.nav.is-light::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 86%, transparent), transparent); }
/* with the surface crossfade, the bar and its fall-off take the page's own
   colours, so they fade in step with the sections instead of switching */
.surface-fade .nav, .surface-fade .nav.is-light { color: var(--fg); }
.surface-fade .nav::before, .surface-fade .nav.is-light::before {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 84%, transparent), transparent);
}
/* quiet while the hero plays; it is still fully usable */
.nav.is-hushed:not(:hover):not(:focus-within) { opacity: .58; }

.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; padding-block: 10px; }
.nav__emblem { width: 58px; height: auto; transition: transform .6s var(--ease), filter .3s linear; }
/* the amber emblem would vanish on the amber Contact section */
.nav.on-amber .nav__emblem { filter: brightness(0); }
.nav__brand:hover .nav__emblem { transform: translateX(-3px) rotate(-4deg); }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a, .nav__cta {
  position: relative;
  font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em;
  padding-block: 10px;
}
/* the roll: the label slides up and an amber copy rises behind it */
.nav__links a span { display: block; overflow: hidden; }
.nav__links a { overflow: hidden; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="true"] { color: var(--amber); }
.nav.is-light .nav__links a[aria-current="true"] { color: var(--black); }

.nav__cta { color: var(--amber); display: inline-flex; gap: .7em; }
.nav.is-light .nav__cta { color: var(--black); }
.nav__cta span { transition: transform .5s var(--ease); }
.nav__cta:hover span { transform: translateX(5px); }

.nav__menu { display: none; align-items: center; gap: 12px; padding: 10px 0;
  font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; }
.nav__menu-icon { position: relative; width: 22px; height: 10px; }
.nav__menu-icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__menu-icon i:first-child { top: 0; }
.nav__menu-icon i:last-child { top: 8.5px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---- MENU (small screens) --------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 450;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path .75s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(46px, 13vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1;
  padding-block: 8px; border-bottom: 1px solid var(--line);
  transform: translateY(30px); opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease), color .3s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu__links a:hover { color: var(--amber); }
.menu__foot { margin-top: 32px; display: grid; gap: 16px;
  font: 600 expanded var(--fs-micro)/1.4 var(--ff); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.menu__social { display: flex; gap: 20px; flex-wrap: wrap; }
/* social links are the platforms' icons; the name is in aria-label */
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -8px; border-radius: 50%; color: currentColor; transition: color .3s; }
.social__icon { width: 22px; height: 22px; }
.social:hover { color: var(--amber); }   /* colour only: the icons stay put */
.social:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.socials { display: flex; gap: 22px; padding-left: 8px; }

/* ---- REVEALS ------------------------------------------------------------
   Hidden only once JS has said motion is on (html.motion). Without JS, with
   reduced motion, or if anything fails, the content is simply there. */
.motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* split headings: each word rises out of its own mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.motion [data-split] .w > span {
  transform: translateY(120%);   /* clear of the mask, including its .08em of padding */
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.motion [data-split].is-in .w > span { transform: none; }

/* ---- LINKS + BUTTONS --------------------------------------------------- */
.link-arrow {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px;
  padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.link-arrow span { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.04em; line-height: .95; transition: color .4s; }
.link-arrow small { grid-row: 2; font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.link-arrow i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: var(--fs-h3); color: var(--amber);
  transition: transform .6s var(--ease); }
.link-arrow:hover span { color: var(--amber); }
.link-arrow:hover i { transform: translateX(12px); }

/* ---- CURSOR -------------------------------------------------------------
   Contextual only. The system cursor stays everywhere else; over work it is
   replaced by an amber disc that says what a click will do. */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 800; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--amber); color: var(--black);
  display: grid; place-items: center;
  translate: -200px -200px;
  transition: scale .35s var(--ease);
  will-change: translate, scale; contain: layout style paint;
  scale: 0;
}
.cursor.is-on { scale: 1; }
.cursor__label { font: 600 expanded 11px/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor [data-cursor] { cursor: none; }
}

/* ---- FILMS ---------------------------------------------------------------
   A film is a poster until it is near the screen, then a silent loop.
   The amber disc marks it as something you can open and play. */
.film { position: relative; overflow: hidden; background: var(--ink-2); cursor: pointer; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.film__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 expanded var(--fs-micro)/1.2 var(--ff); text-transform: uppercase; letter-spacing: .12em; color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}
.film__cap i { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--amber); }
.film__cap i::after {
  content: ""; position: absolute; left: 13px; top: 11px;
  border-left: 10px solid var(--black); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---- LIGHTBOX ---------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0, 0, 0, .96); color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; padding: 72px var(--pad) 60px; }
.lightbox__fig img, .lightbox__fig video { max-width: min(92vw, 1400px); max-height: calc(100dvh - 190px); width: auto; object-fit: contain; }
.lightbox__fig video { background: var(--black); }
.lightbox__fig [hidden] { display: none; }
.lightbox__fig figcaption { font: 600 expanded var(--fs-micro)/1.4 var(--ff); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); text-align: center; }
.lightbox__btn { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; font-size: 22px;
  border: 1px solid var(--line-2); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.lightbox__btn:hover { background: var(--amber); color: var(--black); border-color: var(--amber); }
.lightbox__prev { left: var(--pad); }
.lightbox__next { right: var(--pad); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { position: absolute; top: 20px; right: var(--pad);
  font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; padding: 12px 0; }
.lightbox__close:hover { color: var(--amber); }
.lightbox__count { position: absolute; top: 20px; left: var(--pad); padding: 12px 0;
  font: 600 expanded var(--fs-micro)/1 var(--ff); letter-spacing: .14em; color: var(--muted); }

/* ---- FOOTER ------------------------------------------------------------ */
.footer { position: relative; padding-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.footer__brand { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 110px); }
.footer__emblem { width: clamp(140px, 13vw, 220px); height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: var(--fs-small); }
.footer__col a { position: relative; transition: color .3s; }
.footer__col a:hover { color: var(--amber); }
.footer__col span { color: var(--muted); }
.footer__h { font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }

.footer__mark { position: relative; margin-top: clamp(28px, 3.5vw, 60px); padding-inline: var(--pad); }
.footer__word { width: 100%; height: auto; }
.footer__word--base { color: var(--ink-3); }
/* the wordmark is lit from left to right as the page ends (--sweep is
   driven by scroll in js/scroll.js); without JS it is simply lit */
.footer__word--lit {
  position: absolute; left: var(--pad); right: var(--pad); top: 0; width: calc(100% - var(--pad) * 2);
  color: var(--white);
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--sweep, 130%) - 14%), transparent calc(var(--sweep, 130%) + 14%));
          mask-image: linear-gradient(100deg, #000 calc(var(--sweep, 130%) - 14%), transparent calc(var(--sweep, 130%) + 14%));
}
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 26px calc(26px + env(safe-area-inset-bottom)); margin-top: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* ---- FORMS ------------------------------------------------------------- */
.form__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field { position: relative; display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.field label, .field legend {
  font: 600 expanded var(--fs-micro)/1 var(--ff); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  padding: 0;
}
.field legend { margin-bottom: 14px; }
.field__opt { color: var(--faint); margin-left: .6em; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0 14px; font-size: var(--fs-lead); font-weight: 500; letter-spacing: -.02em; border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.35; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--amber); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--amber); border-bottom-width: 2px; }
.field__err { min-height: 1em; font: 600 expanded 12px/1.3 var(--ff); letter-spacing: .04em; color: var(--amber); }

.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 44px 14px 0; font: inherit; font-size: var(--fs-lead); font-weight: 500; letter-spacing: -.02em; color: var(--fg);
  cursor: pointer; transition: border-color .4s var(--ease);
}
.select select:invalid { color: var(--faint); }          /* "Choose one" reads as a placeholder */
.select select option { color: #000; }
.select::after {                                          /* the arrow */
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -9px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); rotate: 45deg;
  pointer-events: none; transition: translate .4s var(--ease);
}
.select:hover::after { translate: 0 3px; }
.select select:focus { outline: none; border-bottom-color: var(--amber); }
.select select:focus-visible { box-shadow: 0 1px 0 0 var(--amber); }
.field.is-invalid select { border-bottom-color: var(--amber); border-bottom-width: 2px; }
[data-theme="light"] .select select:focus { border-bottom-color: var(--fg); }
[data-theme="light"] .select select:focus-visible { box-shadow: 0 2px 0 0 var(--amber); }
[data-theme="light"] .field.is-invalid select { border-bottom-color: var(--fg); }

.submit {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 28px; background: var(--white); color: var(--black);
  font-size: var(--fs-lead); font-weight: 700; letter-spacing: -.03em;
}
.submit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.submit:hover::before, .submit:focus-visible::before { transform: scaleX(1); }
.submit__arrow { transition: transform .6s var(--ease); }
.submit:hover .submit__arrow { transform: translateX(8px); }
.submit[aria-busy="true"] { pointer-events: none; }
.submit[aria-busy="true"] .submit__label::after { content: "…"; }
.form__status { margin-top: 18px; min-height: 1.5em; font-size: var(--fs-small); color: var(--muted); }
.form__status.is-ok { color: var(--amber); }
.form__status.is-err { color: var(--fg); padding-left: 14px; border-left: 2px solid var(--amber); }

/* forms on a white section: amber can't carry text on white (1.9:1), so it
   becomes a marker beside black text, and the button inverts */
[data-theme="light"] .field input:focus, [data-theme="light"] .field textarea:focus { border-bottom-color: var(--fg); }
[data-theme="light"] .field input:focus-visible, [data-theme="light"] .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--amber); }
[data-theme="light"] .field.is-invalid input, [data-theme="light"] .field.is-invalid textarea { border-bottom-color: var(--fg); }
[data-theme="light"] .field__err { color: var(--fg); }
[data-theme="light"] .field__err:not(:empty)::before { color: var(--amber); }
[data-theme="light"] .submit { background: var(--black); color: var(--white); }
[data-theme="light"] .submit:hover, [data-theme="light"] .submit:focus-visible { color: var(--black); }
[data-theme="light"] .form__status.is-ok { color: var(--fg); padding-left: 14px; border-left: 2px solid var(--amber); }

/* forms on amber: amber details would vanish, so everything is black, and the
   button sweeps white on hover */
[data-theme="amber"] .field input:focus, [data-theme="amber"] .field textarea:focus, [data-theme="amber"] .select select:focus { border-bottom-color: var(--fg); }
[data-theme="amber"] .field input:focus-visible, [data-theme="amber"] .field textarea:focus-visible, [data-theme="amber"] .select select:focus-visible { box-shadow: 0 2px 0 0 var(--fg); }
[data-theme="amber"] .field.is-invalid input, [data-theme="amber"] .field.is-invalid textarea, [data-theme="amber"] .field.is-invalid select { border-bottom-color: var(--fg); }
[data-theme="amber"] .field__err, [data-theme="amber"] .field__err:not(:empty)::before { color: var(--fg); }
[data-theme="amber"] .submit { background: var(--black); color: var(--white); }
[data-theme="amber"] .submit::before { background: var(--white); }
[data-theme="amber"] .submit:hover, [data-theme="amber"] .submit:focus-visible { color: var(--black); }
[data-theme="amber"] .submit:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
[data-theme="amber"] .form__status.is-ok { color: var(--fg); padding-left: 14px; border-left: 2px solid var(--fg); }
[data-theme="amber"] .form__status.is-err { border-left-color: var(--fg); }
[data-theme="amber"] .social:hover { color: var(--white); }
[data-theme="amber"] .social:focus-visible { outline-color: var(--black); }
[data-theme="amber"] ::selection { background: var(--black); color: var(--amber); }

/* ---- PAGE TRANSITION ---------------------------------------------------- */
.veil { position: fixed; inset: 0; z-index: 950; background: var(--black); pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease); }
.veil.is-on { opacity: 1; }

/* ---- small screens ------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__emblem { width: 44px; }
}
/* phones and tablets: the footer is one centred column */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; text-align: center; }
  .footer__col { align-items: center; }
  .footer .socials { justify-content: center; padding-left: 0; }
  .footer__base { justify-content: center; text-align: center; }
}

/* ---- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { animation: none; }
}
