/* ============================================================
   Jax&Noah — Daylight Systems
   Cool daylight paper · near-black ink · conifer green · metal sky
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/splinemono.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper-0: #f6f7f3;
  --paper-1: #ecefe9;
  --ink: #161b18;
  --ink-2: #0c100e;
  --ink-soft: #3a423d;
  --green: #2e5e46;
  --sky: #7fa0b4;
  --sky-deep: #39607a;
  --dawn: #e8c9a8;

  --hairline: color-mix(in srgb, var(--ink) 12%, transparent);
  --hairline-light: color-mix(in srgb, var(--paper-0) 16%, transparent);

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --grain-o: 0.14;
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper-0);
  background-image: url("../textures/paper.jpg");
  background-size: 512px;
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--sky) 36%, transparent); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper-0);
  font-family: var(--mono);
  font-size: 0.75rem;
  border-radius: 4px;
  transition: top 0.15s;
}
.skip:focus { top: 1rem; color: var(--paper-0); }

/* ---------- Film grain (whole page) ---------- */
.grain {
  position: fixed;
  inset: -128px;
  z-index: 90;
  pointer-events: none;
  background: url("../textures/grain.jpg");
  background-size: 256px;
  mix-blend-mode: soft-light;
  opacity: var(--grain-o);
  animation: grain-shift 1.6s steps(8) infinite;
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  12.5%{ background-position: -64px 32px; }
  25%  { background-position: 48px -80px; }
  37.5%{ background-position: -96px -48px; }
  50%  { background-position: 80px 64px; }
  62.5%{ background-position: -32px 96px; }
  75%  { background-position: 96px -32px; }
  87.5%{ background-position: -80px -96px; }
  100% { background-position: 0 0; }
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: 1.1em;
  color: var(--green);
  margin: 0 0.015em;
}
.wordmark:hover { color: var(--ink); }
.wordmark--nav { font-size: 1.2rem; }
.wordmark--hero {
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.98;
  font-weight: 640;
  font-variation-settings: "opsz" 96;
}
.wordmark--foot { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--paper-0); }
.wordmark--foot:hover { color: var(--paper-0); }
.wordmark--foot em { color: color-mix(in srgb, var(--green) 55%, var(--paper-0)); }

/* ---------- Masthead ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.15rem var(--gutter);
  transition: padding 0.35s var(--ease-out), background-color 0.35s, box-shadow 0.35s;
}
.masthead.is-scrolled {
  padding-block: 0.7rem;
  background: color-mix(in srgb, var(--paper-0) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 var(--hairline);
}
.masthead__nav { display: flex; gap: 1.8rem; }
.masthead__nav a {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 480;
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead__nav a:hover { color: var(--ink); }

/* ---------- Scene 1 · Morning Air ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
}
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(180deg,
      #d7e2e6 0%,
      #dfe8e4 34%,
      #ece9dc 58%,
      #f2e6d2 72%,
      var(--paper-0) 100%);
}
.hero__film {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--paper-0) 18%, transparent) 0%,
      color-mix(in srgb, var(--paper-0) 28%, transparent) 42%,
      color-mix(in srgb, var(--paper-0) 88%, transparent) 78%,
      var(--paper-0) 100%);
}
.hero__bloom {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 46%;
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--dawn) 85%, var(--paper-0)) 0%,
    color-mix(in srgb, var(--dawn) 40%, transparent) 42%,
    transparent 72%);
  filter: blur(28px);
  animation: bloom-drift 70s ease-in-out infinite alternate;
}
@keyframes bloom-drift {
  from { transform: translate(-58%, -50%) scale(1); }
  to   { transform: translate(-42%, -46%) scale(1.12); }
}
.hero__ridge {
  position: absolute;
  z-index: -2;
  left: -2vw;
  bottom: -2px;
  width: 104vw;
  height: clamp(160px, 30vh, 300px);
  will-change: transform;
}
.hero__ridge--far {
  fill: color-mix(in srgb, var(--sky) 34%, var(--paper-0));
  filter: blur(6px);
  opacity: 0.85;
  bottom: clamp(40px, 8vh, 90px);
}
.hero__ridge--near {
  fill: color-mix(in srgb, var(--sky-deep) 26%, var(--paper-0));
  filter: blur(2.5px);
  opacity: 0.9;
}
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../textures/wash.jpg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  mix-blend-mode: soft-light;
  opacity: 0.5;
}
.hero__content {
  text-align: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) 6rem;
  max-width: 60rem;
}
.hero__content .eyebrow { margin-bottom: 2.2rem; }
.hero__line {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 430;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.3;
  color: var(--ink);
}
.hero__sub {
  margin: 1.4rem auto 0;
  max-width: 36em;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.hero__index {
  list-style: none;
  margin: 3.4rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem 2.6rem;
}
.hero__index a {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.28rem;
  transition: border-color 0.25s;
}
.hero__index a:hover { border-color: var(--green); }
.hero__index span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  margin-right: 0.45rem;
  letter-spacing: 0.08em;
}
.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 52px;
  transform: translateX(-50%);
  background: var(--hairline);
  overflow: hidden;
}
.hero__cue span {
  position: absolute;
  left: 0; top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: cue-drop 2.6s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- Scene 2 · Thesis ---------- */
