/* Cruz Astudillo — Photography
   Black, white and fog. One face (Schibsted Grotesk), five sizes. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2-variations"),
       url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --ink: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #ffffff;
  --accent-ink: #0b0b0b;
  --accent-hover: #d4d4d4;
  --inv-bg: #ebebea;
  --inv-ink: #0b0b0b;
  --inv-muted: #474747;
  --scrim: rgba(8, 8, 8, 0.58);

  --face: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.1rem + 1.7vw, 2.25rem);
  --step-display: clamp(4rem, 10.5vw, 11rem);

  --m: clamp(16px, 2vw, 28px);
  --gutter: clamp(12px, 1.4vw, 20px);
  --section: clamp(120px, 14vw, 220px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fog: cubic-bezier(0.22, 0.7, 0.18, 1);

  color-scheme: dark;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.6s linear;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--bg); }
section[id], [id="book-done"], #step-time, #book-form { scroll-margin-top: 88px; }
button, a, .cal__day, .slot { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: var(--m); top: -80px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 600;
}
.skip:focus { top: var(--m); }

/* ---------- shared pieces ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); line-height: 1;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; padding-bottom: 3px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* Reversible fog reveal: blur in on the way down, back into fog on the way up */
.js [data-reveal] {
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1.1s var(--ease-fog) var(--d, 0ms),
    filter 1.3s var(--ease-fog) var(--d, 0ms),
    transform 1.3s var(--ease-fog) var(--d, 0ms);
  will-change: opacity, filter, transform;
}
.js [data-reveal].is-in { opacity: 1; filter: blur(0); transform: none; }


@keyframes emerge { to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- top bar (appears after the hero) ---------- */

.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--m) 12px;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.topbar.is-shown { transform: none; }
.topbar__mark { font-weight: 800; letter-spacing: -0.04em; font-size: var(--step-lead); margin-right: auto; }
.topbar nav { display: flex; gap: 24px; font-weight: 600; font-size: var(--step-small); }
.topbar nav a { color: var(--muted); transition: color 0.2s ease; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--ink); }

/* ---------- name run: hero + intro under the pinned name ---------- */

.namerun { position: relative; }
.namerun__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  z-index: 6; pointer-events: none;
}
.names {
  position: absolute; inset: 0; margin: 0;
  font-weight: 800; font-size: var(--step-display);
  letter-spacing: -0.05em; line-height: 0.85;
  color: var(--ink);
}
.names__first, .names__last { position: absolute; display: block; }
.names__first { left: var(--m); top: calc(var(--m) + env(safe-area-inset-top, 0px)); }
.names__last { right: var(--m); bottom: var(--m); }
.names__by {
  display: block; font-size: var(--step-lead); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 0.3em 0.06em;
}
/* the name rises out of the fog on arrival; settled within a second */
.js .names__first, .js .names__last {
  opacity: 0; filter: blur(18px); transform: scale(1.03);
  animation: emerge 0.95s var(--ease-fog) 0.05s forwards;
}
.js .names__last { animation-delay: 0.2s; }

.hero {
  position: relative; margin-top: -100vh; margin-top: -100svh;
  height: 100vh; height: 100svh; min-height: 620px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: 0 var(--m);
  overflow: hidden;
}
.hero__photo {
  grid-column: 8 / -1; margin-right: calc(var(--m) * -1);
  position: relative; height: 100%; overflow: hidden; background: var(--surface);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  transform: scale(1.06);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
.hero__hint {
  position: absolute; left: 20px; top: calc(var(--m) + env(safe-area-inset-top, 0px) + 8px);
  z-index: 4; font-size: var(--step-small); font-weight: 600;
  background: var(--scrim); padding: 6px 10px; color: var(--ink);
}
.fog-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none;
}
.hero__copy {
  grid-column: 3 / 7; grid-row: 1; align-self: start;
  margin-top: 44svh; position: relative; z-index: 5;
}
.hero__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; color: var(--ink); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero__links {
  grid-column: 7; grid-row: 1; align-self: center; justify-self: end;
  position: relative; z-index: 5;
  display: flex; flex-direction: column; gap: 10px; text-align: right;
  font-weight: 600; font-size: var(--step-small); padding-right: 6px;
}
.hero__links a { color: var(--muted); transition: color 0.2s ease, transform 0.3s var(--ease-out); }
.hero__links a:hover, .hero__links a:focus-visible { color: var(--ink); transform: translateX(-4px); }

