/* ==========================================================================
   Mauro Balestrieri — style
   ========================================================================== */

@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand — sampled from the logo */
  --charcoal: #3c4147;
  --amber: #e5a849;
  --amber-hi: #f0bb63;
  --amber-ink: #8a5810;      /* amber readable on paper (AA) */

  --ink-950: #17191c;
  --ink-900: #1d2024;
  --ink-800: #24272c;
  --ink-700: #2e3237;
  --ink-500: #565b62;
  --ink-300: #9ba0a7;
  --ink-200: #c4c7cb;

  --paper: #eeeeea;
  --paper-2: #e3e3de;
  --paper-3: #d6d6d0;

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1440px;
  --section-y: clamp(96px, 14vw, 200px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 0.2rem, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--amber); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Scrollbar */
html { scrollbar-color: var(--ink-500) var(--ink-950); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb { background: var(--ink-500); border-radius: 10px; border: 2px solid var(--ink-950); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--amber); color: var(--ink-900); border-radius: 8px; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: none; }

.amber { color: var(--amber); }
em { font-style: normal; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-300); max-width: 46ch; }
[data-theme="light"] .muted { color: var(--ink-500); }
.small { font-size: 0.875rem; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- Icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; }
.i--up { transform: rotate(-90deg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 160ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms ease;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 450ms var(--ease-expo);
}
.btn:active { transform: scale(0.97); }
.btn .i { transition: transform 300ms var(--ease-out); }
.btn--amber { background: var(--amber); color: var(--ink-900); }
.btn--amber::before { background: var(--paper); }
.btn--ghost { border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.btn--ghost::before { background: var(--paper); }
[data-theme="light"] .btn--ghost::before { background: var(--ink-900); }
.btn--sm { height: 46px; padding: 0 20px; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn--ghost:hover { color: var(--ink-900); border-color: transparent; }
  [data-theme="light"] .btn--ghost:hover { color: var(--paper); }
  .btn:hover .i { transform: translateX(4px); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 400ms var(--ease-expo);
}
.link-arrow .i { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
  .link-arrow:hover .i { transform: translateX(4px); }
  .link-arrow:hover .i--up { transform: rotate(-90deg) translateX(4px); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: 0.9375rem;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--paper); color: var(--ink-900); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: none; place-items: center;
  background: var(--ink-950);
}
.js .loader { display: grid; }
.loader__mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex; gap: 0.08em;
}
.loader__count { min-width: 2.2ch; text-align: center; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 120;
    width: 96px; height: 96px;
    margin: -48px 0 0 -48px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
  }
  .cursor::before {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--amber);
    transform: scale(0.125);
    transition: transform 400ms var(--ease-out), background-color 300ms ease;
  }
  .cursor.is-visible { opacity: 1; }
  .cursor.is-hover::before { transform: scale(0.46); background: color-mix(in srgb, var(--amber) 35%, transparent); }
  .cursor.is-label::before { transform: scale(1); }
  .cursor__label { position: relative; font-size: 0.875rem; font-weight: 500; color: var(--ink-900); opacity: 0; transition: opacity 200ms ease; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  color: var(--paper);
  transition: transform 500ms var(--ease-expo), background-color 300ms ease, color 300ms ease;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid { background: color-mix(in srgb, var(--ink-900) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header.on-light { color: var(--ink-900); }
.header.on-light.is-solid { background: color-mix(in srgb, var(--paper) 92%, transparent); }
.logo {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline;
}
.logo .amber:first-child { margin-right: 0.18em; }
.logo .amber:last-child { margin-left: 0.18em; }
.logo__slash { margin-inline: 0.06em; display: inline-block; transition: transform 400ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo__slash { transform: rotate(20deg); } }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
  position: relative; font-size: 0.9375rem; font-weight: 500; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size 400ms var(--ease-expo);
}
.nav__link.is-active, .nav__link:focus-visible { background-size: 100% 1px; background-position: 0 100%; }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { background-size: 100% 1px; background-position: 0 100%; } }
.header.on-light .header__cta::before { background: var(--ink-900); }
@media (hover: hover) and (pointer: fine) { .header.on-light .header__cta:hover { color: var(--paper); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; margin-left: auto; position: relative; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform 350ms var(--ease-expo); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink-950);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 600ms var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 10vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.15; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--ink-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink-900);
  overflow: hidden;
  display: flex;
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 80px)) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 8.6vw, 8.25rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in { display: inline-block; will-change: transform; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero__lead { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; max-width: 30ch; color: var(--ink-200); }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--paper); font-weight: 500; }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); filter: blur(4px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-expo), filter 500ms var(--ease-out); white-space: nowrap; }
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-60%); filter: blur(4px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--ink-300); padding-top: 20px; border-top: 1px solid var(--ink-700); }
.hero__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf8a; }
.hero__scroll .i { animation: nudge 2s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__glyph {
  position: absolute; z-index: 1;
  right: -4vw; top: 50%;
  font-family: var(--font-display); font-weight: 500;
  font-size: min(78vw, 120vh);
  line-height: 0.8;
  color: var(--ink-800);
  transform: translateY(-50%);
  pointer-events: none; user-select: none;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--amber); color: var(--ink-900);
  overflow: hidden;
  padding-block: clamp(18px, 2.2vw, 30px);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; flex: none; }