.thesis {
  background: var(--paper-1);
  border-block: 1px solid var(--hairline);
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
  display: grid;
  place-items: center;
}
.thesis__text {
  max-width: 44rem;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.55;
  font-weight: 380;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Chapters ---------- */
.chapter { padding: clamp(5.5rem, 12vw, 9.5rem) var(--gutter); }
.chapter__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}
.chapter__inner--flip .chapter__stage { order: 2; }
.chapter__inner--flip .chapter__prose { order: 1; }

.chapter__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}
.chapter__prose h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.04;
  font-variation-settings: "opsz" 64;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.chapter__prose p { max-width: var(--measure); color: var(--ink-soft); }
.chapter__prose p + p { margin-top: 1rem; }
.chapter__link {
  display: inline-block;
  margin-top: 2.1rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 520;
  color: var(--sky-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: color 0.25s;
}
.chapter__link:hover { color: var(--green); }
.chapter__link span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.chapter__link:hover span { transform: translateX(4px); }

/* ---- Stages (designed frames for product screens) ---- */
.stage {
  position: relative;
  border-radius: 22px;
  overflow: clip;
  isolation: isolate;
}
.stage__caption {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 46%, transparent);
  text-align: center;
}

/* Device body (crafted, not a naked screenshot) */
.device {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: min(300px, 74%);
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(165deg, #3a423e 0%, #141816 38%, #060807 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(0, 0, 0, 0.65),
    0 2px 6px rgba(4, 8, 6, 0.35),
    0 28px 60px -18px rgba(4, 8, 6, 0.6);
}
.device img { border-radius: 36px; }
.device::after {
  /* glass reflection */
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 36px;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 18%,
    transparent 34%);
  pointer-events: none;
}
.device--light {
  background: linear-gradient(165deg, #e8e4dd 0%, #b8b3aa 40%, #78746c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(60, 55, 45, 0.2),
    0 28px 60px -18px rgba(60, 55, 45, 0.45);
}

.stage__bloom {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(64, 128, 235, 0.4) 0%,
    rgba(64, 128, 235, 0.12) 45%,
    transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.stage__bloom--warm {
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--dawn) 90%, transparent) 0%,
    color-mix(in srgb, var(--dawn) 32%, transparent) 48%,
    transparent 72%);
}
.stage__floor {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: clamp(1.4rem, 3vw, 2.4rem);
  width: 58%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent);
  filter: blur(10px);
  pointer-events: none;
}

