/* ==========================================================================
   Utricle Studios — Design, Animation & Creative Technology
   Static HTML / CSS / JS build

   Section tones
   -------------
   Dark   : header, hero, contact, footer          (ink)
   Paper  : services, about                        (warm off-white)
   White  : productions, upcoming                  (pure white)

   Every component reads its colours from the semantic tokens below
   (--fg, --fg-muted, --rule, --surface, --accent-text). A section only
   has to redeclare those tokens to flip between light and dark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand palette
   -------------------------------------------------------------------------- */
:root {
  --ink:    oklch(14.5% 0.004 60);
  --panel:  oklch(19.9% 0.004 60);
  --cream:  oklch(95.5% 0.014 87);
  --amber:  oklch(76.2% 0.132 71);

  /* Light grounds */
  --white:  #ffffff;
  --paper:  oklch(97.2% 0.008 85);   /* warm off-white */
  --paper-2:oklch(93.2% 0.010 85);   /* card ground on light sections */

  /* Amber darkened for text on light grounds (the brand amber is too
     light to read against white) */
  --amber-deep: oklch(55% 0.135 60);

  /* Cream alphas */
  --cream-90: oklch(95.5% 0.014 87 / 0.90);
  --cream-80: oklch(95.5% 0.014 87 / 0.80);
  --cream-70: oklch(95.5% 0.014 87 / 0.70);
  --cream-60: oklch(95.5% 0.014 87 / 0.60);
  --cream-55: oklch(95.5% 0.014 87 / 0.55);
  --cream-50: oklch(95.5% 0.014 87 / 0.50);
  --cream-40: oklch(95.5% 0.014 87 / 0.40);
  --cream-15: oklch(95.5% 0.014 87 / 0.15);
  --cream-10: oklch(95.5% 0.014 87 / 0.10);

  /* Amber alphas */
  --amber-90: oklch(76.2% 0.132 71 / 0.90);
  --amber-70: oklch(76.2% 0.132 71 / 0.70);
  --amber-60: oklch(76.2% 0.132 71 / 0.60);
  --amber-50: oklch(76.2% 0.132 71 / 0.50);
  --amber-40: oklch(76.2% 0.132 71 / 0.40);
  --amber-30: oklch(76.2% 0.132 71 / 0.30);
  --amber-20: oklch(76.2% 0.132 71 / 0.20);
  --amber-deep-60: oklch(55% 0.135 60 / 0.60);

  /* Ink alphas */
  --ink-90: oklch(14.5% 0.004 60 / 0.90);
  --ink-85: oklch(14.5% 0.004 60 / 0.85);
  --ink-70: oklch(14.5% 0.004 60 / 0.70);
  --ink-72: oklch(14.5% 0.004 60 / 0.72);
  --ink-55: oklch(14.5% 0.004 60 / 0.55);
  --ink-62: oklch(14.5% 0.004 60 / 0.62);
  --ink-50: oklch(14.5% 0.004 60 / 0.50);
  --ink-45: oklch(14.5% 0.004 60 / 0.45);
  --ink-40: oklch(14.5% 0.004 60 / 0.40);
  --ink-16: oklch(14.5% 0.004 60 / 0.16);
  --ink-15: oklch(14.5% 0.004 60 / 0.15);
  --ink-12: oklch(14.5% 0.004 60 / 0.12);
  --ink-10: oklch(14.5% 0.004 60 / 0.10);

  /* Panel alphas */
  --panel-40: oklch(19.9% 0.004 60 / 0.40);
  --panel-30: oklch(19.9% 0.004 60 / 0.30);

  /* Type */
  --font-display: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-rise: cubic-bezier(0.2, 0.8, 0.2, 1);

  --radius-card: min(1vw, 14px);

  /* ---- Semantic tokens: dark is the default ---- */
  --ground: var(--ink);
  --fg: var(--cream);
  --fg-muted: var(--cream-70);
  --fg-soft: var(--cream-50);
  --fg-faint: var(--cream-40);
  --rule: var(--cream-10);
  --rule-strong: var(--cream-15);
  --surface: var(--panel);
  --accent-text: var(--amber);
  --texture: none;
}

