/* Foram Studio — styles
   Palette comes from the logo: deep plum base, coral accent. Key art carries the colour. */

:root {
  --plum: #1c1322;
  --plum-2: #241a2c;
  --plum-3: #2f2238;
  --line: #45344f;
  --ink: #f6eff3;
  --muted: #bcaac0;
  --coral: #ff5563;
  --coral-hover: #ff7480;
  --on-coral: #1c1322;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
  --section-y: 88px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); text-transform: uppercase; }
h3 { font-size: 1.75rem; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--on-coral);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--coral); color: var(--on-coral); }
.btn-primary:hover { background: var(--coral-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--ink); color: var(--plum); }
.btn-light:hover { background: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.play-icon { width: 16px; height: 16px; fill: currentColor; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 19, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  place-items: center;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--plum);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--ink); }
  .nav .btn { margin-top: 20px; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background:
    radial-gradient(60% 55% at 78% 45%, rgba(255, 85, 99, 0.16), transparent 70%),
    radial-gradient(50% 50% at 95% 90%, rgba(176, 64, 143, 0.18), transparent 70%),
    var(--plum);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; min-height: min(calc(100svh - 240px), 680px); }
}

.hero h1 {
  font-size: clamp(3.5rem, 9.5vw, 7.5rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 10ch;
}
.lede {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The fanned deck — the page's one showpiece */
.deck-area { display: flex; flex-direction: column; align-items: center; }
.deck {
  --card-w: min(250px, 52vw);
  position: relative;
  width: 100%;
  height: calc(var(--card-w) * 1.5 + 60px);
}
.deck-card {
  position: absolute;
  left: 50%;
  top: 20px;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  margin-left: calc(var(--card-w) / -2);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--plum-3);
  cursor: pointer;
  transform-origin: 50% 110%;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.7s var(--ease), filter 0.5s;
  will-change: transform;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card:not(.is-active) { filter: brightness(0.62) saturate(0.85); }
.deck-card:not(.is-active):hover { filter: brightness(0.85); }
.deck-card.is-active { cursor: zoom-in; }

.deck-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
}
.deck-title { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.deck-meta { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.deck-controls { display: flex; align-items: center; gap: 8px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
}
.platforms-label { color: var(--muted); margin-right: 8px; }

/* Hero live effects (all switched off by main.js for reduced motion) */
.hero { position: relative; }
.hero-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-glow {
  position: absolute; left: 0; top: 0;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: radial-gradient(circle, rgba(255, 85, 99, 0.22), rgba(176, 64, 143, 0.08) 45%, transparent 68%);
  will-change: transform;
}
.hero-grid, .platforms { position: relative; z-index: 1; }
.deck-area { perspective: 1100px; }
.deck { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 0.25s ease-out; }

.hero h1.is-split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: rise 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i) * 80ms + 120ms);
}
.hero.is-ready .hero-copy > :not(h1) {
  animation: fade-up 0.9s var(--ease) both;
}
.hero.is-ready .lede { animation-delay: 0.65s; }
.hero.is-ready .hero-actions { animation-delay: 0.8s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--plum-2); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}
.section-head p { color: var(--muted); max-width: 32rem; font-size: 1.125rem; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .section-head p { text-align: right; }
}

/* ---------- 3D showcase ---------- */
.fold {
  position: relative;
  height: 500vh; /* set from JS based on the number of projects */
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(255, 85, 99, 0.16), transparent 70%),
    radial-gradient(45% 45% at 10% 10%, rgba(176, 64, 143, 0.18), transparent 70%),
    var(--plum);
}
.fold-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.fold canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.showcase-top {
  position: absolute; left: 0; right: 0; top: 92px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral);
}
.counter {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums;
}

.showcase-cap-wrap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding-bottom: 44px;
  pointer-events: none;
}
.showcase-caption { width: 100%; will-change: opacity, transform; }
.fold-stage:not(.is-wide) .showcase-cap-wrap {
  background: linear-gradient(to top, rgba(28, 19, 34, 0.94) 0, rgba(28, 19, 34, 0.94) 34%, transparent 60%);
}
.cap-cats {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 10px;
}
.showcase-caption h2 { font-size: clamp(2rem, 7vw, 4.6rem); margin-bottom: 10px; }
.cap-desc { color: var(--muted); font-size: 1.0625rem; max-width: 30rem; }
.cap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cap-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.fold-stage.is-wide .showcase-cap-wrap { align-items: center; padding-bottom: 0; }
.fold-stage.is-wide .showcase-caption { max-width: min(460px, 40%); }
.fold-stage.is-wide .showcase-caption.on-right { margin-left: auto; }

.fold-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  transform: translateX(-50%);
  max-width: min(560px, calc(100% - 32px));
  text-align: center; color: var(--muted); font-size: 0.9375rem;
  transition: opacity 0.4s; pointer-events: none;
}
.showcase-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); z-index: 3; }
.showcase-progress span { display: block; height: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Clients ---------- */
.clients { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--plum-2); }
.clients-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 32px;
}
.client-logos {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.client-logos li {
  display: grid;
  place-items: center;
  min-width: 140px;
  height: 84px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--ink);
}
.client-logos a { display: grid; place-items: center; height: 100%; }
.client-logos img { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; }
.client-logos img.is-mono { filter: brightness(0); opacity: 0.85; }
.client-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--plum); }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  gap: 48px 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card { grid-column: span 2; }
  .work-card--lead { grid-column: span 3; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .work-card:last-child { grid-column: span 2; }
  .work-card:last-child .work-media { aspect-ratio: 16 / 10; }
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--plum-3);
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.work-card--lead .work-media { aspect-ratio: 4 / 5; }
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease);
}
.work-media:hover img { transform: scale(1.03); }