.marquee__row span, .marquee__row i {
  font-family: var(--font-display); font-weight: 600; font-style: normal;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  letter-spacing: -0.03em; line-height: 1;
  white-space: nowrap;
}
.marquee__row i { padding-inline: 0.45em; opacity: 0.4; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--paper); color: var(--ink-900); padding-block: var(--section-y); }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 4.1rem);
  line-height: 1.08; letter-spacing: -0.025em;
  max-width: 24ch;
  text-wrap: pretty;
}
.manifesto__text .w { color: var(--paper-3); transition: color 300ms ease; }
.manifesto__text .w.is-lit { color: var(--ink-900); }
.manifesto__foot { margin-top: clamp(48px, 7vw, 96px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.manifesto__sign { font-weight: 700; line-height: 1.4; }
.manifesto__sign span { font-weight: 400; color: var(--ink-500); }

/* ---------- Services ---------- */
.services { background: var(--ink-900); position: relative; }
.services__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 8px) 32px;
  overflow: hidden;
}
.services__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-inline: var(--gutter);
  max-width: var(--maxw); width: 100%; margin-inline: auto;
  margin-bottom: clamp(20px, 4vh, 56px);
}
/* Heading sized against viewport height so heading + cards fit the pinned screen */
.services__head .h2 { font-size: clamp(2.25rem, min(6.5vw, 8.5vh), 6rem); }
.services__progress { width: min(240px, 30vw); height: 2px; background: var(--ink-700); border-radius: 2px; overflow: hidden; }
.services__progress span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.services__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: max-content;
  will-change: transform;
}
.svc {
  flex: none;
  width: clamp(300px, min(32vw, 58vh), 480px);
  display: flex; flex-direction: column; gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(20px, 2vw, 28px);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  transition: border-color 300ms ease, background-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .svc:hover { border-color: var(--ink-500); } }
.svc__art { border-radius: var(--radius); background: var(--ink-900); overflow: hidden; height: clamp(140px, 26vh, 280px); flex: none; }
.svc__art .art { height: 100%; }
.svc__body { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 14px); }
.svc__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, min(2.4vw, 4.2vh), 2.375rem); letter-spacing: -0.025em; line-height: 1.02; }
.svc__body p { color: var(--ink-200); font-size: clamp(0.9375rem, 1.8vh, 1rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li { font-size: 0.8125rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-700); color: var(--ink-200); }
.svc--cta {
  background: var(--amber); color: var(--ink-900); border-color: var(--amber);
  justify-content: flex-end; gap: 18px;
}
.svc--cta p:not(.svc__title) { color: var(--ink-800); max-width: 26ch; font-size: 1.0625rem; }
.svc--cta .btn--amber { background: var(--ink-900); color: var(--paper); align-self: flex-start; }
.svc--cta .btn--amber::before { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .svc--cta .btn--amber:hover { color: var(--ink-900); } .svc--cta:hover { border-color: var(--amber); } }

/* SVG art */
.art { width: 100%; height: auto; transform-origin: center; }
.art-frame { fill: none; stroke: var(--ink-700); stroke-width: 1.5; }
.art-dim { fill: var(--ink-700); }
.art-dim-fill { fill: var(--ink-800); }
.art-ink { fill: var(--ink-300); }
.art-ink-fill { fill: var(--ink-500); }
.art-paper { fill: var(--paper); }
.art-amber { fill: var(--amber); }
.art-line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-line-thin { fill: none; stroke: var(--ink-500); stroke-width: 1.5; }
.art-ring { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; transform: rotate(-90deg); transform-origin: 160px 110px; }
.art-check { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.art-mono { font-family: var(--font-display); font-weight: 600; font-size: 36px; fill: var(--paper); letter-spacing: -1px; }

/* ---------- Method ---------- */
.method { background: var(--paper); color: var(--ink-900); padding-block: var(--section-y); }
.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.method__side { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 24px; }
.steps { position: relative; display: flex; flex-direction: column; gap: clamp(56px, 9vh, 112px); padding-left: 48px; }
.steps__line { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; height: calc(100% - 20px); overflow: visible; }
.steps__line line { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.steps::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--paper-3); }
.step { position: relative; }
.step__dot { position: absolute; left: -48px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--paper-3); transition: border-color 300ms ease, background-color 300ms ease, transform 400ms var(--ease-out); }
.step.is-on .step__dot { border-color: var(--amber); background: var(--amber); transform: scale(1.15); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 14px; }
.step p { color: var(--ink-500); max-width: 42ch; }

