/* =========================================================================
   Riscuta Film — dark cinematic portfolio
   Built against SPEC.md §6 (Style and accessibility)
   ========================================================================= */

/* ---------- Tokens ---------- */
/* ---------- Fonts (self-hosted, SIL Open Font License, see assets/fonts/LICENSE.txt) ----------
   Served from this site so no visitor data goes to Google Fonts. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-tight-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg:        #08080a;
  --bg-2:      #0e0e11;
  --bg-3:      #141418;
  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .05);
  --text:      #f4f2ef;
  --muted:     #8f8d8a;
  --muted-dim: #7d7b78;
  --accent:    #e7b80b;   /* logo yellow */

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --maxw:    1240px;
  --section: clamp(6rem, 12vw, 10rem);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur:  .6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--text);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 600;
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line-soft); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.h-display { font-size: clamp(2.5rem, 1.4rem + 5.6vw, 6.5rem); }
.h-1       { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.25rem); }
.h-2       { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.12; }
.h-3       { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--accent);
  opacity: .8;
}

.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.lead + .lead { margin-top: .5rem; }

.body-text { color: var(--muted); max-width: 62ch; }
.body-text + .body-text { margin-top: 1.15rem; }
.body-text strong { color: var(--text); font-weight: 500; }

.pull-line {
  margin-top: 2.25rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text);
  max-width: 26ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3rem;
  padding: .85rem 1.6rem;
  border: 1px solid rgba(231, 184, 11, .45);   /* logo yellow, softened */
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { border-color: var(--accent); background: rgba(231, 184, 11, .08); transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0c;
}
.btn--primary:hover { background: #f5c62a; border-color: #f5c62a; }

.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

/* keep the logo and header button clear of the hero's viewfinder corners */
.header__inner {
  /* --wrap-offset: how far the centred .wrap sits in from the window edge on
     wide screens. Subtracting it keeps the logo exactly on the page text's left
     edge whenever that edge is already clear of the viewfinder / REC. */
  --wrap-offset: max(0px, (100vw - var(--maxw)) / 2);
  padding-left: max(var(--gutter), 4rem - var(--wrap-offset));
  padding-right: max(var(--gutter), 4rem);
  transition: padding .4s var(--ease);
}
/* Home page, top of the hero (header not yet "stuck"): leave room for REC on the
   left and the timecode on the right, which share the header's row */
@media (min-width: 601px) {
  .header.has-hud:not(.is-stuck) .header__inner {
    padding-left: max(var(--gutter), 8.5rem - var(--wrap-offset));
    padding-right: max(var(--gutter), 11.5rem);
  }
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand span { color: var(--muted); font-weight: 400; }
.brand__logo { display: block; height: 44px; width: auto; }
@media (min-width: 901px) { .brand__logo { height: 50px; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2.25rem; list-style: none; padding: 0; }
.nav__link {
  position: relative;
  font-size: .875rem;
  color: var(--muted);
  padding-block: .35rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.mobile-nav a {
  display: block;
  padding: .55rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav__foot { margin-top: 3rem; color: var(--muted); font-size: .85rem; }

body.nav-open { overflow: hidden; }

@media (min-width: 901px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
}
/* menu-button sizes (phones and small tablets): logo on the left, menu button
   on the right, kept inside the viewfinder's corner brackets. The button keeps
   10px of padding round its lines (44px tap target); the negative margin lines
   the visible lines up with the logo's edge on the other side. */
@media (max-width: 900px) {
  .header__inner,
  .header.has-hud:not(.is-stuck) .header__inner {
    justify-content: space-between;
    padding-inline: max(var(--gutter), 4rem);
  }
  .nav-toggle { margin-right: -10px; }
}
/* compact header: shrink the nav before it ever collides with REC or the timecode */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav__list { gap: 1.25rem; }
  .nav__link { font-size: .8rem; }
  .header__cta { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .8rem; }
  .brand__logo { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 60rem);
  padding-block: 9rem clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__bg::before {
  width: 65vw; height: 65vw;
  min-width: 30rem; min-height: 30rem;
  top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(231,184,11,.14), transparent 66%);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.hero__bg::after {
  width: 55vw; height: 55vw;
  min-width: 26rem; min-height: 26rem;
  bottom: -22%; right: -10%;
  background: radial-gradient(circle, rgba(96,132,164,.18), transparent 66%);
  animation: drift-b 30s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(7%, 9%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8%, -7%, 0) scale(1.08); } }

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  /* the poster is the reel's first frame, so the still shows straight away
     (also when a phone blocks autoplay) and the video takes over seamlessly */
  opacity: .6;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,8,10,.72) 0%, rgba(8,8,10,.24) 34%, rgba(8,8,10,.94) 100%);
}
/* Film-noise layer: sits above the video and scrim, below the content */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Camera viewfinder overlay: corner brackets + REC HUD */
.viewfinder {
  --vf-y: 1rem;
  --vf-x: 1rem;
  position: absolute;
  inset: var(--vf-y) var(--vf-x);   /* frames the whole screen, top nav included */
  z-index: 0;
  pointer-events: none;
}
.vf-c { position: absolute; width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .7); }
.vf-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 .72rem/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums;
}
.hud-tl { top: 14px; left: 48px; }   /* mirrors .hud-bl */
.hud-tr { top: 14px; right: 48px; }  /* mirrors .hud-br */
.hud-bl { bottom: 14px; left: 48px; }
.hud-br { bottom: 14px; right: 48px; }
.hud__rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: rec-blink 1s steps(2, start) infinite; }
@keyframes rec-blink { to { visibility: hidden; } }
@media (max-width: 600px) {
  .hud-tl, .hud-tr, .hud-bl, .hud-br { display: none; }   /* phones: corners only, top and bottom alike */
}
/* keep hero content clear of the bottom brackets */
.hero { padding-bottom: clamp(4.5rem, 9vw, 6.5rem); }
.hero__inner { position: relative; width: 100%; }
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem); }
.hero__text { margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.hero .lead { color: rgba(244, 242, 239, .78); max-width: 44ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

/* ---------- Split section (intro / about / why) ---------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 7rem); }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
}

/* ---------- Section head ---------- */
.section-head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 5rem);
  }
}
.section-head__aside { display: grid; gap: 1.5rem; justify-items: start; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: block; position: relative; }   /* anchors the hidden "Watch" label so it stays inside the scrolling row */

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(.92);
}
.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(8,8,10,0) 40%, rgba(8,8,10,.55));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card__play i {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(8,8,10,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: scale(.85);
  transition: transform .4s var(--ease);
}
.card:hover .card__media img,
.card:focus-visible .card__media img { transform: scale(1.045); filter: saturate(1); }
.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; }
.card:hover .card__play i,
.card:focus-visible .card__play i { transform: scale(1); }