/* ---- Light tone: pure white ---- */
.tone-white {
  --ground: var(--white);
  --fg: var(--ink);
  --fg-muted: var(--ink-72);
  --fg-soft: var(--ink-62);
  --fg-faint: var(--ink-45);
  --rule: var(--ink-12);
  --rule-strong: var(--ink-16);
  --surface: var(--paper-2);
  --accent-text: var(--amber-deep);
  --texture: none;
}

/* ---- Light tone: warm off-white, with a whisper of dot texture ---- */
.tone-paper {
  --ground: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ink-72);
  --fg-soft: var(--ink-62);
  --fg-faint: var(--ink-45);
  --rule: var(--ink-12);
  --rule-strong: var(--ink-16);
  --surface: var(--paper-2);
  --accent-text: var(--amber-deep);
  --texture: url("assets/images/dots.png");
}

.tone-white,
.tone-paper {
  background-color: var(--ground);
  color: var(--fg-muted);
  border-top: 1px solid var(--rule);
}

.tone-paper {
  background-image: var(--texture);
  background-repeat: repeat;
  background-size: 12px 9px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; border: 0 solid; }

* { margin: 0; padding: 0; }

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--cream-90);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background-color: var(--amber); color: var(--ink); }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 1.25rem;
}

.section { padding-block: 4rem; }

/* --------------------------------------------------------------------------
   4. Shared type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-text);
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.eyebrow-rule .rule {
  height: 1px;
  width: 2rem;
  background-color: var(--amber-60);
}

.section-title {
  margin-top: 0.75rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--fg);
}

.section-title-wide   { max-width: 24ch; }
.section-title-narrow { max-width: 20ch; }

.section-lede {
  margin-top: 1.25rem;
  max-width: 58ch;
  text-wrap: pretty;
  color: var(--fg-muted);
}

/* Kickers and titles that sit on top of artwork keep the dark-overlay
   palette regardless of the section tone. */
.kicker {
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: background-color 0.15s var(--ease-inout);
}

.btn-amber {
  flex-shrink: 0;
  gap: 0.5rem;
  background-color: var(--amber);
  color: var(--ink);
  padding-block: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 1rem;
  box-shadow: 0 0 0 1px var(--amber-40);
}
.btn-amber:hover { background-color: var(--amber-90); }

.btn-amber-wide { gap: 0.75rem; padding-right: 1.25rem; }

.btn-pip {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--ink-70);
}

.btn-cream {
  gap: 0.75rem;
  background-color: var(--cream);
  color: var(--ink);
  padding-block: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 1.25rem;
  box-shadow: 0 0 0 1px var(--cream-40);
}
.btn-cream:hover { background-color: var(--cream-90); }

.btn-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: -0.025em;
}

.btn-icon-soft {
  background-color: var(--ink-15);
  color: var(--ink);
  font-size: 0.875rem;
}

.link-quiet {
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--cream-80);
}

/* Underline that grows from the left on hover */
.uv-underline {
  background-image: linear-gradient(to right, var(--accent-text), var(--accent-text));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.5s var(--ease-rise);
}
.uv-underline:hover { background-size: 100% 2px; }

/* --------------------------------------------------------------------------
   6. Header (dark)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cream-10);
  background-color: var(--ink-85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  margin-inline: auto;
  display: flex;
  min-height: 4rem;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.25rem;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
}

.brand-logo {
  height: 1.625rem;
  width: auto;
  flex-shrink: 0;
}

/* ---- Hamburger: the only control below the lg breakpoint ---- */
.nav-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  place-items: center;
  margin-right: -0.5rem;
  border-radius: 9999px;
  color: var(--cream);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: background-color 0.2s var(--ease-inout);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.25s var(--ease-inout);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile / tablet: the nav is a panel that drops from the bar ---- */
.nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 40;
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid var(--cream-10);
  background-color: var(--ink);
  padding: 0.75rem 1.25rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.nav[hidden] { display: none; }

