/* ==========================================================================
   IH Studios — ihstudios.com.au
   THE SINGLE SOURCE OF TRUTH FOR EVERY STYLE ON THE SITE.

   Rules for editing this file:
   1. Tokens (section 01) are declared once, here, and nowhere else.
   2. Each component owns ONE block, and its breakpoints live inside that
      block. Never add a "fixes" section at the bottom; edit the block.
   3. Colour comes from a scheme (section 04). Components read --bg / --fg /
      --muted / --line and never hard-code a colour.

   Table of contents
   01 Tokens            07 Buttons & links       13 Work + file box
   02 Fonts             08 Header + brand mark   14 Hands (services)
   03 Base              09 Hero                  15 Process
   04 Schemes           10 Ticker                16 Ways to work
   05 Layout            11 Moment (scroll copy)  17 Close + footer (+ form, wordmark)
   06 Type              12 Keyboard              18 Light, badge, menu, loader
                                                 19 Contact + legal pages
                                                 20 Motion preferences
   ========================================================================== */


/* 01 Tokens ------------------------------------------------------------- */
:root {
  /* Colour: the night street, the lit content, the light itself */
  --ink: #171614;
  --ink-2: #1e1c19;
  --ink-3: #2a2723;
  --bone: #f4eee2;
  --bone-2: #e9e1d1;
  --bone-3: #d9d0bd;
  --honey: #f2c14e;
  --honey-deep: #d9a628;
  --honey-soft: #f8dc95;
  --honey-glow: rgba(242, 193, 78, 0.55);

  /* Client palettes used only inside the work illustrations */
  --marlo-ink: #4a3f41;
  --marlo-blush: #f3d1d5;
  --marlo-rose: #e39fab;
  --marlo-gold: #b29559;
  --maple-ink: #3a3230;
  --maple-cream: #fbf3ea;
  --maple-mint: #b6d8d2;
  --maple-lilac: #dcc6d1;
  --maple-pink: #f2a7c3;
  --maple-yellow: #efc76b;

  /* Type */
  --font-display: "Anybody", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wdth-display: 112;

  /* Fluid type scale */
  --t-giant: clamp(3.4rem, 12.5vw, 11.5rem);   /* airborne-scale statements */
  --t-hero: clamp(3.6rem, 11.5vw, 9.5rem);
  --t-1: clamp(2.2rem, 5.2vw, 4.6rem);
  --t-2: clamp(1.6rem, 3vw, 2.6rem);
  --t-3: clamp(1.25rem, 1.8vw, 1.6rem);
  --t-body: clamp(1rem, 1.05vw, 1.125rem);
  --t-small: 0.875rem;
  --t-tiny: 0.75rem;

  /* Space & measure */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1520px;
  --band: clamp(5rem, 12vw, 11rem);      /* vertical rhythm between bands */
  --stack: clamp(2rem, 4vw, 3.5rem);      /* inside a band */
  --measure: 62ch;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1); /* fast out, long settle; no overshoot */
  --fast: 180ms;
  --base: 480ms;
  --slow: 900ms;

  /* Keys */
  --key-depth: 10px;
  --key-size: clamp(56px, 9vw, 112px);

  /* Cursor light position, written by js/main.js */
  --mx: 50vw;
  --my: 50vh;

  color-scheme: dark;
}


/* 02 Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Anybody";
  src: url("../assets/fonts/anybody-var.woff2") format("woff2-variations"),
       url("../assets/fonts/anybody-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anybody";
  src: url("../assets/fonts/anybody-var-italic.woff2") format("woff2-variations"),
       url("../assets/fonts/anybody-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk-var.woff2") format("woff2-variations"),
       url("../assets/fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk-var-italic.woff2") format("woff2-variations"),
       url("../assets/fonts/schibsted-grotesk-var-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}


/* 03 Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  font-weight: 400;
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.has-fine-pointer { cursor: none; }
body.has-fine-pointer a,
body.has-fine-pointer button,
body.has-fine-pointer input,
body.has-fine-pointer select,
body.has-fine-pointer textarea,
body.has-fine-pointer label { cursor: none; }
body.has-fine-pointer :is(input, textarea, select) { cursor: auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  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-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--honey); color: var(--ink);
  font-weight: 700; text-decoration: none; border-radius: 999px;
  transform: translateY(-200%);
  transition: transform var(--fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

::selection { background: var(--honey); color: var(--ink); }


/* 04 Schemes ------------------------------------------------------------ */
/* A band declares its scheme once; everything inside reads the variables. */
.scheme-ink, body {
  --bg: var(--ink);
  --bg-raised: var(--ink-2);
  --fg: var(--bone);
  --muted: rgba(244, 238, 226, 0.66);
  --line: rgba(244, 238, 226, 0.16);
  --accent: var(--honey);
  --accent-fg: var(--ink);
  background: var(--bg);
  color: var(--fg);
}
.scheme-bone {
  --bg: var(--bone);
  --bg-raised: #fbf8f1;
  --fg: var(--ink);
  --muted: rgba(23, 22, 20, 0.66);
  --line: rgba(23, 22, 20, 0.16);
  --accent: var(--honey);
  --accent-fg: var(--ink);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}