.card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
}
.card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.card__meta { margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.card__year { font-size: .8rem; color: var(--muted-dim); font-variant-numeric: tabular-nums; }

/* ---------- Horizontal work gallery -------------------------------------
   Two modes, set by JS on the section:
     .is-pinned  desktop, pointer, motion allowed — the stage sticks and the
                 row travels sideways in step with vertical page scroll
     .is-swipe   touch, narrow, reduced-motion, and the no-JS default —
                 a native scroll-snap row, scrollbar hidden
     .is-static  everything fits: no travel, no controls
   ------------------------------------------------------------------------ */
.hscroll { padding-block: 0; }

/* Section padding lives on the stage so the pinned viewport can be full height. */
.hscroll__stage { padding-block: var(--section); }
.hscroll.is-pinned .hscroll__stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vh, 2.75rem);
  height: 100svh;
  padding-block: 6.5rem 2.5rem;
  overflow: hidden;
}

.hscroll__head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .hscroll__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 5rem);
  }
}
.hscroll.is-pinned .hscroll__head { margin-bottom: 0; }
.hscroll__intro { display: grid; gap: 1.5rem; justify-items: start; }

/* --- the rail --- */
.hscroll__viewport { position: relative; width: 100%; }

.hscroll__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  /* First card lines up with the page gutter; the trailing pad leaves the
     last card room to clear the edge instead of sitting flush against it.
     scroll-padding matches, or mandatory snapping would park each card
     against the bare container edge and eat the gutter. */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hscroll__track::-webkit-scrollbar { display: none; }

/* Pinned: nothing scrolls the rail directly — page scroll and the controls do. */
.hscroll.is-pinned .hscroll__track {
  overflow-x: hidden;
  cursor: grab;
  scroll-snap-type: none;
}
.hscroll.is-pinned .hscroll__track.is-dragging { cursor: grabbing; }
.hscroll.is-pinned .hscroll__track * { user-select: none; }

/* Swipe: native momentum + snap. */
.hscroll.is-swipe .hscroll__track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hscroll.is-swipe .hscroll__track > .card { scroll-snap-align: start; }