.nav-link {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--cream-10);
  color: var(--cream-80);
}
.nav-link:last-of-type { border-bottom: 0; }
.nav-link:hover { color: var(--cream); }
.nav-link[aria-current="page"] { color: var(--accent-text); }

.nav .btn-amber {
  margin-top: 0.75rem;
  justify-content: center;
  padding-block: 0.625rem;
}

/* The desktop CTA is hidden until there is room for it */
.header-cta { display: none; }

/* --------------------------------------------------------------------------
   7. Hero (dark)
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }

.uv-hero-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 118%,
      oklch(76.2% 0.132 71 / 0.30) 0%,
      oklch(76.2% 0.132 71 / 0.06) 38%,
      transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--panel) 55%, var(--ink) 100%);
}

.hero-inner {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

/* The 1.5rem sat under the eyebrow; with no eyebrow the hero's own
   top padding does the spacing. */
.hero-title:first-child { margin-top: 0; }

.hero-title {
  margin-top: 1.5rem;
  max-width: 16ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 3.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--cream);
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--cream-70);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* Showreel frame -------------------------------------------------------- */
.showreel {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--panel);
  outline: 1px solid var(--amber-20);
  outline-offset: -1px;
}

.showreel-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background-color: var(--panel);
  transition: transform 1200ms var(--ease-out);
}
.media-hover:hover .showreel-video { transform: scale(1.03); }

.showreel-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Sound toggle sitting where the play badge used to be */
.sound-btn {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  border: 1px solid var(--cream-40);
  background-color: var(--ink-40);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--cream-80);
  transition: background-color 0.2s var(--ease-inout),
              border-color 0.2s var(--ease-inout),
              color 0.2s var(--ease-inout),
              opacity 0.4s var(--ease-inout);
}

.sound-btn:hover {
  background-color: var(--ink-70);
  border-color: var(--amber-60);
  color: var(--cream);
}

.sound-icon svg { width: 1.5rem; height: 1.5rem; }

.sound-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Unmuted state: hide the cross, show the waves */
.sound-btn .sound-wave  { opacity: 0; transition: opacity 0.2s; }
.sound-btn .sound-cross { opacity: 1; transition: opacity 0.2s; }
.sound-btn[aria-pressed="true"] .sound-wave  { opacity: 1; }
.sound-btn[aria-pressed="true"] .sound-cross { opacity: 0; }

/* Once playing with sound, fade the control back until hovered */
.showreel.is-playing .sound-btn { opacity: 0.35; }
.showreel:hover .sound-btn,
.sound-btn:focus-visible { opacity: 1; }

.showreel-meta {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.showreel-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream-60);
}

.showreel-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   8. Productions grid (white)
   -------------------------------------------------------------------------- */
.work-head { margin-bottom: 2rem; }

.work-head-text { min-width: 0; }

/* ---- Category filter ---- */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.work-pill {
  appearance: none;
  border: 1px solid var(--ink-16);
  border-radius: 9999px;
  background-color: transparent;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1rem;
  color: var(--ink-62);
  cursor: pointer;
  transition: color 0.15s var(--ease-inout),
              border-color 0.15s var(--ease-inout),
              background-color 0.15s var(--ease-inout);
}

.work-pill:hover { border-color: var(--ink-45); color: var(--fg); }

.work-pill:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.work-pill.is-active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* Off-screen: the count is announced to screen readers when a category
   is chosen, but nothing shows on the page. */
.work-filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Play affordance on a production card ---- */
.work-play {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.work-play-badge {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--cream-50);
  background-color: var(--ink-50);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 0.875rem;
  transition: background-color 0.2s var(--ease-inout),
              border-color 0.2s var(--ease-inout);
}

.work-card-feature .work-play-badge { width: 4rem; height: 4rem; font-size: 1.125rem; }

.work-card:hover .work-play-badge,
.work-card:focus-visible .work-play-badge {
  background-color: var(--ink-90);
  border-color: var(--amber-60);
}

/* ---- Filtered view: the feature card drops to a plain square so the
   bed stays even whatever the category returns ---- */
