/* ─────────────────────────────────────────────────────────────
   Arink Visuals — one system across every page.

   Black and white so the work is the only thing with colour,
   plus one orange spent on the mark and on links.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "English Towne";
  src: url("../fonts/EnglishTowne.woff2") format("woff2"),
       url("../fonts/EnglishTowne.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --accent: #e24a16;
  --rule: rgba(13, 13, 13, 0.16);
  --muted: rgba(13, 13, 13, 0.56);
  --tint: rgba(13, 13, 13, 0.04);

  --font-display: "English Towne", "Trebuchet MS", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* One spacing scale. Every gap on the site is a step on it. */
  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: clamp(3.5rem, 8vw, 5.5rem);
  --s7: clamp(5rem, 12vw, 8rem);

  --radius: 14px;
  --radius-sm: 9px;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-toggle: cubic-bezier(0.4, 0, 0.2, 1);
  /* Theme wipe: speed at the start, a long settle at the end. */
  --ease-wipe: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f4f4f1;
  --accent: #ff7a47;
  --rule: rgba(244, 244, 241, 0.2);
  --muted: rgba(244, 244, 241, 0.58);
  --tint: rgba(244, 244, 241, 0.05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.7s var(--ease-wipe), color 0.7s var(--ease-wipe);
}

/* The circular wipe replaces the colour fade where it's supported. */
.vt-supported body { transition: none; }

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img, video { max-width: 100%; }

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s3) var(--gutter) 0;
}

/* ── Shared type ──────────────────────────────────────────── */

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: none;
}

.eyebrow--dim { color: var(--muted); }

.page-title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-note {
  max-width: 46ch;
  margin: var(--s3) 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-head { padding: var(--s5) 0 var(--s6); }

.section { padding-bottom: var(--s6); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s3) 0 var(--s4);
  border-top: 1px solid var(--rule);
}

/* ── Top bar ──────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.4rem);
}

.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: none;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-in-out);
}

.nav a:hover { color: var(--accent); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ── Theme toggle ─────────────────────────────────────────── */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  flex: none;
  transition: border-color 0.3s ease;
}

.theme-toggle:hover { border-color: var(--fg); }

/* Everything in the icon moves on one curve over one duration, so the
   sun and the moon read as a single object turning over. */
.theme-toggle__icon,
.theme-toggle__disc,
.theme-toggle__bite,
.theme-toggle__rays line {
  transition: transform 0.5s var(--ease-toggle);
  transform-origin: 12px 12px;
}

.theme-toggle__icon {
  width: 22px;
  height: 22px;
  overflow: visible;
  flex: none;
}

.theme-toggle__disc { fill: var(--fg); }

/* Parked outside the disc in sun state, so nothing is bitten out of it. */
.theme-toggle__bite { transform: translate(9px, -9px); }

.theme-toggle__rays line {
  stroke: var(--fg);
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.5s var(--ease-toggle), opacity 0.3s var(--ease-toggle);
}

[data-theme="dark"] .theme-toggle__icon { transform: rotate(-40deg); }
[data-theme="dark"] .theme-toggle__disc { transform: scale(1.75); }
[data-theme="dark"] .theme-toggle__bite { transform: translate(0, 0); }
[data-theme="dark"] .theme-toggle__rays line { transform: scale(0.3); opacity: 0; }

.theme-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: none;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.45s var(--ease-out), opacity 0.3s ease;
}

.theme-toggle__label::after { content: attr(data-label-light); }
[data-theme="dark"] .theme-toggle__label::after { content: attr(data-label-dark); }

.theme-toggle:hover .theme-toggle__label,
.theme-toggle:focus-visible .theme-toggle__label {
  max-width: 5rem;
  opacity: 1;
  padding-left: 0.2rem;
}

/* ── Wordmark ─────────────────────────────────────────────── */

/* A small neon wordmark with a warm, diffuse halation. */
.mark {
  text-align: center;
  padding: clamp(0.2rem, 1vh, 0.7rem) 0 var(--s3);
}
.mark__word {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.mark__link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  text-shadow: 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent),
               0 0 9px color-mix(in srgb, var(--accent) 38%, transparent),
               0 0 24px color-mix(in srgb, var(--accent) 22%, transparent);
}
.is-ready .mark__link { animation: neon-flicker 4.8s linear both; }
@keyframes neon-flicker {
  0%, 12%, 22%, 39%, 49%, 100% { opacity: 1; }
  13%, 18% { opacity: 0.48; }
  40%, 45% { opacity: 0.68; }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready .mark__link { animation: none; }
}

.lede {
  max-width: 34ch;
  margin: var(--s3) auto 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.lede .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
}

.is-ready .lede .w {
  animation: wordIn 1s var(--ease-out) forwards;
  animation-delay: calc(1.05s + var(--i) * 0.05s);
}

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

