/* Spread Media Studios: test-card colours, Helvetica-style grotesque, giant faded type.
   Home = full-screen panels with fixed colour bars. Section and title pages = hero of ghost type,
   logo laid over it, copy + EPK form on the left, title list on the right. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Helvetica-style grotesque, self-hosted (Archivo, SIL OFL). Put "Helvetica Neue" first if you
     license a web Helvetica. */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --c-black: #0b0b0b; --c-blue: #0000ff; --c-cyan: #00ffff; --c-green: #00ff00;
  --c-magenta: #ff00ff; --c-red: #ff0000; --c-white: #ffffff; --c-yellow: #ffe100;
  --field: #f1f1ef;
  --top-h: 38px;
  --bars-h: clamp(26px, 6.5vh, 52px);
  --legal-h: 40px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --bg: #fff; --ink: #000; --logo: #000; --ghost: rgba(0, 0, 0, .08); --muted: rgba(0, 0, 0, .66);
}

/* Page colours: background, text, logo and faded-type tint */
.bg-yellow  { --bg: #ffe100; --ink: #000; --logo: #000; --ghost: rgba(0,0,0,.06);     --muted: rgba(0,0,0,.7); }
.bg-red     { --bg: #ff0000; --ink: #000; --logo: #fff; --ghost: rgba(255,255,255,.17);  --muted: rgba(0,0,0,.72); }
.bg-green   { --bg: #00ff00; --ink: #000; --logo: #000; --ghost: rgba(0,0,0,.06);      --muted: rgba(0,0,0,.7); }
.bg-blue    { --bg: #0000ff; --ink: #fff; --logo: #fff; --ghost: rgba(255,255,255,.1); --muted: rgba(255,255,255,.78); }
.bg-black   { --bg: #0b0b0b; --ink: #fff; --logo: #fff; --ghost: rgba(255,255,255,.075); --muted: rgba(255,255,255,.72); }
.bg-white   { --bg: #ffffff; --ink: #000; --logo: #000; --ghost: rgba(0,0,0,.06);      --muted: rgba(0,0,0,.62); }
.bg-grey    { --bg: #555555; --ink: #fff; --logo: #fff; --ghost: rgba(255,255,255,.09); --muted: rgba(255,255,255,.8); }
.bg-sky     { --bg: #a4c2f4; --ink: #000; --logo: #000; --ghost: rgba(255,255,255,.3);  --muted: rgba(0,0,0,.7); }
.bg-cyan    { --bg: #00ffff; --ink: #000; --logo: #000; --ghost: rgba(0,0,0,.07);      --muted: rgba(0,0,0,.7); }
.bg-magenta { --bg: #ff00ff; --ink: #000; --logo: #000; --ghost: rgba(255,255,255,.22); --muted: rgba(0,0,0,.72); }
.bg-yellow, .bg-red, .bg-green, .bg-blue, .bg-black, .bg-white, .bg-grey, .bg-sky, .bg-cyan, .bg-magenta {
  background: var(--bg); color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 60; background: #000; color: #fff; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.arrows { opacity: .55; letter-spacing: -.05em; }

.logo-svg { display: block; width: 100%; height: auto; color: var(--logo); }
.logo-img { display: block; width: 100%; height: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-h);
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: #000; color: #fff;
  border-bottom: 1px solid #222;
}
.topbar nav { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.topbar a { display: flex; align-items: center; height: 100%; text-decoration: none; color: #fff; --logo: #fff; }
.topbar .tb-logo { height: 17px; width: auto; }
.topbar .tb-text { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.topbar a:hover { opacity: .75; }
.home .topbar { position: fixed; left: 0; right: 0; }

/* ---------- Colour bars + legal ---------- */
.bars { display: grid; grid-template-columns: repeat(8, 1fr); height: var(--bars-h); margin: 0; padding: 0; list-style: none; }
.bars li { position: relative; }
.b-black { --bar: var(--c-black); } .b-blue { --bar: var(--c-blue); } .b-cyan { --bar: var(--c-cyan); } .b-green { --bar: var(--c-green); }
.b-magenta { --bar: var(--c-magenta); } .b-red { --bar: var(--c-red); } .b-white { --bar: var(--c-white); } .b-yellow { --bar: var(--c-yellow); }
.bars .bar {
  display: block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0;
  background: var(--bar); transform-origin: bottom;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
a.bar, button.bar { cursor: pointer; }
a.bar:hover, button.bar:hover { transform: scaleY(1.15); }
.bar[aria-current="true"] { transform: scaleY(0); }
.bar:focus-visible { outline: 3px solid #000; outline-offset: -6px; }
.bar[aria-current="true"]:focus-visible { transform: scaleY(.25); }

.legal {
  min-height: var(--legal-h);
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 14px;
  padding: 6px var(--gutter);
  font-size: 11px; line-height: 1.35;
  color: var(--ink);
}
.legal p { margin: 0; }
.legal nav { display: flex; gap: 14px; flex-wrap: wrap; }
.legal a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.pagefoot { margin-top: 48px; }

/* ---------- Home ---------- */
.home { scroll-snap-type: y proximity; }
html:has(body.home) { scroll-snap-type: y proximity; }
@media (min-width: 800px) and (min-height: 600px) { html:has(body.home) { scroll-snap-type: y mandatory; } }

.chrome { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); pointer-events: none; }
.chrome .legal, .chrome .bars { pointer-events: auto; }
.chrome .legal { color: var(--chrome-ink, #000); background: var(--chrome-bg, transparent); transition: color .3s ease, background-color .3s ease; }
html[data-colour="white"] { --chrome-bg: #fff; } html[data-colour="yellow"] { --chrome-bg: #ffe100; } html[data-colour="blue"] { --chrome-bg: #0000ff; }
html[data-colour="green"] { --chrome-bg: #00ff00; } html[data-colour="black"] { --chrome-bg: #0b0b0b; } html[data-colour="red"] { --chrome-bg: #ff0000; }
html[data-colour="blue"], html[data-colour="black"], html[data-colour="grey"] { --chrome-ink: #fff; }
html[data-colour="connect"] { --chrome-ink: #000; }

.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start;
}
.panel-inner {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--top-h) + clamp(28px, 8vh, 90px)) var(--gutter) calc(var(--bars-h) + var(--legal-h) + 150px);
  position: relative;
}
.tagline {
  margin: 0 0 .25em;
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: .95; letter-spacing: -.02em;
  color: #b9b9b9;
  text-wrap: balance;
}
.section-h {
  margin: 0 0 .2em;
  font-weight: 400;
  font-size: clamp(64px, 10.5vw, 176px);
  line-height: .9; letter-spacing: -.03em;
}
.section-h a { text-decoration: none; }
.section-h a:hover { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .08em; }

.discover { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 28px; margin-left: .2em; }
.discover-btn, .discover-label {
  font: 400 clamp(17px, 1.6vw, 22px)/1.2 var(--sans);
  text-transform: uppercase; letter-spacing: .01em;
  color: inherit; background: none; border: 0; padding: 0;
}
.discover-btn { cursor: pointer; }
.discover-btn:hover .arrows, .discover-btn[aria-expanded="true"] .arrows { opacity: 1; }

.titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.titles a {
  font-size: clamp(13px, 1.1vw, 15px); font-weight: 500; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase;
  display: inline-block; padding: 2px 0;
}
.titles a:hover { text-decoration: underline; text-underline-offset: 3px; }
.titles a[aria-current="page"] { font-weight: 900; }
.discover .titles { margin-top: 3px; }

.studio-mark {
  position: absolute; left: var(--gutter);
  bottom: calc(var(--bars-h) + var(--legal-h) + 22px);
  width: clamp(140px, 15vw, 210px);
  --logo: currentColor;
}
.studio-mark .studios {
  display: block; margin-top: 4px; padding-left: .2em;
  font-size: clamp(9px, .8vw, 12px); font-weight: 500; letter-spacing: .62em;
}
.connect-inner .epk { max-width: 560px; }

/* ---------- Section + title pages ---------- */
.feature-main { padding-bottom: 24px; }
.hero {
  display: grid; overflow: hidden;
  padding-top: clamp(8px, 1.5vw, 18px);
}
.hero > * { grid-area: 1 / 1; }
.ghost {
  --fit: 20vw; --lh: 30vh;
  font-size: min(var(--fit), var(--lh), 21vw);
  font-weight: 800;
  font-stretch: 100%;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-left: -.06em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.ghost span { display: block; }
.l1 { --lh: 38vh; } .l2 { --lh: 28vh; } .l3 { --lh: 20vh; } .l4 { --lh: 15.5vh; } .l5 { --lh: 12.5vh; } .l6 { --lh: 10.5vh; }
.g2 { --fit: 78.13vw; } .g3 { --fit: 52.08vw; } .g4 { --fit: 39.06vw; } .g5 { --fit: 31.25vw; }
.g6 { --fit: 26.04vw; } .g7 { --fit: 22.32vw; } .g8 { --fit: 19.53vw; } .g9 { --fit: 17.36vw; }
.g10 { --fit: 15.63vw; } .g11 { --fit: 14.20vw; } .g12 { --fit: 13.02vw; } .g13 { --fit: 12.02vw; }
.g14 { --fit: 11.16vw; } .g15 { --fit: 10.42vw; } .g16 { --fit: 9.77vw; }

.hero-brand {
  align-self: start; z-index: 1;
  padding: clamp(18px, 4vh, 44px) var(--gutter) 24px;
  display: grid; gap: 14px; justify-items: start;
}
.hero-logo { width: clamp(200px, 30vw, 430px); }
.title-h1 {
  margin: 0;
  font-weight: 900; font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 900;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .86; text-transform: uppercase;
  max-width: 14ch; text-wrap: balance;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(220px, 340px);
  justify-content: space-between;
  gap: 40px 6vw;
  padding: 8px var(--gutter) 0;
}
.feature-copy { min-width: 0; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.about p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; max-width: 60ch; }
.visit {
  display: inline-flex; gap: 8px; align-items: center;
  margin: 6px 0 4px;
  padding: 11px 16px 10px;
  border: 2px solid currentColor; border-radius: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.visit:hover { background: var(--ink); color: var(--bg); }
.feature-list { min-width: 0; padding-top: 4px; }
.list-h { margin: 0 0 10px; font-size: 15px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.list-h span { opacity: .55; }
.back { margin: 18px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* ---------- EPK form (same look as RWS Films) ---------- */
.epk { margin-top: 30px; width: 100%; max-width: 560px; }
.epk-title {
  margin: 0 0 14px;
  font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .01em;
}
.form { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.field .opt { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.field input, .field select {
  width: 100%;
  font: 500 16px/1.2 var(--sans);
  color: #000; background: var(--field);
  border: 2px solid #000; border-radius: 10px;
  padding: 12px 14px;
  appearance: none; -webkit-appearance: none;
}
.bg-blue .field input, .bg-blue .field select, .bg-black .field input, .bg-black .field select,
.bg-grey .field input, .bg-grey .field select { border-color: #fff; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus, .field select:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.field [aria-invalid="true"] { border-color: #000 !important; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #c00000; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #000; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit {
  display: inline-flex; align-items: center;
  font: 900 20px/1 var(--sans); font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 900;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bg); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 14px 22px 13px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.submit:hover { background: transparent; color: var(--ink); }
.submit[disabled] { opacity: .6; cursor: progress; }
.fine { flex: 1 1 220px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.fine a { font-weight: 700; color: var(--ink); }
.status { margin: 0; font-size: 14px; font-weight: 800; }
.status.error::before { content: "! "; }
.done { border: 2px solid var(--ink); border-radius: 12px; padding: 20px 20px 18px; background: var(--ink); color: var(--bg); }
.done h3 {
  margin: 0 0 6px;
  font: 900 34px/.9 var(--sans); font-stretch: 62%;
  font-variation-settings: "wdth" 62, "wght" 900; text-transform: uppercase;
}
.done p { margin: 0; font-size: 15px; line-height: 1.5; }
.done a { color: inherit; font-weight: 700; }
.done .note { margin-top: 10px; font-size: 12px; opacity: .8; }

/* ---------- Legal pages ---------- */
.doc main { max-width: 72ch; padding: clamp(28px, 6vh, 64px) var(--gutter) 40px; font-size: 16px; line-height: 1.65; }
.doc h1 { margin: 0 0 6px; font: 900 clamp(3rem, 9vw, 5.5rem)/.85 var(--sans); font-stretch: 62%; font-variation-settings: "wdth" 62, "wght" 900; text-transform: uppercase; }
.doc .meta { margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.doc h2 { margin: 40px 0 8px; font: 900 26px/1 var(--sans); font-stretch: 75%; font-variation-settings: "wdth" 75, "wght" 900; text-transform: uppercase; }
.doc h3 { margin: 22px 0 4px; font-size: 16px; font-weight: 800; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--c-yellow); color: #000; border: 2px solid #000; border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
.doc .summary ul { margin: 6px 0 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ghost span { animation: ghostIn 1s cubic-bezier(.2,.8,.2,1) both; }
  .ghost span:nth-child(2) { animation-delay: .06s; } .ghost span:nth-child(3) { animation-delay: .12s; }
  .ghost span:nth-child(4) { animation-delay: .18s; } .ghost span:nth-child(5) { animation-delay: .24s; }
  @keyframes ghostIn { from { transform: translateX(-.15em); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 1fr; }
  .hero-logo { width: min(68vw, 320px); }
  .l1 { --lh: 26vh; } .l2 { --lh: 20vh; } .l3 { --lh: 15vh; } .l4 { --lh: 12vh; } .l5 { --lh: 10vh; } .l6 { --lh: 8.5vh; }
  .ghost { font-size: min(var(--fit), var(--lh), 24vw); }
  .topbar .tb-logo { height: 14px; }
  :root { --legal-h: 56px; }
  .legal { font-size: 10px; }
  .panel-inner { padding-bottom: calc(var(--bars-h) + var(--legal-h) + 110px); }
  .discover { gap: 10px; }
  .discover .titles { flex-basis: 100%; }
  .visit { font-size: 12px; letter-spacing: .04em; flex-wrap: wrap; }
}
