/* CaptureDC 2026. XYZ brand (blue, cream, signal orange, Clarendon display) set post brutalist:
   hard rules, exposed grid, mono labels. */
@font-face { font-family: "Besley"; src: url("../fonts/Besley.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Pinyon"; src: url("../fonts/PinyonScript-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("../fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --cream: #F1F0EA;
  --paper: #E8E6DC;
  --ink: #214A68;
  --ink-deep: #17364D;
  --signal: #EC5E3E;
  --xyz: #FF491A;
  --rule: 2px solid var(--ink);
  --hair: 1px solid var(--ink);
  --pad: clamp(14px, 2.4vw, 32px);
  --mono: "JB Mono", ui-monospace, Menlo, monospace;
  --serif: "Besley", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--cream); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.mono { font-family: var(--mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.label b { color: var(--signal); font-weight: 600; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: stretch;
  background: var(--cream); border-bottom: var(--rule);
}
.bar > * { display: flex; align-items: center; padding: 12px var(--pad); border-right: var(--rule); }
.bar > *:last-child { border-right: 0; }
.bar-logo img { width: 52px; height: auto; }
.bar-id { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.bar nav { gap: 0; padding: 0; }
.bar nav a {
  display: flex; align-items: center; height: 100%; padding: 0 var(--pad);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border-right: var(--hair);
}
.bar nav a:hover { background: var(--ink); color: var(--cream); }
.bar nav a span { color: var(--signal); margin-right: 6px; }
.bar-actions { padding: 0; gap: 0; }
.bar-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 var(--pad); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); border-left: var(--hair); text-decoration: none;
}
.bar-btn:first-child { border-left: 0; }
.bar-btn:hover, .bar-btn:focus-visible { background: var(--signal); color: var(--cream); }
.bar-btn-pdf { background: var(--ink); color: var(--cream); }
.film-print { display: none; }
.bar-tag { background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { border-bottom: var(--rule); }
.hero-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: var(--hair);
}
.hero-meta > span { padding: 10px var(--pad); border-right: var(--hair); }
.hero-meta > span:last-child { border-right: 0; text-align: right; }
.hero-mast { position: relative; padding: clamp(20px, 4vw, 56px) var(--pad) 0; }
.stars { display: block; margin-bottom: clamp(10px, 1.4vw, 20px); }
.stars svg { display: block; width: clamp(96px, 13vw, 190px); height: auto; fill: var(--signal); }
.title {
  font-family: var(--serif); font-weight: 900;
  font-size: calc((100vw - 2 * var(--pad)) / 6.32);
  line-height: 0.78; letter-spacing: -0.04em; margin-left: -0.04em;
  white-space: nowrap; padding-bottom: 0.2em;
}
.hero-row {
  display: grid; grid-template-columns: auto 1fr; align-items: stretch;
  border-top: var(--rule);
}
.year {
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--pad); border-right: var(--rule);
  font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 5vw, 72px); line-height: 1;
}
.bars { display: flex; flex-direction: column; gap: 6px; width: clamp(36px, 6vw, 96px); }
.bars i { display: block; height: clamp(4px, 0.55vw, 8px); background: var(--signal); }
.tag {
  display: flex; align-items: center; padding: 14px var(--pad);
  font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 2.1vw, 30px);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
}

.film { position: relative; border-top: var(--rule); background: var(--ink-deep); }
.film video { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }

