/* Design gallery: "the multiviewer". A near-black control-room wall of monitors,
   with tally lights (red = on air, green = preview) and under-monitor labels. */
:root {
  --bg: #0B0B0F;
  --panel: #15151B;
  --panel-2: #1E1E26;
  --line: #2A2A33;
  --muted-2: #85858E;
  --muted: #ACACB5;
  --body: #E2E2E6;
  --fg: #F1F2F3;
  --red: #E95047;      /* on air */
  --green: #3DBE6B;    /* preview */
  --gold: #FDAE00;
  --link: #95BDF1;
  --primary: #084AB5;
  --primary-hover: #135CC5;

  --f-display: 'Spectral', Georgia, serif;
  --f-body: 'Crimson Pro', Georgia, serif;
  --f-ui: Inter, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: 48px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 21px; line-height: 30px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-family: var(--f-ui); font-size: 14px; }
.skip:focus { left: 16px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (max-width: 720px) { body { font-size: 19px; line-height: 28px; } }

.eyebrow { margin: 0 0 14px; font-family: var(--f-ui); font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag { font-family: var(--f-mono); font-size: 11px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0;
  border-radius: 8px; background: var(--panel-2); color: var(--fg); font-family: var(--f-ui); font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--line); color: var(--fg); }
.btn--primary { background: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); }
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel-2); display: grid; place-items: center; font-family: var(--f-display); font-size: 14px; box-shadow: 0 0 0 2px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Top bar ---------- */
/* Dark glass: what scrolls underneath is blurred and dimmed, with a faint lit edge */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter);
  background: linear-gradient(rgba(11, 11, 15, .62), rgba(11, 11, 15, .48));
  -webkit-backdrop-filter: blur(20px) saturate(140%) brightness(.7);
  backdrop-filter: blur(20px) saturate(140%) brightness(.7);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 24px rgba(0, 0, 0, .25);
}
/* Browsers without backdrop blur get a solid dark bar so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top { background: rgba(11, 11, 15, .94); } }
.top__brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--f-display); font-size: 19px; }
.paths-nav { flex: 1; display: flex; justify-content: center; gap: 6px; }
.paths-nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-family: var(--f-ui); font-size: 14px; text-decoration: none; white-space: nowrap; }
.paths-nav a span { color: var(--muted-2); font-size: 11px; margin-right: 4px; }
.paths-nav a:hover { color: var(--fg); background: var(--panel); }
.paths-nav a[aria-current] { color: var(--fg); background: var(--panel); box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 760px) {
  .top { gap: 12px; padding-block: 10px; }
  .top__brand [data-name] { display: none; }
  .paths-nav { justify-content: flex-start; gap: 0; }
  .paths-nav a { padding: 8px 8px; font-size: 13px; }
  .paths-nav a span { display: none; }
  .top__contact { min-height: 38px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 400px) { .top__contact { display: none; } }

/* ---------- Intro ---------- */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 72px 0 32px; }
.intro__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.015em; }
.intro__title em { color: var(--red); }
.intro__lede { margin: 22px 0 0; max-width: 60ch; color: var(--body); }
.status { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--f-mono); }
.status__live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.status__live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.status__tc { font-size: 26px; letter-spacing: .04em; color: var(--fg); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .intro { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 48px; } .status { flex-direction: row; align-items: center; } .status__tc { font-size: 18px; } }

