/* ==========================================================================
   Orantec — site styles
   Light and dark themes: follows the OS setting, and a manual choice
   (data-theme on <html>, saved by the header toggle) overrides it.
   ========================================================================== */

/* ---- Tokens: brand and layout (both themes) ---------------------------- */
:root {
  color-scheme: light dark;
  --orange: #F39200;
  --on-orange: #0B0C0E;
  --ink: #0B0C0E;
  --paper: #F2F3F5;

  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1360px;
  --gutter: clamp(20px, 3vw, 40px);
  --header-h: 81px; /* measured and updated by site.js */

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pill: cubic-bezier(0.65, 0, 0.25, 1);
  /* Scroll distance for one step in the pinned home sections (same for both) */
  --step: clamp(200px, 26svh, 300px);

  /* light theme (default) */
  --bg: #F7F6F3;
  --bg-2: #EFEDE8;
  --surface: #FFFFFF;
  --surface-2: #F1EFEA;
  --line: #E2DFD8;
  --line-2: #D6D2CA;
  --line-3: #BEB9AF;
  --text: #0B0C0E;
  --muted: #45484E;
  --subtle: #5A5E66;
  --faint: #8A8D93;
  --wheel: #E7E4DD;
  --placeholder: #E9E6E0;
  --orange-text: #9A5200;
  --inverse-bg: #0B0C0E;
  --inverse-fg: #F2F3F5;
  --header-bg: rgba(247, 246, 243, 0.86);
  --code-key: #A3A9B3;
  --code-val: #FFC46B;
  --code-num: #4E545D;
}