/* Speakers: one name at a time, slow fades, bottom left of the film. 4 cards x 8 s = 32 s cycle. */
.speakers {
  position: absolute; left: var(--pad); bottom: calc(var(--pad) * 1.2); z-index: 2;
  color: var(--cream); pointer-events: none;
  text-shadow: 0 1px 18px rgba(10, 22, 34, 0.55), 0 0 2px rgba(10, 22, 34, 0.35);
}
.speakers::before {
  content: ""; position: absolute; left: calc(var(--pad) * -1); bottom: calc(var(--pad) * -1.2);
  width: min(70vw, 900px); height: 260%; z-index: -1;
  background: radial-gradient(ellipse at 0% 100%, rgba(12, 26, 40, 0.55), rgba(12, 26, 40, 0) 70%);
}
.speakers-label { display: block; margin-bottom: 4px; padding-left: 3px; color: var(--cream); opacity: 0.85; letter-spacing: 0.22em; }
.speakers ul { list-style: none; position: relative; height: calc(1.25em + 30px); min-width: 12em; font-family: "Pinyon", "Snell Roundhand", cursive; font-size: clamp(38px, 5.4vw, 86px); line-height: 1.25; }
.speakers li { position: absolute; left: 0; bottom: 0; white-space: nowrap; opacity: 0; animation: speaker 32s ease-in-out infinite; }
.speakers li:nth-child(2) { animation-delay: 8s; }
.speakers li:nth-child(3) { animation-delay: 16s; }
.speakers li:nth-child(4) { animation-delay: 24s; }
.speakers li.more { font-size: 0.62em; }
.sp-name { display: block; }
.sp-role {
  display: block; margin-top: 2px; padding-left: 4px;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.3; letter-spacing: 0.01em; color: var(--cream); opacity: 0.9; white-space: nowrap;
}
.host .sp-role { padding: 0 4px 0 0; }
.host {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) * 1.2); z-index: 2;
  text-align: right; color: var(--cream); pointer-events: none;
  text-shadow: 0 1px 18px rgba(10, 22, 34, 0.55), 0 0 2px rgba(10, 22, 34, 0.35);
}
.host::before {
  content: ""; position: absolute; right: calc(var(--pad) * -1); bottom: calc(var(--pad) * -1.2);
  width: min(60vw, 760px); height: 260%; z-index: -1;
  background: radial-gradient(ellipse at 100% 100%, rgba(12, 26, 40, 0.55), rgba(12, 26, 40, 0) 70%);
}
.host .speakers-label { padding: 0 3px 0 0; }
.host-name { display: block; font-family: "Pinyon", "Snell Roundhand", cursive; font-size: clamp(38px, 5.4vw, 86px); line-height: 1.25; white-space: nowrap; }
@keyframes speaker {
  0% { opacity: 0; transform: translateY(8px); }
  7% { opacity: 1; transform: translateY(0); }
  18% { opacity: 1; transform: translateY(0); }
  25% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .speakers ul { height: auto; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; }
  .speakers li { position: static; opacity: 1; animation: none; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--cream); border-bottom: var(--rule); }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 22px; padding: 13px 22px 13px 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ticker-track svg { width: 13px; height: 13px; fill: var(--signal); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: var(--rule); }
.cell { padding: var(--pad); border-right: var(--rule); }
.cell:last-child { border-right: 0; }
.cell .label { margin-bottom: clamp(18px, 3vw, 40px); display: flex; justify-content: space-between; gap: 12px; }
.when { grid-column: span 5; }
.where { grid-column: span 3; }
.facts .plate-cell { grid-column: span 4; padding: 0; display: flex; flex-direction: column; }
.facts .plate-cell img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.when .label, .where .label { margin-bottom: 16px; }
.when-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.when-row .label-detail { text-align: right; margin: 2px 0 0 auto; white-space: nowrap; }
.label-detail { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; letter-spacing: 0; text-transform: none; }
.big { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.sub { margin-top: 18px; font-size: clamp(17px, 1.4vw, 21px); }
.countdown { margin-top: 32px; border: var(--rule); display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown div { padding: 10px 8px; border-right: var(--hair); text-align: left; }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: var(--mono); font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: 0; line-height: 1.1; }
.countdown-note { margin-top: 10px; }
.btn {
  display: inline-flex; gap: 10px; margin-top: 28px; padding: 12px 14px; border: var(--rule); text-decoration: none;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--cream); }


/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); }
.about .side { grid-column: span 3; padding: var(--pad); border-right: var(--rule); }
.about .main { grid-column: span 9; padding: var(--pad); }
.statement { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.6vw, 92px); line-height: 0.95; letter-spacing: -0.03em; }
.statement em { font-style: normal; color: var(--signal); }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); margin-top: clamp(24px, 4vw, 56px); padding-top: var(--pad); border-top: var(--hair); max-width: 1100px; }
.about-body p { font-size: clamp(17px, 1.35vw, 20px); }