.scheme-honey {
  --bg: var(--honey);
  --bg-raised: var(--honey-soft);
  --fg: var(--ink);
  --muted: rgba(23, 22, 20, 0.7);
  --line: rgba(23, 22, 20, 0.18);
  --accent: var(--ink);
  --accent-fg: var(--honey);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}


/* 05 Layout ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * 0.55); }

.band + .band { margin-top: -1px; } /* no hairline seam between schemes */

.grid-2 {
  display: grid;
  gap: var(--stack);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem); }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

main {
  position: relative; z-index: 1;
  background: var(--ink);
  border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.page-home main { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); } /* the sheet's shadow only where the honey band meets the footer */


/* 06 Type --------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: calc(var(--wdth-display) * 1%);
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display--giant { font-size: var(--t-giant); }
.display--hero { font-size: var(--t-hero); }
.display--1 { font-size: var(--t-1); line-height: 0.92; }
.display--2 { font-size: var(--t-2); line-height: 0.95; }
.display .line { display: block; }

.h-lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.label {
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }
em.mark {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}


/* 07 Buttons & links ---------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow var(--base) var(--ease-out);
}
.btn::before {
  /* the light: a warm fill rising from the base on hover */
  content: "";
  position: absolute; inset: 0;
  background: var(--honey-soft);
  transform: translateY(101%);
  transition: transform var(--base) var(--ease-out);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 12px 32px -10px var(--honey-glow); }
.btn:active { box-shadow: none; }
.btn__arrow { width: 1em; height: 1em; transition: transform var(--base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(0.25em); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); box-shadow: none; }

.btn--big {
  font-size: var(--t-3);
  padding: 1em 1.7em;
}

.link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 0.15em;
  transition: background-size var(--base) var(--ease-out);
}
.link:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
.link__arrow { width: 0.9em; height: 0.9em; transition: transform var(--base) var(--ease-out); }
.link:hover .link__arrow { transform: translate(0.2em, -0.2em); }
.link--down:hover .link__arrow { transform: translateY(0.25em); }


/* 08 Header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink) 0%, transparent);
  transition: background var(--base) var(--ease-out), box-shadow var(--base) var(--ease-out);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
/* Once the page moves, the bar turns to frosted glass */
.header.is-scrolled {
  background: rgba(23, 22, 20, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.header__side { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.header__side .nav { margin-right: 0.25rem; }
.clock {
  display: none; align-items: center; gap: 0.5rem;
  font-size: var(--t-small); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.clock__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--honey); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (min-width: 1100px) { .clock { display: inline-flex; } }
.brand__name .l { display: inline-block; transition: transform 120ms var(--ease-out), color 160ms; }
.brand__name .l.is-lit { color: var(--honey); }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  line-height: 1;
}
.brand__mark {
  width: 2.1rem; height: 2.1rem;
  flex: none;
  transition: transform var(--base) var(--ease-spring), filter var(--base) var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 14px var(--honey-glow)); }
.brand__mark text {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  fill: var(--ink);
  transition: transform var(--base) var(--ease-spring);
  will-change: transform;
}
.brand__mark rect { fill: var(--honey); }
/* "IH" says "HI" on hover: the two letters trade places */
.brand:hover .brand__mark .l-i, .brand:focus-visible .brand__mark .l-i { transform: translateX(19px); }
.brand:hover .brand__mark .l-h, .brand:focus-visible .brand__mark .l-h { transform: translateX(-9px); }
.brand__name { padding-top: 0.15em; }
.brand__name b { font-weight: 900; }

.nav { display: none; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__link {
  position: relative;
  font-weight: 500; font-size: var(--t-small);
  text-decoration: none;
  padding: 0.4em 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--honey);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--base) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--t-small);
  padding: 0.5rem 0.25rem;
}
.menu-toggle__lines { width: 22px; height: 12px; position: relative; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--base) var(--ease-out), top var(--base) var(--ease-out);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}


/* 09 Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 9vw, 8rem);
  overflow: clip;
}
.hero__title {
  position: relative;
  margin-bottom: clamp(1.5rem, 3.5vw, 3rem);
}
.hero__line {
  display: block;
  overflow: hidden;              /* clips the entrance rise only ... */
  padding-block: 0.03em;
}
.hero__title.is-in .hero__line { overflow: visible; } /* ... then lets the letters lift freely */
.hero__word {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  transform-origin: left bottom;
  animation: hero-rise var(--slow) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes hero-rise { to { transform: none; } }
.hero__dot {
  color: var(--honey);
  display: inline-block;
  animation: hero-dot 1.2s var(--ease-spring) forwards;
  animation-delay: 560ms;
  transform: scale(0);
  transform-origin: center 70%;
}
@keyframes hero-dot { to { transform: scale(1); } }
/* Letters lift under a fine pointer, the same behaviour as the footer wordmark (js/main.js) */
.hero__l {
  display: inline-block;
  transition: transform 120ms var(--ease-out), color 160ms var(--ease-out);
  will-change: transform;
}
.hero__l.is-lit { color: var(--honey); }

.hero__foot {
  display: grid; gap: var(--stack);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 7fr 5fr; }
}

