/* Prism Entertainment: site styles
   Brand: Prism Brand Guide (red #ea2244, blue #3a43e8, green #6bd32b, black/white base).
   Type: Neue Haas Grotesk when licensed; Inter Tight is the stand-in until then. */

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ea2244;
  --blue: #3a43e8;
  --green: #6bd32b;
  --concrete: #ededed;
  --graphite: #595959;   /* secondary text on white: 7:1 */
  --ash: #a6a6a6;        /* secondary text on black: 8.5:1 */
  --line-dark: #2a2a2a;
  --line-light: #d4d4d4;

  --prism: linear-gradient(62deg, #ea2244 6%, #b52ad0 34%, #3a43e8 58%, #2fa7b8 76%, #6bd32b 96%);

  --font: "Neue Haas Grotesk Display Pro", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Neue Haas Grotesk Text Pro", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1240px;
  --measure: 34rem;

  /* The refraction corner: the lower-left corner of a frame is sliced at the logo's stripe angle
     and filled with red, green and blue light, as in the badge. --lx sets its width; height follows the angle. */
  --lx: 120px;
  --slope: 0.38;
  --bg: var(--white); /* colour of the surface behind a cut corner */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0; letter-spacing: -0.025em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 48px; }
.logo-img { height: 44px; width: auto; }
.logo-mark {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: var(--white); color: var(--black);
  padding: 7px 12px 6px 10px;
  font-family: var(--font); font-weight: 700; font-size: 0.95rem; line-height: 0.86; letter-spacing: -0.03em;
}
.logo-light { display: block; height: 3px; width: 100%; margin-top: 4px; background: linear-gradient(90deg, var(--red) 0 33%, var(--green) 33% 66%, var(--blue) 66%); }

.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.menu-btn {
  appearance: none; border: 0; background: transparent; color: var(--white);
  font: 600 1rem/1 var(--font); padding: 12px 0 12px 12px; min-height: 48px; cursor: pointer;
}