/* ---------- host: split screen, portrait left, name and title right ---------- */
.host-sec { display: grid; grid-template-columns: 3fr 2fr; border-top: var(--rule); }
.portrait { margin: 0; border-left: var(--rule); background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; image-rendering: pixelated; image-rendering: crisp-edges; }
.scribble { flex: 1; min-height: 40px; background: url("../img/scribble_340.png?v=3") repeat-y left top / 100% auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.host-copy { padding: var(--pad) var(--pad) calc(var(--pad) * 1.2); display: flex; flex-direction: column; }
.host-label { display: flex; justify-content: space-between; margin-bottom: clamp(28px, 5vw, 80px); }
.host-kicker { color: var(--signal); font-weight: 600; letter-spacing: 0.08em; }
.host-h { margin-top: 10px; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 6vw, 104px); line-height: 0.88; letter-spacing: -0.035em; }
.host-statement { margin-top: 20px; margin-bottom: 26px; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2vw, 32px); line-height: 1.15; letter-spacing: -0.01em; max-width: 24ch; }
.host-bullets { list-style: none; margin-top: auto; padding-top: 6px; border-top: var(--hair); }
.host-bullets li { position: relative; padding: 10px 0 10px 22px; border-bottom: var(--hair); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.3; }
.host-bullets li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; background: var(--signal); }
.host-bullets li:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 2px solid var(--cream); }
.foot-grid > * { padding: var(--pad); border-right: 2px solid var(--cream); }
.foot-grid > *:last-child { border-right: 0; }
.foot-logo { grid-column: span 3; }
.foot-logo img { width: 110px; }
.foot-col { grid-column: span 3; }
.foot-col p { font-size: 17px; margin-top: 10px; }
.foot-col .label b { color: var(--signal); }
.foot-word { padding: var(--pad) var(--pad) 0; overflow: hidden; }
.foot-word div { font-family: var(--serif); font-weight: 900; font-size: calc((100vw - 2 * var(--pad)) / 6.32); line-height: 0.74; letter-spacing: -0.04em; margin-left: -0.04em; white-space: nowrap; transform: translateY(14%); }
.foot-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px var(--pad); border-top: 2px solid var(--cream); }
.foot a:hover { color: var(--signal); }
.foot-end { padding: 12px var(--pad) 14px; border-top: 2px solid var(--cream); opacity: 0.85; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto auto; }
  .bar nav { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > span:nth-child(2) { display: none; }
  .hero-row { grid-template-columns: 1fr; }
  .year { border-right: 0; border-bottom: var(--rule); }
  .film video { aspect-ratio: 4 / 3; }
  .when, .where, .facts .plate-cell { grid-column: span 12; border-right: 0; border-bottom: var(--rule); }
  .facts .plate-cell img { aspect-ratio: 4 / 5; }
  .access .label,     .about .side, .about .main { grid-column: span 12; border-right: 0; }
  .about .side { border-bottom: var(--hair); }
  .about-body { grid-template-columns: 1fr; }
  .host-label { margin-bottom: 20px; }
  .foot-logo, .foot-col { grid-column: span 12; border-right: 0 !important; border-bottom: 2px solid var(--cream); }
  .foot-line { flex-direction: column; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .bar-id { display: none; }
  .bar { grid-template-columns: auto 1fr auto; }
  .bar-actions { justify-content: flex-end; }
  .bar-btn { padding: 0 12px; }
  .when-row { gap: 8px; }
  .when-row .label-detail { margin: 4px 0 0; text-align: left; white-space: normal; font-size: 18px; }
  .facts .plate-cell img { aspect-ratio: 3 / 2; }
  .btn { display: flex; justify-content: center; width: 100%; margin-top: 22px; }
  .countdown { margin-top: 24px; }
  .host-statement { font-size: 17px; }
  .host-bullets li { font-size: 14px; padding-left: 18px; }
  .host-label span:last-child { display: none; }
  .speakers ul, .host-name { font-size: 34px; }
  .sp-role { font-size: 13px; white-space: normal; max-width: 70vw; }
  .speakers ul { min-width: 0; }
  .host { left: auto; bottom: auto; top: var(--pad); }
  .host::before { bottom: auto; top: calc(var(--pad) * -1); background: radial-gradient(ellipse at 100% 0%, rgba(12, 26, 40, 0.5), rgba(12, 26, 40, 0) 70%); }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown div:nth-child(2) { border-right: 0; }
  .countdown div:nth-child(-n+2) { border-bottom: var(--hair); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

/* ---------- print / PDF: two page letter invitation ---------- */
@page { size: 8.5in 11in; margin: 0.4in 0.4in 0.45in; }
@media print {
  :root { --pad: 14px; }
  html, body { background: var(--cream) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10.5pt; }
  .bar { position: static; grid-template-columns: auto 1fr auto; }
  .bar nav, .bar-actions, .bar-id, #dc-clock, .ticker, .countdown, .countdown-note, .btn, .film video,
  .speakers::before, .host::before, .foot-word, .foot-line a, .facts .plate-cell { display: none !important; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > span:nth-child(3) { display: none; }
  .hero-meta > span:nth-child(2) { text-align: right; border-right: 0; }
  .hero-mast { padding-top: 12px; }
  .stars svg { width: 78px; }
  .title { font-size: 84pt; line-height: 0.8; padding-bottom: 0.18em; }
  .hero-row { grid-template-columns: auto 1fr; }
  .year { font-size: 30pt; border-bottom: 0; border-right: var(--rule); padding: 10px var(--pad); }
  .tag { font-size: 12.5pt; padding: 10px var(--pad); }
  .film { display: grid; grid-template-columns: 3fr 2fr; background: none; }
  .film-print { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 6.4; object-fit: cover; object-position: 50% 32%; }
  .speakers, .host { position: static; color: var(--ink); text-shadow: none; padding: 10px var(--pad); border-top: var(--rule); text-align: left; }
  .host { border-left: var(--rule); }
  .speakers ul { height: auto; min-width: 0; font-size: 20pt; line-height: 1.05; }
  .speakers li { position: static; opacity: 1 !important; animation: none !important; transform: none !important; margin-bottom: 3px; }
  .speakers li.more { font-size: 12pt; }
  .host-name { font-size: 20pt; }
  .sp-role, .host .sp-role { color: var(--ink); opacity: 1; white-space: normal; font-size: 9pt; padding-left: 2px; margin-top: 0; }
  .speakers-label { color: var(--signal); margin-bottom: 2px; }
  .facts { grid-template-columns: 1fr 1fr; break-inside: avoid; border-top: var(--rule); }
  .when, .where { grid-column: span 1; border-bottom: 0; padding: 12px var(--pad); }
  .where { border-right: 0; }
  .when .label, .where .label { margin-bottom: 8px; }
  .big { font-size: 20pt; }
  .label-detail { font-size: 10pt; }
  .about { break-before: page; break-inside: avoid; }
  .about .side { display: none; }
  .about .main { grid-column: span 12; }
  .about .side, .about .main { padding: 12px var(--pad); }
  .statement { font-size: 30pt; }
  .about-body { margin-top: 14px; padding-top: 12px; }
  .about-body p { font-size: 10.5pt; }
  .host-sec { break-inside: avoid; grid-template-columns: 3fr 2fr; }
  .scribble { min-height: 0; max-height: 1.6in; }
  .host-copy { padding: 12px var(--pad); }
  .host-label { margin-bottom: 12px; }
  .host-h { font-size: 36pt; }
  .host-statement { font-size: 13pt; margin: 10px 0 14px; }
  .host-bullets li { font-size: 9.5pt; padding: 5px 0 5px 16px; }
  .host-bullets li::before { width: 6px; height: 6px; top: 0.85em; }
  .foot { break-inside: avoid; break-before: avoid; }
  .foot-grid { grid-template-columns: auto 1fr 1fr 1fr; }
  .foot-logo, .foot-col { grid-column: auto; border-right: 2px solid var(--cream) !important; border-bottom: 0 !important; }
  .foot-col:last-child { border-right: 0 !important; }
  .foot-line { display: none; }
  .foot-grid > * { padding: 10px var(--pad); }
  .foot-col p { font-size: 10pt; margin-top: 4px; }
  .foot-logo img { width: 70px; }
  .foot-line, .foot-end { padding: 8px var(--pad); }
  a { text-decoration: none; }
}