/* "here" — the one coloured word; its rule draws in left to right. */
.here {
  position: relative;
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.here:hover { opacity: 0.7; }

.here__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  width: auto;
  height: 0.12em;
  overflow: visible;
}

.here__line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-ready .here__line path {
  animation: draw 1s var(--ease-in-out) 1.9s forwards;
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* ── Player ───────────────────────────────────────────────── */

.player { margin: 0; }

.player__frame {
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--bg);
  transition: border-color 0.7s var(--ease-wipe), background-color 0.7s var(--ease-wipe);
}

.player__gate {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  /* Safari needs its own nudge to clip a transformed child to the radius. */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
}

.player__video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  cursor: pointer;
}

.player__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
  padding-top: var(--s3);
}

.player__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.player__role {
  flex: 1 1 18ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The frame appears first, then the image drops into it like a shutter.
   The clip sits on the video, not on the observed figure — clipping the
   observed element to nothing stops IntersectionObserver from firing. */
.player[data-reveal] .player__video {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.05);
  transition: clip-path 1.1s var(--ease-in-out), transform 1.4s var(--ease-out);
}

.player[data-reveal].is-in .player__video {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* Held in a custom property so the reveal and the playing state can both
   hide the button without one out-specifying the other. */
.player[data-reveal]:not(.is-in) { --pp: 0; }

.player__poster-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: var(--pp, 1);
  transition: opacity 0.45s var(--ease-out) 0.35s;
}

.player__poster-play svg {
  width: 68px;
  height: 68px;
  fill: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  padding: 2px;
  background: rgba(0, 0, 0, 0.22);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease;
}

.player__poster-play:hover svg {
  transform: scale(1.09);
  background: rgba(0, 0, 0, 0.42);
}

.player.is-started { --pp: 0; }
.player.is-started .player__poster-play { pointer-events: none; }

.player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 0.75rem 0.7rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.player:hover .player__bar,
.player.is-paused .player__bar,
.player.is-scrubbing .player__bar,
.player:focus-within .player__bar {
  opacity: 1;
  transform: none;
}

.pbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.86;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}

.pbtn:hover { opacity: 1; transform: scale(1.12); }
.pbtn svg { width: 18px; height: 18px; fill: currentColor; }

.pbtn__pause, .player.is-playing .pbtn__play { display: none; }
.player.is-playing .pbtn__pause { display: block; }

.pbtn__off, .player.is-muted .pbtn__on { display: none; }
.player.is-muted .pbtn__off { display: block; }

.scrub {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}

.scrub__track, .scrub__buffer, .scrub__played {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  margin-top: -1px;
  transform-origin: left;
  border-radius: 2px;
}

.scrub__track  { right: 0; background: rgba(255, 255, 255, 0.28); }
.scrub__buffer { width: 100%; background: rgba(255, 255, 255, 0.4); transform: scaleX(0); }
.scrub__played { width: 100%; background: #fff; transform: scaleX(0); }

.scrub__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}

.scrub:hover .scrub__knob,
.player.is-scrubbing .scrub__knob,
.scrub:focus-visible .scrub__knob { transform: scale(1); }

.ptime {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.ptime__sep { opacity: 0.5; padding: 0 0.3em; }

/* ── Links and buttons ────────────────────────────────────── */

.link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 0.1em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-in-out);
}

.link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.link__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.link:hover .link__arrow { transform: translateX(0.25em); }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.35s var(--ease-in-out);
}

.btn__text { position: relative; z-index: 1; }

.btn__fill {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-in-out);
}

.btn:hover { color: var(--bg); }
.btn:hover .btn__fill { transform: scaleY(1); }

/* ── Home: reel + what I do ───────────────────────────────── */

.reel { padding-bottom: var(--s6); }

/* The home page has to open inside a laptop screen, so everything on it
   is dialled down: a smaller wordmark, a smaller statement, and a reel
   capped by what is left of the viewport. The chrome constant is
   everything above and below the video on that first screen. */
.home { --hero-chrome: 340px; }

.home .mark {
  padding: clamp(0.2rem, 1vh, 0.7rem) 0 clamp(0.55rem, 1.6vh, 1rem);
}

.home .mark__word { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }

.home .lede {
  max-width: 42ch;
  margin-top: var(--s2);
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.3;
}

.home .reel { padding-bottom: var(--s4); }

.home .player__frame {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.home .player__video {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--hero-chrome));
  margin-inline: auto;
}

.home .player__caption { padding-top: var(--s2); }
.home .player__role { font-size: 0.85rem; }