.menu {
  position: fixed; inset: 64px 0 0 0; z-index: 39;
  background: var(--black); color: var(--white);
  padding: 24px var(--gutter) 40px;
  display: none; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.menu.open { display: flex; }
.menu a {
  text-decoration: none; font-family: var(--font); font-weight: 600;
  font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.03em; line-height: 1.15; padding: 6px 0;
}
.menu a[aria-current="page"] { color: var(--ash); }
.menu .menu-foot { margin-top: auto; padding-top: 32px; color: var(--ash); font-size: 1rem; }
.menu .menu-foot a { font: inherit; font-size: 1rem; padding: 0; text-decoration: underline; }

@media (min-width: 860px) {
  .nav { display: flex; align-items: center; gap: 28px; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; border: 2px solid currentColor; cursor: pointer;
  background: transparent; color: inherit;
}
.btn-solid { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-solid:hover { background: #262626; border-color: #262626; }
.on-dark .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn-solid:hover { background: var(--concrete); border-color: var(--concrete); }
/* Buttons carry the same corner at small scale as a plain slice, no colour.
   Painted in the surface colour (--bg) rather than clipped, so the bands can sit in the cut. */
.btn-cut { position: relative; }
.btn-cut::after {
  content: ""; position: absolute; right: -2px; top: -2px; pointer-events: none;
  width: 24px; height: 11px;
  background: linear-gradient(to bottom left, var(--bg) 50%, transparent 50%);
}

.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* Mobile thumb-zone call to action */
.thumb-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--black); border-top: 1px solid var(--line-dark); --bg: var(--black);
}
.thumb-cta .btn { width: 100%; }
body.has-thumb-cta { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) {
  .thumb-cta { display: none; }
  body.has-thumb-cta { padding-bottom: 0; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 10vw, 120px) 0; }
.on-dark { background: var(--black); color: var(--white); --bg: var(--black); }
.on-concrete { background: var(--concrete); --bg: var(--concrete); }
.muted { color: var(--graphite); }
.on-dark .muted { color: var(--ash); }

.h-xl { font-size: clamp(3rem, 14vw, 8.5rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 700; }
.h-lg { font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: 0.98; letter-spacing: -0.04em; }
.h-md { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.h-sm { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.4; max-width: 36rem; }

.stack > * + * { margin-top: 20px; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 6vw, 56px); }
/* Short intro lines under section headings run on one line when there's room, and wrap evenly on phones. */
.section-head p { max-width: none; margin: 0; text-wrap: balance; }

/* ---------- Home hero ---------- */

.hero { padding: clamp(20px, 5vw, 48px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 40px); }
.hero-window {
  position: relative; aspect-ratio: 4 / 3; width: 100%;
  --lx: clamp(120px, 30vw, 220px); background: #111 var(--prism); overflow: hidden;
}
.hero-window video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Placeholder colour until a still or the reel loop replaces it */
.hero-window .light-fill {
  position: absolute; inset: -40%;
  background: var(--prism);
}
@keyframes sweep { 0% { background-position: 120% 0, 0 0; } 60%, 100% { background-position: -60% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-window .light-fill { animation: none; } }

.hero h1 { text-transform: uppercase; }
.hero .lede { color: var(--ash); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: end; }
  .hero-window { aspect-ratio: 5 / 6; }
}

/* ---------- Refraction corner ---------- */

.light {
  position: absolute; right: 0; top: 0; z-index: 2; pointer-events: none;
  width: var(--lx); height: calc(var(--lx) * var(--slope));
  /* "to bottom left" puts the 50% line exactly on the corner's diagonal, so the bands run parallel to the slice. */
  background: linear-gradient(to bottom left,
    var(--bg) 0 4%, var(--red) 4% 14%, var(--bg) 14% 19%,
    var(--green) 19% 29%, var(--bg) 29% 34%, var(--blue) 34% 44%,
    var(--bg) 44% 50%, transparent 50%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-origin: 100% 0;
}
/* Any clickable frame with a light corner: the corner grows on hover or keyboard focus. */
.path:hover .light, .path:focus-visible .light, .tile:hover .light,
.tile-frame:is(a, button):hover .light, .tile-frame:is(a, button):focus-visible .light { transform: scale(1.12); }
.tile-frame { --lx: clamp(88px, 24vw, 124px); }

/* ---------- Full-bleed hero ---------- */

.hero { position: relative; padding: 0; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(520px, 76svh, 920px); }
.hero-media { position: absolute; inset: 0; --lx: clamp(130px, 30vw, 260px); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.62) 32%, rgba(0,0,0,0) 60%); }
.hero-media .light { z-index: 2; }
.hero-copy { position: relative; z-index: 3; padding-top: 30svh; padding-bottom: clamp(32px, 8vw, 96px); }
.hero-copy .h-xl { max-width: 10ch; font-size: clamp(3rem, 15vw, 8rem); }
@media (min-width: 860px) { .nowrap { white-space: nowrap; } }
.hero .hero-copy .lede { color: rgba(255,255,255,.86); }
.hero-credit { position: absolute; z-index: 3; right: var(--gutter); bottom: 14px; margin: 0;
  font-size: 0.78rem; color: rgba(255,255,255,.55); }
@media (min-width: 860px) {
  /* Desktop: the picture sits on the right; the copy sits on black to its left. */
  .hero-media { left: 40%; }
  .hero-media::after { background:
    linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,.55) 22%, rgba(0,0,0,0) 48%),
    linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 35%); }
  .hero-media img { object-position: 50% 40%; }
  .hero-copy { padding-top: 22vh; }
  .hero-copy .h-xl { font-size: clamp(4rem, 8vw, 8rem); max-width: 10ch; }
}

/* ---------- Two paths ---------- */

