/* ==========================================================================
   NxtPatch Creative — styles.css
   --------------------------------------------------------------------------
   1. BRAND TOKENS   ← change colours / fonts / spacing here only
   2. Base
   3. Layout & utilities
   4. Components (buttons, header, hero, work, services, studio,
      process, contact, footer, project dialog)
   5. Motion & responsive
   ========================================================================== */

/* 1. BRAND TOKENS ---------------------------------------------------------- */
:root {
  /* Brand palette — the only three colours used on this site */
  --ink:   #0A0A0A;   /* Ink Black  */
  --red:   #EC2027;   /* Brand Red  */
  --paper: #F6F5F2;   /* Paper      */

  /* Tints are transparency of the brand colours, never new hues */
  --paper-80: rgb(246 245 242 / 0.80);
  --paper-64: rgb(246 245 242 / 0.64);
  --paper-12: rgb(246 245 242 / 0.12);
  --paper-06: rgb(246 245 242 / 0.06);
  --ink-72:   rgb(10 10 10 / 0.72);
  --ink-12:   rgb(10 10 10 / 0.12);

  /* Typography — Poppins (primary), IBM Plex Mono (labels / utility) */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero:  clamp(2.75rem, 7.4vw, 7rem);
  --fs-h2:    clamp(2rem, 4.4vw, 3.75rem);
  --fs-h3:    1.25rem;
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 9.5rem);
  --max: 1320px;
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 3. Layout & utilities ---------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-line { border-top: 1px solid var(--paper-12); }
.mono, .label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--paper-64); margin-bottom: 1.25rem; }
.sr-only {
  position: absolute; 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: 1rem; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* The brand ✕ — inherits size from the text around it */
/* Sized to sit on the baseline at ~cap height, like the brand reference */
.x-mark { width: .72em; height: .72em; color: var(--red); display: inline-block; vertical-align: baseline; flex: none; }
.accent { color: var(--red); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .5rem 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .label { grid-column: 1 / -1; margin: 0; }
.section-intro { color: var(--paper-64); margin: 0; max-width: 32ch; text-align: right; }

/* 4. Components ------------------------------------------------------------ */

/* Buttons */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: 0 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: var(--radius);
  font: 600 var(--fs-small)/1 var(--font-sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { --btn-bg: var(--red); --btn-fg: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .x-mark { width: .75em; height: .75em; color: currentColor; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--paper); border-color: var(--paper-64); }
.btn-ghost:hover { --btn-bg: transparent; --btn-fg: var(--paper); border-color: var(--red); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }

.link-arrow {
  font: 500 var(--fs-small) var(--font-sans); text-decoration: none;
  border-bottom: 1px solid var(--paper-64); padding-bottom: 2px; white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--red); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(10 10 10 / .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--paper-12);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { width: 140px; height: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a { display: inline-flex; align-items: baseline; gap: .45rem; font-size: .9375rem; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn) { padding-block: .75rem; color: var(--paper-80); transition: color .25s; }
.site-nav a:not(.btn):hover { color: var(--paper); }
.site-nav a .mono { font-size: .6875rem; color: var(--red); letter-spacing: .04em; }
.site-nav .btn { align-items: center; }
.site-nav .btn .mono { color: inherit; opacity: .6; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); overflow: hidden; isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgb(10 10 10 / .55) 38%, rgb(10 10 10 / 0) 65%),
    linear-gradient(0deg, var(--ink) 0%, rgb(10 10 10 / 0) 28%);
}
/* Static fallback if WebGL isn't available */
.hero.no-webgl #hero-canvas { display: none; }
.hero.no-webgl {
  background-image:
    radial-gradient(var(--paper-12) 1px, transparent 1.4px);
  background-size: 28px 28px;
}

.hero-inner { padding-block: 4rem 7rem; }
.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--paper-80);
  border: 1px solid var(--paper-12); background: rgb(10 10 10 / .5);
  padding: .55rem .9rem; border-radius: 999px; margin-bottom: 2rem;
}
.eyebrow .sep { color: var(--paper-64); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgb(236 32 39 / .6); animation: pulse 2.4s infinite; }
.hero-title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.045em; line-height: .98; max-width: 11ch; }
.hero-title .x-mark { width: .72em; height: .72em; margin: 0 .12em 0 .06em; }
.hero-lede { max-width: 44ch; margin: 2rem 0 2.5rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--paper-80); font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 1.75rem; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--paper-64);
}
.hero-scroll { display: inline-flex; align-items: center; gap: .75rem; }
.scroll-line { width: 48px; height: 1px; background: var(--paper-12); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: scan 2.2s var(--ease) infinite; }