.hero__lead {
  font-size: var(--t-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
}
@media (min-width: 900px) { .hero__actions { justify-content: flex-end; padding-right: clamp(6rem, 10vw, 9rem); } } /* keeps the links clear of the fixed badge */
.hero__meta {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  color: var(--muted);
  font-size: var(--t-small);
}
.hero__meta .placeholder { border-bottom: 1px dashed var(--honey); }
.hero__meta > span + span::before { content: "·"; margin-right: 1.5rem; color: var(--muted); }
.hero__meta { gap: 0.5rem 1.5rem; }


/* 10 Ticker ------------------------------------------------------------- */
.ticker {
  --ticker-height: clamp(3.25rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  height: var(--ticker-height);
  display: flex; align-items: center;
  border-block: 1px solid var(--line);
  user-select: none;
}
.ticker__track {
  display: flex; gap: 0;
  white-space: nowrap;
  will-change: transform;
}
.ticker__item {
  display: inline-flex; align-items: center; gap: 1.25rem;
  padding-inline: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.01em;
}
.ticker__item::after {
  content: "";
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-left: 1.25rem;
}


/* 11 Moment (scroll-revealed copy) ------------------------------------- */
.moment { padding-block: var(--band); }
.moment__inner {
  display: grid; gap: var(--stack);
}
@media (min-width: 900px) {
  .moment__inner { grid-template-columns: 4fr 8fr; }
}
.moment__intro { max-width: 20ch; }
.moment__copy { max-width: 34ch; }
.reveal .w {
  display: inline-block;
  color: var(--fg);
  opacity: 0.32;
  transition: opacity 120ms linear;
}
.reveal .w.is-lit { opacity: 1; }

.moment__list { margin-top: 2rem; }
.moment__item {
  display: grid; grid-template-columns: 1.8em 1fr; gap: 0.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-3);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.moment__item:last-child { border-bottom: 1px solid var(--line); }
.moment__item svg { width: 1.1em; height: 1.1em; margin-top: 0.15em; color: var(--accent); }
.moment__close { margin-top: 2rem; }


/* 11b Claim: the giant lines scale in and drift at different speeds as you scroll ------ */
.claim { padding-block: var(--band); overflow: clip; }
.claim__title { text-align: center; }
.claim__line {
  display: block;
  transform: translateY(calc(var(--drift, 0) * 1px)) scale(var(--zoom, 1));
  opacity: var(--fade, 1);
  will-change: transform, opacity;
}
.claim__copy { max-width: 36ch; margin: clamp(1.5rem, 4vw, 3rem) auto 0; text-align: center; font-size: var(--t-3); font-weight: 500; line-height: 1.25; }

/* 12 Keyboard ----------------------------------------------------------- */
.statement {
  padding-block: calc(var(--band) * 0.7) calc(var(--band) * 0.5);
  text-align: center;
  overflow: clip;
  transition: background var(--slow) var(--ease-out), color var(--slow) var(--ease-out);
}
.statement__title {
  font-stretch: 100%; /* js/main.js widens it as it scrolls in */
  transition: font-stretch 80ms linear;
  will-change: font-stretch;
}
.statement__hint {
  margin-top: 1.25rem;
  color: var(--muted);
}

.kbd {
  /* 28 quarter-key columns: a key spans 4, the Return key spans 6, and the
     second row sits half a key to the left, like a real board. */
  --g: clamp(6px, 1vw, 12px);
  --u: calc((var(--key-size) - 3 * var(--g)) / 4);
  position: relative;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(28, var(--u));
  grid-auto-rows: var(--key-size);
  gap: var(--g);
  justify-content: center;
  padding-bottom: calc(var(--key-depth) + 1.5rem);
  max-width: 100%;
}
/* Each key sets --c (start column) and --r (row) inline in the HTML. */
.key {
  --cap: var(--bone-2);
  --cap-fg: var(--ink);
  --side: var(--bone-3);
  position: relative;
  grid-column: var(--c) / span var(--span, 4);
  grid-row: var(--r);
  text-decoration: none;
  color: var(--cap-fg);
  transform-style: flat;
  -webkit-tap-highlight-color: transparent;
}
.key__side, .key__cap {
  position: absolute; inset: 0;
  border-radius: clamp(10px, 1.4vw, 18px);
}
.key__side {
  top: var(--key-depth);
  background: var(--side);
  box-shadow: 0 var(--key-depth) 26px -8px rgba(23, 22, 20, 0.35);
}
.key__cap {
  background: var(--cap);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(23, 22, 20, 0.08);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(6px, 1vw, 12px) clamp(7px, 1.1vw, 14px);
  transition: transform var(--fast) var(--ease-out), background var(--fast) linear, box-shadow var(--fast) linear;
  will-change: transform;
}
.key__letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 115%;
  font-size: clamp(1.4rem, 3.4vw, 3.2rem);
  line-height: 0.9;
  align-self: start;
}
.key__label {
  font-size: clamp(0.45rem, 0.8vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  opacity: 0.8;
  text-align: left;
}
.key:hover .key__cap,
.key.is-pressed .key__cap,
.key:focus-visible .key__cap,
.key[aria-expanded="true"] .key__cap {
  transform: translateY(var(--key-depth));
  background: var(--honey);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 0 transparent, 0 0 28px var(--honey-glow);
}
.key:focus-visible { outline: none; }
.key:focus-visible .key__cap { box-shadow: 0 0 0 3px var(--fg), 0 0 28px var(--honey-glow); }

.key--enter {
  --cap: var(--honey);
  --side: var(--honey-deep);
  --span: 6;
  grid-row: 1 / span 2;
  /* Return-key L shape: full width on top, right-aligned tail below */
  --notch: 50%;
}
.key--enter .key__side, .key--enter .key__cap {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, var(--notch) 50%, 0 50%);
  border-radius: 0;
}
.key--enter .key__cap {
  grid-template-rows: auto 1fr auto;
}
.key--enter .key__letter { font-size: clamp(1.6rem, 3.8vw, 3.6rem); }
.key--enter .key__label { text-align: right; align-self: end; margin-left: calc(var(--notch) + 4px); }
.key--enter:hover .key__cap, .key--enter.is-pressed .key__cap { background: var(--honey-soft); }
.key--enter .key__side::after {
  /* soften the L's inner corner so it reads as one moulded cap */
  content: ""; position: absolute; left: var(--notch); top: 50%;
  width: 14px; height: 14px; transform: translate(-100%, 0);
  background: var(--side);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}


.kbd__panel {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 238, 226, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -20px rgba(23, 22, 20, 0.35);
  transform-origin: top center;
}
.kbd__panel[hidden] { display: none; }
.kbd__panel.is-open { animation: panel-in var(--base) var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.kbd__panel-key {
  font-family: var(--font-display); font-weight: 900; font-stretch: 115%;
  font-size: var(--t-1);
  line-height: 0.85;
  color: var(--fg);
  grid-row: 1 / span 3;
}
.kbd__panel-title { font-weight: 700; font-size: var(--t-3); letter-spacing: -0.01em; }
.kbd__panel-copy { color: var(--muted); margin-top: 0.35rem; max-width: 50ch; }
.kbd__panel-link { margin-top: 0.85rem; justify-self: start; }
.kbd__status { margin-top: 1rem; min-height: 1.5em; color: var(--muted); font-size: var(--t-small); }
.kbd__legend {
  display: none;
  max-width: 40ch; margin: 1rem auto 0;
  color: var(--muted); font-size: var(--t-small); line-height: 1.6;
}
.kbd__legend b { color: var(--fg); font-family: var(--font-display); font-weight: 900; font-stretch: 115%; }

@media (max-width: 720px) {
  .kbd {
    --g: 4px;
    --key-size: calc((100vw - 2 * var(--gutter) - 6 * var(--g)) / 7);
    --key-depth: 7px;
    padding-bottom: calc(var(--key-depth) + 1rem);
  }
  .key__label {                             /* letters only on phones; the name stays for assistive tech and the legend below names each key */
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .kbd__legend { display: block; }
  .key__cap { padding: 6px 8px; grid-template-rows: 1fr; align-items: center; }
  .key__letter { font-size: clamp(1.2rem, 5.5vw, 2rem); }
  .kbd__panel { grid-template-columns: 1fr; padding: 1rem 1.15rem; }
  .kbd__panel-key { grid-row: auto; font-size: 2rem; }
}


/* 13 Work + file box ---------------------------------------------------- */
.work { padding-block: var(--band); }
.work__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: var(--stack);
}
.work__grid {
  display: grid; gap: var(--stack);
  align-items: start;
}
@media (min-width: 960px) {
  .work__grid { grid-template-columns: 6fr 6fr; gap: clamp(2rem, 6vw, 7rem); }
  .work__list { order: 1; }
  .work__box { order: 2; position: sticky; top: clamp(5rem, 12vh, 8rem); }
}

.job { border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.job:last-child { border-bottom: 1px solid var(--line); }
.job__head {
  width: 100%;
  display: grid; grid-template-columns: 3.25rem 1fr auto; gap: 1rem;
  align-items: center;
  padding-block: 1.25rem;
  text-align: left;
  transition: transform var(--base) var(--ease-out);
}
.job__head:hover, .job.is-active .job__head { transform: translateX(0.5rem); }
.job__num {
  font-family: var(--font-display); font-weight: 900; font-stretch: 115%;
  font-size: var(--t-2); line-height: 1;
  color: var(--muted);
  transition: color var(--base);
}
.job:hover .job__num, .job.is-active .job__num { color: var(--honey); }
.job__title { display: block; font-weight: 700; font-size: var(--t-3); letter-spacing: -0.01em; }
.job__sub { display: block; color: var(--muted); font-size: var(--t-small); margin-top: 0.15rem; }
.job__icon {
  width: 2.4rem; height: 2.4rem; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: background var(--base), color var(--base), transform var(--base) var(--ease-out), border-color var(--base);
}
.job__icon svg { width: 1rem; height: 1rem; transition: transform var(--base) var(--ease-out); }
.job:hover .job__icon { border-color: var(--honey); }
.job.is-active .job__icon { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.job.is-active .job__icon svg { transform: rotate(45deg); }

.job__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--slow) var(--ease-out);
}
.job.is-active .job__body { grid-template-rows: 1fr; }
.job__body > div { overflow: hidden; }
.case {
  padding: 0.25rem 0 2rem 4.25rem;
  display: grid; gap: 1.5rem;
}
@media (max-width: 720px) { .case { padding-left: 0; } }
.case__row { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: start; }
@media (max-width: 720px) { .case__row { grid-template-columns: 1fr; gap: 0.35rem; } }
.case__k { color: var(--muted); font-size: var(--t-small); font-weight: 600; padding-top: 0.2em; }
.case__v { max-width: 52ch; }
.case__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tag {
  font-size: var(--t-tiny); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35em 0.7em; border-radius: 999px;
  border: 1px solid var(--line);
}
.tag--lit { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.case__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* Case study media: the live store in a browser frame and a phone frame */
.case__media { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .case__media { grid-template-columns: 2fr 1fr; align-items: end; }
  .case__media .shot--desktop:first-child { grid-column: 1 / -1; }
}
.shot {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-raised);
}
.shot--desktop { display: grid; grid-template-rows: auto 1fr; aspect-ratio: 16 / 10.6; }
/* The viewport: the full-length screenshot sits at its natural height inside, top aligned,
   and js/main.js slides it up by transform while the pointer rests on the frame */
.shot__view { position: relative; overflow: hidden; min-height: 0; }
.shot__view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; will-change: transform; }
.shot--pan img { transition: transform 900ms var(--ease-out); }
.shot__hint { font-size: var(--t-tiny); color: var(--muted); opacity: 0.8; }
@media (hover: none) { .shot__hint { display: none; } }
.shot__bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 22, 20, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: var(--t-tiny); color: var(--muted);
}
.shot__dots, .shot__dots::before, .shot__dots::after { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); }
.shot__dots { position: relative; display: inline-block; margin-right: 1.1rem; }
.shot__dots::before, .shot__dots::after { content: ""; position: absolute; top: 0; }
.shot__dots::before { left: 0.8rem; }
.shot__dots::after { left: 1.6rem; }
.shot__url { flex: 1; text-align: center; letter-spacing: 0.02em; }
.shot--mobile {
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  border-width: 2px;
  justify-self: center;
  width: min(100%, 220px);
  padding: 0.5rem;
}
.shot--mobile img { border-radius: 18px; }