.paths { --bg: var(--black); background: var(--black); padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 9vw, 104px); }
.paths-grid { display: grid; gap: 18px; }
.path {
  position: relative; display: block; text-decoration: none;
  background: var(--white); color: var(--black);
  padding: clamp(28px, 6vw, 48px) clamp(22px, 5vw, 44px) clamp(26px, 5vw, 40px);
  min-height: 44px;
}
.path { --lx: clamp(104px, 28vw, 150px); padding-top: calc(var(--lx) * var(--slope) + 6px); }
.path .path-title { display: block; font-family: var(--font); font-weight: 700; font-size: clamp(1.75rem, 6.4vw, 2.75rem); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.path .path-sub { display: block; margin-top: 14px; color: var(--graphite); font-size: 1.02rem; line-height: 1.45; max-width: 28rem; }
.path .path-go { display: inline-block; margin-top: 22px; font-weight: 600; border-bottom: 2px solid var(--black); padding-bottom: 2px; }
.path:hover .path-go { border-bottom-color: var(--red); }
.path:nth-child(2):hover .path-go { border-bottom-color: var(--blue); }
.path:active { transform: translateY(1px); }
@media (min-width: 760px) { .paths-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Work tiles ---------- */

.work-grid { display: grid; gap: clamp(28px, 4vw, 40px) 24px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .work-grid.three { grid-template-columns: repeat(3, 1fr); } }

.tile { display: block; text-decoration: none; color: inherit; }
.tile-frame {
  display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a;
}
.tile-frame.vertical { aspect-ratio: 9 / 16; max-height: 70vh; }
.tile-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-frame .poster {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 16px;
  color: var(--white); font-family: var(--font); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: -0.03em; line-height: 1;
}
.poster.p1 { background: linear-gradient(160deg, #2b0710, #ea2244 140%); }
.poster.p2 { background: linear-gradient(200deg, #070a2b, #3a43e8 150%); }
.poster.p3 { background: linear-gradient(140deg, #0b1a05, #6bd32b 170%); }
button.tile-frame { appearance: none; border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tile-frame .poster { z-index: 0; }
.tile-frame img { z-index: 1; }
.tile-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 46px; height: 46px;
  background: rgba(0,0,0,.72); transition: background .2s;
}
.tile-play::after {
  content: ""; position: absolute; left: 17px; top: 14px; width: 15px; height: 18px;
  background: var(--white); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
button.tile-frame:hover .tile-play, button.tile-frame:focus-visible .tile-play { background: var(--black); }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 12px; }
.tile-title { font-family: var(--font); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.tile-kind { color: var(--graphite); font-size: 0.95rem; white-space: nowrap; }
.on-dark .tile-kind { color: var(--ash); }
.tile-note { display: block; margin-top: 6px; color: var(--graphite); font-size: 0.98rem; }
.on-dark .tile-note { color: var(--ash); }
button.tile { appearance: none; border: 0; padding: 0; background: none; text-align: left; font: inherit; width: 100%; cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  appearance: none; border: 1.5px solid var(--black); background: var(--white); color: var(--black);
  min-height: 44px; padding: 0 18px; font: 500 0.98rem/1 var(--font); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }

.verticals-wrap { grid-column: 1 / -1; }
.verticals-label { color: var(--graphite); font-size: 0.98rem; margin: 8px 0 12px; }
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.verticals .tile-frame.vertical { max-height: none; }
.verticals .tile-play { left: 8px; bottom: 8px; width: 38px; height: 38px; }
.verticals .tile-play::after { left: 14px; top: 11px; width: 12px; height: 16px; }
.text-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.slate-links { display: inline-flex; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 759px) { .slate-links { justify-content: flex-start; } }

/* Video lightbox */
.player { border: 0; padding: 0; background: transparent; width: min(1100px, 100vw); max-width: 100vw; }
.player::backdrop { background: rgba(0,0,0,0.92); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame.vertical { aspect-ratio: 9 / 16; height: min(82vh, 900px); width: auto; margin: 0 auto; }
.player-frame iframe, .player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-close {
  display: block; margin: 0 0 10px auto; min-height: 44px; padding: 0 16px;
  background: var(--white); color: var(--black); border: 0; font: 600 1rem var(--font); cursor: pointer;
}

/* ---------- Services ---------- */

.service { padding: clamp(40px, 7vw, 72px) 0; border-top: 1px solid var(--line-light); scroll-margin-top: 80px; }
.service:first-of-type { border-top: 0; }
.service-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.service .for { color: var(--graphite); font-size: 1rem; margin-top: 10px; }
.includes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.includes li { padding: 13px 0; border-bottom: 1px solid var(--line-light); }
.price { margin-top: 18px; font-family: var(--font); font-weight: 600; font-size: 1.15rem; }
.price .muted { font-weight: 400; font-size: 1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.steps li::before { content: counter(step); font-family: var(--font); font-weight: 600; font-size: 1.1rem; color: var(--ash); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ash); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } .steps li { grid-template-columns: 1fr; } }

/* ---------- Page intro ---------- */

.intro { padding: clamp(48px, 10vw, 112px) 0 clamp(40px, 7vw, 72px); }
.intro .h-lg { max-width: 15ch; }
.intro .lede { margin-top: 20px; }
.intro-band { height: 6px; background: var(--prism); }

/* ---------- About principles ---------- */

.principles { display: grid; gap: 0; border-top: 1px solid var(--black); }
.principle { padding: 22px 0; border-bottom: 1px solid var(--line-light); display: grid; gap: 8px; }
.principle p { margin: 0; color: var(--graphite); }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; } .principle { border-top: 1px solid var(--black); border-bottom: 0; } }

/* ---------- Slate ---------- */

.slate { display: grid; gap: 0; border-top: 1px solid var(--black); }
.slate-item { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.slate-item .status { color: var(--graphite); font-size: 0.98rem; white-space: nowrap; }
@media (min-width: 760px) {
  /* Same three columns in every row so descriptions line up. */
  .slate-item { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); align-items: baseline; gap: 32px; }
  .slate-item > :last-child { justify-self: end; text-align: right; }
}
.slate-item p { margin: 0; }

/* ---------- Form ---------- */

.form { display: grid; gap: 26px; max-width: 40rem; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--font); font-weight: 600; font-size: 1.05rem; padding: 0; }
.field .hint { color: var(--graphite); font-size: 0.95rem; margin: -4px 0 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-text); /* 16px stops iOS zoom on focus */
  color: var(--black); background: var(--white);
  border: 1.5px solid var(--black); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }
.error { color: #b3132f; font-size: 0.95rem; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--black); font-weight: 500; cursor: pointer; background: var(--white);
}
.choice input:checked + span { background: var(--black); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.two-up { display: grid; gap: 26px; }
@media (min-width: 640px) { .two-up { grid-template-columns: 1fr 1fr; } }
.form-note { color: var(--graphite); font-size: 0.95rem; }
.form-done { padding: 28px; background: var(--concrete); }
.form-done[hidden] { display: none; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 40rem; }
.prose h2 { font-size: 1.4rem; margin: 2em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--white); padding: clamp(56px, 9vw, 96px) 0 40px; }
.foot-grid { display: grid; gap: 48px; }
.signup .h-md { max-width: 16ch; }
.signup p { color: var(--ash); margin-top: 12px; }
.signup-form { margin-top: 20px; max-width: 480px; min-height: 52px; }
.signup-consent { color: var(--ash); font-size: 0.9rem; margin-top: 10px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot-links a { text-decoration: none; padding: 6px 0; display: inline-block; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ash); font-size: 0.92rem; }
.foot-base a { color: var(--ash); }
.tagline { text-transform: uppercase; font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }

.light-line { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--green) 33.3% 66.6%, var(--blue) 66.6%); }

/* Staging marker: remove before launch */
.draft-note { background: #fff4c2; color: #3b3300; font-size: 0.92rem; padding: 10px var(--gutter); text-align: center; }
.todo { background: #fff4c2; padding: 0 3px; }

/* Spam trap field, hidden from people */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Homepage intro: a white slash through the badge becomes RGB bands that fill the screen ---------- */

.prism-intro { display: none; }
html.intro-on .prism-intro {
  display: block; position: fixed; inset: 0; z-index: 200;
  background: var(--black); overflow: hidden; cursor: pointer;
  --angle: 18deg;
  animation: intro-out 0.38s cubic-bezier(.7,0,.25,1) 1.12s forwards;
}
html.intro-on body { overflow: hidden; }
.intro-stage { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }

.intro-logo {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: clamp(96px, 26vw, 150px); max-width: none; height: auto;
  transform: translate(-50%, -50%) scale(0.92); opacity: 0;
  animation: intro-logo 0.22s cubic-bezier(.2,.8,.2,1) 0.02s forwards;
}

/* The white slash: its right end sits on the badge; it draws in from off-screen top left. */
.slash {
  position: absolute; right: 0; top: -2px; z-index: 2;
  width: 120vmax; height: 4px; background: #fff;
  box-shadow: 0 0 14px 2px rgba(255,255,255,0.6);
  transform-origin: 100% 50%; transform: rotate(var(--angle));
  clip-path: inset(0 100% 0 0);
  animation:
    slash 0.24s cubic-bezier(.6,0,.3,1) 0.14s forwards,
    slash-out 0.26s cubic-bezier(.5,0,.3,1) 0.5s forwards;
}

/* The bands: three stacked stripes centred on the slash line.
   They shoot out of the badge, then widen until they cover the screen (height set by the inline script). */
.bands {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 300vmax; height: 12px;
  display: flex; flex-direction: column;
  transform: translate(-50%, -50%) rotate(var(--angle));
  clip-path: inset(0 50% 0 50%);
  animation:
    bands-shoot 0.2s cubic-bezier(.3,.6,.3,1) 0.36s forwards,
    bands-widen 0.5s cubic-bezier(.6,0,.2,1) 0.52s forwards;
}
.bands span { flex: 1; }
.bands .r { background: var(--red); }
.bands .g { background: var(--green); }
.bands .b { background: var(--blue); }
@media (min-width: 860px) { .bands { height: 18px; } }

@keyframes intro-logo { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes slash { to { clip-path: inset(0 0 0 0); } }
/* The light pulls through into the badge as the colours open up. */
@keyframes slash-out { from { clip-path: inset(0 0 0 0); opacity: 1; } to { clip-path: inset(0 0 0 100%); opacity: 0; } }
@keyframes bands-shoot { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 50%); } }
@keyframes bands-widen { from { clip-path: inset(0 0 0 50%); } to { height: var(--fill, 300vmax); clip-path: inset(0 0 0 0); } }
@keyframes intro-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

@media (prefers-reduced-motion: reduce) { html.intro-on .prism-intro { display: none; } html.intro-on body { overflow: auto; } }

/* Phone call-to-action bar: white button on black, like the header, so its light corner reads. */
.thumb-cta .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.thumb-cta .btn-solid:hover { background: var(--concrete); border-color: var(--concrete); }

/* Keep placeholder titles clear of the play button */
button.tile-frame .poster { padding-bottom: 72px; }
.nowrap-all { white-space: nowrap; }
.hero-copy .h-xl { max-width: 8ch; }
a.tile-frame { color: inherit; text-decoration: none; }

/* ---------- Vertical promo ---------- */
.work-group[hidden] { display: none; }
.promo-group { margin-top: clamp(56px, 9vw, 96px); }
.promo-head { margin-bottom: 24px; }
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; align-items: start; }
@media (min-width: 760px) { .promo-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1100px) { .promo-grid { grid-template-columns: repeat(4, 1fr); } }
article.promo[hidden] { display: none; }
.promo .tile-frame.vertical { aspect-ratio: 9 / 16; max-height: none; --lx: clamp(64px, 16vw, 96px); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .yt-thumb { z-index: 1; }

/* The open/close control on each card: a plus that turns into a cross. */
.promo-toggle { position: absolute; left: 10px; bottom: 10px; z-index: 3; width: 44px; height: 44px; background: rgba(0,0,0,.72); transition: background .2s; }
.promo-toggle::before, .promo-toggle::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--white); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.promo-toggle::after { transform: rotate(90deg); }
.promo-card:hover .promo-toggle, .promo-card:focus-visible .promo-toggle { background: var(--black); }
.promo-card[aria-expanded="true"] .promo-toggle::before { transform: rotate(45deg); }
.promo-card[aria-expanded="true"] .promo-toggle::after { transform: rotate(135deg); }

.promo-title { display: block; margin-top: 10px; font-family: var(--font); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.promo-sub { display: block; color: var(--graphite); font-size: 0.92rem; line-height: 1.35; margin-top: 2px; }

.promo-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  animation: promo-open .28s cubic-bezier(.2,.8,.2,1); }
.promo-list[hidden] { display: none; }
@keyframes promo-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-list { animation: none; } }
.promo-clip { appearance: none; border: 0; background: none; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.promo-clip-frame { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1a1a1a; }
.promo-clip .tile-play { left: 4px; bottom: 4px; width: 26px; height: 26px; }
.promo-clip .tile-play::after { left: 9px; top: 7px; width: 9px; height: 12px; }
.promo-clip:hover .tile-play, .promo-clip:focus-visible .tile-play { background: var(--black); }
.promo-clip-label { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--graphite); white-space: nowrap; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.verticals .tile-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-note a, .promo-sub a, .verticals-label a { color: inherit; text-underline-offset: 2px; }
.slate-item p a, .includes a { color: inherit; text-underline-offset: 2px; }
.promo .tile-frame > .tile-play { left: 10px; bottom: 10px; width: 44px; height: 44px; }
.promo .tile-frame > .tile-play::after { left: 16px; top: 13px; width: 14px; height: 18px; }

/* ---------- About: founder ---------- */
/* Phones: photo and name side by side, bio and credits full width below.
   Desktop: photo in its own column beside everything else. */
.founder { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px 18px; align-items: center; }
.founder-photo { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; --lx: 56px; background: #1a1a1a; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-name .h-md { font-size: clamp(1.5rem, 6.5vw, 2.4rem); }
.founder-role { margin: 6px 0 0; font-size: clamp(0.84rem, 3.9vw, 1rem); line-height: 1.4; }
@media (min-width: 860px) { .founder-role { font-size: 1.0625rem; } }
.founder-text, .founder-credits { grid-column: 1 / -1; }
.founder-credits .h-sm { margin-bottom: 12px; }
.founder-credits .includes li { padding: 12px 0; }
@media (min-width: 860px) {
  .founder { grid-template-columns: 300px minmax(0, 1fr); gap: 28px 56px; align-items: start; }
  .founder-photo { grid-row: 1 / span 3; --lx: 92px; }
  .founder-name, .founder-text, .founder-credits { grid-column: 2; }
}

/* Closing call to action: headline and line beneath run as wide as the screen allows. */
.cta-band .h-lg { max-width: none; text-wrap: balance; }
.cta-band .lede { max-width: none; text-wrap: balance; }
@media (max-width: 349px) {
  .founder { grid-template-columns: 104px minmax(0, 1fr); }
  .founder-role .nowrap-all { white-space: normal; }
}

/* Produce page: example list and proof line inside a package */
.examples-label { margin: 18px 0 6px; font-family: var(--font); font-weight: 600; }
.examples { margin: 0; padding-left: 1.1em; max-width: var(--measure); }
.examples li { margin-bottom: 4px; }
.proof-line { margin-top: 16px; color: var(--graphite); }
.proof-line a { color: var(--black); }


.signup-fallback { margin-top: 20px; }
.signup-fallback[hidden] { display: none; }
/* Produce headline: break only between phrases, never inside one. */
.intro .produce-h { max-width: none; }

/* ---------- Produce intro: headline + mosaic of frames ---------- */
.produce-intro-grid { display: grid; gap: 32px; align-items: center; }
.mosaic { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mosaic-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #161616 center / cover no-repeat; }
.mosaic-tile img, .mosaic-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s; }
.mosaic:hover .mosaic-tile video { filter: brightness(.75); }
.mosaic .mosaic-tile:hover video { transform: scale(1.06); filter: none; }
/* Sheen: a band of light sweeps across one tile at a time (picked at random by site.js). */
.mosaic-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 42%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.12) 58%, transparent 70%);
  transform: translateX(-120%);
}
.mosaic-tile.shine::after { animation: tile-sheen 1.1s cubic-bezier(.4,0,.2,1); }
@keyframes tile-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@media (min-width: 900px) {
  .produce-intro-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .produce-intro .produce-h { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
}
@media (prefers-reduced-motion: reduce) { .mosaic-tile::after { display: none; } .mosaic-tile video { display: none; } .mosaic-tile:has(video) { background-size: cover; } }

.proof-line .proof-link { color: var(--black); margin-left: 6px; }
.tile-note .text-link { color: inherit; }

/* Client tiles on Work that open a list of widescreen videos */
.tile .promo-list.wide { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.promo-list.wide .promo-clip-frame { aspect-ratio: 16 / 9; }
.promo-list.wide .promo-clip-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-list.wide .poster { font-size: 0.95rem; padding: 10px; padding-bottom: 40px; }
.promo-list.wide .promo-clip-label { font-size: 0.85rem; white-space: normal; }
.tile .promo-card { cursor: pointer; }
.tile .promo-card .promo-toggle { left: 12px; bottom: 12px; }
.promo-clip-frame .poster { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px 10px 40px; color: var(--white); font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.05; }
/* Longer kind labels wrap and stay right-aligned instead of crowding the title */
.tile-kind { text-align: right; }
@media (max-width: 480px) { .tile-meta { flex-wrap: wrap; } .tile-kind { white-space: normal; text-align: left; flex-basis: 100%; margin-top: -4px; } }
.hero-credit a { color: inherit; }

/* ---------- Develop: two ways, services, package ---------- */
.ways { display: grid; gap: 0; border-top: 1px solid var(--black); }
.way { padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.way p { margin: 12px 0 0; }
@media (min-width: 860px) { .ways { grid-template-columns: 1fr 1fr; gap: 48px; border-top: 0; } .way { border-top: 1px solid var(--black); border-bottom: 0; } }
.services-head { padding-bottom: 0; }
.services-head .section-head { margin-bottom: 0; }
.package { display: grid; gap: 20px; align-items: end; }
.package-band .price { color: var(--white); }
.package-band .price .muted { color: var(--ash); }
@media (min-width: 860px) { .package { grid-template-columns: 1fr 1fr; gap: 48px; } }
.deck-sample a[hidden] { display: none; }
.services-head + .service { border-top: 0; padding-top: clamp(24px, 4vw, 40px); }

/* ---------- Develop intro: copy + proof ---------- */
.dev-intro-grid { display: grid; gap: 36px; align-items: center; }
.dev-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; --bg: var(--black); }
.dev-proof-item { margin: 0; }
.dev-proof-item:first-child { grid-column: 1 / -1; }
.dev-proof-item .tile-frame { --lx: clamp(80px, 18vw, 120px); }
.dev-proof-item:not(:first-child) .tile-frame { --lx: 64px; }
.dev-proof-item figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 0.92rem; color: var(--white); }
.dev-proof-item figcaption span:first-child { font-family: var(--font); font-weight: 600; }
.dev-proof-item .tile-play { width: 40px; height: 40px; }
.dev-proof-item .tile-play::after { left: 15px; top: 12px; width: 12px; height: 16px; }
@media (min-width: 900px) {
  .dev-intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}
.dev-proof-item:not(:first-child) figcaption { flex-direction: column; gap: 0; }