.hscroll.is-static .hscroll__track { overflow-x: visible; justify-content: flex-start; }

.hscroll__track > .card {
  flex: 0 0 clamp(17rem, 46vw, 40rem);
  max-width: 88vw;
}
.hscroll.is-pinned .hscroll__track > .card { flex-basis: clamp(20rem, 44vw, 38rem); }

/* Cards dim off-centre so the one you're on reads as the subject. */
.hscroll.is-pinned .hscroll__track > .card {
  opacity: .45;
  transition: opacity .5s var(--ease);
}
.hscroll.is-pinned .hscroll__track > .card.is-current,
.hscroll.is-pinned .hscroll__track > .card:hover,
.hscroll.is-pinned .hscroll__track > .card:focus-visible { opacity: 1; }

/* --- footer: counter, scrubber, controls --- */
/* Bottom-aligned, not centre-aligned: the scrubber's rail and the link's
   underline both sit on their box's bottom edge, so flex-end is what puts
   them on one continuous line. Centring instead leaves the underline half
   the link's height below the rail, which no offset can fix without a
   magic number that breaks the moment the type size changes. */
.hscroll__foot {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hscroll.is-static .hscroll__foot { display: none; }

.hscroll__count {
  flex: 0 0 auto;
  font-size: .78rem;
  line-height: 1;
  /* Pulled down by half its own height so the text is centred ON the line
     rather than sitting above it. Exact at any font size. */
  margin-bottom: -.5em;
  letter-spacing: .12em;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}
.hscroll__count b { color: var(--text); font-weight: 500; }

/* A film timeline, not a scrollbar: ticks, a filled rail, a playhead. */
.scrubber {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  display: flex;
  align-items: flex-end;   /* the rail is the line everything else aligns to */
}
.scrubber__ticks {
  position: absolute;
  inset: 5px 0 0 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12px 100%;
  background-position: 0 center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  opacity: .8;
}
.scrubber__rail {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.scrubber__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
}
.scrubber__head {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 14px;
  margin-bottom: -6.5px;   /* straddles the 1px rail, centred on it */
  background: var(--accent);
  box-shadow: 0 0 12px rgba(231, 184, 11, .55);
  will-change: transform;
}

.hscroll__viewall { flex: 0 0 auto; }

/* Narrow screens: the counter and controls are enough; the scrubber gets cramped. */
@media (max-width: 560px) {
  .scrubber { display: none; }
  .hscroll__foot { justify-content: space-between; }
}

/* ---------- Process accordion ----------
   Panels are open in the markup so the content survives without JS. The
   `js` class on <html> (set inline in <head>, before first paint) is what
   collapses them, so there is no flash of everything-open on load.
   Height animates via grid-template-rows 0fr -> 1fr, which needs no
   measuring; `visibility` keeps collapsed copy out of the a11y tree.
   ---------------------------------------------------------------------- */
.process { display: grid; gap: 0; }

.step { border-top: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 1px solid var(--line-soft); }

.step__heading { margin: 0; font: inherit; letter-spacing: normal; }

.step__btn {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
  padding: clamp(1.35rem, 3vw, 1.85rem) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease);
}
@media (min-width: 860px) {
  .step__btn {
    grid-template-columns: 4rem minmax(0, 18rem) 1fr 2rem;
    padding-inline: 1rem;
    margin-inline: -1rem;
  }
}

.step__num {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 1vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
  transition: color .3s var(--ease);
}
.step__btn:hover .step__title { color: var(--accent); }