/* ---------- Numbers ---------- */
.numbers { background: var(--ink-900); padding-block: var(--section-y); }
.numbers__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 4.75rem);
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 22ch;
  color: var(--ink-300);
}
.num { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Work ---------- */
.work { background: var(--paper); color: var(--ink-900); padding-block: var(--section-y); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.work__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2.5vw, 40px); }
.project:nth-child(even) { margin-top: clamp(0px, 12vw, 180px); }
.project { display: flex; flex-direction: column; gap: 18px; }
.project__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--paper-2); }
.project__img { width: 100%; height: 115%; transform-origin: center; transition: transform 900ms var(--ease-expo); }
img.project__img { display: block; object-fit: cover; object-position: top center; }
@media (hover: hover) and (pointer: fine) { .project:hover .project__img { transform: scale(1.04); } }
.project__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project__info h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; }
.project__info p { color: var(--ink-500); font-size: 0.9375rem; }
.work__all { margin-top: clamp(48px, 6vw, 80px); }

/* Placeholder (replace with real screenshots) */
.ph { position: relative; background: var(--paper-3); }
.ph--dark { background: var(--ink-800); }
.ph--amber { background: var(--amber); }
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 0.8125rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink-700);
}

/* ---------- Resources ---------- */
.resources { background: var(--ink-950); padding-block: var(--section-y); }
.resources__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.calc {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-700);
}
.calc__intro { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.calc__form { display: flex; flex-direction: column; gap: 28px; }
.range { display: flex; flex-direction: column; gap: 12px; }
.range__top { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9375rem; color: var(--ink-200); }
.range output { font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--amber), var(--amber)) 0 / var(--p) 100% no-repeat, var(--ink-700); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--ink-700); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 5px solid var(--amber); transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 5px solid var(--amber); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__result {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--ink-900);
}
.calc__result > p:not(.calc__big) { color: var(--ink-300); font-size: 0.9375rem; }
.calc__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.calc__result .btn { align-self: flex-start; margin-top: 8px; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink-700); }
.dl { display: flex; flex-direction: column; gap: 14px; padding: 32px clamp(16px, 2.4vw, 36px) 8px 0; }
.dl + .dl { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--ink-700); }
.dl__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.dl .link-arrow { align-self: flex-start; margin-top: auto; color: var(--amber); }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); color: var(--ink-900); padding-block: var(--section-y); }
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-block: clamp(48px, 6vw, 80px) 40px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 2.6vw, 36px); background: var(--paper-2); border-radius: var(--radius-lg); min-height: 280px; }
.review blockquote { font-size: 1.125rem; line-height: 1.5; }
.review figcaption { display: flex; flex-direction: column; font-size: 0.9375rem; }
.review figcaption span { color: var(--ink-500); }
.ph-review { outline: 1.5px dashed var(--paper-3); outline-offset: -1.5px; }
.ph-review blockquote { color: var(--ink-500); }

/* ---------- Booking ---------- */
.book { background: var(--ink-900); padding-block: var(--section-y); }
.book__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.book__side { display: flex; flex-direction: column; gap: 28px; }
.book__perks { display: flex; flex-direction: column; gap: 14px; }
.book__perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-200); }
.book__perks .i { color: var(--amber); margin-top: 4px; }
.book__direct { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 28px; border-top: 1px solid var(--ink-700); }
.book__direct p { width: 100%; color: var(--ink-300); font-size: 0.9375rem; }

.wizard {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  min-height: 520px;
}
.wizard__bar { height: 3px; background: var(--ink-700); border-radius: 3px; overflow: hidden; }
.wizard__bar span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0.25); transition: transform 600ms var(--ease-expo); }
.wizard__count { font-size: 0.875rem; color: var(--ink-300); font-variant-numeric: tabular-nums; }
.wizard__step { display: none; flex-direction: column; gap: 18px; }
.wizard__step.is-active { display: flex; animation: stepIn 500ms var(--ease-expo) both; }
.wizard__step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); filter: blur(3px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-24px); filter: blur(3px); } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--col { flex-direction: column; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-500);
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.choices--col .choice span { border-radius: var(--radius); }
.choice:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .choice:hover span { border-color: var(--ink-200); } }
.choice input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink-900); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: var(--ink-300); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  resize: vertical;
  caret-color: var(--amber);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: #e2766b; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-300); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--amber); flex: none; margin-top: 2px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.err { min-height: 1.4em; font-size: 0.875rem; color: #f0958b; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; }