.play-badge {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease);
}
.play-badge svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.work-media:hover .play-badge { transform: scale(1.08); }

.work-body { padding-top: 20px; }
.work-body h3 { margin-bottom: 10px; }
.work-card--lead .work-body h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.work-body p { color: var(--muted); max-width: 38rem; }
.work-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.work-facts dt { color: var(--muted); }
.work-facts dd { margin: 0; font-weight: 600; }

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: 48px 32px;
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  padding-top: 24px;
  border-top: 3px solid var(--coral);
}
.service h3 { font-size: clamp(2rem, 3vw, 2.5rem); text-transform: uppercase; margin-bottom: 14px; }
.service > p { color: var(--muted); }
.service ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.service li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.also {
  margin-top: 80px;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) { .also { grid-template-columns: 1fr 3fr; gap: 32px; } }
.also-title { font-size: 1.5rem; }
.also-list { margin: 0; display: grid; gap: 24px 32px; }
@media (min-width: 700px) { .also-list { grid-template-columns: repeat(3, 1fr); } }
.also-list dt { font-weight: 700; margin-bottom: 6px; }
.also-list dd { margin: 0; color: var(--muted); font-size: 0.9875rem; }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px 32px;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li { counter-increment: step; position: relative; padding-top: 88px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
}
@media (min-width: 1000px) {
  .steps li::after {
    content: "";
    position: absolute;
    top: 36px; left: 64px; right: -16px;
    height: 1px;
    background: var(--line);
  }
  .steps li:last-child::after { display: none; }
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 24px; }
@media (min-width: 700px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.quote {
  margin: 0;
  padding: 32px;
  background: var(--plum-3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  height: 36px;
  color: var(--coral);
}
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 0.9375rem; color: var(--muted); }
.quote figcaption img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote .avatar {
  flex: none; width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--plum); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink);
}

/* ---------- Studio ---------- */
.studio {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .studio { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.studio-copy { display: grid; gap: 20px; font-size: 1.25rem; line-height: 1.6; max-width: 40rem; }
.studio-copy p + p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 60% at 10% 100%, rgba(255, 85, 99, 0.12), transparent 70%),
    var(--plum-2);
}
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; } }

.contact-intro p { color: var(--muted); font-size: 1.125rem; margin-top: 20px; max-width: 30rem; }
.next-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: 14px;
}
.next-steps li {
  counter-increment: next;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.next-steps li::before {
  content: counter(next);
  flex: none;
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--plum-3);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-2px);
}
.direct a { color: var(--ink); font-weight: 600; }

.form-card {
  background: var(--plum);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
@media (min-width: 640px) { .form-card { padding: 40px; } }

#contactForm { display: grid; gap: 22px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--plum-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23bcaac0' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #8e7d93; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 85, 99, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--coral); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chips input:hover + span { border-color: var(--muted); }
.chips input:checked + span { background: var(--ink); color: var(--plum); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 85, 99, 0.12);
  border: 1px solid rgba(255, 85, 99, 0.5);
  font-size: 0.9375rem;
}
.form-error a { font-weight: 700; }

.form-success { padding: 24px 0; outline: none; }
.form-success h3 { font-size: 2.25rem; text-transform: uppercase; margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 1.125rem; }
.form-success strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-inner .brand { color: var(--ink); font-size: 1.25rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }

/* ---------- Trailer dialog ---------- */
.player {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--plum);
  color: var(--ink);
  overflow: hidden;
}
.player::backdrop { background: rgba(10, 6, 12, 0.85); backdrop-filter: blur(4px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
#playerTitle { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.player-actions { display: flex; align-items: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .deck-card, .work-media img, .play-badge { transition: none; }
}

/* ---------- Explore more + All projects page ---------- */
.explore { display: flex; justify-content: center; margin-top: 56px; }
.work-media.is-static { cursor: default; }

.page-head {
  padding: 152px 0 48px;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255, 85, 99, 0.14), transparent 70%),
    var(--plum);
}
.page-head h1 { font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 900; text-transform: uppercase; }
.page-head .lede { margin-top: 20px; }
.crumbs { color: var(--muted); font-size: 0.9375rem; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.work-all { padding-top: 24px; }
.work-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 900px) { .work-tools { grid-template-columns: 1fr 280px; align-items: start; gap: 32px; } }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: var(--muted); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--plum); border-color: var(--ink); }
.filter-count { font-size: 0.8125rem; font-weight: 700; opacity: 0.6; }

.search input {
  width: 100%; min-height: 44px; padding: 10px 16px;
  background: var(--plum-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.search input::placeholder { color: #8e7d93; }
.search input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 85, 99, 0.25); }

.result-count { color: var(--muted); font-size: 0.9375rem; margin: 8px 0 28px; min-height: 1.5em; }
.work-list { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .work-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .work-list { grid-template-columns: repeat(4, 1fr); } }
.work-list .work-body h3 { font-size: 1.6rem; }
.no-results { padding: 64px 0; text-align: center; color: var(--muted); font-size: 1.125rem; }

.tag-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 18ch; }
.page-work .work-all { min-height: 50vh; }
.work-list .work-card, .work-list .work-card:last-child { grid-column: auto; }
.work-list .work-card:last-child .work-media { aspect-ratio: 3 / 4; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 2rem; margin: 48px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 1.0625rem; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--ink); }
.legal-updated { margin-top: 48px; font-size: 0.9375rem !important; }
.page-legal .page-head { padding-bottom: 24px; }