.step__icon {
  grid-column: -1;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.step__btn:hover .step__icon { color: var(--accent); border-color: var(--accent); }
/* The plus loses its vertical stroke to become a minus. */
.step__icon-v {
  transform-origin: center;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.step.is-open .step__icon-v { transform: rotate(90deg); opacity: 0; }
.step.is-open .step__icon { color: var(--accent); border-color: var(--accent); }

.step__panel { display: grid; grid-template-rows: 1fr; }
.step__body {
  overflow: hidden;
  color: var(--muted);
  max-width: 58ch;
}
.step__body p + p { margin-top: .75rem; }
.step__body > :last-child { padding-bottom: clamp(1.5rem, 3vw, 2rem); }

/* Collapsed only once we know scripts run — otherwise this content is
   unreachable for anyone without JS. */
html.js .step__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
html.js .step__body { visibility: hidden; transition: visibility 0s linear .45s; }
html.js .step.is-open .step__panel { grid-template-rows: 1fr; }
html.js .step.is-open .step__body { visibility: visible; transition-delay: 0s; }

/* 4rem number column + 1rem gap: the answer starts under its own title. */
@media (min-width: 860px) {
  .step__body { margin-left: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .step__panel { transition: none; }
  html.js .step__body { transition: none; }
  .step__icon-v { transition: none; }
}

/* ---------- Services index ----------
   The services list: each row is a kind of production, with a preview frame
   that follows hover and focus and a link through to that service's work.
   Timings and purposes are specified in SPEC.md (Motion spec).
   ---------------------------------------------------------------------- */
.services__body { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .services__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
}

.services__list { display: grid; }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  /* The right padding sits inside the bar (which spans the padding box), so
     the count is not flush against the bar's edge when a row is active. */
  padding: clamp(.65rem, 1.6vw, .95rem) 1rem clamp(.65rem, 1.6vw, .95rem) 0;
  isolation: isolate;
}

/* Film-timeline ticks, echoing the scrubber under the work rail. */
.service__tick {
  height: 100%;
  min-height: 2.5rem;
  border-left: 1px solid var(--line);
  background-image: linear-gradient(180deg, var(--line) 1px, transparent 1px);
  background-size: 100% 8px;
  background-position: .25rem 0;
  background-repeat: repeat-y;
  margin-left: .25rem;
}

/* Sits behind the label, sweeps in from the left. */
.service__bar {
  position: absolute;
  z-index: -1;
  inset: .35rem 0 .35rem 1.75rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s var(--ease);
}

.service__label {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--muted);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.service__count {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}

/* The active state only means something next to the preview it drives.
   Below 900px there is no preview and no hover, so a permanently highlighted
   first row would be a selection that selects nothing. */
@media (min-width: 900px) {
  .service.is-active .service__bar { transform: scaleX(1); }
  .service.is-active .service__label { color: var(--bg); transform: translateX(10px); }
  .service.is-active .service__count { color: var(--bg); }
}

/* --- preview panel (>=900px only; JS does not build it below that) --- */
.services__preview {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
}
@media (min-width: 900px) { .services__preview { display: block; } }

.service__frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .26s linear, transform .38s var(--ease);
}
.service__frame.is-on {
  opacity: 1;
  transform: scale(1);
  transition: opacity .38s var(--ease) .08s, transform .38s var(--ease) .08s;
}

/* No-JS fallback list. */
.services__plain { list-style: none; padding: 0; display: grid; gap: .25rem; }
.services__plain a {
  display: block;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

@media (prefers-reduced-motion: reduce) {
  .service__bar,
  .service__label,
  .service__count,
  .service__frame,
  .service__frame.is-on { transition: none; }
  .service.is-active .service__label { transform: none; }
  .service__frame { transform: none; }
}

/* ---------- About media ---------- */
.about__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stat tiles ---------- */
.stats {
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
/* Stacked rows, not columns: this block sits in the narrow half of a split,
   where three columns squeeze every label onto two lines. */
.stat {
  display: grid;
  gap: .35rem 2rem;
  background: var(--bg);
  padding: clamp(1.25rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 1.75rem);
}
@media (min-width: 520px) {
  .stat { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; }
}
.stat__k {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.stat__v { font-size: .875rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
.quote__mark { font-family: var(--font-display); font-size: 2.5rem; line-height: .6; color: var(--accent); opacity: .55; }
.quote blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--text); flex: 1; }
.quote figcaption { font-size: .85rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--text); font-weight: 500; }
.quote--placeholder { border-style: dashed; border-color: var(--line); }
.quote__tag {
  align-self: flex-start;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .6rem;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .lead { margin-inline: auto; }
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.25rem, 5vw, 3rem);
}
.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .6vw, 1.4rem);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: .2rem;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact__mail:hover { color: var(--text); border-color: var(--accent); }
.contact__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .85rem;
  color: var(--muted-dim);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer__top {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 780px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 3rem; }
}
.footer__tag { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .7vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; }
.footer__sub { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; }
.footer__links a { font-size: .9rem; color: var(--muted); transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
  color: var(--muted-dim);
}