/* intro: the sentence holds, three photographs pass behind it */
.intro { position: relative; height: 210vh; height: 210svh; }
.intro__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 4;
  display: grid; place-items: center; pointer-events: none;
}
.statement {
  width: min(62vw, 30ch); text-align: center;
  font-size: var(--step-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: balance;
}
.intro__photos { position: absolute; inset: 0; z-index: 2; }
.intro__ph { position: absolute; overflow: hidden; }
.intro__ph img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.intro__ph--1 { width: 24vw; aspect-ratio: 4 / 5; left: 6vw; top: 18svh; }
.intro__ph--2 { width: 38vw; aspect-ratio: 16 / 10; right: var(--m); top: 78svh; }
.intro__ph--3 { width: 18vw; aspect-ratio: 1; left: 30vw; top: 148svh; }
.intro__ph figcaption {
  position: absolute; left: 10px; bottom: 8px; font-size: var(--step-small); font-weight: 600;
  color: var(--ink);
}

/* ---------- work: 3D fly-through the fog ---------- */

.work { position: relative; height: 360vh; height: 360svh; }
.work__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--bg);
}
.tunnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.work__title {
  position: absolute; left: var(--m); top: calc(var(--m) + 64px); z-index: 3;
  font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.work__sub {
  position: absolute; right: var(--m); top: calc(var(--m) + 70px); z-index: 3;
  max-width: 30ch; text-align: right; color: var(--ink); font-size: var(--step-body);
}
.plate-row {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 3;
  height: 90px; display: grid; grid-template-columns: 1fr 3fr 1.4fr; align-items: center;
  padding: 0 var(--m); background: var(--scrim);
}
.plate-row__kind, .plate-row__fact { font-size: var(--step-small); font-weight: 600; }
.plate-row__fact { text-align: right; color: var(--ink); }
.plate-row__title {
  font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
  padding-left: 10%;
}
.plate-row [data-swap] { display: inline-block; transition: opacity 0.35s ease, filter 0.45s ease, transform 0.45s var(--ease-out); }
.plate-row.is-swapping [data-swap] { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.work__progress {
  position: absolute; left: var(--m); right: var(--m); bottom: calc(var(--m) + 4px); z-index: 3;
  height: 3px; background: var(--surface-2);
}
.work__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* Fallback (no WebGL / no script): the plates as a plain stack */
.plates { display: none; }
.work.no-gl { height: auto; }
.work.no-gl .work__pin { position: relative; height: auto; overflow: visible; padding: calc(var(--section) * 0.6) var(--m) 0; }
.work.no-gl .tunnel-canvas, .work.no-gl .plate-row, .work.no-gl .work__progress { display: none; }
.work.no-gl .work__title, .work.no-gl .work__sub { position: static; text-align: left; margin-bottom: 28px; }
.work.no-gl .plates { display: grid; grid-template-columns: repeat(12, 1fr); gap: 80px var(--gutter); padding: 40px var(--m) 0; }
.plates li:nth-child(odd) { grid-column: 1 / 7; }
.plates li:nth-child(even) { grid-column: 7 / -1; margin-top: 18vh; }
.plates figcaption { margin-top: 12px; font-size: var(--step-small); font-weight: 600; }

/* ---------- gallery: one frame, the contents change ---------- */

.frame-sec {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m);
  align-items: center;
}
.frame {
  grid-column: 2 / 6; position: relative; aspect-ratio: 4 / 5; width: 100%;
  background: var(--surface); cursor: pointer; overflow: hidden;
  border: 0; padding: 0;
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); filter: blur(10px);
  transition: opacity 0.9s var(--ease-fog), transform 2.6s var(--ease-out), filter 0.9s var(--ease-fog);
}
.frame img.is-on { opacity: 1; transform: none; filter: blur(0); }
.frame:hover img.is-on { transform: scale(1.015); }
.frame-sec__text { grid-column: 7 / 12; }
.frame-sec h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.frame-sec p { margin-top: 24px; max-width: 44ch; }
.frame-cap { margin-top: 36px; font-size: var(--step-lead); font-weight: 600; min-height: 1.4em; }
.frame-cap span { display: inline-block; transition: opacity 0.4s ease, filter 0.5s ease; }
.frame-cap.is-swapping span { opacity: 0; filter: blur(8px); }
.frame-thumbs { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.frame-thumbs button {
  width: 56px; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: var(--surface); opacity: 0.5; transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.frame-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.frame-thumbs button[aria-current="true"], .frame-thumbs button:hover { opacity: 1; }
.frame-thumbs button:active { transform: scale(0.96); }

/* ---------- sessions: sticky photograph, active list ---------- */

.sessions {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m);
  background: var(--surface);
}
.sessions__media {
  grid-column: 1 / 6; position: sticky; top: 12vh; align-self: start;
  aspect-ratio: 4 / 5; width: 100%; max-width: 34vw; overflow: hidden; background: var(--surface-2);
}
.sessions__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease, transform 1.6s var(--ease-out); transform: scale(1.04);
}
.sessions__media img.is-on { opacity: 1; transform: none; }
.sessions__list { grid-column: 7 / 12; }
.sessions h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; }
.sessions__intro { max-width: 46ch; margin-bottom: 40px; }
.sess { border: 0; }
.sess__head {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 58px; padding: 14px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--muted); transition: color 0.3s ease;
}
.sess__name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; transition: transform 0.4s var(--ease-out); }
.sess__dur { font-size: var(--step-small); font-weight: 600; color: var(--muted); white-space: nowrap; }
.sess.is-active .sess__head, .sess__head:hover { color: var(--ink); }
.sess.is-active .sess__name { transform: translateX(10px); }
.sess__body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out);
}
.sess__body > div { overflow: hidden; }
.sess.is-active .sess__body { grid-template-rows: 1fr; }
.sess__body p { max-width: 40ch; padding: 0 0 6px 10px; color: var(--ink); }
.sess__body .link { margin: 6px 0 18px 10px; font-size: var(--step-small); }