.work-grid.is-filtered .work-card-feature {
  grid-column: span 1 / span 1;
  grid-row: span 1 / span 1;
}

.work-grid.is-filtered .work-img-feature {
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
}

/* Wide cards collapse too, so a filtered row is all one shape */
.work-grid.is-filtered .work-card-wide { grid-column: span 1 / span 1; }
.work-grid.is-filtered .work-img-wide { aspect-ratio: 1 / 1; }

.work-grid.is-filtered .work-overlay-feature { display: block; padding: 1rem; }
.work-grid.is-filtered .work-title-lg { font-size: 1.25rem; line-height: 1.3; }
.work-grid.is-filtered .work-index { display: none; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--surface);
  color: inherit;
  text-decoration: none;
}

/* The grid item is display:block, so the UA's [hidden] rule loses on
   specificity — the filter needs this to actually hide a card. */
.work-card[hidden] { display: none; }

.work-card:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.work-card-feature {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
}

/* The double-wide card fills the row it lands on at every width */
.work-card-wide { grid-column: span 2 / span 2; }

.work-img-feature {
  height: 100%;
  min-height: 420px;
  width: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.media-hover:hover .work-img-feature { transform: scale(1.04); }

.work-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

/* The double-wide card keeps a landscape crop so it doesn't tower */
.work-img-wide { aspect-ratio: 16 / 9; }
.media-hover:hover .work-img { transform: scale(1.05); }

.work-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.75rem;
  background-image: linear-gradient(to top, var(--ink-90), transparent);
}

.work-overlay-feature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.work-overlay-text { min-width: 0; }

.work-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--cream);
}

.work-title-lg {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--cream);
}

.work-desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--cream-60);
}

.work-card-feature .work-desc { font-size: 0.875rem; line-height: 1.25rem; }

.work-index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cream-40);
}

/* --------------------------------------------------------------------------
   9. Services (off-white)
   -------------------------------------------------------------------------- */
.service-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.5rem;
}

.service-row + .service-row { border-top: 1px solid var(--rule); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--accent-text);
}

.service-name {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.15s var(--ease-inout);
}
.service-row:hover .service-name { color: var(--accent-text); }

.service-desc {
  grid-column: span 2 / span 2;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--fg-soft);
}

/* --------------------------------------------------------------------------
   10. Upcoming (white) — landscape cards
   -------------------------------------------------------------------------- */
.poster-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.poster-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background-color: var(--panel);
  transition: transform 900ms var(--ease-out);
}
.media-hover:hover .poster-img { transform: scale(1.05); }

.poster-play {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.poster-play-badge {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--cream-50);
  background-color: var(--ink-50);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--cream);
  transition: background-color 0.2s var(--ease-inout),
              border-color 0.2s var(--ease-inout);
}

.poster-card:hover .poster-play-badge {
  background-color: var(--ink-90);
  border-color: var(--amber-60);
}

.poster-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.875rem 1rem;
  background-image: linear-gradient(to top, var(--ink-90), transparent);
  transition: opacity 0.3s var(--ease-inout);
}

.poster-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--cream);
}

.poster-meta {
  margin-top: 0.125rem;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cream-55);
}

