/* Yan Stroeb — portfolio
   Layout: one long "reel". Full-bleed photo hero, then chapters separated by
   timecode slates. Dark by design (single theme): night teal ground, amber light. */

@font-face { font-family: "Gloock"; src: url("fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  /* color */
  --night: #0c1113;        /* ground: wet glass at dusk */
  --night-2: #131b1e;      /* raised surface */
  --line: #24312f;         /* hairlines */
  --paper: #ece4d6;        /* primary text, warm */
  --haze: #93a29f;         /* secondary text, teal-grey */
  --amber: #f2a338;        /* the light */
  --amber-deep: #c8611c;
  --teal: #6f9ea3;
  /* type */
  --display: "Gloock", "Bodoni 72", "Didot", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.4vw, 5rem);
  --step-4: clamp(3rem, 1.6rem + 6.5vw, 8.5rem);
  /* space */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--night); padding: 8px 12px; }
.skip:focus { left: 16px; }

/* Film grain over everything; purely decorative */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 51;
  height: env(safe-area-inset-top, 0px); background: var(--night);
}
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 70%, transparent), transparent);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--night) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--display); font-size: 1.3rem; text-decoration: none; letter-spacing: 0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--paper);
  opacity: 0.78; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.is-active { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; }
.timecode {
  font-family: var(--mono); font-size: 0.78rem; color: var(--amber); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.timecode::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-deep); box-shadow: 0 0 8px var(--amber-deep);
  animation: rec 2s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: 0.25; } }

/* Section nav: numbered like the scene slates, so the page still reads in order */
#site-nav { counter-reset: scene; gap: 20px; }
#site-nav a { counter-increment: scene; }
#site-nav a::before {
  content: counter(scene, decimal-leading-zero); margin-right: 6px;
  font-family: var(--mono); font-size: 0.7em; color: var(--amber); letter-spacing: 0.04em;
}
.menu-btn {
  display: none; margin-left: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--night) 60%, transparent); color: var(--paper); cursor: pointer;
  font: inherit; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em;
}
.menu-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  #site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0; margin: 0; padding: 24px clamp(16px, 5vw, 40px) 40px;
    background: var(--night); border-top: 1px solid var(--line); overflow-y: auto;
  }
  .site-header.menu-open #site-nav { display: flex; }
  .site-header.menu-open { background: var(--night); border-bottom-color: var(--line); }
  #site-nav a {
    padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 1; text-shadow: none;
    font-family: var(--display); font-size: var(--step-2); text-transform: none; letter-spacing: 0;
  }
  #site-nav a::before { font-size: 0.8rem; margin-right: 16px; vertical-align: middle; }
}
@media (max-width: 420px) {
  .timecode { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 118%;
  object-fit: cover; object-position: 50% 30%;
  will-change: transform;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night) 55%, transparent) 0%, transparent 18%, transparent 35%, color-mix(in srgb, var(--night) 80%, transparent) 58%, var(--night) 82%);
}
.hero-copy { width: 100%; padding-block: 140px 72px; display: grid; gap: 28px; justify-items: start; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-4); line-height: 0.92;
  margin: 0; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { max-width: 34ch; font-size: var(--step-1); line-height: 1.4; margin: 0; color: var(--paper); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  /* Desktop: the photo sits on the right like a frame on a lightbox, text on the left */
  .hero-media { left: 38%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--night) 0%, color-mix(in srgb, var(--night) 40%, transparent) 30%, transparent 60%),
      linear-gradient(180deg, transparent 60%, var(--night) 100%);
  }
  .hero { align-items: center; }
  .hero-copy { padding-block: 120px; }
}
@media (min-width: 1600px) {
  /* Wide screens: keep the photo next to the centred text column instead of pinned to the screen edge */
  .hero-media {
    left: calc((100% - var(--wrap)) / 2 + var(--wrap) * 0.38);
    right: max(0px, calc((100% - var(--wrap)) / 2 - 160px));
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 500 var(--step--1)/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--paper); color: var(--paper); background: transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--paper); color: var(--night); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--night); }
.btn-amber:hover { background: var(--paper); border-color: var(--paper); }

