:root {
  /* Layout: video frames carry the page. One 1200px column, one caption line per film, hairlines instead of cards */
  color-scheme: dark;
  --ink: #09080c;
  --panel: #110e17;
  --text: #eee9f2;
  --muted: #a297ae;
  --lilac: #b28dce;
  --hair: rgba(180, 148, 207, .18);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --column: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 28px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow-x: hidden;
}
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 400; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

#lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .42; pointer-events: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--lilac); color: #170f1f; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s;
}
.btn-solid { background: var(--lilac); color: #170f1f; }
.btn-solid:hover { background: #c4a3dc; }
.btn-line { border-color: rgba(238, 233, 242, .3); background: rgba(9, 8, 12, .28); color: var(--text); }
.btn-line:hover { border-color: rgba(238, 233, 242, .62); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.mark svg { width: 26px; height: 26px; color: var(--lilac); }

/* Reel */
.reel { position: relative; height: min(56.25vw, 88svh); min-height: 320px; overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The top film was shot with a lot of sky, so the wide version is zoomed slightly from the bottom edge to favour the property */
.reel:not(.is-tall) video { object-position: 50% 100%; transform: scale(1.05); transform-origin: 50% 100%; }
.reel::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 8, 12, .5), rgba(9, 8, 12, 0));
}
.reel.is-empty { border-bottom: 1px solid var(--hair); }
.reel.is-empty video, .reel.is-empty::after { display: none; }
/* The pause control stays out of the picture and appears for keyboard users only */
.reel-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(238, 233, 242, .3); background: rgba(9, 8, 12, .5);
  opacity: 0; pointer-events: none;
}
.reel-toggle:focus-visible { opacity: 1; pointer-events: auto; }
.reel-toggle svg { width: 15px; height: 15px; fill: currentColor; }

/* Opening words: on screen while the reel starts, then they fade and the reel takes over */
.reel-intro {
  position: absolute; inset: 0; z-index: 2; margin: 0; display: grid; place-items: center; padding: 0 var(--gutter);
  background: rgba(9, 8, 12, .5); pointer-events: none; text-align: center;
  font-size: clamp(26px, 5vw, 68px); line-height: 1.05; letter-spacing: -.03em;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.reel.is-empty .reel-intro { background: none; }
.reel.intro-done .reel-intro { opacity: 0; visibility: hidden; }

.slot-note { display: none; }
.is-empty > .slot-note {
  display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 40px); padding: 8px 16px; border-radius: 999px;
  border: 1px dashed rgba(180, 148, 207, .4); color: var(--muted); font-size: 14px; text-align: center;
}

/* Films */
.films { padding-top: clamp(48px, 7vw, 96px); }
.film + .film { margin-top: clamp(48px, 7vw, 96px); }
.film { scroll-margin-top: 28px; }
.player {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 1px solid var(--hair); border-radius: 10px;
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.player.is-empty { background: rgba(17, 14, 23, .5); }
.player.is-empty video { display: none; }

.film-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 16px; min-height: 40px; }
.film-cap h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.film-cap p { color: var(--muted); font-size: 15px; }
.film-play {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 1px solid rgba(238, 233, 242, .28); background: none;
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.film-play:hover { border-color: rgba(238, 233, 242, .6); }
.film-play svg { width: 12px; height: 12px; fill: currentColor; }

/* Optional client quote under a film */
.film-quote { margin: 14px 0 0; padding-left: 16px; border-left: 2px solid var(--lilac); max-width: 62ch; }
.film-quote p { font-size: 18px; line-height: 1.45; }
.film-quote footer { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Loading mark: the logo, swaying, wherever a video is still getting ready */
.loader {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 12px;
  border-radius: 50%; background: rgba(9, 8, 12, .5); color: var(--lilac);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.loader svg { display: block; width: 100%; height: 100%; }
.is-loading > .loader { opacity: 1; transition-delay: .25s; }
.is-empty > .loader { opacity: 1; top: 44%; background: none; }
.is-empty > .slot-note { top: 60%; }
.reel > .loader { top: 50%; }
.reel.is-empty > .loader, .reel:not(.intro-done) > .loader { display: none; }
.reel.is-empty > .slot-note { top: 78%; }

/* Player controls: shown only while a film is being watched, and they fade when the pointer rests */
.player-bar {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  display: flex; align-items: center; gap: 4px; padding: 30px 10px 8px;
  background: linear-gradient(to top, rgba(5, 3, 8, .82), rgba(5, 3, 8, 0));
  transition: opacity .25s;
}
.pb { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pb:hover { background: rgba(238, 233, 242, .12); }
.pb svg { width: 18px; height: 18px; fill: currentColor; }
.pb-time { flex: none; padding: 0 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(238, 233, 242, .86); }
.pb-seek {
  --p: 0%;
  flex: 1; min-width: 0; height: 40px; margin: 0 6px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.pb-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--lilac) var(--p), rgba(238, 233, 242, .3) var(--p)); }
.pb-seek::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--lilac) var(--p), rgba(238, 233, 242, .3) var(--p)); }
.pb-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: #fff; }
.pb-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.is-idle, .is-idle video { cursor: none; }
.is-idle .player-bar { opacity: 0; pointer-events: none; }
.reel:fullscreen { height: 100vh; }
.reel:fullscreen video { object-fit: contain; transform: none; }
.reel.is-watching::after, .reel.is-watching .reel-toggle { display: none; }
.player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.player:fullscreen video { object-fit: contain; }