/* ---------- The wall: a multiviewer page of 12 equal inputs ---------- */
.wall { padding: 10px; border-radius: 14px; background: #050507; border: 1px solid var(--line); }
.wall__bar { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; font-family: var(--f-mono); font-size: 10px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.src {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background: #000; color: var(--fg); cursor: pointer; text-align: left; font: inherit;
  box-shadow: 0 0 0 1px #1C1C22;
}
/* tally border drawn inside the tile, so neighbours never overlap */
.src::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 3px; pointer-events: none; transition: border-color .2s; }
.src__shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.src__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: .7; transition: opacity .2s; }
.src:not(.src--empty):hover::after, .src:focus-visible::after { border-color: var(--green); }
.src:not(.src--empty):hover .umd__tally, .src:focus-visible .umd__tally { background: var(--green); }
.src:hover img, .src.is-pgm img { opacity: 1; }
.src:focus-visible { outline: none; }
.src.is-pgm::after { border-color: var(--red); }
.src.is-pgm .umd__tally { background: var(--red); box-shadow: 0 0 10px rgba(233, 80, 71, .7); }
.src--open .src__shot { opacity: .6; transition: opacity .2s; }
.src--open:hover .src__shot, .src--open.is-pgm .src__shot { opacity: 1; }
/* spare inputs: nothing plugged in */
.src--empty { cursor: default; }
.src--empty .src__shot { background: radial-gradient(ellipse at center, #121218, #000 75%); }
.src__nosig { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #4A4A55; }
.src--empty .umd { color: #4A4A55; }

/* Under-monitor display: the label strip under each picture */
.umd { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 9px; background: #000; border-top: 1px solid #16161B; font-family: var(--f-mono); font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.umd__tally { flex: none; width: 9px; height: 9px; border-radius: 2px; background: #2A2A33; transition: background .2s; }
.umd__src { flex: none; color: var(--muted-2); }
.umd__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) { .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .wall { padding: 6px; border-radius: 10px; }
  .wall__bar { font-size: 9px; padding-bottom: 6px; }
  .sources { gap: 4px; }
  .src::after { border-width: 2px; }
  .umd { gap: 5px; padding: 4px 5px; font-size: 8.5px; line-height: 11px; letter-spacing: .04em; }
  .umd__tally { width: 6px; height: 6px; }
  .src .umd__src { display: none; }
  .src__nosig { font-size: 7.5px; letter-spacing: .14em; }
}

/* ---------- Story: programme monitor beside the selected project's story ---------- */
.story { margin-top: 28px; padding: 32px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); outline: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.story.is-in .story__body { animation: storyIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes storyIn { from { opacity: 0; transform: translateY(10px); } }
.pgm { position: sticky; top: 96px; display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px var(--red), 0 18px 40px rgba(0, 0, 0, .45); }
.pgm__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.pgm__layer { position: absolute; inset: 0; display: grid; place-items: center; }
.pgm__layer img { width: 100%; height: 100%; object-fit: contain; }
.pgm__layer.is-wiping { animation: wipe .45s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pgm__nosignal { position: absolute; padding: 8px 14px; background: #000; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.umd--pgm { font-size: 12px; padding: 8px 11px; }
.umd--pgm .umd__tally { background: var(--red); box-shadow: 0 0 10px rgba(233, 80, 71, .7); }
.umd--pgm .umd__src { color: var(--red); }
.bars { position: absolute; inset: 0; background:
  linear-gradient(90deg, #C0C0C0 0 14.3%, #C0C000 0 28.6%, #00C0C0 0 42.9%, #00C000 0 57.2%, #C000C0 0 71.5%, #C00000 0 85.8%, #0000C0 0) top / 100% 72% no-repeat,
  linear-gradient(90deg, #0000C0 0 14.3%, #111 0 28.6%, #C000C0 0 42.9%, #111 0 57.2%, #00C0C0 0 71.5%, #111 0 85.8%, #C0C0C0 0) 0 72% / 100% 8% no-repeat,
  linear-gradient(90deg, #00214C 0 18%, #fff 0 36%, #32006A 0 54%, #111 0) bottom / 100% 20% no-repeat; }

.story__body { min-width: 0; }
.story__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.story__title { margin: 8px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 42px; }
.story__meta { margin: 0; font-family: var(--f-ui); font-size: 13px; line-height: 18px; color: var(--muted); }
.story__nav { flex: none; display: flex; gap: 8px; }
.cut { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--fg); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s; }
.cut:hover { background: var(--line); }
.cut--take { border-color: rgba(233, 80, 71, .6); }
.cut--take:hover { background: var(--red); border-color: var(--red); }
.story__grid { display: grid; gap: 22px; }
.beat__label { margin: 0 0 8px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.beat__label span { color: var(--red); margin-right: 6px; }
.beat p { margin: 0; color: var(--body); }
.beat--result p { font-family: var(--f-display); font-size: 22px; line-height: 31px; color: var(--fg); }
.story__open p { margin: 0; max-width: 62ch; color: var(--body); }
.story__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 1080px) { .story__head { flex-direction: column; } }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .pgm { position: relative; top: 0; }
  .story__title { font-size: 32px; line-height: 38px; }
}

/* ---------- Next paths + contact ---------- */
.next { padding: 88px 0 0; }
.next__title { margin: 0 0 24px; font-family: var(--f-display); font-weight: 400; font-size: 40px; line-height: 46px; }
.next__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.next__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 72px 28px 28px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .2s, border-color .2s; }
.next__card:hover { color: var(--fg); transform: translateY(-3px); }
.next__card--philosophy:hover { border-color: #F4F0E6; }
.next__card--journey:hover { border-color: #5B97E6; }
.next__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted-2); }
.next__t { font-family: var(--f-display); font-size: 28px; line-height: 34px; }
.next__d { color: var(--muted); font-size: 18px; line-height: 25px; }
.next__go { position: absolute; right: 24px; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-family: var(--f-ui); }
.contact { margin: 72px 0; padding: 48px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(233, 80, 71, .08), transparent 60%), var(--panel); }
.contact p { margin: 0; color: var(--body); max-width: 56ch; }
@media (max-width: 720px) {
  .next { padding-top: 64px; } .next__grid { grid-template-columns: 1fr; } .next__title { font-size: 32px; line-height: 38px; }
  .contact { padding: 28px 22px; } .story__actions .btn { flex: 1 1 100%; }
}
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 48px; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .status__live i, .pgm__layer.is-wiping, .story.is-in .story__body { animation: none; }
}