/* ---- Dark theme: OS preference, unless the visitor chose light ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0C0E;
    --bg-2: #0E1013;
    --surface: #111316;
    --surface-2: #16191D;
    --line: #23262B;
    --line-2: #2A2E34;
    --line-3: #3A3E45;
    --text: #F2F3F5;
    --muted: #A3A9B3;
    --subtle: #868D98;
    --faint: #6E747E;
    --wheel: #181A1F;
    --placeholder: #15171B;
    --orange-text: #F39200;
    --inverse-bg: #F2F0EB;
    --inverse-fg: #0B0C0E;
    --header-bg: rgba(11, 12, 14, 0.86);
  }
}

/* ---- Dark theme: explicit choice, and sections that are always dark ----- */
:root[data-theme="dark"],
.force-dark {
  --bg: #0B0C0E;
  --bg-2: #0E1013;
  --surface: #111316;
  --surface-2: #16191D;
  --line: #23262B;
  --line-2: #2A2E34;
  --line-3: #3A3E45;
  --text: #F2F3F5;
  --muted: #A3A9B3;
  --subtle: #868D98;
  --faint: #6E747E;
  --wheel: #181A1F;
  --placeholder: #15171B;
  --orange-text: #F39200;
  --inverse-bg: #F2F0EB;
  --inverse-fg: #0B0C0E;
  --header-bg: rgba(11, 12, 14, 0.86);
}
.force-dark { color: var(--text); }

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); min-width: 350px; } /* narrower than this the page scrolls sideways rather than squashing */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 0.25s ease, text-decoration-color 0.25s ease; }
a:hover { text-decoration-color: currentColor; }
/* Links in content (not menus, buttons or whole-row links): in the text colour, underlined, turning orange on hover. The one rule for them all. */
.prose a, .lede a, .project__link, .partners__link, .enquiry__direct a, .form__privacy a, .consent a { color: var(--text); text-decoration: underline; transition: color 0.25s ease; }
.prose a:hover, .lede a:hover, .project__link:hover, .partners__link:hover, .enquiry__direct a:hover, .form__privacy a:hover, .consent a:hover { color: var(--orange-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.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-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 8px; background: var(--orange); color: var(--on-orange); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Type ---------------------------------------------------------------- */
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--orange-text); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.h-hero { font-weight: 700; font-size: clamp(56px, 7vw, 108px); line-height: 0.97; letter-spacing: -0.045em; }
.h-xl { font-weight: 700; font-size: clamp(44px, 5.5vw, 84px); line-height: 1; letter-spacing: -0.04em; }
.h-giant { font-weight: 700; font-size: clamp(80px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.05em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.dim { color: var(--faint); }

.prompt {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 20px; color: var(--muted);
}
.prompt__sigil { color: var(--orange-text); }
.prompt__cursor { width: 12px; height: 26px; background: var(--orange); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: #FFA41F; }
.btn--ghost { border-color: var(--line-3); color: var(--text); background: transparent; font-weight: 500; }
.btn--ghost:hover { border-color: var(--subtle); }
.btn--sm { min-height: 44px; padding: 0 20px; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.btn__key { font-family: var(--mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--line-3); }

/* ---- Ring (logo mark, service markers, wheel) ---------------------------- */
.ring .seg { fill: var(--ring-ink, currentColor); transition: fill 0.35s ease; }
.ring[data-lit="0"] .seg-0,
.ring[data-lit="1"] .seg-1,
.ring[data-lit="2"] .seg-2 { fill: var(--ring-lit, var(--orange)); }
.ring .seg.is-on { fill: var(--orange); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo { display: block; color: var(--text); }
.logo svg { height: 30px; width: auto; }
.logo:hover { text-decoration: none; }
.logo .logo__mark { fill: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 14px; }
.site-nav__list a[aria-current="page"] { color: var(--orange-text); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: top 0.3s var(--ease-pill), transform 0.3s var(--ease-pill) 0.05s, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav__cta { display: none; }
  .site-nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .site-nav__list a { display: block; padding: 14px 0; }
  .site-header[data-open="true"] .site-nav__list { display: flex; }
}

/* ---- Sliding "magnifier" chip group -------------------------------------- */
.chips { --chip-w: 150px; --chip-gap: 8px; --pill-x: 0px; --pill-w: var(--chip-w); position: relative; display: flex; gap: var(--chip-gap); }
.chip {
  position: relative; z-index: 1; flex: 0 1 var(--chip-w); min-width: 0; min-height: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-family: var(--mono); font-size: 14px; color: var(--subtle); cursor: pointer;
  transition: color 0.35s ease;
}
.chip[aria-pressed="true"] { color: var(--text); transition-delay: 0.3s; }
.chip .ring { width: 20px; height: 20px; flex: 0 0 auto; --ring-ink: var(--line-3); --ring-lit: var(--faint); }
.chip[aria-pressed="true"] .ring { --ring-ink: var(--text); --ring-lit: var(--orange); }
.chip[aria-pressed="true"] .ring .seg { transition-delay: 0.3s; }
.chips__pill {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: var(--pill-w);
  border: 1.5px solid var(--orange); border-radius: 999px; pointer-events: none;
  transform: translateX(var(--pill-x));
  transition: transform 0.65s var(--ease-pill), width 0.65s var(--ease-pill);
}

/* ---- Flip (clock-style) and fade groups ---------------------------------- */
.flip { display: grid; overflow: hidden; }
.flip > .flip__item { grid-area: 1 / 1; transform: translateY(-110%); transition: transform 0.6s var(--ease); }
.flip > .flip__item.is-current { transform: none; }
.flip > .flip__item.is-below { transform: translateY(110%); }
.flip > .flip__item.is-above { transform: translateY(-110%); }
.flip > .flip__item.no-anim { transition: none; }
.fade { display: grid; }
.fade > .fade__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.fade > .fade__item.is-current { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.3s, visibility 0s; }

/* ---- Home: scroll stage --------------------------------------------------- */
.stage { position: relative; }
.stage__inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 48px); padding-block: 48px 96px;
}
.stage__copy { min-width: 0; }
.stage__copy .chips { margin-bottom: 40px; }
.stage__word {
  font-weight: 700; font-size: clamp(56px, min(9.4vw, 17svh), 164px);
  line-height: 1; letter-spacing: -0.05em; padding-bottom: 0.06em;
}
.stage__word .flip__item { white-space: nowrap; }
.stage__strap { display: block; margin-top: 14px; font-weight: 600; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -0.03em; color: var(--faint); }
.stage__desc { margin-top: 30px; max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.stage__copy .btn-row { margin-top: 32px; }
.stage__visual { min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; }
.wheel {
  width: min(700px, 100%, 70svh); height: auto; aspect-ratio: 1 / 1;
  --ring-ink: var(--wheel); --rot: 0deg;
  transform: rotate(var(--rot)); transition: transform 0.75s var(--ease);
}
.stage__hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--subtle);
}
.stage__hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Code card (always dark, like an editor) */
.codecard {
  position: absolute; width: min(420px, 80%);
  border: 1px solid var(--line-3); border-radius: 14px; overflow: hidden;
  background: rgba(17, 19, 22, 0.95); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
}
.codecard__bar, .codecard__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.codecard__bar { background: var(--surface-2); border-bottom: 1px solid var(--line-3); }
.codecard__foot { border-top: 1px solid var(--line-3); font-size: 12px; color: var(--subtle); }
.codecard__file { flex: 1 1 auto; color: var(--text); line-height: 20px; }
.codecard__live { display: flex; align-items: center; gap: 8px; }
.codecard__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.code { padding: 18px 0; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.code__ln { display: flex; white-space: pre; }
.code__n { width: 44px; flex: 0 0 auto; padding-right: 16px; text-align: right; color: var(--code-num); user-select: none; }
.code__k { color: var(--code-key); }
.code__v { color: var(--code-val); }

/* Pinned, scroll-driven behaviour (large screens; class set by site.js) */
/* 3 steps: half a step before the first change, a full step between changes, half a step hold at the end */
html.js-pin .stage { height: calc(100svh - var(--header-h) + var(--step) * var(--steps, 2.5)); }
html.js-pin .stage__inner {
  position: sticky; top: var(--header-h);
  min-height: calc(100svh - var(--header-h)); padding-block: 24px 56px;
}
html.js-pin .stage__hint { display: flex; }

/* ---- Home: work ------------------------------------------------------------ */
.work-stage { position: relative; border-top: 1px solid var(--line); }
.work-stage__inner { padding-block: 112px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.work-split { display: flex; gap: clamp(14px, 3.5vw, 48px); align-items: center; }
.work-split__list { flex: 1 1 auto; min-width: 0; }
.work-all { margin-top: 28px; }
.log { border-top: 1px solid var(--line-2); }
.log li { border-bottom: 1px solid var(--line-2); }
.log button { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 22px 0; color: var(--faint); transition: color 0.3s ease; }
.log button { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.log__title { flex: 1 1 240px; font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.025em; }
.log__meta { flex: 0 1 260px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.log .is-current { color: var(--text); }
.log .is-current .log__meta { color: var(--muted); }
.log button:not(.is-current):hover { color: var(--muted); }
.preview {
  flex: 0 0 44%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; /* the pictures, then the caption of the one showing: a caption that wraps makes only that project's box taller */
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface);
}
.preview .flip { flex: none; aspect-ratio: 4 / 3; }
.preview .flip > .flip__item { display: flex; min-height: 0; }
.preview .shot { position: relative; flex: 1 1 auto; }
.preview .shot img { position: absolute; inset: 0; }
.cap-enter-active, .cap-leave-active { transition: opacity 0.2s ease; }
.cap-enter-from, .cap-leave-to { opacity: 0; }
.preview__cap {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px;
  border-top: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  flex-wrap: wrap; row-gap: 4px; /* the type and partner drop under the name when they do not fit beside it */
}
.preview__cap span { flex: 0 1 auto; max-width: 100%; }
.preview__cap span:first-child { color: var(--text); }

/* The project picture, or its name where it has none */
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:has(img) { padding: 0; }
.shot {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  background: var(--placeholder); color: var(--subtle); font-size: 15px; text-align: center; padding: 20px;
}

/* each project (or service) takes one step of scroll; --steps is set by the page: the count less a half */
html.js-pin .work-stage { height: calc(100svh - var(--header-h) + var(--step) * var(--steps, 4.5)); }
html.js-pin .work-stage__inner {
  position: sticky; top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; padding-block: 40px;
}

/* ---- Audience switch -------------------------------------------------------- */
.aud {
  --band-bg: var(--orange); --band-fg: #0B0C0E; --box-fg: #F2F3F5;
  background: var(--band-bg); color: var(--band-fg);
  transition: background-color 0.7s ease, color 0.7s ease;
}
.aud[data-aud="studio"] { --band-bg: var(--inverse-bg); --band-fg: var(--inverse-fg); --box-fg: var(--inverse-bg); }
.aud__inner { padding-block: 104px 112px; }
.aud__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 64px; }
.aud__label { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.chips--band { --chip-w: 220px; }
.chips--band .chip {
  flex: 0 0 var(--chip-w); /* on desktop these keep their width instead of shrinking with the row (the phone layout shares the row, below) */
  min-height: 52px; font-family: var(--font); font-size: 18px; font-weight: 500;
  color: var(--band-fg); border-color: color-mix(in srgb, var(--band-fg) 22%, transparent);
  transition: border-color 0.7s ease, color 0.7s ease;
}
.chips--band .chip[aria-pressed="true"] { font-weight: 700; }
.chips--band .chips__pill { border: 2px solid var(--band-fg); transition: transform 0.65s var(--ease-pill), width 0.65s var(--ease-pill), border-color 0.7s ease; }
.aud__panels { display: grid; }
.aud__panel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.aud__panel.is-current {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s ease 0.2s, transform 0.6s var(--ease-out) 0.2s, visibility 0s;
}
.aud__intro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; }
.aud__title { flex: 1 1 640px; min-width: 0; font-weight: 700; font-size: clamp(44px, 5.2vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.aud__side { flex: 1 1 340px; min-width: 0; max-width: 420px; font-size: 19px; line-height: 1.55; }
.aud__side .btn { margin-top: 24px; background: var(--band-fg); color: var(--box-fg); }
.aud__relay-title { margin: 72px 0 16px; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.relay { display: flex; flex-wrap: wrap; gap: 12px; }
.relay li {
  flex: 1 1 220px; min-width: 0; min-height: 168px; padding: 22px 24px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: var(--band-fg); color: var(--box-fg); border: 2px solid var(--band-fg);
  transition: background-color 0.7s ease, color 0.7s ease, border-color 0.7s ease;
}
.relay li.is-you { background: transparent; color: var(--band-fg); border-style: dashed; }
.relay__top { display: flex; justify-content: space-between; align-items: center; }
.relay__step { font-family: var(--mono); font-size: 13px; opacity: 0.85; }
.relay__owner { font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.relay .ring { width: 36px; height: 36px; --ring-ink: var(--box-fg); }
.relay .pen { width: 32px; height: 32px; }
.points { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.points li { flex: 1 1 280px; min-width: 0; padding-top: 18px; border-top: 2px solid var(--band-fg); transition: border-color 0.7s ease; }
.points span { font-family: var(--mono); font-size: 13px; }
.points p { margin-top: 10px; font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }

/* ---- Statement, CTA, footer ------------------------------------------------- */
.statement { padding-block: 136px; }
.statement p { max-width: 1040px; font-weight: 600; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.2; letter-spacing: -0.025em; }
.cta { background: #000000; border-top: 1px solid var(--line); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 120px; }
.cta .ring { width: 180px; height: 180px; flex: 0 0 auto; --ring-ink: var(--text); }
.cta__body { flex: 1 1 560px; min-width: 0; }
.cta__title { margin-top: 24px; font-weight: 700; font-size: clamp(48px, 5.6vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }
.cta .btn { margin-top: 40px; }
.site-footer { background: #000000; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 32px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---- Work page --------------------------------------------------------------- */
.page-hero { padding-block: 72px 56px; }
.page-hero .eyebrow, .page-hero .prompt { margin-bottom: 24px; }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-hero__row .lede { max-width: 460px; }
.filters { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.filters .chip { flex: 0 0 var(--chip-w); } /* the filters keep their width instead of shrinking with the row (the phone layout below shares the row) */
.projects { display: flex; flex-wrap: wrap; gap: 56px 32px; padding-bottom: 128px; }
.projects { position: relative; }
.project { flex: 1 1 520px; min-width: 0; }
/* a filter: projects fade and rise in and out, and the others slide to their new places */
.project-enter-active, .project-leave-active { transition: opacity 0.35s ease, transform 0.35s ease; }
.project-move { transition: transform 0.45s var(--ease-pill); }
.project-enter-from, .project-leave-to { opacity: 0; transform: translateY(14px); }
.project-leave-active { position: absolute; }
.project--feature { flex-basis: 100%; }
.project__body { display: flex; flex-direction: column; gap: 20px; }
.project__media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; }
.project--feature .project__media { aspect-ratio: 21 / 9; }
.project__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.project__title { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.project--feature .project__title { font-size: clamp(48px, 5vw, 72px); }
.project__summary { max-width: 620px; color: var(--subtle); }
.project__features { display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.project__features span { color: var(--subtle); }
.project__features span::after { content: ":"; }
.project__link { font-family: var(--mono); font-size: 14px; }

/* ---- About page --------------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: 72px 120px; }
.about-hero__copy { min-width: 0; }
.about-hero__copy .eyebrow { margin-bottom: 28px; }
.about-hero__text { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.about-hero__text p { flex: 1 1 280px; }
.about-hero__art { min-width: 0; display: flex; justify-content: center; overflow: hidden; }
.about-hero__art .ring { width: min(460px, 100%); height: auto; aspect-ratio: 1 / 1; --ring-ink: var(--wheel); animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.band { border-top: 1px solid var(--line); }
.band--alt { background: var(--bg-2); }
.band__inner { padding-block: 120px; }
.band .section-head .lede { max-width: 460px; }
.progress { position: relative; height: 2px; background: var(--line); margin: 16px 0 40px; }
.progress__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--orange); transition: width 0.7s var(--ease-pill); }
.steps { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.steps li { flex: 1 1 260px; min-width: 0; }
.step {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left;
  color: var(--faint); cursor: pointer; transition: color 0.4s ease;
}
.step .ring { width: 80px; height: 80px; --ring-ink: var(--line-3); --ring-lit: var(--faint); }
.step__num { display: block; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--subtle); transition: color 0.4s ease; }
.step__title { display: block; margin-top: 10px; font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -0.025em; }
.step__text { display: block; margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--subtle); transition: color 0.4s ease; }
.step[aria-pressed="true"] { color: var(--text); }
.step[aria-pressed="true"] .step__num { color: var(--orange-text); }
.step[aria-pressed="true"] .step__text { color: var(--muted); }
.step[aria-pressed="true"] .ring { --ring-ink: var(--text); --ring-lit: var(--orange); }
.step--all[aria-pressed="true"] .ring { --ring-lit: var(--text); }
.values { display: flex; flex-wrap: wrap; }
.values > div { flex: 1 1 520px; min-width: 0; padding: 36px 40px 40px 0; border-top: 1px solid var(--line-2); }
.values .eyebrow { margin-bottom: 18px; }
.values h3 { margin-bottom: 14px; font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; }
.values p { max-width: 520px; font-size: 18px; color: var(--muted); }
/* the rows share the columns (name, work, link), so the work lines up from one partner to the next */
.partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) max-content; column-gap: 40px; border-top: 1px solid var(--line-2); }
.partner { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line-2); }
.partners__name { font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.partners__work { grid-column: 2; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--muted); }
.partners__link { grid-column: 3; justify-self: start; font-family: var(--mono); font-size: 14px; }

/* ---- Contact page ---------------------------------------------------------------- */
.contact { padding-block: 64px 128px; }
.contact .prompt { margin-bottom: 24px; }
.contact__grid { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__main { min-width: 0; }
.form { display: flex; flex-direction: column; gap: 40px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .field__label { padding: 0; margin-bottom: 16px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.form legend span, .field__label span { color: var(--faint); }
.chips--form { --chip-w: 200px; }
.chips--form .chip { min-height: 52px; font-family: var(--font); font-weight: 600; font-size: 17px; border-color: var(--line-2); }
.svcs { display: flex; flex-wrap: wrap; gap: 10px; }
.svc {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent;
  font-family: var(--mono); font-size: 15px; color: var(--muted); cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.svc .ring { width: 24px; height: 24px; --ring-ink: var(--line-3); --ring-lit: var(--faint); }
.svc[aria-pressed="true"] { border-color: var(--orange); color: var(--text); background: color-mix(in srgb, var(--orange) 9%, transparent); }
.svc[aria-pressed="true"] .ring { --ring-ink: var(--text); --ring-lit: var(--orange); }
.fields { display: flex; flex-wrap: wrap; gap: 24px; }
.field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.form > .field { flex: none; }
.field .field__label { margin-bottom: 10px; }
.input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: 17px;
}
textarea.input { min-height: 180px; padding: 16px 18px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.field__error, .form__error { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--error, #d6453d); }
.field.is-invalid .input { border-color: var(--error, #d6453d); }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.choice input { accent-color: var(--orange); width: 18px; height: 18px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; } /* the hidden box that robots fill in */
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.form__submit .btn { min-height: 60px; padding: 0 34px; font-size: 18px; }
.form__privacy { max-width: 360px; font-size: 14px; line-height: 1.5; color: var(--subtle); }
.sent { padding: 56px 48px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); }
.sent .eyebrow { margin-bottom: 20px; font-size: 15px; }
.sent h2 { font-weight: 700; font-size: 48px; line-height: 1.05; letter-spacing: -0.035em; }
.sent p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.sent .btn-row { margin-top: 32px; }
.enquiry {
  position: sticky; top: calc(var(--header-h) + 24px);
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
}
.enquiry .ring { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1 / 1; --ring-ink: var(--wheel); }
.enquiry__summary { text-align: center; font-family: var(--mono); font-size: 15px; color: var(--faint); transition: color 0.3s ease; }
.enquiry__summary.has-picks { color: var(--text); }
.enquiry__direct { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.enquiry__direct a { font-weight: 600; font-size: 22px; }

/* ---- Medium screens ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .chip__num { display: none; }
  /* design partners: the name takes a row of its own, with the work and the link under it, until there is one column */
  .partners { grid-template-columns: minmax(0, 1fr) max-content; }
  .partner { row-gap: 14px; padding: 32px 0; }
  .partners__name { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .partners__work { grid-column: 1; }
  .partners__link { grid-column: 2; white-space: nowrap; }
}
@media (max-width: 819px) {
  .stage__inner { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__art .ring { width: min(260px, 60%); }
  .contact__grid { grid-template-columns: 1fr; }
  .enquiry { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; padding: 24px; }
  .enquiry .ring { width: 96px; max-width: 96px; }
  .enquiry__summary { flex: 1 1 auto; text-align: left; font-size: 13px; }
}

/* ---- Small screens ------------------------------------------------------------------ */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 15px; }
  .site-header__inner { height: 64px; }
  .logo svg { height: 24px; }
  .btn { min-height: 46px; padding: 0 20px; font-size: 15px; gap: 8px; }
  .btn-row { gap: 10px; }
  .eyebrow, .meta { font-size: 12px; }
  .lede { font-size: 16px; }
  .prompt { font-size: 15px; gap: 8px; }
  .prompt__cursor { width: 9px; height: 19px; }
  .h-hero { font-size: 40px; }
  .h-xl { font-size: 34px; }
  .h-giant { font-size: 64px; }

  /* Chips share the row equally; the pill follows the real chip size */
  .chips { --chip-gap: 6px; }
  .chips .chip { flex: 1 1 0; width: auto; min-width: 0; min-height: 40px; padding: 0 6px; gap: 6px; font-size: 12px; }
  .chip .ring { width: 15px; height: 15px; }
  .chip__num { display: none; }
  .chips--band, .chips--form { width: 100%; }
  .chips--band .chip, .chips--form .chip { min-height: 46px; font-size: 15px; }

  /* Home: stage */
  .stage__inner { gap: 28px; padding-block: 28px 56px; }
  .stage__copy .chips { margin-bottom: 28px; }
  .stage__word { font-size: 56px; }
  .stage__strap { margin-top: 8px; font-size: 24px; }
  .stage__desc { margin-top: 16px; font-size: 16px; }
  .stage__copy .btn-row { margin-top: 22px; flex-wrap: nowrap; }
  .stage__copy .btn { padding: 0 18px; white-space: nowrap; }
  .wheel { width: 100%; }
  .codecard { width: 92%; border-radius: 12px; }
  .codecard__bar, .codecard__foot { padding: 9px 12px; font-size: 11px; }
  .code { padding: 12px 0; font-size: 11.5px; line-height: 1.8; }
  .code__n { width: 30px; padding-right: 10px; }

  /* Home: selected work — screenshot stays beside the list */
  .work-stage__inner { padding-block: 56px; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .section-head .eyebrow { margin-bottom: 10px; }
  .work-split { align-items: flex-start; }
  .log button { flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 0; }
  .log__title { flex: none; font-size: 20px; }
  .log__meta { flex: none; font-size: 11px; }
  .preview .flip { flex: 1 1 auto; aspect-ratio: auto; }
  .preview { flex-basis: 44%; aspect-ratio: 3 / 4; border-radius: 12px; position: sticky; top: calc(var(--header-h) + 12px); }
  .preview__cap { display: none; }
  .shot { padding: 10px; font-size: 12px; }

  /* Home: who are you? */
  .aud__inner { padding-block: 56px 64px; }
  .aud__top { margin-bottom: 32px; gap: 14px; }
  .aud__intro { gap: 18px; }
  .aud__title { font-size: 34px; }
  .aud__side { font-size: 16px; }
  .aud__side .btn { margin-top: 16px; }
  .aud__relay-title { margin: 36px 0 12px; font-size: 12px; }
  .relay { gap: 8px; }
  .relay li { flex: 1 1 calc(50% - 4px); min-height: 104px; padding: 14px 16px; border-radius: 12px; gap: 12px; }
  .relay__step { font-size: 11px; }
  .relay__owner { font-size: 22px; }
  .relay .ring { width: 26px; height: 26px; }
  .relay .pen { width: 24px; height: 24px; }
  .points { margin-top: 32px; gap: 16px; }
  .points li { padding-top: 12px; }
  .points p { margin-top: 6px; font-size: 17px; }

  /* Statement, CTA, footer */
  .statement { padding-block: 64px; }
  .statement p { font-size: 24px; }
  .cta__inner { padding-block: 64px; gap: 28px; }
  .cta .ring { width: 84px; height: 84px; }
  .cta__title { margin-top: 16px; font-size: 36px; }
  .cta .btn { margin-top: 24px; }
  .site-footer__inner { padding-block: 24px; font-size: 12px; }

  /* Work page */
  .page-hero { padding-block: 40px 32px; }
  .page-hero .eyebrow, .page-hero .prompt { margin-bottom: 14px; }
  .page-hero__row { gap: 16px; }
  .filters { margin-top: 28px; padding-top: 18px; gap: 12px; }
  .filters .chips { width: 100%; }
  .projects { gap: 36px; padding-bottom: 64px; }
  .project { flex-basis: 100%; }
  .project__body { gap: 12px; }
  .project__media { border-radius: 12px; }
  .project--feature .project__media { aspect-ratio: 16 / 10; }
  .project__title, .project--feature .project__title { font-size: 28px; }
  .project__summary { font-size: 15px; }
  .project__features { font-size: 12px; }

  /* About page */
  .about-hero { padding-block: 40px 64px; gap: 32px; }
  .about-hero__copy .eyebrow { margin-bottom: 16px; }
  .about-hero__text { margin-top: 24px; gap: 14px; font-size: 16px; }
  .band__inner { padding-block: 64px; }
  .progress { margin: 8px 0 28px; }
  .steps { gap: 28px 16px; }
  .steps li { flex: 1 1 calc(50% - 8px); }
  .step .ring { width: 48px; height: 48px; }
  .step__num { margin-top: 14px; font-size: 11px; }
  .step__title { margin-top: 6px; font-size: 22px; }
  .step__text { margin-top: 8px; font-size: 14px; }
  .values > div { flex-basis: 100%; padding: 22px 0 26px; }
  .values .eyebrow { margin-bottom: 10px; }
  .values h3 { margin-bottom: 8px; font-size: 24px; }
  .values p { font-size: 15px; }
  .partners, .partner { grid-template-columns: minmax(0, 1fr); }
  .partner { padding: 24px 0; gap: 8px; }
  .partners__name { font-size: 30px; }
  .partners__work, .partners__link { grid-column: 1; font-size: 12px; white-space: normal; }

  /* Contact page */
  .contact { padding-block: 40px 64px; }
  .contact .prompt { margin-bottom: 14px; }
  .contact__grid { margin-top: 36px; gap: 32px; }
  .form { gap: 26px; }
  .form legend, .field__label { margin-bottom: 10px; font-size: 12px; }
  .svcs { gap: 8px; }
  .svc { min-height: 44px; padding: 0 14px 0 10px; gap: 8px; font-size: 13px; }
  .svc .ring { width: 18px; height: 18px; }
  .fields { gap: 18px; }
  .input { min-height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px; }
  textarea.input { min-height: 140px; padding: 12px 14px; }
  .form__submit .btn { min-height: 50px; padding: 0 26px; font-size: 16px; }
  .form__privacy { font-size: 13px; }
  .enquiry__direct { padding-top: 16px; }
  .enquiry__direct a { font-size: 18px; }
  .sent { padding: 28px 20px; }
  .sent h2 { font-size: 30px; }
  .sent p { font-size: 16px; }
}

/* ---- Reduced motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Text pages (privacy and the like): a page's Body, as plain readable prose ---------- */
.prose { padding-bottom: 96px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.prose > * { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.prose th { color: var(--text); font-weight: 600; }

/* ---------- Cookie banner and the footer's Cookie settings button ---------- */
.linkbtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent {
  position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: 16px; max-width: 760px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 20px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-3); border-radius: 12px; box-shadow: 0 8px 32px rgb(0 0 0 / 0.25);
  font-size: 15px; line-height: 1.5;
}
.consent p { flex: 1 1 320px; margin: 0; color: var(--muted); }
.consent__buttons { display: flex; gap: 12px; }