/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.work-card { grid-column: span 1; }
.work-card.is-featured { grid-column: 1 / -1; }
.work-card button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
}
.work-card button:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: var(--radius); }
.work-media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--paper-06); border: 1px solid var(--paper-12);
}
.work-card.is-featured .work-media { aspect-ratio: 16 / 8; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card button:hover .work-media img,
.work-card button:hover .work-video { transform: scale(1.035); }
/* Shown until a cover image exists */
.work-fallback {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background-image: radial-gradient(var(--paper-12) 1px, transparent 1.4px); background-size: 22px 22px;
}
.work-fallback strong { display: block; font-size: clamp(2rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.work-fallback small { display: block; margin-top: .75rem; color: var(--paper-64); }
.work-media.is-missing img { display: none; }
.work-media.is-missing .work-fallback { display: grid; }

.work-hud {
  position: absolute; left: 1rem; right: 1rem; top: 1rem;
  display: flex; justify-content: space-between; pointer-events: none;
}
.chip {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .65rem; border-radius: 999px; background: rgb(10 10 10 / .72); color: var(--paper);
  border: 1px solid var(--paper-12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.work-view {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .875rem var(--font-sans); background: var(--paper); color: var(--ink);
  padding: .7rem 1rem; border-radius: var(--radius);
  min-height: 44px; border: 1px solid var(--paper);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.work-card button:hover .work-view, .work-card button:focus-visible .work-view { background: var(--red); border-color: var(--red); color: var(--ink); }

.work-info { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.5rem; padding-top: 1.25rem; }
.work-info h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.025em; }
.work-info .mono { color: var(--paper-64); align-self: center; }
.work-info p { grid-column: 1 / -1; color: var(--paper-80); margin: .25rem 0 0; max-width: 62ch; }
.tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tags li { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-80); border: 1px solid var(--paper-12); padding: .35rem .6rem; border-radius: 999px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper-12); border-left: 1px solid var(--paper-12); }
.service {
  position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 260px;
  border-right: 1px solid var(--paper-12); border-bottom: 1px solid var(--paper-12);
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
  transition: background .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service:hover { background: var(--paper-06); }
.service:hover::before { transform: scaleX(1); }
.service-num { color: var(--red); }
.service h3 { margin-top: auto; font-size: 1.5rem; }
.service p { color: var(--paper-64); margin: 0; font-size: var(--fs-small); }

/* Studio (Paper section) */
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .label { color: var(--ink-72); }
.section-paper .link-arrow { border-bottom-color: var(--ink-72); }
.section-paper .work-media { background: var(--ink-12); border-color: var(--ink-12); }
.section-paper .work-fallback { background-image: radial-gradient(var(--ink-12) 1px, transparent 1.4px); }
.section-paper .work-fallback small,
.section-paper .work-info .mono,
.section-paper .work-info p { color: var(--ink-72); }
.section-paper .tags li { color: var(--ink-72); border-color: var(--ink-12); }
.studio { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.studio-copy h2 { margin-bottom: 2rem; }
.studio-copy h2 em { font-style: normal; color: var(--red); }
.studio-copy p { color: var(--ink-72); max-width: 54ch; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--ink-12); }
.principles li { padding-block: 1.75rem; border-bottom: 1px solid var(--ink-12); display: grid; grid-template-columns: 4.5rem 1fr; gap: .25rem 1rem; }
.principles .mono { color: var(--ink-72); padding-top: .3rem; grid-row: span 2; }
.principles h3 { font-size: 1.5rem; }
.principles p { color: var(--ink-72); margin: 0; font-size: var(--fs-small); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.process li { position: relative; padding-top: 2rem; }
.process li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--paper-12);
}
.process li::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--red); border-radius: 50%;
}
.process-step { color: var(--paper-64); display: block; margin-bottom: 2.5rem; }
.process h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .9rem; }
.process p { color: var(--paper-64); font-size: var(--fs-small); margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); }
.contact-copy h2 { margin-bottom: 1.5rem; }
.contact-copy > p { color: var(--paper-80); max-width: 40ch; }
.contact-list { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.contact-list div { border-top: 1px solid var(--paper-12); padding-top: 1rem; }
.contact-list dt { color: var(--paper-64); margin-bottom: .25rem; }
.contact-list dd { margin: 0; font-size: 1.125rem; font-weight: 500; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--red); }