.scroll-cue {
  position: absolute; bottom: 24px; right: var(--gutter-r);
  font-family: var(--mono); font-size: 0.72rem; color: var(--haze);
  writing-mode: vertical-rl; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- Chapters ---------- */
.chapter { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.slate {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
  border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(36px, 6vw, 72px);
  font-family: var(--mono); font-size: 0.78rem; color: var(--haze);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.slate .scene { color: var(--amber); }
.slate .tc { margin-left: auto; font-variant-numeric: tabular-nums; }
.chapter h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--step-3); line-height: 1; margin: 0 0 24px;
  letter-spacing: -0.01em; text-wrap: balance;
}
.chapter .intro { max-width: 58ch; color: var(--haze); margin: 0; }

/* Reveal: elements are visible at rest; motion is a small drift only */
.reveal { transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 1s ease; }
.js .reveal:not(.is-in) { transform: translateY(28px); opacity: 0.35; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.service { background: var(--night); padding: 32px 28px 36px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.service h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin: 0; line-height: 1.15; }
.service p { margin: 0; color: var(--haze); }
.service .kind, .also .kind { font-family: var(--mono); font-size: 0.74rem; color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase; }
.also { margin: 24px 0 0; color: var(--haze); max-width: 70ch; }
.also .kind { margin-right: 12px; }

/* ---------- References ---------- */
.logos {
  list-style: none; padding: 0; margin: 48px 0 0;
  /* Flex, not grid: any number of logos works, and a short last row sits centred */
  display: flex; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0;
  --per-row: 3;
}
@media (min-width: 720px) { .logos { --per-row: 5; } }
@media (min-width: 1060px) { .logos { --per-row: 7; } }
.logos li {
  flex: 0 0 calc(100% / var(--per-row)); min-width: 0;
  display: grid; place-items: center; height: clamp(96px, 10vw, 136px); padding: 12px;
}
.logos img { max-width: 100%; height: auto; opacity: 0.72; transition: opacity 0.3s; }
.logos li:hover img { opacity: 1; }

.gallery-more { margin-top: 40px; text-align: center; }

/* ---------- Films ---------- */
.films { display: grid; gap: clamp(72px, 10vw, 140px); }
.film { display: grid; gap: 28px; min-width: 0; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  background: var(--night-2); overflow: hidden;
  border: 1px solid var(--line);
}
/* Horizontal films: nearly full screen width, breaking out of the text column */
.film:not(.is-vertical) .film-frame {
  --bleed: min(calc(100vw - 32px), 1600px);
  width: var(--bleed); max-width: none; margin-left: calc((100% - var(--bleed)) / 2);
}
@media (min-width: 900px) {
  .film:not(.is-vertical) .film-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
}

/* Vertical films: in a phone frame, text beside it */
.film.is-vertical .film-frame {
  aspect-ratio: 9 / 16; width: min(340px, 78vw); justify-self: center;
  border: 10px solid #050607; border-radius: 46px;
  box-shadow: 0 0 0 1px #2c3236, 0 30px 80px rgba(0, 0, 0, 0.55);
}
.film.is-vertical .film-frame::before {
  /* The notch */
  top: 10px; left: 50%; right: auto; width: 32%; height: 22px; transform: translateX(-50%);
  border-radius: 999px; transition: none;
}
.film.is-vertical .film-frame:hover::before, .film.is-vertical .film-frame.is-playing::before { height: 22px; }
.film.is-vertical .film-frame::after { display: none; }
@media (min-width: 900px) {
  .film.is-vertical { grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: center; }
}
.film-frame button, .film-frame a.film-play {
  all: unset; cursor: pointer; position: absolute; inset: 0; display: block;
}
.film-frame button:focus-visible, .film-frame a.film-play:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s; filter: saturate(0.9) contrast(1.05); }
.film-frame:hover img { transform: scale(1.04); filter: saturate(1.1); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Poster shown when no thumbnail is available (or before one loads) */
.film-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 75%, color-mix(in srgb, var(--amber) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--teal) 50%, var(--night)) 0%, var(--night) 100%);
}
.film-poster span { font-family: var(--display); font-size: var(--step-3); color: color-mix(in srgb, var(--paper) 85%, transparent); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 68px; height: 68px;
  font-size: 0; color: transparent; /* label is in the button's aria-label */
}
.play::before {
  content: ""; display: block; width: 68px; height: 68px; border-radius: 50%;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  background: var(--amber) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z' fill='%230c1113'/></svg>") center / 22px no-repeat;
  transition: transform 0.3s;
}
.film-frame:hover .play::before { transform: scale(1.1); }
/* Letterbox bars: a nod to the cinema frame */
.film-frame::before, .film-frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7%; background: #000; z-index: 2; pointer-events: none;
  transition: height 0.6s cubic-bezier(.2,.7,.2,1);
}
.film-frame::before { top: 0; }
.film-frame::after { bottom: 0; }
.film-frame:hover::before, .film-frame:hover::after, .film-frame.is-playing::before, .film-frame.is-playing::after { height: 0; }
.film-meta { display: grid; gap: 20px; min-width: 0; }
.film-head, .film-body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.film-body { gap: 16px; }
.film-meta .no { font-family: var(--mono); font-size: 0.78rem; color: var(--amber); letter-spacing: 0.12em; }
.film-meta h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.05; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.film-meta p { margin: 0; color: var(--haze); max-width: 52ch; }
.film-meta .role { color: var(--paper); }
.film-meta .role strong { font-weight: 600; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); border-radius: 999px;
}
.film-meta .watch { font-size: var(--step--1); color: var(--haze); text-underline-offset: 4px; }
.film-meta .watch:hover { color: var(--paper); }
.consent-note { font-size: var(--step--1); color: var(--haze); max-width: 60ch; margin-top: 40px; }

