@font-face {
  font-family: "Bebas Neue";
  src: url("/shared/brand/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/shared/brand/fonts/OpenSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1A4C81;
  --navy-mid: #4881B5;
  --navy-light: #67A7D6;
  --scarlet: #EF464B;
  --keppel: #59C3B4;
  --keppel-soft: #C1EDE4;
  --sky: #ADE0EE;
  --sky-pale: #DEF9FF;
  --teal: #218380;
  --white: #FFFFFF;
  --ink: #1F2A33;
  --ink-soft: #3D4852;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 7.5vw, 108px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  scrollbar-color: var(--navy) var(--sky-pale);
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--keppel); color: #000; }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header { background: var(--navy); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.logo-plaque {
  position: relative;
  background: var(--white);
  padding: 14px 26px 14px 22px;
}
.logo-plaque::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
  background: var(--keppel);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.brand-logo { width: 176px; height: auto; }
.site-label {
  font-family: var(--display);
  font-size: clamp(22px, 1.8vw, 26px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}

/* Hero */
.hero {
  background: var(--navy);
  padding: 8px 0 clamp(56px, 7vw, 96px);
}

.room {
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.room-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 28px 10px 20px;
  border-bottom: 1px solid var(--keppel-soft);
}
.room-mark { width: auto; height: 28px; }
.room-film {
  font-family: var(--display);
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1;
  color: var(--navy);
  padding-top: 3px;
}
.room-version {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  padding: 7px 10px;
  border: 1.5px solid var(--navy-mid);
}
.room-badge {
  margin-left: auto;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--navy);
  background: var(--sky);
  padding: 7px 12px 5px;
}

.room-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.room-stage { padding: 20px 20px 16px; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  color: var(--white);
  container-type: inline-size;
}

.title-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 9cqi;
}
.title-card::before {
  content: "";
  position: absolute;
  inset: 5cqi;
  border: 1.5px dashed rgb(173 224 238 / 0.45);
  pointer-events: none;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 10cqi, 92px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  max-width: 11ch;
  color: var(--white);
  text-wrap: balance;
}
.title-bar {
  display: block;
  width: 9cqi;
  min-width: 40px;
  height: 8px;
  margin: 2.6cqi auto 0;
  background: var(--scarlet);
}

.leader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background: var(--navy);
}
.player[data-state="leader"] .leader { display: block; }
.leader-svg { width: 100%; height: 100%; }
.leader-ring { fill: none; stroke: var(--sky); stroke-width: 1; stroke-dasharray: 3 2; }
.leader-ring--inner { stroke: var(--keppel); stroke-dasharray: none; stroke-width: 1.2; }
.leader-cross { stroke: var(--sky); stroke-width: 1; }
.leader-num { font-family: var(--display); font-size: 34px; fill: var(--white); text-anchor: middle; }

.player[data-state="cut"] .title-card { animation: cut-in 520ms var(--ease-out) both; }
@keyframes cut-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.transport {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 12px;
}
.play-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--navy);
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.play-btn svg { width: 14px; height: 14px; fill: var(--navy); }
.play-btn:hover { background: var(--keppel); border-color: var(--keppel); }
.player-time {
  padding-top: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Timeline: dashed is still to watch, solid is watched */
.timeline {
  --played: 31.1%;
  position: relative;
  height: 58px;
}
.timeline-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 0;
  border-top: 4px dashed var(--navy-mid);
}
.timeline-played {
  position: absolute;
  top: -4px;
  left: 0;
  height: 4px;
  width: var(--played);
  background: var(--keppel);
}
.playhead {
  position: absolute;
  left: var(--played);
  top: 6px;
  width: 2px;
  height: 24px;
  margin-left: -1px;
  background: var(--scarlet);
}
.playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -5px;
  border: 6px solid transparent;
  border-top: 7px solid var(--scarlet);
}
.pin {
  position: absolute;
  left: var(--at);
  top: 28px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  display: grid;
  place-items: center;
}
.pin-mark {
  width: 12px;
  height: 12px;
  background: var(--navy-mid);
  transform: rotate(45deg);
  transition: background-color 160ms ease-out, transform 220ms var(--ease-out);
}
.pin:hover .pin-mark { background: var(--keppel); }
.pin.is-active .pin-mark { background: var(--scarlet); transform: rotate(45deg) scale(1.3); }
.pin.pop .pin-mark { animation: pop 420ms var(--ease-out); }
@keyframes pop {
  from { transform: rotate(45deg) scale(0.4); }
  to { transform: rotate(45deg) scale(1.3); }
}

/* Notes */
.notes {
  border-left: 1px solid var(--keppel-soft);
  padding: 16px 20px 20px;
}
.notes-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--keppel-soft);
}
.notes-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 10px;
  margin-bottom: -2px;
  border-bottom: 3px solid transparent;
}
.notes-tab:hover { color: var(--navy); }
.notes-tab[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--navy); }