/* --- The stage: the store of the hovered or opened project, sticky beside the list --- */
.work__stage { position: relative; }
@media (min-width: 960px) {
  .work__stage { position: sticky; top: clamp(5rem, 12vh, 8rem); }
  .case__media { display: none; }          /* the stage shows it; the in-case frame is for phones */
}
@media (max-width: 959px) { .work__stage { display: none; } }
.stage__item { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity var(--base) var(--ease-out), transform var(--base) var(--ease-out); pointer-events: none; }
.stage__item.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.stage__next {
  display: grid; place-items: center; align-content: center; gap: 0.5rem;
  aspect-ratio: 16 / 10.6; border-radius: 14px;
  background: var(--honey); color: var(--ink);
  text-align: center;
}
.stage__next-copy { font-weight: 600; }
.stage__next svg { width: 2.5rem; height: 2.5rem; margin-top: 0.5rem; }


/* 13b Results ----------------------------------------------------------- */
.results { padding-block: var(--band); }
.results__inner { display: grid; gap: var(--stack); }
@media (min-width: 900px) { .results__inner { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; } }
.results__copy { margin-top: 1rem; max-width: 34ch; color: var(--muted); font-size: var(--t-3); line-height: 1.3; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; }
.metric { padding: 1.5rem 1.5rem 1.5rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.metric:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.metric:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.metric__num { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; color: var(--honey); font-variant-numeric: tabular-nums; }
.metric__label { color: var(--muted); max-width: 22ch; }

/* 13c Partners: two rows of platform names drifting in opposite directions ---- */
.partners { padding-block: calc(var(--band) * 0.5); overflow: clip; }
.partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.partners__rows { display: grid; gap: 0.75rem; }
.partners__row { display: flex; white-space: nowrap; will-change: transform; }
.partner {
  display: inline-flex; align-items: center; gap: 1.25rem;
  padding: 0.6rem 1.25rem; margin-right: 0.5rem; flex: none;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: 0.01em;
}
.partner::after { content: "Partner"; font-family: var(--font-body); font-weight: 600; font-size: var(--t-tiny); letter-spacing: 0.12em; color: var(--muted); }

/* 14 Hands (services statement) ---------------------------------------- */
.hands { padding-block: var(--band); }
.hands__title { margin-bottom: var(--stack); }
.hands__grid { display: grid; gap: var(--stack); }
@media (min-width: 900px) { .hands__grid { grid-template-columns: 6fr 6fr; gap: clamp(2rem, 6vw, 7rem); } }
.hands__lead { margin-bottom: 1.5rem; }
.outcomes { display: grid; }
.outcome {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.5rem;
}
.outcome:last-child { border-bottom: 1px solid var(--line); }
.outcome__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: var(--t-2); line-height: 0.95; text-transform: uppercase;
}
.outcome__copy { color: var(--muted); max-width: 44ch; }