/* ---------- how it works: one verb at a time ---------- */

.verbs { position: relative; }
.verb { position: relative; height: 140vh; height: 140svh; overflow: clip; }
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); }
.verb__word {
  position: sticky; top: calc(50svh - 0.45 * var(--step-display)); z-index: 2;
  text-align: center; font-weight: 800; font-size: var(--step-display);
  letter-spacing: -0.06em; line-height: 0.85; color: var(--ink);
  margin: 0; padding-top: 0;
}
.verb__word-wrap { position: absolute; inset: 0 0 34svh 0; z-index: 2; padding-top: calc(50svh - 0.45 * var(--step-display)); }
.verb__text {
  position: absolute; left: 0; bottom: 0; z-index: 3; max-width: min(520px, 100%);
  padding: 22px var(--m) calc(var(--m) + 6px); background: var(--scrim);
}

/* ---------- booking ---------- */

.book {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 48px;
  padding: var(--section) var(--m);
}
.book__intro { grid-column: 1 / 6; }
.book h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.book__lead { margin-top: 20px; max-width: 40ch; }
.cal { margin-top: 40px; max-width: 520px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__month { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 44px; height: 44px; border: 0; background: var(--surface-2); cursor: pointer;
  font-size: 1.1rem; transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.cal__nav button:hover { background: #2a2a2a; }
.cal__nav button:active { transform: scale(0.95); }
.cal__nav button[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font-size: var(--step-small); font-weight: 600; color: var(--muted); text-align: center; padding: 6px 0; }
.cal__dow.is-open { color: var(--ink); }
.cal__day {
  aspect-ratio: 1; display: grid; place-items: center; border: 0; padding: 0;
  font-size: var(--step-body); font-weight: 600; background: transparent; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
/* Weekdays sit in the fog */
.cal__day.is-fog { filter: blur(1.6px); opacity: 0.45; cursor: default; }
.cal__day.is-past { opacity: 0.25; filter: blur(1px); }
.cal__day.is-open {
  background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.cal__day.is-open:hover { background: #2c2c2c; transform: translateY(-2px); }
.cal__day.is-full { background: var(--surface); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.cal__day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cal__blank { aspect-ratio: 1; }
.cal__legend { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

.book__panel { grid-column: 7 / -1; align-self: start; margin-top: 8px; }
.book__step + .book__step { margin-top: 40px; }
.book__label { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.quick { display: grid; gap: 4px; }
.quick button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  min-height: 64px; padding: 0 20px; border: 0; background: var(--surface); cursor: pointer;
  font-size: var(--step-body); font-weight: 600; text-align: left;
  transition: background-color 0.2s ease, padding 0.35s var(--ease-out);
}
.quick button span:last-child { color: var(--muted); font-size: var(--step-small); }
.quick button:hover { background: var(--surface-2); padding-left: 26px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 4px; }
.slot {
  min-height: 56px; border: 0; background: var(--surface); cursor: pointer;
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.slot small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.slot:hover { background: var(--surface-2); }
.slot:active { transform: scale(0.98); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.slot[aria-pressed="true"] small { color: #3a3a3a; }
.slot[disabled] { cursor: not-allowed; color: var(--muted); text-decoration: line-through; background: transparent; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step-small); font-weight: 600; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid #2c2c2c; border-radius: 0;
  font-size: 16px; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #181818; }
.field input[aria-invalid="true"] { border-color: #f2f2f2; }
.field__err { font-size: var(--step-small); color: var(--ink); min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot, never visible */
.book__summary { margin-top: 26px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.book__submit { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.book__fine { font-size: var(--step-small); color: var(--muted); max-width: 46ch; }
.book__status { margin-top: 16px; font-size: var(--step-body); }
.book__done { background: var(--surface); padding: 36px 32px; }
.book__done h3 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.book__done p { margin-top: 16px; max-width: 44ch; }
.book__done .btn { margin-top: 26px; }
.book__note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* ---------- contact: the handle as display type ---------- */

.contact {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--inv-bg); color: var(--inv-ink);
  padding: var(--m); display: grid; grid-template-rows: auto 1fr auto auto;
}
.contact ::selection { background: var(--inv-ink); color: var(--inv-bg); }
.contact h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; padding-top: 40px; }
.contact__lead { margin-top: 14px; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.contact__handle {
  align-self: end; display: block; margin-bottom: 12vh;
  font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; white-space: nowrap;
  font-size: var(--step-display); color: var(--inv-ink);
  transition: letter-spacing 0.6s var(--ease-out), opacity 0.3s ease;
}
.contact__handle:hover, .contact__handle:focus-visible { letter-spacing: -0.035em; }
.contact__handle:focus-visible { outline-color: var(--inv-ink); }
.contact__foot { display: flex; justify-content: space-between; gap: 20px; font-size: var(--step-small); font-weight: 600; }
.contact__foot a:focus-visible { outline-color: var(--inv-ink); }

/* ---------- FAQ: answers as reading text ---------- */

.faq {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  padding: var(--section) var(--m);
}
.faq h2 { grid-column: 1 / 4; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.faq__text { grid-column: 5 / -1; columns: 2; column-gap: 56px; }
.faq__text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.55; }
.faq__text b { font-weight: 600; }

/* ---------- footer: name first ---------- */

.foot {
  background: var(--surface); padding: var(--m) var(--m) calc(var(--m) + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-rows: auto auto auto; overflow: hidden;
}
.foot__name {
  font-weight: 800; letter-spacing: -0.055em; line-height: 0.82; white-space: nowrap;
  font-size: var(--step-display); margin-top: 2vw;
}
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: 72px; align-content: start; }
.foot__places { grid-column: 1 / 6; display: grid; gap: 6px; }
.foot__places a, .foot__places span { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.foot__places a { transition: opacity 0.2s ease; }
.foot__places a:hover { opacity: 0.7; }
.foot__links { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px var(--gutter); align-content: start; font-weight: 600; }
.foot__links a { color: var(--muted); transition: color 0.2s ease; }
.foot__links a:hover { color: var(--ink); }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 96px; font-size: var(--step-small); color: var(--muted); }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .hero__copy { grid-column: 1 / 8; padding-left: 4vw; }
  .hero__links { display: none; }
  .frame { grid-column: 1 / 7; }
  .frame-sec__text { grid-column: 8 / -1; }
  .sessions__media { grid-column: 1 / 6; max-width: none; }
  .sessions__list { grid-column: 7 / -1; }
  .book__intro, .book__panel { grid-column: 1 / -1; }
  .book__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
  .book__intro .cal { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .faq h2 { grid-column: 1 / -1; margin-bottom: 32px; }
  .faq__text { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .frame-thumbs { flex-wrap: nowrap; gap: 6px; }
  .frame-thumbs button { width: auto; flex: 1 1 0; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 700px) {
  :root { --step-display: 15vw; }
  .topbar nav { display: none; }
  .names__first { left: 16px; top: calc(14px + env(safe-area-inset-top, 0px)); }
  .names__last { right: 16px; bottom: 14px; }
  .hero { display: block; padding: 0; height: auto; min-height: 100svh; }
  .hero__photo { margin: 0; height: 42svh; position: absolute; left: 0; right: 0; top: calc(58px + 13vw + env(safe-area-inset-top, 0px)); }
  .hero__photo img { object-position: 50% 22%; }
  .hero__hint { left: 16px; top: 12px; }
  .hero__copy { position: absolute; left: 16px; right: 16px; top: calc(58px + 13vw + 42svh + 16px + env(safe-area-inset-top, 0px)); margin: 0; padding: 0; }
  .hero__lead { font-size: var(--step-body); max-width: 34ch; }
  .hero__actions { margin-top: 14px; }
  .hero__actions .btn { width: 100%; }
  .intro { height: 230svh; }
  .statement { width: calc(100vw - 40px); font-size: var(--step-lead); }
  .intro__ph--1 { width: 64vw; left: 16px; top: 16svh; }
  .intro__ph--2 { width: 78vw; right: 16px; top: 82svh; }
  .intro__ph--3 { width: 52vw; left: 16px; top: 150svh; }
  .work__title { top: calc(var(--m) + 60px); }
  .work__sub { display: none; }
  .plate-row {
    top: auto; bottom: 28px; transform: none; height: auto;
    grid-template-columns: 1fr 1fr; grid-template-areas: "t t" "k f"; row-gap: 6px; padding: 14px 16px;
  }
  .plate-row__title { grid-area: t; padding-left: 0; }
  .plate-row__kind { grid-area: k; }
  .plate-row__fact { grid-area: f; }
  .work__progress { bottom: 12px; }
  .frame-sec { display: block; }
  .frame { width: 100%; max-width: 72vw; margin: 0 auto; }
  .frame-sec__text { margin-top: 32px; }
  .sessions { display: block; }
  .sessions__media { position: relative; top: auto; max-width: none; aspect-ratio: 4 / 3; width: 100%; margin-bottom: 32px; }
  .sessions h2 { margin-top: 8px; }
  .verb__text { right: 0; max-width: none; padding: 16px; }
  .book__intro { display: block; }
  .cal { margin-top: 32px; }
  .fields { grid-template-columns: 1fr; }
  .contact { min-height: 86svh; }
  .contact__handle { white-space: normal; margin-bottom: 18svh; }
  .contact__handle .br { display: block; }
  .contact__foot { flex-direction: column; gap: 12px; }
  .faq__text { columns: 1; }
  .foot__name { white-space: normal; }
  .foot__name .br { display: block; }
  .foot__places { grid-column: 1 / -1; }
  .foot__links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .foot__legal { margin-top: 56px; }
}

/* ---------- reduced motion: keep everything, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; }
  .js .names__first, .js .names__last { opacity: 1; filter: none; }
  .hero__photo img { animation: none; transform: none; }
}