/* Vertical cuts: one row that swipes sideways with the browser's own scrolling, so it stays smooth */
.verticals { padding-top: clamp(72px, 10vw, 136px); }
.verticals-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrows button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(238, 233, 242, .28); background: none; cursor: pointer; }
.rail-arrows button:hover { border-color: rgba(238, 233, 242, .6); }
.rail-arrows button[disabled] { opacity: .35; cursor: default; }
.rail-arrows svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  --side: max(var(--gutter), calc((100% - var(--column)) / 2));
  display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--side); scroll-padding-inline: var(--side);
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .rail { scroll-behavior: smooth; } }
.vcard { flex: 0 0 auto; width: max(200px, calc((100% - 64px) / 5)); margin: 0; scroll-snap-align: start; }
.vcard-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; overflow: hidden;
  border: 1px solid var(--hair); border-radius: 10px; background: #000; cursor: pointer;
}
.vcard-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-frame.is-empty { background: rgba(17, 14, 23, .5); cursor: default; }
.vcard-frame.is-empty video { display: none; }
.vcard figcaption { margin-top: 10px; font-size: 15px; }

/* Full-screen viewer for a vertical cut */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--text); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(5, 3, 8, .94); }
.viewer-frame { width: auto; height: min(92dvh, calc((100vw - 24px) * 16 / 9)); aspect-ratio: 9 / 16; }
.viewer-frame video { object-fit: contain; }
.viewer .pb-time { display: none; }
.viewer-close {
  position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(238, 233, 242, .28); background: rgba(9, 8, 12, .6);
}
.viewer-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Contact */
.block { padding-top: clamp(72px, 10vw, 136px); }
.block-title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.02em; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-lead { display: grid; gap: 10px; justify-items: start; }
.contact-lead p { color: var(--muted); }
.contact-lead a { text-underline-offset: 5px; text-decoration-color: rgba(178, 141, 206, .6); }

form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.wide { grid-column: 1 / -1; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label { color: var(--muted); font-size: 14px; }
input, textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(180, 148, 207, .28);
  background: rgba(17, 14, 23, .78); color: var(--text); font: 400 16px/1.4 var(--font);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(178, 141, 206, .22); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
#form-status { flex: 1; min-width: 220px; color: var(--muted); font-size: 15px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(72px, 10vw, 136px); padding: 24px 0 40px; border-top: 1px solid var(--hair);
  color: var(--muted); font-size: 14px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { position: static; padding: 14px var(--gutter); }
  .reel { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .reel.is-tall { aspect-ratio: 4 / 5; }
  .reel::after { display: none; }
  .reel.is-empty { border-top: 1px solid var(--hair); }

  .film .player { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; }
  .pb-time { display: none; }
  .film-cap { margin-top: 12px; }
  .film-cap h2 { width: 100%; }
  .split, form { grid-template-columns: 1fr; }
  .vcard { width: 62%; max-width: 280px; }
  .rail { gap: 12px; }
  .form-end .btn { width: 100%; }
}

@media (hover: none) { .rail-arrows { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