.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-80); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem;
  background: var(--paper-06); color: var(--paper);
  border: 1px solid var(--paper-12); border-radius: var(--radius);
  font: 400 1rem/1.5 var(--font-sans);
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink); color: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--paper-64); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--paper-12); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.25rem; margin: 0; color: var(--paper-80); }
.form-status.is-error { color: var(--red); }

/* Footer */
.site-footer { border-top: 1px solid var(--paper-12); padding-block: 3.5rem 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-inner img { width: 150px; height: auto; }
.social { display: flex; gap: 1.75rem; }
.social a { text-decoration: none; font-weight: 500; color: var(--paper-80); padding-block: .75rem; display: inline-block; }
.social a:hover { color: var(--paper); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; color: var(--paper-64); }

/* Project dialog */
.project-dialog {
  width: min(1100px, 100vw - 2rem); max-height: calc(100svh - 2rem); padding: 0;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink-12); border-radius: var(--radius);
}
.project-dialog::backdrop { background: rgb(10 10 10 / .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd-inner { position: relative; padding: clamp(1.25rem, 4vw, 3rem); }
.pd-close {
  position: sticky; top: 0; float: right; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius); cursor: pointer;
}
.pd-close .x-mark { color: var(--paper); width: 18px; height: 18px; }
.pd-close:hover .x-mark { color: var(--red); }
.pd-head { max-width: 60ch; margin-bottom: 2rem; }
.pd-head .mono { color: var(--ink-72); display: block; margin-bottom: 1rem; }
.pd-head h2 { margin-bottom: 1rem; }
.pd-head p { color: var(--ink-72); }
.pd-head .pd-site { display: inline-block; margin-top: 1.25rem; color: var(--ink); border-bottom-color: var(--ink-72); }
.pd-head .pd-site:hover { border-color: var(--red); }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; padding-block: 1.5rem; margin-bottom: 2rem; border-block: 1px solid var(--ink-12); }
.pd-meta dt { color: var(--ink-72); margin-bottom: .35rem; }
.pd-meta dd { margin: 0; font-size: var(--fs-small); }
.pd-gallery { display: grid; gap: 1rem; }
.pd-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-12); border: 1px solid var(--ink-12); }
.pd-gallery img { width: 100%; height: auto; }
.pd-gallery figcaption { padding: .75rem 1rem; font-size: .875rem; color: var(--ink-72); }
.pd-gallery figure.is-missing { min-height: 180px; display: grid; place-items: center; }
.pd-gallery figure.is-missing img { display: none; }
/* Live site embed (projects with a `live` URL) */
.pd-live { margin-bottom: 2rem; border: 1px solid var(--ink-12); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.pd-live-bar { display: flex; align-items: center; gap: 1rem; padding: .6rem 4.5rem .6rem 1rem; color: var(--paper); } /* right padding keeps the link clear of the sticky close button */
.pd-live-dots { display: flex; gap: .4rem; }
.pd-live-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-12); }
.pd-live-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper-64); }
.pd-live-bar a { font-size: .875rem; font-weight: 600; color: var(--paper); text-decoration: none; white-space: nowrap; padding-block: .5rem; }
.pd-live-bar a:hover { color: var(--red); }
.pd-live iframe { display: block; width: 100%; height: min(72svh, 760px); border: 0; background: var(--ink); }
.pd-link { margin-top: 2rem; }
.pd-link .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.pd-link .btn:hover { --btn-bg: var(--red); --btn-fg: var(--ink); }

/* 5. Motion & responsive --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(236 32 39 / .6); }
  70% { box-shadow: 0 0 0 10px rgb(236 32 39 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(236 32 39 / 0); }
}

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .studio, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand img { width: 120px; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 48px; height: 48px;
    background: transparent; border: 1px solid var(--paper-12); border-radius: var(--radius); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; background: var(--ink); padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--paper-12); }
  .site-nav a:not(.btn) { font-size: 1.75rem; font-weight: 600; padding-block: 1rem; width: 100%; color: var(--paper); }
  .site-nav li:last-child { border: 0; margin-top: 1.5rem; }
  .site-nav .btn { width: 100%; min-height: 56px; font-size: 1rem; }
  .site-header.menu-open { background: var(--ink); }

  .hero-vignette { background: linear-gradient(0deg, var(--ink) 0%, var(--ink) 38%, rgb(10 10 10 / 0) 62%); }
  .hero-inner { padding-block: 40svh 6rem; }
  .hero-meta #patch-version { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-intro { text-align: left; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.is-featured .work-media { aspect-ratio: 4 / 3; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services, .process { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .eyebrow { border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
