/* /watch: the presentation page a client opens on their boardroom screen. Always dark, large type, calm.
   Self-contained (does not load site.css), using the site's "Field tag" tokens from look.css. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plex-mono-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed Fallback'; src: local('Arial Narrow Bold'), local('ArialNarrow-Bold'), local('Arial Bold'), local('Arial'); font-weight: 700; size-adjust: 76.5%; ascent-override: 128%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica'); size-adjust: 93%; ascent-override: 106%; descent-override: 21%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  --plate: #18191B; --plate2: #121314; --ink: #F1F0EC; --muted: #A9ABA6; --faint: #7D807B; --line: #303235;
  --hi: #3DFF88; --hi-ink: #111213; --rad: 4px;
  --display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --body: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gut: clamp(16px, 3.2vw, 64px);
  /* the big film is sized so it and its chapter row fit one screen without scrolling */
  --chrome: clamp(340px, 38vh, 400px);
}
* { box-sizing: border-box; }
html { background: var(--plate2); }
body { margin: 0; min-height: 100vh; background: radial-gradient(120% 70% at 50% 0%, var(--plate) 0%, var(--plate2) 70%); color: var(--ink); font: 400 clamp(17px, 1.05vw + 8px, 26px)/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }

.w-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 2vh, 28px) var(--gut) 0; }
.w-logo img { display: block; height: clamp(22px, 2.2vw, 36px); width: auto; }
.w-tag { margin: 0; font: 500 clamp(12px, .7vw + 4px, 17px)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }

.w-main { padding: clamp(10px, 1.6vh, 26px) var(--gut) 0; display: flex; flex-direction: column; align-items: center; }
.w-head { width: 100%; max-width: calc((100svh - var(--chrome)) * 16 / 9); display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-bottom: clamp(10px, 1.4vh, 20px); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .005em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(28px, 2.3vw + 6px, 58px); }
h2 { font-size: clamp(26px, 1.6vw + 8px, 46px); }
.w-lead { margin: 0; color: var(--muted); max-width: 46ch; }
.w-over { margin: 0 0 10px; font: 500 clamp(12px, .6vw + 5px, 16px)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }

/* a film: 16:9 box, poster first, a big obvious Play over it until it starts */
.w-film { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.w-big { max-width: calc((100svh - var(--chrome)) * 16 / 9); }
.w-film video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.w-play { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 22px); transition: background .2s; }
.w-play:hover { background: rgba(0,0,0,.28); }
.w-play[hidden] { display: none; }
.w-pbtn { width: clamp(76px, 8vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--hi); box-shadow: 0 16px 50px -12px rgba(0,0,0,.7); position: relative; transition: transform .2s; }
.w-pbtn::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: calc(clamp(76px, 8vw, 150px) * .19) 0 calc(clamp(76px, 8vw, 150px) * .19) calc(clamp(76px, 8vw, 150px) * .31); border-color: transparent transparent transparent var(--hi-ink); }
.w-play:hover .w-pbtn, .w-play:focus-visible .w-pbtn { transform: scale(1.06); }
.w-plabel { font: 700 clamp(20px, 1.4vw + 8px, 40px)/1 var(--display); background: rgba(17,18,19,.82); padding: .38em .7em .42em; border-radius: var(--rad); }
.w-plabel b { color: var(--hi); font-weight: 700; margin-left: .35em; }

/* the Electrical poster is the brand card (logo in the middle), so its Play sits low, as one green pill */
.w-play-low { --pill: clamp(58px, 4.6vw, 92px); flex-direction: row; align-items: flex-end; gap: 0; padding-bottom: 15%; }
.w-play-low .w-pbtn { width: var(--pill); height: var(--pill); border-radius: 999px 0 0 999px; box-shadow: none; }
.w-play-low .w-pbtn::after { left: 58%; border-width: calc(var(--pill) * .2) 0 calc(var(--pill) * .2) calc(var(--pill) * .32); }
.w-play-low .w-plabel { height: var(--pill); display: flex; align-items: center; padding: 0 1.1em 0 .15em; border-radius: 0 999px 999px 0; background: var(--hi); color: var(--hi-ink); font-size: calc(var(--pill) * .44); }
.w-play-low .w-plabel b { color: var(--hi-ink); opacity: .72; }
.w-play-low:hover .w-pbtn, .w-play-low:focus-visible .w-pbtn { transform: none; }
.w-play-low:hover .w-plabel, .w-play-low:hover .w-pbtn { filter: brightness(1.08); }

.w-title { display: flex; flex-direction: column; gap: 4px; }
.w-sub { margin: 0; color: var(--muted); font-size: clamp(17px, .9vw + 8px, 26px); }