/* 15 Process ------------------------------------------------------------ */
.process { padding-block: var(--band); }
.process__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: var(--stack);
}
.steps {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .step:nth-child(2) { margin-top: 2.5rem; }
  .step:nth-child(4) { margin-top: 1.5rem; }
  .step:nth-child(3) { margin-top: 0.75rem; }
}
.step {
  position: relative;
  padding: 1.5rem 1.5rem 3.6rem;
  border-radius: 20px;
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  min-height: 18rem;
  display: grid; align-content: start; gap: 0.75rem;
  transform: rotate(var(--lean, 0deg));
  transition: transform var(--base) var(--ease-out), border-color var(--base);
}
.step:hover { transform: rotate(var(--lean, 0deg)) translateY(-4px); border-color: var(--fg); }
.step__num {
  font-family: var(--font-display); font-weight: 900; font-stretch: 118%;
  font-size: var(--t-2); line-height: 1; color: var(--fg);
}
.step__title { font-weight: 700; font-size: var(--t-3); letter-spacing: -0.01em; line-height: 1.15; }
.step__copy { color: var(--muted); }
.sticker {
  position: absolute; left: 1.25rem; bottom: 1.1rem;
  padding: 0.45em 0.9em;
  background: var(--honey);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800; font-size: var(--t-tiny); letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(var(--tilt, -3deg));
  box-shadow: 0 8px 20px -10px rgba(23, 22, 20, 0.5);
  transition: transform var(--base) var(--ease-spring);
}
.step:hover .sticker { transform: rotate(calc(var(--tilt, -3deg) * -1)) scale(1.06); }
.step__doodle {
  position: absolute; right: 1.2rem; top: 1.2rem;
  width: 3rem; height: 3rem; color: var(--honey-deep);
  opacity: 0.9;
}