/* Chapter 01 — the one dark scene */
.chapter--night {
  background:
    radial-gradient(120% 90% at 50% 0%, #1a211e 0%, var(--ink-2) 68%);
  color: var(--paper-0);
}
.chapter--night .chapter__prose h2 { color: var(--paper-0); }
.chapter--night .chapter__prose p { color: color-mix(in srgb, var(--paper-0) 72%, transparent); }
.chapter--night .chapter__link { color: color-mix(in srgb, var(--sky) 85%, var(--paper-0)); }
.chapter--night .chapter__link:hover { color: var(--paper-0); }
.chapter--night .stage__caption { color: color-mix(in srgb, var(--paper-0) 42%, transparent); }
.stage--night {
  padding: clamp(2.6rem, 5.5vw, 4.5rem) clamp(1.6rem, 4vw, 3rem);
  background: radial-gradient(110% 120% at 50% -10%, #10201c 0%, #070b0a 62%);
  box-shadow:
    inset 0 0 0 1px var(--hairline-light),
    0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

/* Chapter 02 — the count ticket (the photo is the stage) */
.chapter--count { background: var(--paper-1); border-block: 1px solid var(--hairline); }
.stage--count {
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px var(--hairline-light),
    0 34px 80px -28px rgba(10, 14, 12, 0.55);
}
.stage--count img { width: 100%; }
.stage--count .stage__spot {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 80% at 38% 34%, rgba(255, 244, 224, 0.1) 0%, transparent 55%),
    linear-gradient(200deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Chapter 03 — dawn stage */
.stage--dawn {
  padding: clamp(2.6rem, 5.5vw, 4.5rem) clamp(1.6rem, 4vw, 3rem);
  background:
    linear-gradient(178deg,
      #f4e4d2 0%,
      #eee3e2 44%,
      #dde4dc 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 2px var(--hairline),
    0 34px 80px -30px rgba(90, 80, 60, 0.4);
}
.stage--dawn .stage__floor { background: radial-gradient(closest-side, rgba(90, 70, 50, 0.35), transparent); }

/* ---------- Scene 6 · Studio ---------- */
.studio { padding: clamp(5.5rem, 12vw, 9rem) var(--gutter); }
.studio__inner { max-width: 42rem; margin: 0 auto; }
.studio h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.6rem;
}
.studio p { color: var(--ink-soft); }
.studio p + p { margin-top: 1rem; }
.studio__contacts {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
}
.studio__contacts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.studio__contacts li:last-child { border-bottom: 1px solid var(--hairline); }
.studio__contacts .mono { color: var(--ink-soft); }
.studio__contacts a {
  font-family: var(--display);
  font-weight: 480;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.15rem;
}

/* ---------- Scene 7 · Colophon ---------- */
.colophon {
  background: var(--ink-2);
  color: color-mix(in srgb, var(--paper-0) 78%, transparent);
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) 2.6rem;
}
.colophon__inner { max-width: 72rem; margin: 0 auto; }
.colophon__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 3.2rem 0 4rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--hairline-light);
}
.colophon__cols .mono {
  color: color-mix(in srgb, var(--paper-0) 44%, transparent);
  margin-bottom: 1.1rem;
}
.colophon__cols a {
  display: block;
  width: fit-content;
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 460;
  color: color-mix(in srgb, var(--paper-0) 82%, transparent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.colophon__cols a:hover { color: var(--paper-0); border-color: var(--hairline-light); }
.colophon__legal { color: color-mix(in srgb, var(--paper-0) 52%, transparent); }
.colophon__meta {
  margin-top: 0.6rem;
  color: color-mix(in srgb, var(--paper-0) 30%, transparent);
}

/* ---------- Long-form pages (support / privacy) ---------- */
.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 11rem) var(--gutter) clamp(5rem, 10vw, 7rem);
}
.page h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 580;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 1.1rem 0 2.2rem;
  text-wrap: balance;
}
.page h2 {
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  margin: 2.8rem 0 0.9rem;
}
.page p { color: var(--ink-soft); margin-bottom: 1rem; }
.page ul { color: var(--ink-soft); padding-left: 1.2rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.5rem; }
.page .eyebrow { margin: 0; }
.page hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.6rem 0;
}
.page__updated {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  margin-top: 2.8rem;
}

/* ---------- Reveal choreography ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
html.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.3s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.42s; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tweaks bar (?tweaks=1 only) ---------- */
.tweaks {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.6rem 1.1rem;
  background: color-mix(in srgb, var(--ink-2) 92%, transparent);
  color: var(--paper-0);
  border: 1px solid var(--hairline-light);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.5);
}
.tweaks label { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.tweaks input[type="range"] { width: 84px; accent-color: var(--sky); }
.tweaks input[type="checkbox"] { accent-color: var(--green); }
html.debug-outline * { outline: 1px solid rgba(220, 80, 80, 0.35); }

/* ---------- Motion off (system or tweaks) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__film { display: none; }

  html { scroll-behavior: auto; }
  .grain, .hero__bloom, .hero__cue span { animation: none; }
  .hero__ridge { transform: none !important; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
html.motion-off { scroll-behavior: auto; }
html.motion-off .hero__film { display: none; }
html.motion-off .grain,
html.motion-off .hero__bloom,
html.motion-off .hero__cue span { animation: none; }
html.motion-off .hero__ridge { transform: none !important; }
html.motion-off .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .chapter__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .chapter__inner--flip .chapter__stage { order: 0; }
  .chapter__inner--flip .chapter__prose { order: 1; }
  .colophon__cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .studio__contacts li { flex-direction: column; gap: 0.3rem; }
  .masthead__nav { gap: 1.1rem; }
  .hero__index { gap: 0.9rem 1.6rem; }
}
@media (max-width: 480px) {
  .masthead { align-items: center; }
  .masthead__nav { gap: 1rem; }
  .masthead__nav a:nth-child(2) { display: none; }
  .masthead__nav a { font-size: 0.82rem; }
  .wordmark--nav { font-size: 1.08rem; }
  .hero__content {
    width: 100%;
    min-width: 0;
    padding-inline: 1.15rem;
  }
  .hero__content .eyebrow {
    max-width: 21rem;
    margin-inline: auto;
    line-height: 1.6;
  }
  .wordmark--hero { font-size: clamp(3rem, 15vw, 4rem); }
  .hero__line {
    font-size: 1.35rem;
    text-wrap: balance;
  }
  .hero__sub {
    max-width: 22rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .hero__index {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
  }
  .device { width: min(250px, 82%); }
}