/* chapter buttons: numbered, plain labels, the part now playing is lit */
.w-stage { width: 100%; display: flex; flex-direction: column; align-items: center; }
.w-bar { width: 100%; max-width: calc((100svh - var(--chrome)) * 16 / 9); display: flex; flex-direction: column; gap: 12px; margin-top: clamp(10px, 1.4vh, 18px); }
.w-chapters { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.w-ch { display: flex; align-items: center; gap: .6em; text-align: left; padding: .5em .8em; min-height: 56px; font-size: .86em; border: 1px solid var(--line); border-radius: var(--rad); background: rgba(255,255,255,.03); line-height: 1.15; transition: border-color .15s, background .15s; }
.w-ch:hover { border-color: #55585c; background: rgba(255,255,255,.06); }
.w-ch .n { flex: none; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--faint); font: 500 .8em/1 var(--mono); color: var(--muted); }
.w-ch .t { font-weight: 600; }
.w-ch .at { display: block; font: 500 .72em/1.3 var(--mono); color: var(--faint); margin-top: 2px; }
.w-ch[aria-current="true"] { border-color: var(--hi); background: rgba(61,255,136,.08); }
.w-ch[aria-current="true"] .n { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.w-fs { flex: none; display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; min-height: 52px; font-size: .86em; border: 1px solid var(--line); border-radius: var(--rad); background: rgba(255,255,255,.03); font-weight: 600; white-space: nowrap; }
.w-fs:hover { border-color: #55585c; background: rgba(255,255,255,.06); }
.w-fs svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-keys { width: 100%; margin: 0; font-size: .74em; color: var(--faint); }
kbd { font: 500 .9em/1 var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: .15em .4em; color: var(--muted); }
@media (hover: none), (pointer: coarse) { .w-keys { display: none; } }

/* the second, smaller film */
.w-second { max-width: 1500px; margin: clamp(72px, 12vh, 160px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(24px, 3vw, 64px); align-items: center; }
.w-second-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.w-second .w-lead { max-width: 34ch; }
.w-second .w-pbtn { width: clamp(64px, 5vw, 100px); }
.w-second .w-pbtn::after { border-width: calc(clamp(64px, 5vw, 100px) * .19) 0 calc(clamp(64px, 5vw, 100px) * .19) calc(clamp(64px, 5vw, 100px) * .31); }
.w-second .w-plabel { font-size: clamp(18px, 1vw + 8px, 30px); }
.w-second .w-play-low { --pill: clamp(48px, 3.4vw, 68px); padding-bottom: 13%; }
.w-second .w-play-low .w-pbtn { width: var(--pill); }
.w-second .w-play-low .w-pbtn::after { border-width: calc(var(--pill) * .2) 0 calc(var(--pill) * .2) calc(var(--pill) * .32); }
.w-second .w-play-low .w-plabel { font-size: calc(var(--pill) * .44); }

.w-contact { max-width: 1500px; margin: clamp(72px, 12vh, 160px) auto 0; padding: clamp(28px, 4vh, 56px) var(--gut); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.w-contact p { margin: 0; }
.w-contact > p:first-child { font: 700 clamp(26px, 1.6vw + 10px, 48px)/1.1 var(--display); }
.w-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.w-btn { display: inline-flex; align-items: center; min-height: 56px; padding: .5em 1.3em; border-radius: var(--rad); background: var(--hi); color: var(--hi-ink); font-weight: 600; text-decoration: none; }
.w-btn:hover { filter: brightness(1.08); }
.w-mail { color: var(--muted); text-underline-offset: 4px; }
.w-mail:hover { color: var(--ink); }
.w-foot { max-width: 1500px; margin: 0 auto; padding: 22px var(--gut) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .72em; color: var(--faint); }

/* full screen: the film fills the screen, black around it */
.w-film:fullscreen { max-width: none; border: 0; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.w-film:-webkit-full-screen { max-width: none; border: 0; border-radius: 0; width: 100vw; height: 100vh; }

/* a wide screen (a TV, a laptop, a browser window on a boardroom PC): the parts sit in a rail beside the film, so the
   film gets the whole height and the labels never squeeze */
@media (min-aspect-ratio: 3/2) and (min-width: 1100px) {
  :root { --rail: clamp(230px, 16vw, 340px); --top: clamp(170px, 7vw + 85px, 240px); --stage: min(100%, calc((100svh - var(--top)) * 16 / 9 + var(--rail) + 20px)); }
  .w-head { max-width: var(--stage); }
  .w-stage { flex-direction: row; align-items: flex-start; justify-content: center; gap: 20px; max-width: var(--stage); }
  .w-big { flex: 1 1 auto; max-width: calc((100svh - var(--top)) * 16 / 9); }
  .w-bar { flex: none; width: var(--rail); max-width: none; margin-top: 0; }
  .w-chapters { grid-template-columns: 1fr; gap: clamp(6px, 1vh, 10px); }
  .w-ch { min-height: 0; padding: clamp(.35em, 1.1vh, .7em) .8em; }
  .w-keys { font-size: .66em; line-height: 1.9; }
}
/* tablet and phone */
@media (max-width: 1100px) {
  .w-chapters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .w-big, .w-head, .w-bar, .w-keys { max-width: none; }
  .w-head .w-fs { display: none; }
  .w-chapters { grid-template-columns: 1fr 1fr; }
  .w-chapters .w-ch:last-child { grid-column: 1 / -1; }
  .w-second { grid-template-columns: 1fr; }
  .w-second-copy .w-fs { display: none; }
}
@media (max-width: 480px) {
  .w-tag { display: none; }
  .w-film .w-pbtn, .w-second .w-pbtn { width: 64px; }
  .w-film .w-pbtn::after, .w-second .w-pbtn::after { border-width: 12px 0 12px 20px; }
  .w-film .w-play-low { --pill: 48px; padding-bottom: 12%; }
  .w-film .w-play-low .w-pbtn { width: var(--pill); }
  .w-film .w-play-low .w-pbtn::after { border-width: 10px 0 10px 16px; }
  .w-film .w-play-low .w-plabel { font-size: 20px; }
  .w-plabel, .w-second .w-plabel { font-size: 18px; }
  .w-play { gap: 8px; }
  .w-ch { min-height: 52px; font-size: 16px; }
  .w-fs { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