/* --------------------------------------------------------------------------
   11. About (off-white)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.about-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--panel);
}

.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-mark {
  width: auto;
  height: 3.25rem;
  margin-bottom: 1.5rem;
}

.about-title {
  margin-top: 0.75rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--fg);
}

.about-copy {
  margin-top: 1.25rem;
  max-width: 52ch;
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--fg-muted);
}

.about-copy-tight { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   12. Videos page (white)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--ink);
}

.page-banner-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to top, var(--ink) 4%, var(--ink-85) 45%, var(--ink-55) 100%);
}

.banner-inner {
  position: relative;
  padding-block: 4rem;
}

.banner-eyebrow { color: var(--amber); }

.banner-title {
  margin-top: 0.75rem;
  max-width: 18ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--cream);
}

.banner-lede {
  margin-top: 1.25rem;
  max-width: 52ch;
  text-wrap: pretty;
  color: var(--cream-70);
}

.page-head {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.page-title {
  margin-top: 0.75rem;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--fg);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--surface);
  transition: transform 0.3s var(--ease-out);
}

.video-card:hover { transform: translateY(-4px); }

.video-thumb {
  position: relative;
  overflow: hidden;
  background-color: var(--panel);
}

.video-thumb img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--ink-85);
  padding: 0.125rem 0.375rem;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--cream);
}

.video-play {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-inout);
}

.video-card:hover .video-play { opacity: 1; }

.video-play-badge {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--cream-50);
  background-color: var(--ink-50);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--cream);
}

.video-body {
  flex: 1;
  padding: 1rem;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  text-wrap: pretty;
  color: var(--fg);
}

.video-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--fg-faint);
}

.videos-outro {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   13. Services page — alternating rows
   -------------------------------------------------------------------------- */
.service-detail-list {
  margin-top: 3rem;
  display: grid;
  gap: 3.5rem;
}

.service-detail {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.service-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.service-detail-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.service-detail:hover .service-detail-media img { transform: scale(1.04); }

.service-detail-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

.service-detail-name {
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--fg);
}

.service-detail-copy {
  margin-top: 1rem;
  max-width: 54ch;
  text-wrap: pretty;
  color: var(--fg-muted);
}

.service-detail-copy + .service-detail-copy { margin-top: 0.875rem; }

/* --------------------------------------------------------------------------
   14. Contact page — form and details
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.contact-grid form { margin-top: 2.25rem; }

.form-field { display: grid; gap: 0.5rem; }
.form-field + .form-field { margin-top: 1.25rem; }

.form-label {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 0.625rem;
  background-color: var(--white);
  padding: 0.75rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--fg);
  transition: border-color 0.15s var(--ease-inout);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-text);
  outline: 2px solid var(--amber-30);
  outline-offset: 1px;
}

.form-textarea { min-height: 9rem; resize: vertical; }

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-note {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--fg-faint);
}

.contact-details {
  border-top: 1px solid var(--rule);
}

.contact-detail {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-text);
}

.contact-detail-value {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

a.contact-detail-value:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   15. Contact (dark)
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--cream-10);
  background-color: var(--ink);
}

.uv-contact-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 120%,
    oklch(76.2% 0.132 71 / 0.28) 0%,
    oklch(76.2% 0.132 71 / 0.04) 45%,
    transparent 70%);
}

.contact-inner {
  position: relative;
  padding-block: 5rem;
  text-align: center;
}

.contact-title {
  margin-inline: auto;
  margin-top: 1.25rem;
  max-width: 18ch;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--cream);
}

.contact-lede {
  margin-inline: auto;
  margin-top: 1.25rem;
  max-width: 44ch;
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--cream-70);
}

.contact-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. Footer (dark)
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--cream-10);
  background-color: var(--ink);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}

.footer-brand { display: flex; align-items: center; }

.footer-logo {
  height: 1.5rem;
  width: auto;
}

.footer-note {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cream-40);
}

/* --------------------------------------------------------------------------
   17. Video lightbox
   -------------------------------------------------------------------------- */
body.is-locked { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--ink-90);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  width: min(64rem, 100%);
}

.lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: #000;
  box-shadow: 0 30px 80px oklch(0% 0 0 / 0.55);
}

.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--cream-15);
  background-color: var(--panel);
  color: var(--cream);
  transition: border-color 0.2s var(--ease-inout);
}

.lightbox-close:hover { border-color: var(--amber-60); }
.lightbox-close svg { width: 1.125rem; height: 1.125rem; }

/* --------------------------------------------------------------------------
   18. Entrance animation
   -------------------------------------------------------------------------- */
.uv-rise { animation: uv-rise 0.7s var(--ease-rise) both; }

@keyframes uv-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Breakpoints — sm (640px) — large phones and up
   -------------------------------------------------------------------------- */
