/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #000;
  --surface: #121212;
  --line: #262626;
  --fg: #edebe6;
  --muted: #9a968f;
  --rec: #ff3b1f;          /* tally-light red: the one accent */
  --on-rec: #000;
  --chip: #edebe6;
  --on-chip: #000;

  --font-display: "Martian Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pad: clamp(12px, 2vw, 28px);
  --gutter: clamp(6px, 0.7vw, 10px);
  --head-h: 84px;
  --head-h-lg: var(--head-h); /* tall header at the top of the page (desktop) */

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 700ms;

  --z-mast: 20;
  --z-viewer: 40;
  color-scheme: dark;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 2px; }
.skip {
  position: fixed; left: var(--pad); top: -100px; z-index: 100;
  background: var(--rec); color: var(--on-rec); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }
#main:focus { outline: none; }

.rec {
  display: inline-block; flex: none;
  width: .5em; height: .5em; border-radius: 50%;
  background: var(--rec);
  animation: rec 1.6s steps(1, end) infinite;
}
@keyframes rec { 50% { opacity: .15; } }

/* ───────────────────────── Header ───────────────────────── */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-mast);
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  background: #000;
  border-bottom: 1px solid var(--line);
  transition: height var(--t-med) var(--ease-out);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-decoration: none;
  transition: font-size var(--t-med) var(--ease-out);
}
.wordmark .rec { width: .38em; height: .38em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 16px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--fg);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
    font-size var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out), min-height var(--t-med) var(--ease-out);
  touch-action: manipulation;
}
.nav a:hover { background: var(--chip); color: var(--on-chip); }
.nav a[aria-current="page"] { background: var(--rec); color: var(--on-rec); }

.menu-btn {
  display: none;
  min-height: 48px; padding: 8px 18px;
  background: var(--chip); color: var(--on-chip); border: 0;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Tall header at the top of the page; it shrinks to the compact bar (above) once you scroll. */
@media (min-width: 900px) {
  :root { --head-h-lg: 132px; }
  .mast:not(.is-compact) { height: var(--head-h-lg); }
  .mast:not(.is-compact) .wordmark { font-size: clamp(1.9rem, 3.4vw, 3.6rem); }
  .mast:not(.is-compact) .nav ul { gap: 6px; }
  .mast:not(.is-compact) .nav a { min-height: 52px; padding: 10px 14px; font-size: 15px; }
}
@media (min-width: 1200px) {
  .mast:not(.is-compact) .nav a { padding: 12px 20px; font-size: 16px; }
}

/* ───────────────────────── Layout ───────────────────────── */
main { padding: calc(var(--head-h-lg) + var(--pad)) var(--pad) calc(var(--pad) * 3); }

/* ───────────────────────── Hero video ───────────────────────── */
.hero {
  position: relative;
  height: calc(100svh - var(--head-h-lg) - var(--pad) * 2);
  min-height: 340px; max-height: 1100px;
  margin-bottom: var(--gutter);
  background: #000;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: opacity, transform;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__hud {
  position: absolute; top: 14px; right: 14px;
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero__role { position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); }
.hero__kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rec); }
.hero__words {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.4rem, 4.2vw, 4.4rem); line-height: .95; letter-spacing: -0.05em;
  text-transform: uppercase;
}
.hero__toggle {
  position: absolute; right: 14px; bottom: 14px;
  min-height: 40px; padding: 8px 14px;
  background: rgba(0, 0, 0, .6); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.hero__toggle:hover { background: var(--chip); color: var(--on-chip); }

/* "Scroll" prompt: label over a line with a red dot travelling down it */
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(14px, 2vw, 28px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 88px; padding: 12px 18px 14px;
  background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg);
  transition: border-color var(--t-fast) ease;
}
.hero__scroll:hover { border-color: var(--rec); }
.hero__scroll-line {
  position: relative; width: 2px; height: 40px; overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: -2px; top: -8px;
  width: 6px; height: 8px; border-radius: 3px;
  background: var(--rec);
  animation: scroll-cue 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
.hero__scroll:hover .hero__scroll-text { color: var(--rec); }
/* Tablet: move the prompt to the right, above Pause, clear of the corner text */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__scroll { left: auto; right: 14px; bottom: 70px; transform: none; }
}
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* ───────────────────────── Section intro ───────────────────────── */
.intro { padding: clamp(28px, 5vw, 72px) 0 clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rec); }
.intro__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.05em;
  max-width: 20ch; text-wrap: balance;
}
.intro__body { margin: 6px 0 0; max-width: 62ch; color: var(--muted); }
.intro__body:empty, .intro__meta:empty, .intro .eyebrow:empty { display: none; }
/* Compact intro (home page): the heading reads as a small label */
.intro--compact { padding: clamp(20px, 3vw, 40px) 0 clamp(14px, 2vw, 22px); }
.intro--compact .intro__title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rec);
}
.intro__meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.intro__meta div { display: flex; gap: 8px; }
.intro__meta dt { color: var(--muted); }
.intro__meta dd { margin: 0; }

/* ───────────────────────── Grid ───────────────────────── */
.grid { display: flex; gap: var(--gutter); align-items: flex-start; }
.grid__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gutter); }