/* ---------- Photos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.chip {
  font: 500 var(--step--1)/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--haze);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover { color: var(--paper); border-color: var(--haze); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--night); }
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; overflow: hidden; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter 0.5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  font-size: var(--step--1); color: var(--paper);
  background: linear-gradient(transparent, color-mix(in srgb, var(--night) 85%, transparent));
  opacity: 0; transition: opacity 0.3s;
}
.gallery figure:hover figcaption, .gallery button:focus-visible + figcaption { opacity: 1; }
/* `hidden` must win over the display rules above and below */
[hidden] { display: none !important; }
.empty-state {
  border: 1px dashed var(--line); padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 10px; justify-items: start; margin-top: 36px;
}
.empty-state strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.empty-state p { margin: 0; color: var(--haze); max-width: 52ch; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: color-mix(in srgb, #000 94%, transparent); color: var(--paper);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) 12px var(--gutter);
  font-family: var(--mono); font-size: 0.78rem; color: var(--haze);
}
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter-r) 0 var(--gutter); position: relative; }
.lb-stage img { max-height: calc(100dvh - 140px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 120px); object-fit: contain; }
@media (max-width: 640px) { .lb-stage img { max-width: 100%; } .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; } }
.lb-caption { padding: 12px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter); text-align: center; color: var(--haze); font-size: var(--step--1); min-height: 1.6em; }
.lb-btn {
  all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper); font-size: 1.4rem;
  background: color-mix(in srgb, var(--night-2) 80%, transparent); border: 1px solid var(--line);
}
.lb-btn:hover { border-color: var(--paper); }
.lb-btn:focus-visible { outline: 2px solid var(--amber); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter-r); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .about-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}
.about-photo { margin: 0; }
.about-photo .frame { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 6; max-width: 100%; }
.about-photo img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.about-photo figcaption { font-family: var(--mono); font-size: 0.74rem; color: var(--haze); margin-top: 10px; letter-spacing: 0.06em; }
.about-text { min-width: 0; max-width: 64ch; }
.about-text p { margin: 0 0 1.2em; text-wrap: pretty; }
.about-text .lead { font-family: var(--display); font-size: var(--step-1); line-height: 1.35; color: var(--paper); }
.about-text .pull {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.15;
  color: var(--amber); margin: 1.2em 0; text-wrap: balance;
}
.inspirations { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 8px; }
.inspirations li {
  font-size: var(--step--1); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--haze);
}

/* ---------- Morii ---------- */
.morii {
  position: relative; overflow: hidden;
  padding-block: clamp(120px, 18vw, 220px);
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, color-mix(in srgb, var(--amber-deep) 35%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    var(--night);
}
.morii .word {
  font-family: var(--display); font-size: var(--step-4); line-height: 1; margin: 0 0 6px;
  color: var(--amber);
}
.morii .def { font-family: var(--mono); font-size: 0.8rem; color: var(--haze); letter-spacing: 0.06em; margin: 0 0 clamp(40px, 6vw, 72px); }
.morii blockquote { margin: 0; max-width: 880px; }
.morii blockquote p {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.25; margin: 0 0 0.7em;
  text-wrap: balance;
  transition: opacity 0.8s ease, color 0.8s ease;
}
.js .morii blockquote p:not(.is-lit) { opacity: 0.32; }
.morii .gap { font-family: var(--mono); font-size: var(--step-0); color: var(--haze); }
.morii cite {
  display: block; margin-top: 40px; font-style: normal;
  font-family: var(--mono); font-size: 0.78rem; color: var(--haze); letter-spacing: 0.04em; max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.direct { display: grid; gap: 22px; align-content: start; }
.direct .label { font-family: var(--mono); font-size: 0.74rem; color: var(--haze); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.direct .value { font-family: var(--display); font-size: var(--step-2); line-height: 1.1; overflow-wrap: anywhere; text-decoration: none; }
.direct .value:hover { color: var(--amber); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-btn { all: unset; cursor: pointer; font-family: var(--mono); font-size: 0.74rem; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.copy-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 0.74rem; color: var(--haze); letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--paper); background: var(--night-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.form-status { font-size: var(--step--1); color: var(--haze); min-height: 1.5em; margin: 0; }
.form-status.is-ok { color: var(--amber); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--haze); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { text-underline-offset: 4px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: calc(var(--header-h) + 64px) 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1; margin: 0 0 32px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-1); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--paper); }
.legal .muted { color: var(--haze); }
.draft-note { border: 1px solid var(--amber); color: var(--amber); padding: 14px 18px; margin-bottom: 32px; font-size: var(--step--1); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .timecode::before { animation: none; }
  .reveal, .js .reveal:not(.is-in) { transform: none; opacity: 1; transition: none; }
  .js .morii blockquote p:not(.is-lit) { opacity: 1; }
  .hero-media img, .about-photo img { transform: none !important; }
  .film-frame img, .gallery img { transition: none; }
}
