/* AVDIENCE Programming — the register.
 *
 * Borrowed chassis, AVDIENCE identity. The 16:9 frame and the photographic
 * treatments come from the LINECONIC decks; the running head and the ledger
 * rows come from the Circuit decks. What makes it AVDIENCE: sentence-case
 * Sohne, clay as the only accent, and no monospace anywhere. Circuit labels
 * in JetBrains Mono and LINECONIC in Space Mono; AVDIENCE labels in tracked
 * GT America Medium, which also means this folder needs no network request.
 *
 * Do not add a colour. The palette is three values and the greys derived from
 * one of them. docs/decks/__tests__/register.test.ts fails on a fourth. */

@font-face{font-family:'Sohne';src:url('fonts/Sohne-Buch.otf') format('opentype');font-weight:400;font-display:block}
@font-face{font-family:'Sohne';src:url('fonts/Sohne-Kraftig.otf') format('opentype');font-weight:500;font-display:block}
@font-face{font-family:'GT America';src:url('fonts/GTAmerica-Regular.otf') format('opentype');font-weight:400;font-display:block}
@font-face{font-family:'GT America';src:url('fonts/GTAmerica-Medium.otf') format('opentype');font-weight:500;font-display:block}

/* The punctuation fallback. Both brand faces are trial cuts carrying only
   letters, digits, comma, hyphen and full stop; the decks need a pound sign,
   an ampersand, a colon and an apostrophe. Neue Haas Grotesk Display supplies
   them by per-character fallback. Sohne is Klim's reinterpretation of this
   typeface, and their x-heights sit within 1% of each other, so the join does
   not read as a join. Replace when the licensed originals are available. */
@font-face{font-family:'Neue Haas Grotesk Display';src:url('fonts/NeueHaasDisplayRoman.ttf') format('truetype');font-weight:400;font-display:block}
@font-face{font-family:'Neue Haas Grotesk Display';src:url('fonts/NeueHaasDisplayMediu.ttf') format('truetype');font-weight:500;font-display:block}

:root{
  --bk:#0A0A0A;
  --wh:#FAFAF8;
  --clay:#B8896E;
  --body:rgba(250,250,248,.72);
  --dim:rgba(250,250,248,.42);
  --line:rgba(250,250,248,.12);
  --D:'Sohne','Neue Haas Grotesk Display','Helvetica Neue',Helvetica,Arial,sans-serif;
  --B:'GT America','Neue Haas Grotesk Display','Helvetica Neue',Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
/* Balance on headlines, pretty on body (set on each rule below), and a long
   token never widens its container. Hyphenation stays off: a deck's rag is
   fixed in the copy, and check-rag.mjs measures the copy as written. */
body{background:#0A0A0A;color:var(--wh);font-family:var(--B);font-weight:400;
  -webkit-font-smoothing:antialiased;width:min(1280px,94vw);margin:0 auto;
  overflow-wrap:break-word}

/* Each slide is a true 16:9 frame, so this reads as a deck and print
   pagination already matches. */
.slide{position:relative;width:100%;aspect-ratio:16/9;margin:28px auto;
  background:var(--bk);overflow:hidden;display:flex;flex-direction:column;
  justify-content:center;padding:9.5% 9.5% 9%;border:1px solid var(--line)}

/* The running head: five-square calendar glyph, deck name, folio. */
.head{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;
  align-items:center;padding:44px 56px 0;font-family:var(--B);font-weight:500;
  font-size:11px;letter-spacing:.18em;color:var(--dim);z-index:3;text-transform:uppercase}
.head .glyph{display:inline-flex;gap:3px;margin-right:12px;vertical-align:middle}
.head .glyph i{width:5px;height:5px;border:1px solid var(--line);display:block}
.head .glyph i.on{background:var(--clay);border-color:var(--clay)}

.eyebrow{font-family:var(--B);font-weight:500;font-size:clamp(10px,.95vw,13px);
  letter-spacing:.20em;text-transform:uppercase;color:var(--clay);margin-bottom:24px}

h1{font-family:var(--D);font-weight:500;line-height:1.06;letter-spacing:-.02em;text-wrap:balance}
.xl{font-size:clamp(38px,5.8vw,88px);line-height:1}
.lg{font-size:clamp(26px,3.7vw,56px)}
.md{font-size:clamp(20px,2.5vw,36px)}
.clay{color:var(--clay)}
.dim{color:var(--dim)}

p{font-size:clamp(12px,1.25vw,18px);line-height:1.66;color:var(--body);max-width:58ch;text-wrap:pretty}
p+p{margin-top:1.05em}
.lede{font-size:clamp(14px,1.55vw,23px);line-height:1.5;color:var(--wh);max-width:52ch;text-wrap:pretty}
.rule{height:1px;background:var(--line);margin:26px 0;width:100%}
.label{font-family:var(--B);font-weight:500;font-size:clamp(10px,.95vw,13px);
  letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}

/* Ledger rows: index, entry, margin note. Circuit's interface, AVDIENCE's face. */
.rows{display:grid;grid-template-columns:max-content 1fr max-content;column-gap:22px;margin-top:8px}
.row{display:grid;grid-template-columns:subgrid;grid-column:1/-1;column-gap:22px;
  align-items:baseline;font-size:clamp(11px,1.2vw,17.5px);
  border-bottom:1px solid var(--line);padding:11px 0}
.row:first-child{border-top:1px solid var(--line)}
.row .k{font-family:var(--B);font-weight:500;color:var(--clay);letter-spacing:.14em;
  font-size:.74em;text-transform:uppercase}
.row .v{color:var(--wh);text-wrap:pretty}
.row .v small{display:block;color:var(--dim);font-size:.86em;margin-top:2px}
.row .t{font-family:var(--B);font-weight:500;color:var(--dim);font-size:.74em;
  letter-spacing:.12em;white-space:nowrap;text-transform:uppercase}

/* The fourteen-item procurement ledger on slide 02. Density is the argument. */
.dense{display:grid;grid-template-columns:repeat(3,1fr);column-gap:38px;row-gap:0;
  margin-top:6px;border-top:1px solid var(--line)}
.dense span{font-size:clamp(11px,1.14vw,16px);color:var(--body);padding:9px 0;
  border-bottom:1px solid var(--line)}

.two{display:grid;grid-template-columns:1fr 1fr;gap:min(5.5vw,64px);align-items:start}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:min(4vw,48px);align-items:start}
.col h2{font-family:var(--B);font-weight:500;font-size:clamp(10px,.95vw,13px);
  letter-spacing:.20em;text-transform:uppercase;color:var(--dim);margin-bottom:12px}