.wizard__nav [data-next] { margin-left: auto; }
.wizard__nav .btn[disabled] { opacity: 0.6; cursor: progress; }
.wizard__done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-block: auto; }
.wizard__done[hidden] { display: none; }
.wizard__done:focus { outline: none; }
.wizard__tick { width: 64px; height: 64px; }
.wizard__tick circle { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease-out) forwards; }
.wizard__tick path { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 500ms 450ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); color: var(--ink-900); padding-block: var(--section-y); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__list { border-top: 1px solid var(--paper-3); }
.qa { border-bottom: 1px solid var(--paper-3); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 26px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem); letter-spacing: -0.015em; line-height: 1.2;
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--paper-3); transition: background-color 250ms ease, border-color 250ms ease, transform 400ms var(--ease-expo); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.qa__icon::after { transform: rotate(90deg); transition: transform 400ms var(--ease-expo); }
.qa[open] .qa__icon { background: var(--amber); border-color: var(--amber); transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding-bottom: 28px; color: var(--ink-500); max-width: 60ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); padding-block: clamp(96px, 12vw, 160px) 32px; overflow: hidden; }
.footer__big {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 0.92; letter-spacing: -0.04em;
  margin-bottom: clamp(64px, 9vw, 140px);
}
.footer__big-line { display: block; transition: transform 700ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .footer__big:hover .footer__big-line:last-child { transform: translateX(3vw); }
}
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 56px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__grid a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover { color: var(--amber); } }
.footer__label { font-size: 0.875rem; color: var(--ink-300); margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink-700); font-size: 0.875rem; color: var(--ink-300); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  display: none; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: 999px;
  background: var(--amber); color: var(--ink-900); font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  transform: translateY(150%);
  transition: transform 500ms var(--ease-expo);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta:active { transform: scale(0.98); }

/* ---------- Dialog ---------- */
.dlg {
  width: min(480px, calc(100vw - 32px));
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
  color: var(--paper);
  opacity: 0; transform: scale(0.96) translateY(8px);
  transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete;
}
.dlg[open] { opacity: 1; transform: none; }
@starting-style { .dlg[open] { opacity: 0; transform: scale(0.96) translateY(8px); } }
.dlg::backdrop { background: rgba(10, 11, 13, 0.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity 250ms ease, overlay 250ms allow-discrete, display 250ms allow-discrete; }
.dlg[open]::backdrop { opacity: 1; }
@starting-style { .dlg[open]::backdrop { opacity: 0; } }
.dlg__close-form { position: absolute; top: 14px; right: 14px; }
.dlg__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink-700); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.dlg__close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .dlg__close:hover { background: var(--ink-700); } }
.dlg__form, .dlg__done { display: flex; flex-direction: column; gap: 16px; }
.dlg__done[hidden] { display: none; }
.dlg__form .btn { align-self: flex-start; }

/* Honeypot: hidden from people, filled by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer__btn { text-align: left; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__btn:hover { color: var(--amber); } }
.nav__link[aria-current="page"] { background-size: 100% 1px; background-position: 0 100%; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--ink-900); padding-block: calc(var(--header-h) + clamp(56px, 10vw, 140px)) clamp(56px, 8vw, 112px); }
.page-hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.page-hero__title { font-size: clamp(3rem, 9vw, 8.25rem); line-height: 0.94; letter-spacing: -0.035em; }
.page-hero .muted { max-width: 40ch; }

/* Portfolio */
.work--all { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 72px); }
.filter {
  min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--paper-3);
  font-weight: 500; font-size: 0.9375rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .filter:hover { border-color: var(--ink-500); } }
.filter[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink-900); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.work__grid .project:nth-child(even) { margin-top: 0; }
.work__grid .project__info { flex-direction: column; gap: 4px; }