/* 16 Ways to work ------------------------------------------------------- */
.ways { padding-block: var(--band); }
.ways__head { margin-bottom: var(--stack); }
.ways__grid { display: grid; }
@media (min-width: 900px) { .ways__grid { grid-template-columns: repeat(3, 1fr); } }
.way {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.75rem; align-content: start;
}
@media (min-width: 900px) {
  .way { padding: 2.5rem 2rem 2.5rem 0; border-top: 1px solid var(--line); }
  .way + .way { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.way__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: var(--t-1); line-height: 0.9; text-transform: uppercase;
  transition: color var(--base) var(--ease-out);
}
.way:hover .way__title, .way:focus-within .way__title { color: var(--honey); }
.way__for { font-weight: 700; }
.way__copy { color: var(--muted); max-width: 36ch; }
.way .link { justify-self: start; margin-top: 0.5rem; }


/* 17 Close + footer ----------------------------------------------------- */
.close { padding-block: var(--band); overflow: clip; }
.close__inner { display: grid; gap: var(--stack); align-items: end; }
@media (min-width: 900px) { .close__inner { grid-template-columns: 8fr 4fr; } }
.close__title { font-size: var(--t-giant); }
.close__copy { max-width: 30ch; font-size: var(--t-3); font-weight: 500; line-height: 1.25; }
.close .btn { margin-top: 1.25rem; }

.footer {
  /* stuck to the bottom; the page sheet above scrolls up to reveal it */
  position: sticky; bottom: 0; z-index: 0;
  padding-top: calc(var(--band) * 0.7);
  overflow: clip;
}
.footer__grid {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 4fr 2fr 2fr 4fr; } }
.footer__col { display: grid; gap: 0.6rem; align-content: start; }
.footer__col .label { color: var(--muted); margin-bottom: 0.4rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--honey); }
.footer__about { max-width: 30ch; color: var(--muted); grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__about { grid-column: auto; } }
.footer__legal {
  margin-top: var(--stack);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  color: var(--muted); font-size: var(--t-small);
}
/* Footer form: the small "get in touch" under the columns */
.footer__form { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .footer__form { grid-column: auto; padding-top: 0; border-top: 0; } }
.footer__form .h-3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.mini-form { display: grid; gap: 0.9rem; }
.mini-form .form__row--2 { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mini-form .form__row--2 { grid-template-columns: 1fr 1fr; } }
.mini-form .field { gap: 0.25rem; }
.mini-form .field__label { font-size: var(--t-tiny); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mini-form .field__input { padding: 0.45em 0; font-size: var(--t-small); }
.mini-form textarea.field__input { min-height: 3.2rem; }
.mini-form .form__foot { grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
.mini-form .form__note { font-size: var(--t-tiny); }
.mini-form .form__status { font-size: var(--t-small); }
.mini-form.is-sent .form__row, .mini-form.is-sent .field, .mini-form.is-sent .form__foot { display: none; }
.mini-form.is-sent { display: block; }
.page-contact .footer__form { display: none; } /* the contact page already is the form */

/* Footer wordmark: one <text> per letter, laid out by js/main.js, clipped at the
   page edge like a sign in a window. Letters near a fine pointer lift and tilt. */
.footer__wordmark {
  display: block;
  width: 100%;
  margin-top: 2rem;
  height: auto;
  margin-bottom: -0.35%;
  overflow: visible;
}
.footer__wordmark text {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 120%;
  fill: var(--bone);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 120ms var(--ease-out), fill 160ms var(--ease-out);
  will-change: transform;
}
.footer__wordmark text.is-lit { fill: var(--honey); }
.placeholder { border-bottom: 1px dashed var(--honey); }


/* 18 Light, badge, mobile menu ---------------------------------------- */
/* The cursor light: the warm glow that follows a fine pointer on dark ground. */
.light {
  position: fixed; left: 0; top: 0; z-index: 60;
  pointer-events: none;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.22) 0%, rgba(242, 193, 78, 0.08) 35%, transparent 65%);
  mix-blend-mode: screen;
  transform: translate3d(var(--mx), var(--my), 0);
  opacity: 0;
  transition: opacity var(--slow) var(--ease-out);
  display: none;
}
.dot {
  position: fixed; left: 0; top: 0; z-index: 61;
  pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 1.5px var(--ink); /* ink ring keeps the dot visible on honey and bone without a blend mode (difference turned it blue on bone) */
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--dot-scale, 1));
  transition: transform 60ms linear, opacity var(--base);
  opacity: 0;
  display: none;
}
body.has-fine-pointer .light, body.has-fine-pointer .dot { display: block; }
body.has-fine-pointer.is-lit .light { opacity: 1; }
body.has-fine-pointer.is-lit .dot { opacity: 1; }
body.is-hovering-link { --dot-scale: 3.2; }
body.is-over-field .dot { opacity: 0; }