/* Pushed to the end of the caption row rather than a line of its own. */
.player__more {
  margin-left: auto;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Below the fold, on the same diet. */
.home .section { padding-bottom: var(--s4); }
.home .section__head { padding: var(--s2) 0 var(--s3); }

.offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  padding-bottom: var(--s4);
}

.offer__item {
  padding: var(--s2) var(--s3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.offer__item:hover { border-color: var(--fg); background: var(--tint); }

.offer__name {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.offer__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Home: contact call ───────────────────────────────────── */

.call { padding-bottom: var(--s6); }

.home .call { padding-bottom: var(--s4); }
.home .call__line { font-size: clamp(1.1rem, 2.2vw, 1.55rem); }

.call__line {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.call__line + .call__line { margin-top: var(--s2); }

.call__mail { white-space: nowrap; }

/* ── Scroll cue ───────────────────────────────────────────── */

/* Same pill as the theme toggle, at the other end of the screen: the
   arrow is always there, the word arrives on hover. */
.cue {
  position: fixed;
  left: 50%;
  bottom: clamp(0.5rem, 1.6vh, 1rem);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 34px;
  padding: 0 0.42rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 0.4s var(--ease-out), color 0.3s ease,
              border-color 0.3s ease, background-color 0.7s var(--ease-wipe);
}

.cue:hover { color: var(--fg); border-color: var(--fg); }

.cue__arrow svg {
  display: block;
  width: 17px;
  height: 17px;
  animation: cueBob 2.6s var(--ease-in-out) infinite;
}

@keyframes cueBob {
  0%, 100% { transform: translateY(-1.5px); }
  50%      { transform: translateY(2.5px); }
}

.cue__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: none;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.45s var(--ease-out), opacity 0.3s ease;
}

.cue:hover .cue__label,
.cue:focus-visible .cue__label {
  max-width: 5rem;
  opacity: 1;
  padding-right: 0.25rem;
}

/* It only appears once the entrance has played. */
.cue { opacity: 0; }
.is-ready .cue { opacity: 1; transition-delay: 0.9s; }

/* Nothing left below: the cue gets out of the way. Written to outrank the
   entrance rule above, which shares its specificity. */
.cue.is-done,
.is-ready .cue.is-done {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition-delay: 0s;
}

/* ── Footer ───────────────────────────────────────────────── */

.foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0 var(--s4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: none;
  color: var(--muted);
}

/* ── Work: filters + grid ─────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  padding-bottom: var(--s4);
}

.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: none;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.chip:hover { color: var(--fg); border-color: var(--fg); }

.chip[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--s4);
  padding-bottom: var(--s6);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Filtering out collapses the card rather than leaving a hole. */
.card.is-hidden { display: none; }

.card__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #000;
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}

.card:hover .card__frame,
.card:focus-visible .card__frame {
  border-color: var(--fg);
  transform: translateY(-3px);
}

.card__poster,
.card__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

/* The preview is a small silent clip; it plays the moment you point at it. */
.card.is-previewing .card__preview { opacity: 1; }

.card__badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  transition: color 0.25s ease;
}

.card:hover .card__title { color: var(--accent); }

.card__client,
.card__kind {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--muted);
}

.card__kind::before { content: "· "; }

.card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.empty {
  padding: var(--s5) 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── Lightbox ─────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__inner {
  width: min(100%, 1100px);
  transform: scale(0.97);
  transition: transform 0.45s var(--ease-out);
}

.lightbox.is-open .lightbox__inner { transform: none; }

.lightbox .player__frame {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding-top: var(--s2);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.3s var(--ease-out);
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }

/* ── Panel / form ─────────────────────────────────────────── */

.panel {
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  transition: border-color 0.45s var(--ease-in-out);
}

.panel__head { margin: 0 0 var(--s4); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  padding-bottom: var(--s6);
}

.split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

.field { margin-bottom: var(--s3); }

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--muted);
}

/* Underlines rather than boxes — the panel is already the box. */
.field input,
.field textarea {
  width: 100%;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.75; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--muted); }

.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); }

.field.is-bad input,
.field.is-bad textarea { border-bottom-color: var(--accent); }

/* Bots fill this in; people never see it. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin: var(--s2) 0 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--muted);
}

.form__note.is-alert { color: var(--accent); }

.contact__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--muted);
}

.copy {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.copy__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.copy:hover .copy__value { color: var(--accent); }

.copy__hint {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--muted);
}

.contact__or {
  margin: var(--s3) 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Services ─────────────────────────────────────────────── */

.rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}

.rate:first-of-type { border-top: 1px solid var(--fg); }

.rate__name {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.rate__price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent);
}

.rate__desc {
  grid-column: 1 / -1;
  max-width: 62ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s3);
  padding-bottom: var(--s4);
}