.notes-list { display: grid; gap: 10px; margin-top: 14px; }
.notes[data-view="section"] .note:not(.is-active) { display: none; }
.note-btn {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 12px 14px 13px;
  border: 1.5px solid var(--keppel-soft);
  background: var(--white);
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.note-btn:hover { border-color: var(--keppel); }
.note.is-active .note-btn { border-color: var(--navy); background: var(--sky-pale); }
.notes[data-pending] .note.is-active .note-btn { border-color: var(--keppel-soft); background: var(--white); }
.note-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.note-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.note-type::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.note-type--keep::before { background: var(--keppel); }
.note-type--change::before { background: var(--scarlet); }
.note-type--unclear::before { background: var(--navy-mid); }
.note-time { font-size: 14px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.note-text { font-size: 16px; line-height: 1.45; color: var(--ink); }
.note-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.note-agreed { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--navy); }
.note-agreed svg { width: 14px; height: 14px; fill: none; stroke: var(--teal); stroke-width: 2.4; }

.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 56px;
  margin-top: 36px;
}
.hero-intro p { max-width: 62ch; font-size: clamp(17px, 1.32vw, 19px); line-height: 1.6; color: var(--white); }

.btn-primary {
  flex: none;
  display: inline-block;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  background: var(--scarlet);
  padding: 17px 32px 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-primary:focus-visible { outline-color: var(--white); }

/* Section cuts */
.diagonal-cut {
  width: 100%;
  height: clamp(36px, 5.3vw, 76px);
  margin-top: -1px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1;
}
.section-title--navy { color: var(--navy); }
.section-title--white { color: var(--white); }
.block-bar { display: block; width: 72px; height: 8px; margin-top: 16px; }
.block-bar--keppel { background: var(--keppel); }

/* Steps */
.section-review { background: var(--white); }
.section-inner { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 112px); }
.steps { margin-top: 44px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 44px minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--keppel-soft);
}
.step:last-child { border-bottom: 1px solid var(--keppel-soft); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 86px;
  bottom: -32px;
  border-left: 2px dashed var(--keppel);
}
.step-glyph { width: 48px; height: 48px; position: relative; z-index: 1; background: var(--white); }
.step-num { font-family: var(--display); font-size: 48px; line-height: 0.9; color: var(--navy); padding-top: 2px; }
.step-title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.2vw, 32px); line-height: 1; color: var(--navy); padding-top: 8px; }
.step-body { max-width: 52ch; color: var(--ink); padding-top: 4px; }

.cue-arrow {
  position: absolute;
  top: -96px;
  left: clamp(300px, 36vw, 470px);
  width: clamp(130px, 14vw, 190px);
  height: auto;
  fill: none;
  stroke: var(--keppel);
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}
.cue-arrow path:first-child { stroke-dasharray: 9 8; }

/* Privacy */
.section-privacy { background: var(--navy); color: var(--white); }
.section-privacy .diagonal-cut { margin-top: 0; }
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: center;
  padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px);
}
.privacy-body { margin-top: 28px; max-width: 56ch; color: var(--white); }
.privacy-note { margin-top: 22px; font-weight: 600; color: var(--sky); }
.privacy-svg { width: 100%; max-width: 460px; justify-self: end; }

/* Finished films */
.section-finished { background: var(--sky-pale); padding: clamp(48px, 6vw, 80px) 0; }
.finished-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border: 2px dashed var(--navy);
}
.finished-body { margin-top: 14px; color: var(--ink); }
.finished-svg { width: 120px; flex: none; }

/* Footer */
.site-footer { border-top: 4px solid var(--navy); background: var(--white); }
.footer-places {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--keppel-soft);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-block;
  padding-block: 2px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease-out;
}
.footer-links a:hover { text-decoration-color: var(--keppel); }
#review-heading { scroll-margin-top: 32px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 40px;
}
.footer-logo { width: 190px; height: auto; }
.footer-text { text-align: right; font-size: 16px; color: var(--navy); }
.footer-credit { margin-top: 2px; font-size: 16px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .room-body { grid-template-columns: minmax(0, 1fr); }
  .notes { border-left: 0; border-top: 1px solid var(--keppel-soft); }
  .hero-intro { flex-direction: column; align-items: flex-start; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy-svg { justify-self: start; max-width: 380px; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 72px; }
  .logo-plaque { padding: 10px 18px 10px 14px; }
  .brand-logo { width: 132px; }
  .room { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
  .room-bar { gap: 10px; padding: 10px 22px 10px 12px; min-height: 50px; }
  .room-mark { height: 24px; }
  .room-version { padding: 6px 8px; }
  .room-badge { font-size: 16px; padding: 6px 9px 4px; }
  .room-stage { padding: 12px 12px 8px; }
  .transport { gap: 10px; }
  .notes { padding: 12px 12px 14px; }
  .hero-intro { margin-top: 28px; }
  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 10px;
  }
  .step-num { display: none; }
  .cue-arrow { top: -64px; left: auto; right: 0; width: 96px; }
  .step-title { padding-top: 10px; }
  .step-body { grid-column: 2; }
  .step:not(:last-child)::after { top: 82px; }
  .finished-frame { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
}

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