/* The badge: airborne's rotating "start a project" disc, switched on when hovered */
.badge {
  position: fixed; right: clamp(1rem, 3vw, 2.25rem); bottom: clamp(1rem, 3vw, 2.25rem); z-index: 45;
  width: clamp(84px, 9vw, 128px); height: clamp(84px, 9vw, 128px);
  border-radius: 50%;
  background: var(--honey);
  color: var(--ink);
  display: grid; place-items: center;
  text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  transition: transform var(--base) var(--ease-out), box-shadow var(--base) var(--ease-out), background var(--base);
}
.badge:hover { background: var(--honey-soft); box-shadow: 0 18px 50px -12px var(--honey-glow); }
.badge__ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge:hover .badge__ring { animation-duration: 5s; }
.badge__ring text {
  font-family: var(--font-body); font-weight: 800; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge__bulb { width: 34%; height: 34%; position: relative; }
.badge__bulb .glass { fill: var(--bone); transition: fill var(--base); }
.badge:hover .badge__bulb .glass { fill: #fff6d6; }
.badge__bulb .rays { opacity: 0; transition: opacity var(--base); }
.badge:hover .badge__bulb .rays { opacity: 1; }
.badge.is-hidden { transform: translateY(160%); }

/* Loader: the IH disc that says HI, shown only while html.is-loading (set by an inline
   script before paint, cleared by js/main.js once fonts are ready). No JS, no loader. */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  visibility: hidden;
  transform: translateY(-101%);
  transition: transform 700ms var(--ease-out), visibility 0s linear 700ms;
}
html.is-loading .loader { visibility: visible; transform: none; transition: none; }
.loader__mark { width: clamp(96px, 14vw, 150px); height: auto; }
.loader__mark circle { fill: var(--honey); }
.loader__mark text {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  fill: var(--ink);
  transform-box: fill-box; transform-origin: center;
}
.loader__mark .l-i { animation: loader-i 2.6s var(--ease-out) infinite; }
.loader__mark .l-h { animation: loader-h 2.6s var(--ease-out) infinite; }
@keyframes loader-i { 0%, 38% { transform: none; } 50%, 88% { transform: translateX(46px); } 100% { transform: none; } }
@keyframes loader-h { 0%, 38% { transform: none; } 50%, 88% { transform: translateX(-24px); } 100% { transform: none; } }

/* Mobile menu: the full-screen sheet */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink);
  color: var(--bone);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 1rem var(--gutter) 2rem;
  transform: translateY(-100%);
  transition: transform var(--slow) var(--ease-out), visibility 0s linear var(--slow);
  visibility: hidden;
}
.menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { display: grid; align-content: center; gap: 0.25rem; }
.menu__link {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; text-decoration: none;
  font-size: clamp(2.6rem, 12vw, 5rem); line-height: 0.95;
  display: flex; align-items: baseline; gap: 0.5rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--base) var(--ease-out), transform var(--base) var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 200ms);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link small { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--muted); text-transform: none; }