@media (min-width: 40rem) {
  .container { padding-inline: 2rem; }
  .section   { padding-block: 5.5rem; }

  .header-inner { padding-inline: 2rem; }
  .nav          { padding-inline: 2rem; }

  .brand-logo { height: 1.75rem; }

  .hero-inner { padding-top: 5.5rem; }
  .hero-lede  { font-size: 1.125rem; line-height: 1.75rem; }

  .showreel-meta { padding: 1.5rem; }

  .section-title { font-size: 3rem; }

  .work-grid { gap: 1rem; }
  .work-overlay { padding: 1rem; }
  .work-title { font-size: 1.25rem; line-height: 1.3; }
  .work-title-lg { font-size: 1.625rem; }
  .work-overlay-feature { padding: 1.5rem; }
  .work-title-lg { font-size: 2rem; }

  .service-name { font-size: 2.125rem; }

  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-title { font-size: 3rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .banner-inner { padding-block: 5rem; }

  .about-title { font-size: 2.5rem; }
  .about-mark  { height: 3.75rem; }

  .contact-inner { padding-block: 7rem; }
  .contact-title { font-size: 3.75rem; }

  .footer-inner { flex-direction: row; }
  .footer-logo  { height: 1.75rem; }
}

/* --------------------------------------------------------------------------
   20. Breakpoints — md (768px) — tablet portrait
   -------------------------------------------------------------------------- */
@media (min-width: 48rem) {
  .showreel-video { aspect-ratio: 16 / 9; }

  .service-row { grid-template-columns: 5rem 1fr; column-gap: 1.5rem; }
  .service-desc {
    grid-column: 2 / 3;
    margin-top: 0.5rem;
    max-width: 52ch;
  }

  .banner-inner { padding-block: 6.5rem; }

  .service-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  /* Every other row leads with the copy */
  .service-detail:nth-child(even) .service-detail-media { order: 2; }

  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
}

/* --------------------------------------------------------------------------
   21. Breakpoints — lg (1024px) — desktop nav appears here
   -------------------------------------------------------------------------- */
@media (min-width: 64rem) {
  /* Nav returns to a single bar; the hamburger and its panel step aside. */
  .nav-toggle { display: none; }

  .nav {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    border-bottom: 0;
    background-color: transparent;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  /* The panel is script-hidden on small screens — undo that here so the
     links are always visible on desktop, whatever state the toggle is in. */
  .nav[hidden] { display: flex; }

  .nav-link {
    padding-block: 0;
    padding-bottom: 0.125rem;
    border-bottom: 0;
    color: var(--cream-70);
  }

  .nav .btn-amber { display: none; }

  .header-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .brand-logo { height: 2rem; }

  .hero-inner { padding-top: 6rem; }
  .hero-title { font-size: 4.5rem; }

  .showreel-video { aspect-ratio: 21 / 9; }

  /* Four-column bed: a 2x2 feature, six squares and one double-wide card */
  /* Heading on the left, category filter on the right */
  .work-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .work-filter { margin-top: 0; justify-content: flex-end; }

  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-card-wide { grid-column: span 2 / span 2; }
  .work-img-wide  { aspect-ratio: 2 / 1; }

  /* Six-column bed: two landscape cards per row */
  .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .poster-card { grid-column: span 3 / span 3; }

  .service-row { grid-template-columns: 6rem 1fr 28rem; column-gap: 1rem; }
  .service-desc {
    grid-column: span 1 / span 1;
    margin-top: 0;
    text-align: right;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .banner-title { font-size: 4rem; }

  .service-detail-list { gap: 5rem; }
  .service-detail { gap: 4rem; }
  .service-detail-name { font-size: 2.25rem; }

  .contact-grid { gap: 5rem; }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .uv-rise { animation: none; }

  .showreel-video,
  .work-img,
  .work-img-feature,
  .poster-img,
  .video-thumb img { transition: none; }

  .media-hover:hover .showreel-video,
  .media-hover:hover .work-img,
  .media-hover:hover .work-img-feature,
  .media-hover:hover .poster-img,
  .video-card:hover,
  .video-card:hover .video-thumb img { transform: none; }
}
