/* Black-and-white studio picture, early fifties: one hard light, deep
   shadows, venetian blinds, title cards in a Bodoni, typed paperwork.
   Fonts are served from this folder (all SIL Open Font Licence). */
@font-face { font-family: 'Bodoni Moda'; font-weight: 400; font-display: swap; src: url(fonts/bodoni-moda-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 700; font-display: swap; src: url(fonts/bodoni-moda-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/bodoni-moda-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: swap; src: url(fonts/courier-prime-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-display: swap; src: url(fonts/courier-prime-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/courier-prime-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url(fonts/source-serif-4-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/source-serif-4-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-display: swap; src: url(fonts/source-serif-4-600-normal.woff2) format('woff2'); }

:root {
  --black: #0b0b0a;
  --shadow: #161514;
  --line: #3b3834;
  --silver: #efeadd;
  --dim: #bdb7a9;
  --paper: #e9e2d1;
  --paper-edge: #c6bca5;
  --ink: #1b1916;
  --stamp: #dc4a2c;
  --stamp-ink: #b5341a;
  --title: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --text: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--black);
  color: var(--silver);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 20;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.brief, .exhibit, main, footer { max-width: 66rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: inherit; text-underline-offset: 3px; }
h2 { font-family: var(--title); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; margin: .3rem 0 1.2rem; }
.label { font-family: var(--type); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 0; }
.fine { font-size: .95rem; color: var(--dim); max-width: 46rem; }
.fine b { color: var(--silver); font-weight: 600; }
code { font-family: var(--type); font-size: .92em; }

/* ---------- Title card ---------- */
.title-card {
  position: relative; overflow: hidden;
  min-height: 100svh;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  animation: iris 1.6s cubic-bezier(.3, 0, .2, 1) both;
}
@keyframes iris { from { clip-path: circle(0% at 54% 72%); } to { clip-path: circle(150% at 54% 72%); } }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* A torch beam follows the pointer across the room */
.torch {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 260px at var(--mx, -500px) var(--my, -500px), rgba(243, 238, 223, .16), transparent 70%);
  mix-blend-mode: screen;
}
/* Projectionist's cue mark, top right, now and then */
.cue { position: absolute; top: 28px; right: 32px; width: 22px; height: 22px; border-radius: 50%; background: var(--silver); opacity: 0; animation: cue 23s linear infinite; }
@keyframes cue { 0%, 39%, 41%, 43%, 45%, 100% { opacity: 0; } 40%, 44% { opacity: .85; } }
.billing { position: relative; padding: clamp(2.5rem, 9vh, 6rem) clamp(16px, 6vw, 6rem) 0; max-width: 60rem; }
.presents { font-family: var(--type); font-size: .85rem; letter-spacing: .38em; text-transform: uppercase; color: var(--dim); margin: 0 0 1.2rem; animation: rise .9s 1.1s both; }
h1 {
  font-family: var(--title); font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 8.2rem);
  line-height: .95; letter-spacing: .02em; text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 46px rgba(243, 238, 223, .28), 5px 7px 0 rgba(0, 0, 0, .8);
  animation: rise 1.1s 1.3s both;
}
.tagline { font-family: var(--title); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.35; margin: 1.6rem 0 0; animation: rise 1s 1.9s both; text-shadow: 0 0 6px var(--black), 0 0 18px var(--black), 0 0 34px var(--black); }
.credits { font-family: var(--type); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 1.4rem 0 0; animation: rise 1s 2.3s both; text-shadow: 0 0 5px var(--black), 0 0 14px var(--black); }
.scroll { margin: 1.6rem 0 0; animation: rise 1s 2.7s both; }
.scroll a { font-family: var(--type); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--silver); padding: .55rem 1rem; display: inline-block; background: rgba(11, 11, 10, .55); }
.scroll a { margin: 0 .6rem .6rem 0; }
.scroll a.main { background: var(--silver); color: var(--black); }
.scroll a.main:hover { background: transparent; color: var(--silver); }
.scroll a:hover { background: var(--silver); color: var(--black); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- The brief: a manila folder ---------- */
.brief { padding-top: 4.5rem; padding-bottom: 3.5rem; }
.folder { position: relative; background: var(--paper); color: var(--ink); padding: 2rem clamp(1rem, 4vw, 2.6rem) 1.6rem; box-shadow: 10px 12px 0 rgba(0, 0, 0, .6); }
.tab {
  position: absolute; left: 0; bottom: 100%;
  margin: 0; padding: .45rem 1.1rem .3rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--type); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 8px 14px 0 0;
}
.stamp {
  position: absolute; right: clamp(.8rem, 4vw, 2.4rem); top: 1.2rem;
  font-family: var(--type); font-weight: 700; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stamp-ink); border: 3px double var(--stamp-ink); padding: .25rem .7rem;
  transform: rotate(5deg); opacity: .85;
}
.folder h2 { max-width: 30rem; margin-top: 0; }
.steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 1rem 1.2rem 1rem 0; }
.steps li + li { border-left: 1px dashed var(--paper-edge); padding-left: 1.2rem; }
.steps .n { font-family: var(--title); font-weight: 700; font-size: 3.2rem; line-height: 1; display: block; }
.steps h3 { font-family: var(--type); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; margin: .3rem 0 .4rem; }
.steps p { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.5; }
.steps q { font-style: italic; }
.steps a { font-family: var(--type); font-size: .9rem; font-weight: 700; }
button {
  font-family: var(--type); font-size: .88rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--silver);
  border: 1px solid var(--silver); padding: .5rem .9rem; cursor: pointer;
}
button:hover, button:focus-visible { background: var(--silver); color: var(--black); }
.folder button { color: var(--ink); border-color: var(--ink); }
.folder button:hover { background: var(--ink); color: var(--paper); }
.folder button.primary { background: var(--ink); color: var(--paper); padding: .85rem 1.3rem; font-size: 1rem; box-shadow: 4px 4px 0 var(--stamp-ink); }
.folder button.primary:hover { background: #000; transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--stamp-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1.1rem; }
.folder .fine { color: #4a453d; }
.folder .fine b { color: var(--ink); }
.status:empty { display: none; }
.folder .status { color: var(--stamp-ink); font-weight: 600; }

/* ---------- Exhibit heading ---------- */
.filmstrip {
  height: 26px; margin-top: 1rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, var(--black) 16px 30px) 0 6px / 100% 14px no-repeat,
    linear-gradient(var(--silver), var(--silver)) 0 6px / 100% 14px no-repeat;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: .5;
}
.exhibit { padding-top: 2.5rem; }
.lede { max-width: 42rem; margin: 0 0 1.5rem; font-size: 1.1rem; }

/* ---------- Sticky bar: counters, wire, controls ---------- */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--black);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--line);
  padding: .65rem 16px .6rem;
}
.bar > * { max-width: 64rem; margin-left: auto; margin-right: auto; }
.counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.counter b { display: block; font-family: var(--title); font-weight: 700; font-size: 2.3rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.counter b.tick { animation: tick .28s ease-out; }
@keyframes tick { from { transform: translateY(-5px); opacity: .4; } to { transform: none; opacity: 1; } }
.counter span { font-family: var(--type); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: block; margin-top: .25rem; line-height: 1.2; }
.counter.cloud b { color: var(--stamp); }

.wire { display: flex; align-items: flex-start; gap: .6rem; font-family: var(--type); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: .7rem; margin-bottom: .55rem; }
.wire .end { flex: none; border: 1px solid var(--silver); padding: .15rem .55rem .05rem; }
.wire .cloud { border-color: var(--stamp); color: var(--stamp); }
.wire .line { position: relative; flex: 1; height: 24px; }
.wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire path { stroke: #8b857a; stroke-width: 1.5; }
/* poles at both ends and in the middle */
.wire .line::before, .wire .line::after { content: ''; position: absolute; top: 2px; width: 2px; height: 20px; background: #8b857a; box-shadow: -4px 3px 0 -0px transparent; }
.wire .line::before { left: 50%; }
.wire .line::after { display: none; }
.packet { position: absolute; top: 6px; left: 0; animation: fly .95s linear forwards; }
.packet i {
  display: block;
  width: var(--s, 8px); height: var(--s, 8px);
  margin: calc(var(--s, 8px) / -2) 0 0 calc(var(--s, 8px) / -2);
  border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 12px 3px rgba(220, 74, 44, .65);
  animation: sag .95s linear forwards;
}
.packet.local { animation-name: stay; }
.packet.local i { background: var(--silver); box-shadow: 0 0 8px rgba(239, 234, 221, .6); animation: none; }
@keyframes fly { from { left: 0; opacity: 1; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }
/* follow the droop of the wire between the poles */
@keyframes sag {
  0%, 50%, 100% { transform: translateY(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: translateY(6px); }
  25%, 75% { transform: translateY(8px); }
}
@keyframes stay { from { left: 0; } 50% { left: 12%; } to { left: 0; opacity: 0; } }

.controls { display: flex; align-items: center; gap: .5rem; }
.controls button { padding: .35rem .7rem .25rem; font-size: .8rem; }
#scrub { flex: 1; min-width: 4rem; accent-color: var(--silver); }
.clock { font-family: var(--type); font-size: .95rem; color: var(--dim); min-width: 5rem; text-align: right; }

/* ---------- Feed ---------- */
main { position: relative; padding-top: 1rem; padding-bottom: 3rem; min-height: 80vh; }
.lanes, .feed { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; }
.lanes { font-family: var(--type); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.feed { row-gap: .9rem; align-items: start; }
.feed > * { animation: appear .4s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Countdown leader before the reel starts */
.leader {
  width: 190px; height: 190px; margin: 3rem auto;
  border-radius: 50%; border: 2px solid var(--silver);
  display: grid; place-items: center; position: relative;
  background:
    linear-gradient(var(--silver), var(--silver)) center / 100% 1px no-repeat,
    linear-gradient(var(--silver), var(--silver)) center / 1px 100% no-repeat;
}
.leader::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid var(--silver); }
.leader::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(239, 234, 221, .28) 0turn, rgba(239, 234, 221, .28) var(--sweep, 0turn), transparent 0); animation: sweep .7s linear infinite; }
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0turn; }
@keyframes sweep { to { --sweep: 1turn; } }
.leader span { font-family: var(--title); font-weight: 700; font-size: 6rem; line-height: 1; position: relative; z-index: 1; text-shadow: 0 0 20px #000; }
.leader[hidden] { display: none; }

.sep { grid-column: 1 / -1; font-family: var(--type); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: 1.4rem; }
.sep:first-child { border-top: 0; margin-top: 0; }
.sep b { color: var(--silver); font-weight: 700; }

/* Transcript pages, set like a screenplay */
.bubble {
  grid-column: 1; width: 100%; max-width: 32rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--type); font-size: 1.05rem; line-height: 1.45;
  padding: .7rem 1.1rem .85rem;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, .6);
}
.bubble.me { transform: rotate(-.4deg); max-width: 26rem; }
.bubble.siri { transform: rotate(.3deg); }
.bubble .who { font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; display: block; text-align: center; margin-bottom: .2rem; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble p.typing::after { content: '▌'; animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble details { margin-top: .5rem; font-size: .95rem; }
.bubble details p { margin-top: .3rem; }
summary { cursor: pointer; font-family: var(--type); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bubble p.blacked { background: var(--ink); color: var(--paper); padding: .15rem .5rem; font-size: .95rem; }
.flag {
  display: inline-block;
  margin: .7rem 0 0 !important;
  padding: .25rem .6rem .15rem;
  border: 3px double var(--stamp-ink); color: var(--stamp-ink);
  font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  transform: rotate(-2deg);
  white-space: normal !important;
  animation: thump .35s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes thump { from { transform: rotate(-9deg) scale(2.2); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: .95; } }

/* The wire: intercepts */
.card { grid-column: 2; border-left: 3px solid var(--stamp); padding: .1rem 0 .2rem .85rem; font-family: var(--type); font-size: .95rem; line-height: 1.4; }
.card.local { border-left-color: var(--silver); }
.card .head { display: flex; flex-wrap: wrap; gap: .1rem .7rem; align-items: baseline; }
.card time { color: var(--silver); font-weight: 700; }
.card .dest { color: var(--stamp); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.card.local .dest { color: var(--silver); }
.card .use { color: var(--dim); font-family: var(--text); font-style: italic; }
.size { display: flex; height: 6px; margin: .4rem 0 .3rem; background: var(--shadow); }
.size i { display: block; height: 100%; background: #5a554e; }
.size i.mine { background: var(--stamp); min-width: 2px; }
.card.local .size i.mine { background: var(--silver); }
.card .cap { color: var(--dim); font-family: var(--text); font-size: .92rem; line-height: 1.4; }
.chips { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.chips li { border: 1px solid #5a554e; padding: .12rem .5rem 0; font-size: .88rem; color: var(--silver); }
.chips li.hot { border-color: var(--stamp); color: var(--stamp); }
.card details { margin-top: .4rem; }
.card details ul { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .85rem; color: var(--dim); }
.card details pre { white-space: pre-wrap; word-break: break-word; font-family: var(--type); font-size: .82rem; max-height: 10rem; overflow: auto; background: var(--shadow); padding: .5rem; margin: .2rem 0 .5rem; }

/* ---------- Closing card ---------- */
.verdict {
  margin: 3.5rem auto 0; max-width: 36rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--type);
  padding: 1.6rem 1.8rem 1.4rem;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .6);
  transform: rotate(-.7deg);
  animation: appear .5s ease-out;
}
.verdict .label { color: #4a453d; }
.verdict h3 { font-family: var(--title); font-weight: 700; font-size: 2.2rem; line-height: 1.1; margin: .2rem 0 .9rem; }
.verdict ul { list-style: none; margin: 0; padding: 0; }
.verdict li { border-top: 1px dashed var(--paper-edge); padding: .45rem 0 .35rem; font-size: 1.02rem; }
.verdict li b { font-family: var(--title); font-size: 1.6rem; font-weight: 700; margin-right: .45rem; }
.verdict .src { font-size: .85rem; color: #4a453d; margin: .9rem 0 0; }
.verdict button { margin-top: 1rem; color: var(--ink); border-color: var(--ink); }
.verdict button:hover { background: var(--ink); color: var(--paper); }

body.drag { outline: 3px dashed var(--silver); outline-offset: -8px; }
footer { padding-top: 1.5rem; padding-bottom: 5rem; border-top: 1px solid var(--line); }
.fin { font-family: var(--title); font-style: italic; font-size: clamp(3rem, 8vw, 5rem); text-align: center; margin: 4rem 0 0; line-height: 1; }
.fin-sub { font-family: var(--type); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); text-align: center; margin: 1rem 0 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .title-card { display: flex; flex-direction: column; justify-content: space-between; }
  .scene { position: relative; inset: auto; order: 2; height: auto; aspect-ratio: 4 / 3; margin-top: 1.5rem; }
  .billing { order: 1; }
  .cue { display: none; }
  .stamp { position: static; display: inline-block; margin-bottom: .8rem; transform: rotate(-2deg); }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px dashed var(--paper-edge); padding-left: 0; }
  .counters { grid-template-columns: repeat(4, 1fr); }
  .counter:nth-child(5) { display: none; }
  .counter b { font-size: 1.7rem; }
  .counter span { font-size: .66rem; letter-spacing: .04em; }
  .lanes { display: none; }
  .feed { grid-template-columns: 1fr; }
  .bubble, .card { grid-column: 1; }
  .card { margin-left: 1rem; }
  .clock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title-card, .title-card *, .feed > *, .verdict, .flag, .counter b.tick { animation: none !important; }
  .packet, .leader { display: none !important; }
}