.menu__link:hover { color: var(--honey); }
.menu__foot { color: var(--muted); font-size: var(--t-small); display: grid; gap: 0.35rem; }


/* 19 Contact page ------------------------------------------------------- */
.contact { padding-block: clamp(2.5rem, 6vw, 5rem) var(--band); }
.contact__title { margin-bottom: var(--stack); }
.contact__grid { display: grid; gap: var(--stack); align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 7rem); } }
.contact__aside { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .contact__aside { position: sticky; top: 6rem; } }
.aside-block { padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.aside-block .h-3 { font-size: 1.1rem; }
.aside-block p, .aside-block li { color: var(--muted); }
.aside-block ul { display: grid; gap: 0.35rem; }
.aside-block li { display: grid; grid-template-columns: 1.2em 1fr; gap: 0.4rem; }
.aside-block li svg { width: 1em; height: 1em; margin-top: 0.25em; color: var(--honey); }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; position: relative; }
.field__label { font-weight: 600; font-size: var(--t-small); display: flex; justify-content: space-between; gap: 1rem; }
.field__label .optional { color: var(--muted); font-weight: 500; }
.field__input {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 0.7em 0;
  transition: border-color var(--base), box-shadow var(--base);
  appearance: none;
}
.field__input::placeholder { color: rgba(244, 238, 226, 0.55); }
.field__input:focus { outline: none; border-color: var(--honey); box-shadow: 0 1.5px 0 var(--honey); }
.field__input:focus-visible { outline: none; }
textarea.field__input { min-height: 8rem; resize: vertical; }
select.field__input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%23f2c14e' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 0 center;
  padding-right: 1.5rem;
}
select.field__input option { color: var(--ink); background: var(--bone); }
.field__error {
  color: var(--honey); font-size: var(--t-small); min-height: 1.3em;
  display: flex; align-items: center; gap: 0.35em;
}
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--honey); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.55em 1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600; font-size: var(--t-small);
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast) var(--ease-out);
}
.chip:hover span { border-color: var(--honey); }
.chip input:checked + span { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.chip input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 3px; }
.chip input:checked + span::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink); }

.form__foot { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__foot { grid-template-columns: auto 1fr; align-items: center; } }
.form__note { color: var(--muted); font-size: var(--t-small); max-width: 40ch; }
.form__status { min-height: 1.5em; font-size: var(--t-small); }
.form__status.is-error { color: var(--honey); }
.btn.is-busy { pointer-events: none; opacity: 0.7; }
.btn.is-busy .btn__arrow { animation: spin 0.9s linear infinite; }

.sent {
  display: grid; gap: 1rem; align-content: start;
  padding: 2rem; border-radius: 20px;
  border: 1.5px solid var(--honey);
  background: var(--ink-2);
  animation: panel-in var(--slow) var(--ease-out);
}
.sent[hidden] { display: none; }
.sent__bulb { width: 3.5rem; height: 3.5rem; color: var(--honey); }
.sent__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: var(--t-1); line-height: 0.9; }
.form.is-sent { display: none; }

/* Legal pages (terms, privacy, cookies): a Read surface, one column, generous measure */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem) var(--band); }
.legal__head { display: grid; gap: 1rem; margin-bottom: var(--stack); }
.legal__meta { color: var(--muted); font-size: var(--t-small); }
.legal .prose { max-width: 68ch; }
.legal .prose h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--t-3); letter-spacing: -0.01em; margin: 2.25rem 0 0.75rem; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose p, .legal .prose li { color: rgba(244, 238, 226, 0.86); }
.legal .prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.legal .prose a { color: var(--honey); }
.legal__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: var(--stack); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--t-small); }

/* honeypot: off-canvas, never display:none (some spam filters look for it) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }


/* 20 Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__word, .hero__dot { transform: none; animation: none; }
  .reveal .w { opacity: 1; }
  .statement__title { font-stretch: 112%; }
  .light { display: none !important; }
  .badge__ring { animation: none; }
  .menu__link { opacity: 1; transform: none; }
  .ticker__track { transform: none !important; }
  .loader__mark .l-i, .loader__mark .l-h { animation: none; }
  .footer__wordmark text { transform: none !important; }
}