.pack {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.pack:hover { border-color: var(--fg); background: var(--tint); }

.pack__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.pack__price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.pack__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.pack__list li::before {
  content: "—";
  padding-right: 0.5em;
  opacity: 0.5;
}

.fineprint {
  max-width: 62ch;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Copy toast ───────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  z-index: 120;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: none;
  opacity: 0;
  transform: translate(-50%, 260%);
  transition: transform 0.55s var(--ease-out), opacity 0.35s ease;
}

.toast.is-up { opacity: 1; transform: translate(-50%, 0); }

/* ── Theme wipe (View Transitions) ────────────────────────── */

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .split,
  .split--wide { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, the reel goes back to being width-driven: a height cap here
     would make the frame wider than the screen. */
  .home .player__frame { width: auto; }
  .home .player__video { width: 100%; height: auto; max-height: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .player__bar { gap: 0.45rem; padding: 2rem 0.6rem 0.6rem; }
  .ptime { font-size: 0.62rem; }
  .player__poster-play svg { width: 56px; height: 56px; }
  .foot { flex-direction: column; gap: 0.4rem; }
  .rate { grid-template-columns: minmax(0, 1fr); }
}

/* ── Reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .lede .w { opacity: 1; transform: none; filter: none; }
  .here__line path { stroke-dashoffset: 0; }
  [data-reveal] { opacity: 1; transform: none; }
  .player[data-reveal] .player__video { clip-path: none; transform: none; }
  .cue__arrow svg { animation: none; }
}

/* Home: intro and services beside the featured film. */
.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--s4);
  padding: var(--s3) 0 var(--s5);
}
.home-feature > *, .home-feature__copy { min-width: 0; }
.home .home-feature .reel,
.home .home-feature .section { padding-bottom: 0; }
.home .home-feature .player__frame { width: 100%; }
.home .home-feature .player__video { width: 100%; max-height: none; }
.home .home-feature .lede { margin: 0 0 var(--s4); max-width: none; }
.home-feature .offer {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--rule);
}
.home-feature .offer__item {
  padding: var(--s2) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
.home-feature .offer__item:hover { background: transparent; }
.home-feature .offer__name { margin: 0; line-height: 1.45; }
.home-services__rates { margin-top: var(--s3); font-size: 0.88rem; }
.home-feature .player__caption { justify-content: space-between; }
.home-feature .player__more { margin-left: 0; }
@media (max-width: 760px) {
  .home-feature { grid-template-columns: minmax(0, 1fr); }
}

/* Poster lettering, framed film and one short analogue startup. */
@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
.mark__word { font-family: "Tektur", Impact, sans-serif; font-weight: 800; letter-spacing: -0.035em; }
.home .player--framed .player__frame {
  border: clamp(24px, 4vw, 48px) solid transparent;
  border-image: url("../media/painting-frame.svg") 92 91 88 94 / 1 / 0 stretch;
  border-radius: 0;
  padding: 0;
  background: #15110d;
}
.player--framed .player__gate { border-radius: 0; }
.home-feature .player--framed .player__caption { justify-content: center; }
.watch-link {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.35rem 0;
}
.watch-link:hover { color: var(--accent); }
.watch-link span { margin-left: 0.25rem; }
.home-contact { margin-top: var(--s4); font-size: 0.9rem; line-height: 1.6; }
.home-contact p { margin: 0; }
.home-contact a { text-decoration: none; overflow-wrap: anywhere; }
.home-contact a:hover { text-decoration: underline; }
.tv-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(0deg, #fff8 0 1px, #0009 1px 3px, transparent 3px 5px),
              repeating-radial-gradient(ellipse at 23% 41%, #ddd 0 1px, #222 1px 2px, #777 2px 3px);
  background-size: 100% 5px, 7px 9px;
}
.is-ready .player--framed .player__video { animation: tv-on 1.4s ease-out both; }
.is-ready .tv-static { animation: tv-dissolve 1.4s steps(8) both; }
@keyframes tv-on {
  0% { clip-path: inset(49.5% 30%); filter: brightness(2) grayscale(1); }
  20% { clip-path: inset(48% 0); filter: brightness(1.7) grayscale(1); }
  55% { clip-path: inset(0); filter: brightness(1.25) grayscale(0.6); }
  100% { clip-path: inset(0); filter: none; }
}
@keyframes tv-dissolve {
  0% { opacity: 0.7; clip-path: inset(49.5% 30%); }
  20% { opacity: 0.6; clip-path: inset(48% 0); background-position: 0 10px, 4px -7px; }
  55% { opacity: 0.35; clip-path: inset(0); background-position: 0 -20px, -11px 13px; }
  100% { opacity: 0; clip-path: inset(0); background-position: 0 15px, 7px -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-ready .player--framed .player__video,
  .is-ready .tv-static { animation: none; }
}