.tile {
  position: relative; display: block; overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.tile.is-in { opacity: 1; transform: none; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity var(--t-med) ease;
  opacity: 0;
}
.tile img.is-loaded { opacity: 1; }
.tile video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: transform 900ms var(--ease-out), opacity var(--t-med) ease;
}
.tile video.is-loaded { opacity: 1; }
/* small play marker on video tiles */
.tile__play {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .5);
  transition: background-color var(--t-fast) ease;
}
.tile__play::after {
  content: ""; position: absolute; left: 13px; top: 10px;
  border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.tile--video:hover .tile__play { background: var(--rec); border-color: var(--rec); }
.tile:focus-visible { outline-offset: -2px; }

/* viewfinder corner marks on hover */
.tile::before, .tile::after {
  content: ""; position: absolute; width: 18px; height: 18px; z-index: 1;
  border: 0 solid var(--fg); opacity: 0; transition: opacity var(--t-fast) ease;
  pointer-events: none;
}
.tile::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.tile::after { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }

@media (hover: hover) {
  .tile:hover img, .tile:hover video { transform: scale(1.025); }
  .tile:hover::before, .tile:hover::after { opacity: .9; }
}

/* ───────────────────────── Photo categories ───────────────────────── */
.grid.grid--sections { display: block; }

/* Category switcher above a gallery */
.subnav {
  position: sticky; top: var(--head-h); z-index: 10;
  margin: 0 calc(var(--pad) * -1) var(--gutter); padding: 10px var(--pad);
  background: #000; border-bottom: 1px solid var(--line);
}
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
  touch-action: manipulation;
}
.subnav a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.subnav a:hover { border-color: var(--fg); }
.subnav a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.subnav a[aria-current] span { color: var(--bg); }

/* Cover tiles on the Photo landing page */
.covers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: minmax(0, 1fr); }
.cover {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface);
  text-decoration: none; color: #fff;
}
.cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  transition: transform 900ms var(--ease-out);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 38%, rgba(0, 0, 0, 0) 62%);
}
.cover__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 6px; justify-items: start;
  padding: clamp(16px, 2.2vw, 28px);
}
.cover__n { font-size: 12px; letter-spacing: .12em; color: var(--rec); font-variant-numeric: tabular-nums; }
.cover__title {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -0.05em;
}
.cover__meta { font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .86); max-width: 40ch; }
.cover__cta {
  margin-top: 8px; padding: 8px 12px;
  background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
}
.cover:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .cover__cta { opacity: 0; transform: translateY(6px); }
  .cover:hover img { transform: scale(1.04); }
  .cover:hover .cover__cta, .cover:focus-visible .cover__cta { opacity: 1; transform: none; }
}
@media (min-width: 640px) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover { aspect-ratio: 4 / 5; }
}
/* Desktop: every category side by side in one row of tall columns. */
@media (min-width: 1024px) {
  .covers { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .cover { aspect-ratio: 2 / 3; }
  .cover__title { font-size: clamp(1.3rem, 2vw, 2.2rem); }
  .cover__meta { font-size: 12px; }
}

/* 3D page: Vimeo reel */
.reel { margin-bottom: clamp(36px, 5vw, 64px); }
.reel__frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel__label {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rec);
}
.reel__label--work { margin-bottom: 14px; }

/* "Next category" link under a gallery */
.next-cat { margin-top: clamp(32px, 5vw, 64px); }
.next-cat a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding: clamp(20px, 3vw, 32px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.next-cat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next-cat b {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1;
  transition: color var(--t-fast) ease;
}
.next-cat a:hover b { color: var(--rec); }

/* ───────────────────────── Coming soon ───────────────────────── */
.soon {
  min-height: calc(100svh - var(--head-h) - var(--pad) * 4);
  display: grid; place-items: center;
}
.soon__frame {
  position: relative; width: min(100%, 760px);
  padding: clamp(28px, 6vw, 72px);
  --c: linear-gradient(var(--fg), var(--fg));
  background:
    var(--c) top left / 28px 2px, var(--c) top left / 2px 28px,
    var(--c) top right / 28px 2px, var(--c) top right / 2px 28px,
    var(--c) bottom left / 28px 2px, var(--c) bottom left / 2px 28px,
    var(--c) bottom right / 28px 2px, var(--c) bottom right / 2px 28px;
  background-repeat: no-repeat;
}
.soon__tag { margin: 0 0 18px; font-size: 12px; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.soon__title {
  margin: 0 0 20px;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: .9; letter-spacing: -0.05em;
}
.soon__note { margin: 0 0 28px; max-width: 46ch; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--fg); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* ───────────────────────── Shared page type ───────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.page__title {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -0.05em;
  max-width: 16ch; text-wrap: balance;
}
.page__body { max-width: 60ch; }
.page__body p { margin: 0 0 1.1em; }
.page__body p + p { color: var(--muted); }
.btn--solid { background: var(--rec); border-color: var(--rec); color: var(--on-rec); }
.btn--solid:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ───────────────────────── About ───────────────────────── */
.about { padding-top: clamp(24px, 4vw, 56px); }
.about__lead {
  display: grid; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
}
.about__portrait { margin: 0; position: relative; background: var(--surface); aspect-ratio: 4 / 5; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait figcaption {
  position: absolute; left: 12px; top: 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em; color: var(--muted);
}
.about__intro .eyebrow { margin-bottom: 20px; }
.about__intro .btn { margin-top: 12px; }

.about__sections {
  margin-top: clamp(56px, 8vw, 120px);
  display: grid; gap: clamp(40px, 5vw, 72px);
}
.block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: 20px; }
.block__title {
  margin: 0; display: flex; gap: 14px; align-items: baseline;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.04em; line-height: 1.1;
}
.block__n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--rec); }