/* ---------- Filters (work.html) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.filter {
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.filter[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.empty-state {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.empty-state[hidden] { display: none; }

.page-hero { padding-block: 9rem clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* No-JS / JS-error safety: without the flag on <html>, nothing is ever hidden. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- On-site video player ---------- */
body.player-open { overflow: hidden; }
.player {
  width: min(100vw - 2 * var(--gutter), 1400px, (100svh - 9rem) * 16 / 9);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.player::backdrop { background: rgba(4, 4, 5, .92); }
.player[open] { animation: player-in .35s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: scale(.98); } }
.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.player__title {
  font: 500 .72rem/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__title::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .6rem;
  border-radius: 50%;
  background: #ff3b30;
  vertical-align: 1px;
}
.player__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.player__close:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.player__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Vertical (9:16) videos: size by height so the whole frame fits on screen */
.player.player--vertical { width: min(100vw - 2 * var(--gutter), (100svh - 9rem) * 9 / 16, 520px); }
.player--vertical .player__frame { aspect-ratio: 9 / 16; }

.card.is-loading { cursor: progress; }
.card.is-loading .card__play { opacity: 1; }

.player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Enquiry form (Start a project) ---------- */
.enquiry {
  width: min(100vw - 2rem, 640px);
  max-width: none;
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.enquiry::backdrop { background: rgba(4, 4, 5, .85); }
.enquiry[open] { animation: player-in .35s var(--ease); }
.enquiry__inner { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); }
.enquiry__close { position: absolute; top: 1rem; right: 1rem; }
.enquiry__intro { color: var(--muted); margin: .6rem 0 1.75rem; max-width: 46ch; }
.enquiry__intro a, .enquiry__alt a, .enquiry__status a { color: var(--text); border-bottom: 1px solid var(--accent); }

.enquiry .field { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; }
.enquiry legend, .enquiry .field > label {
  display: block;
  padding: 0;
  margin-bottom: .55rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.enquiry .req { color: var(--accent); }
.enquiry .opt { color: var(--muted); font-weight: 400; margin-left: .35rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.enquiry input[type=text], .enquiry input[type=email], .enquiry textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;           /* 16px+ stops iOS zooming on focus */
  transition: border-color .2s var(--ease);
}
.enquiry textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.enquiry input::placeholder, .enquiry textarea::placeholder { color: var(--muted-dim); }
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline: none; border-color: var(--accent); }
.enquiry .has-error input, .enquiry .has-error textarea { border-color: #ff6b5e; }
.field__error { margin-top: .4rem; font-size: .8rem; color: #ff8a80; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pill:hover span { color: var(--text); border-color: rgba(231, 184, 11, .45); }
.pill input:checked + span { color: #0b0b0c; background: var(--accent); border-color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.has-error .pill span { border-color: rgba(255, 107, 94, .6); }

.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.enquiry__send[disabled] { opacity: .6; cursor: progress; transform: none; }
.enquiry__alt { font-size: .85rem; color: var(--muted); }
.enquiry__status { margin-top: 1rem; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.enquiry__done { outline: none; }
.enquiry__done .btn { margin-top: .5rem; }

/* ---------- Footer social links with icons ---------- */
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__icon { flex: none; width: 16px; height: 16px; opacity: .85; transition: opacity .2s var(--ease), color .2s var(--ease); }
.footer__links a:hover .footer__icon { opacity: 1; color: var(--accent); }

/* ---------- Legal: footer links, privacy page ---------- */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
}
.footer__legal + .footer__bottom { margin-top: 1rem; padding-top: 0; border-top: 0; }
.footer__legal a { color: var(--muted); transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--text); }

.enquiry__privacy { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.enquiry__privacy a { color: var(--text); border-bottom: 1px solid var(--accent); }

.legal__updated { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.legal__body { max-width: 72ch; }
.legal__body h2 { margin: 2.5rem 0 .75rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--muted); line-height: 1.7; }
.legal__body p + p { margin-top: .9rem; }
.legal__body ul { padding-left: 1.2rem; display: grid; gap: .6rem; }
.legal__body strong { color: var(--text); font-weight: 500; }
.legal__body a { color: var(--text); border-bottom: 1px solid var(--accent); }
/* draft placeholders: impossible to miss until filled in */
.todo { color: #0b0b0c; background: var(--accent); padding: 0 .3em; border-radius: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__bg::before, .hero__bg::after { animation: none; }
  .hud__rec { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .mobile-nav, .hero__bg, .hero__video, .hero__grain, .viewfinder, .card__play { display: none !important; }
  body { background: #fff; color: #000; }
  .lead, .body-text, .card__meta, .step__body { color: #333; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* company identification (Law 365/2002): long line, so let it wrap and keep it quiet */
.footer__company { max-width: 60ch; }