.col ul{list-style:none}
.col li{font-size:clamp(11px,1.18vw,17px);line-height:1.5;padding:9px 0;
  border-bottom:1px solid var(--line);color:var(--body);text-wrap:balance}
.col li b{font-weight:500;color:var(--wh)}

/* The calendar block: AVDIENCE's mark. Filled squares are programmed nights.
   The mark and the strategic metric, share of calendar, are the same object. */
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:clamp(5px,.7vw,10px);
  width:clamp(240px,34vw,430px);margin-top:6px}
.cal-sq{aspect-ratio:1;border:1px solid var(--line)}
.cal-sq.on{background:var(--clay);border-color:var(--clay)}

/* The quarter view: three month calendars side by side, read as one block.
   Inside a set a calendar gives up its own clamp and takes a third of the row
   (minmax(0,1fr), or the clamp's 240px floor forces the set wider than the
   slide). A calendar's height follows its width, so the cap is a vertical
   budget written horizontally: a set this wide clears the ledger rows and the
   note beneath it on a 16:9 frame, and never exceeds its container on a
   narrow one. */
.calendar-set{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:min(3vw,32px);width:min(100%,560px);margin-top:20px}
.calendar-set .calendar{width:100%;margin-top:8px}

/* The room: the same square, one per person, twenty to a row. Filled
   squares are the guest places a venue gives AVDIENCE, so the strategy
   deck's hidden asset is drawn with the mark the sales deck already uses
   for programmed nights. Same object, second meaning. */
.calendar.room{grid-template-columns:repeat(20,1fr);width:min(100%,640px)}

.cal-key{display:flex;gap:26px;margin-top:22px;align-items:center}
.cal-key span{display:flex;align-items:center;gap:9px;font-family:var(--B);font-weight:500;
  font-size:clamp(9px,.9vw,12px);letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.cal-key i{width:11px;height:11px;display:block;border:1px solid var(--line)}
.cal-key i.on{background:var(--clay);border-color:var(--clay)}

/* Photography. Bleeds and panels get the same darkening: the image at .55 over
 * the ground, behind a scrim that never reaches alpha 0. The opacity is set
 * here and applies to every panel in every deck; the scrim is a per-slide div,
 * so decks.test.ts fails a panel slide that is missing one. Half-treated reads
 * worse than either treatment alone.
 *
 * The scrim earns its keep twice on a panel. It matches the cover's register,
 * and its .86 alpha at the top edge puts dark back under the running head,
 * which is where a bright frame had previously made the folio unreadable.
   Panels carry their fade baked into the JPEG — see build-images.py. */
figure.bleed{position:absolute;inset:0;margin:0;z-index:0}
figure.bleed img{width:100%;height:100%;object-fit:cover;opacity:.55;display:block}
.scrim{position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,10,10,.86) 0%,rgba(10,10,10,.42) 48%,rgba(10,10,10,.92) 100%)}
figure.panel{position:absolute;inset:0;margin:0;z-index:0}
figure.panel img{width:100%;height:100%;object-fit:cover;display:block;opacity:.55}
.has-panel .over{width:56%}
.over{position:relative;z-index:2}

.note{position:absolute;left:9.5%;right:9.5%;bottom:7%;font-family:var(--B);font-weight:500;
  font-size:clamp(9px,.9vw,12px);letter-spacing:.16em;text-transform:uppercase;color:var(--dim);z-index:3}

@media print{
  @page{size:1280px 720px;margin:0}
  body{width:100%}
  /* Chromium writes blurred shadows into the PDF in a form CoreGraphics
     (Preview, Quick Look) rasterises as a solid filled rectangle behind the
     element. This register is flat by design; the guard stays anyway. */
  *{text-shadow:none !important;box-shadow:none !important}
  .slide{margin:0;width:100%;height:100vh;aspect-ratio:auto;page-break-after:always;border:none}
  .slide:last-child{page-break-after:auto}
}

/* Authentic product assets and identity marks; captions carry attribution. */
.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:24px}
.proof-grid figure{min-width:0}.proof-grid img{width:100%;height:130px;object-fit:contain}
figcaption{font:13px/1.5 var(--B);color:var(--body);margin-top:14px}
.live-proof{width:100%;height:195px;object-fit:cover}
a{color:inherit;text-underline-offset:4px}

.proof-grid.proof-identities img{width:150px;max-width:100%;height:48px;object-fit:contain;object-position:left center}.proof-identities figure{padding-top:12px}