.services, .process { list-style: none; margin: 0; padding: 0; }
.services li, .process li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.services li:first-child, .process li:first-child { padding-top: 0; }
.services b, .process b { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.services span, .process span { color: var(--muted); font-size: 15px; }
.process { counter-reset: step; }
.process b::before {
  counter-increment: step; content: counter(step, decimal-leading-zero) "  ";
  color: var(--rec); font-weight: 500; font-variant-numeric: tabular-nums;
}

.gear { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 32px; }
.gear dt, .gear dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gear dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; align-self: baseline; }
.gear dd { margin: 0; }
.gear ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* ───────────────────────── Contact ───────────────────────── */
.contact {
  padding-top: clamp(24px, 4vw, 56px);
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}
.contact__info .eyebrow { margin-bottom: 20px; }
.contact__intro { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 48ch; color: var(--muted); }
.contact__label { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mail {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem); letter-spacing: -0.04em;
  text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 3px solid var(--rec); padding-bottom: 4px;
  transition: color var(--t-fast) ease;
}
.mail:hover { color: var(--rec); }
.links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links:empty { display: none; }
.links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line);
}
.form__title, .form__hint, .field--wide, .form__foot { grid-column: 1 / -1; }
.form__title {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: 1.3rem; letter-spacing: -0.04em;
}
.form__hint { margin: -12px 0 0; font-size: 13px; color: var(--muted); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.req { color: var(--rec); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #000; color: var(--fg);
  border: 1px solid #4a4845; border-radius: 0;
  font: inherit; font-size: 16px;
  transition: border-color var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--rec); outline-offset: 0; border-color: var(--rec); }
.field [aria-invalid="true"] { border-color: var(--rec); }
.field__err { margin: 0; font-size: 13px; color: #ff6a52; }
.field__err:empty { display: none; }
.field__err::before { content: "! "; font-weight: 700; }
.field__help { margin: 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__foot .btn { min-height: 48px; }
.form__foot .btn[disabled] { opacity: .5; cursor: progress; }
.form__status { margin: 0; font-size: 14px; }
.form__status.is-ok { color: var(--fg); }
.form__status.is-ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ad07a; margin-right: 8px; }
.form__status.is-err { color: #ff6a52; }
.form__status a { color: var(--fg); }

@media (max-width: 899px) {
  .about__lead, .block, .contact { grid-template-columns: minmax(0, 1fr); }
  .about__portrait { max-width: 520px; }
}
@media (max-width: 539px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .services li, .process li { grid-template-columns: minmax(0, 1fr); }
}

/* ───────────────────────── Viewer ───────────────────────── */
.viewer {
  position: fixed; inset: 0; z-index: var(--z-viewer);
  background: rgba(0, 0, 0, .98);
  display: grid;
  grid-template: "stage stage" 1fr "meta controls" auto / 1fr auto;
  gap: 12px var(--pad);
  padding: var(--pad);
  animation: fade var(--t-med) var(--ease-out);
}
.viewer__stage { grid-area: stage; margin: 0; min-height: 0; position: relative; }
.viewer__stage img, .viewer__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade var(--t-med) var(--ease-out); background: #000; }
.viewer__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; }
.viewer__title {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem); letter-spacing: -0.04em; line-height: 1.1;
}
.viewer__sub { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.viewer__controls { grid-area: controls; display: flex; gap: 6px; align-self: end; }
.ctl {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  background: var(--chip); color: var(--on-chip); text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  touch-action: manipulation;
}
.ctl:hover { background: #fff; }
.ctl--close { background: var(--rec); color: var(--on-rec); }
.ctl--close:hover { background: #ff5a42; }
@keyframes fade { from { opacity: 0; } }

body.is-locked { overflow: hidden; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    background: #000; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) var(--pad);
  }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a {
    width: 100%; min-height: 52px; padding: 8px 4px;
    font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112.5;
    font-size: 1.5rem; letter-spacing: -0.04em;
  }
  .nav a[aria-current="page"] { padding-inline: 10px; }
}
@media (max-width: 639px) {
  :root { --head-h: 68px; }
  .hero { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  /* On phones the work already peeks below the short hero, so the prompt isn't needed. */
  .hero__scroll { display: none; }
  .viewer { grid-template: "stage" 1fr "meta" auto "controls" auto / 1fr; }
  .viewer__controls .ctl { flex: 1; justify-content: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile { opacity: 1; transform: none; }
  .tile img, .tile video { opacity: 1; }
}