.cta-band { background: var(--ink-900); padding-block: var(--section-y); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* Project sheet */
.dlg--project { width: min(1120px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow: auto; overscroll-behavior: contain; }
.dlg--project .dlg__close-form { position: sticky; top: 14px; height: 0; z-index: 2; display: flex; justify-content: flex-end; padding-right: 14px; }
.dlg--project .dlg__close { background: var(--ink-800); }
.pj { display: grid; grid-template-columns: 1.25fr 1fr; }
.pj__media { background: var(--ink-900); min-height: 100%; }
.pj__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pj__body { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.pj__title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; padding-right: 40px; }
.pj__tags { margin-top: 0; }
.pj__desc { display: flex; flex-direction: column; gap: 14px; color: var(--ink-200); }
.pj__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }

/* Legal */
.legal { background: var(--paper); color: var(--ink-900); padding-block: clamp(56px, 8vw, 120px) var(--section-y); }
.legal__grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.legal__toc a { color: var(--ink-500); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .legal__toc a:hover { color: var(--ink-900); } }
.prose { max-width: 70ch; color: var(--ink-700); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-900); margin-top: 2.4em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 1.0625rem; color: var(--ink-900); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--amber-ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--paper-3); transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-color: currentColor; } }
.prose strong { color: var(--ink-900); }
.table-wrap { overflow-x: auto; border: 1px solid var(--paper-3); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--paper-3); }
.prose th { background: var(--paper-2); font-weight: 700; color: var(--ink-900); }
.prose tr:last-child td { border-bottom: 0; }
.prose .btn { margin-top: 0.4em; }
.todo { background: var(--paper-2); color: var(--ink-900); outline: 1.5px dashed var(--ink-300); outline-offset: 1px; border-radius: 4px; padding: 0 4px; }

/* ---------- Cookie banner ---------- */
.cc {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 110;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  background: var(--ink-800); color: var(--paper);
  border: 1px solid var(--ink-700); border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(16px);
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-expo);
}
.cc.is-open { opacity: 1; transform: none; }
.cc__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink-700); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.cc__x:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .cc__x:hover { background: var(--ink-700); } }
.cc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.1; padding-right: 44px; }
.cc__text { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-200); }
.cc__text a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cc__prefs { display: flex; flex-direction: column; border-top: 1px solid var(--ink-700); }
.cc__cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--ink-700); cursor: pointer; }
.cc__cat-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; color: var(--ink-300); line-height: 1.45; }
.cc__cat-text strong { font-size: 0.9375rem; color: var(--paper); }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc__btn {
  height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); color: var(--ink-900); font-weight: 500; font-size: 0.9375rem;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.cc__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cc__btn:hover { background: var(--amber); } }
.cc__link { grid-column: 1 / -1; justify-self: center; padding: 6px 4px; font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-200); }
@media (hover: hover) and (pointer: fine) { .cc__link:hover { color: var(--paper); } }

.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: var(--ink-700); transition: background-color 200ms ease; pointer-events: none; }
.switch__ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-200); transition: transform 300ms var(--ease-expo), background-color 200ms ease; }
.switch input:checked + .switch__ui { background: var(--amber); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: var(--ink-900); }
.switch input:disabled + .switch__ui { opacity: 0.55; }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .pj { grid-template-columns: 1fr; }
  .pj__media img { height: auto; aspect-ratio: 4 / 3.2; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .method__grid, .book__grid, .faq__grid { grid-template-columns: 1fr; }
  .method__side { position: static; }
  .calc { grid-template-columns: 1fr; }
  .reviews__list { grid-template-columns: 1fr; }
  .review { min-height: 0; }
}

/* Services stack vertically on touch / narrow screens */
@media (max-width: 860px) {
  .services__pin { min-height: 0; padding-block: var(--section-y); }
  .services__track { width: auto; flex-direction: column; padding-inline: var(--gutter); }
  .svc { width: 100%; }
  .svc__art, .svc__art .art { height: auto; }
  .services__progress { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__glyph { font-size: 120vw; right: -18vw; }
  .work__list, .work__grid { grid-template-columns: 1fr; }
  .cc { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; padding: 20px; }
  .pj__actions .btn { width: 100%; justify-content: center; }
  .project:nth-child(even) { margin-top: 0; }
  .downloads { grid-template-columns: 1fr; }
  .dl, .dl + .dl { padding: 28px 0; border-left: 0; }
  .dl + .dl { border-top: 1px solid var(--ink-700); }
  .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .sticky-cta { display: flex; }
  .wizard { min-height: 0; }
  .wizard__nav .btn { height: 52px; }
  .btn { height: 54px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .rotator__word, .btn::before, .menu, .header, .cc { transition-duration: 0.01ms !important; }
  .manifesto__text .w { color: var(--ink-900); }
  .loader { display: none !important; }
}

/* Masked word reveal (headings) */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask__in { display: inline-block; will-change: transform; }
