@import url(/updates/fonts.css);

:root {
  --bg: #030303; --panel: #0a0a0b; --raised: #121214; --iron: #1f1f22;
  --hair: rgba(255,255,255,.075); --hair2: rgba(255,255,255,.14);
  --text: #f4f4f5; --muted: #a1a1aa; --quiet: #85858e;
  --gold: #d4c29b; --gold-a: rgba(212,194,155,.14); --gold-b: rgba(212,194,155,.32);
  --ok: #8fd8b4; --warn: #e9b45a;
  --sans: Inter, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1120px; --date-col: 200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.up-skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--text); color: var(--bg); border-radius: 8px; z-index: 10; }
.up-skip:focus { top: 12px; }

/* Header */
.up-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  background: linear-gradient(var(--bg) 60%, rgba(3,3,3,0));
}
.up-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.up-brand-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--text); box-shadow: 0 0 24px rgba(255,255,255,.25); }
.up-nav { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.up-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); transition: color .2s var(--ease), background .2s var(--ease); }
.up-nav a:hover, .up-nav a[aria-current="page"] { color: var(--text); }
.up-nav .up-nav-cta { background: var(--text); color: var(--bg); font-weight: 600; }
.up-nav .up-nav-cta:hover { color: var(--bg); background: #fff; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Hero */
.up-hero { padding: 96px 0 72px; position: relative; }
.up-hero::before {
  content: ''; position: absolute; inset: -40px -10vw auto; height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,255,255,.06), transparent 70%);
}
.up-eyebrow, .up-mono { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin: 0; }
.up-eyebrow { color: var(--gold); }
.up-hero h1 {
  margin: 18px 0 18px; font-weight: 800; font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, #b9b9c0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.up-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.up-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
.up-stats div { min-width: 168px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); }
.up-stats dt { order: 2; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.up-stats dd { margin: 0 0 4px; font-weight: 700; font-size: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.up-stats div { display: flex; flex-direction: column-reverse; }

/* Section heads */
.up-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.up-section-head h2 { margin: 0; font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }

/* Week highlights */
.up-week { padding: 24px 0 72px; }
.up-week-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.up-card {
  position: relative; padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--hair);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.up-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 40%);
}
.up-card:hover { transform: translateY(-2px); border-color: var(--hair2); }
.up-card:hover::after { opacity: 1; }
.up-card h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.up-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tags */
.up-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.up-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--quiet); }
.up-kind { padding: 4px 7px; border-radius: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--hair2); color: var(--muted); white-space: nowrap; }
.up-kind[data-kind="new"] { color: var(--gold); border-color: var(--gold-b); background: var(--gold-a); }
.up-kind[data-kind="fixed"] { color: var(--ok); border-color: rgba(143,216,180,.28); }

/* Filters */
.up-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.up-chip {
  appearance: none; border: 1px solid var(--hair2); background: transparent; color: var(--muted);
  font: 500 13px/1 var(--sans); padding: 9px 12px; border-radius: 999px; cursor: pointer; min-height: 36px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.up-chip:hover { color: var(--text); border-color: rgba(255,255,255,.28); }
.up-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Timeline */
.up-feed { padding: 24px 0 96px; }
.up-timeline { position: relative; }
.up-rail { position: absolute; left: calc(var(--date-col) - 1px); top: 8px; bottom: 0; width: 1px; background: var(--hair); }
.up-rail-fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: linear-gradient(var(--gold), rgba(212,194,155,.1)); transform-origin: top; transform: scaleY(var(--rail, 0)); }
.up-days { list-style: none; margin: 0; padding: 0; }
.up-day { display: grid; grid-template-columns: var(--date-col) minmax(0,1fr); padding-bottom: 56px; }
.up-day[hidden] { display: none; }
.up-day-date { position: sticky; top: 84px; align-self: start; padding-right: 28px; }
.up-day-date time { display: block; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--text); }
.up-day-date span { display: block; font: 400 12px/1.4 var(--mono); color: var(--quiet); text-transform: lowercase; }
.up-day-dot { position: absolute; left: calc(var(--date-col) - 5px); width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--bg); border: 1px solid var(--hair2); transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); }
.up-day.is-seen .up-day-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); }
.up-day-body { padding-left: 32px; min-width: 0; }
.up-day-body h3 { margin: 0 0 18px; font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; }

.up-lead-card { padding: 24px; border-radius: 14px; background: linear-gradient(180deg, var(--raised), var(--panel)); border: 1px solid var(--hair); margin-bottom: 20px; }
.up-lead-card .up-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.up-lead-card h4 { margin: 14px 0 6px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.up-lead-card p { margin: 0; color: var(--muted); }

.up-groups { display: grid; gap: 18px; }
.up-group h5 { margin: 0 0 8px; }
.up-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.up-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.up-item b { font-weight: 600; }
.up-item span { color: var(--muted); }
.up-item p { margin: 0; }

.up-more { margin-top: 12px; }
.up-more button { appearance: none; background: none; border: 0; color: var(--muted); font: 500 14px/1 var(--sans); padding: 8px 0; cursor: pointer; min-height: 36px; }
.up-more button:hover { color: var(--text); }

.up-empty, .up-loading, .up-error { color: var(--muted); padding: 24px 0; }
.up-error { color: var(--warn); }

.up-foot { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--quiet); font-size: 14px; border-top: 1px solid var(--hair); }
.up-foot p { margin: 0; }

/* Reveal motion */
.js-motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  :root { --date-col: 0px; }
  .up-week-grid { grid-template-columns: 1fr; }
  .up-rail, .up-day-dot { display: none; }
  .up-day { grid-template-columns: 1fr; padding-bottom: 44px; }
  .up-day-date { position: static; padding: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
  .up-day-body { padding-left: 0; }
  .up-hero { padding: 56px 0 48px; }
  .up-stats div { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 480px) {
  main, .up-top, .up-foot { padding-left: 16px; padding-right: 16px; }
  .up-nav a:not(.up-nav-cta) { display: none; }
  .up-lead-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .up-rail-fill { transform: none; }
}

/* ── Cinema layer (owner 06.11): shots with focus corners, slate captions and a clapper strip ── */
.up-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background:
    radial-gradient(70% 90% at 50% 38%, rgba(255,255,255,.075), transparent 62%),
    radial-gradient(120% 120% at 50% 120%, rgba(212,194,155,.06), transparent 55%),
    linear-gradient(180deg, #0d0d0f, #050506);
  border: 1px solid var(--hair); isolation: isolate;
}
.up-frame-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.up-frame.has-media::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 62%, rgba(0,0,0,.65)); }
.up-frame-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.up-frame-top, .up-frame-bottom {
  position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; z-index: 1;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,244,245,.72);
}
.up-frame-top { top: 14px; }
.up-frame-bottom { bottom: 26px; }
.up-rec { display: inline-flex; align-items: center; gap: 7px; }
.up-rec::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(255,255,255,.6); animation: up-rec 1.6s var(--ease) infinite; }
@keyframes up-rec { 50% { opacity: .25; } }

/* Focus frame: four gold corners lock onto the scene title, like autofocus on a face */
.up-focus {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -56%;
  display: grid; place-items: center; width: min(78%, 620px); padding: clamp(14px, 3.2vw, 34px) clamp(16px, 3.6vw, 40px);
}
.up-focus-title {
  font-weight: 800; font-size: clamp(20px, 3.4vw, 40px); line-height: 1.04; letter-spacing: -.03em; text-align: center;
  text-wrap: balance; background: linear-gradient(180deg, #fff 35%, #c3c3ca); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.up-focus i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); transition: inset .8s var(--ease), opacity .6s var(--ease); }
.up-focus i:nth-of-type(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.up-focus i:nth-of-type(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.up-focus i:nth-of-type(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.up-focus i:nth-of-type(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
/* The corners "find focus" as the shot scrolls in */
.js-motion [data-reveal] .up-focus i, .js-motion .up-card .up-focus i { opacity: 0; }
.js-motion [data-reveal] .up-focus i:nth-of-type(1) { top: -14px; left: -14px; }
.js-motion [data-reveal] .up-focus i:nth-of-type(2) { top: -14px; right: -14px; }
.js-motion [data-reveal] .up-focus i:nth-of-type(3) { bottom: -14px; left: -14px; }
.js-motion [data-reveal] .up-focus i:nth-of-type(4) { bottom: -14px; right: -14px; }
.js-motion [data-reveal].is-in .up-focus i { opacity: 1; transition-delay: .25s; }
.js-motion [data-reveal].is-in .up-focus i:nth-of-type(1) { top: 0; left: 0; }
.js-motion [data-reveal].is-in .up-focus i:nth-of-type(2) { top: 0; right: 0; }
.js-motion [data-reveal].is-in .up-focus i:nth-of-type(3) { bottom: 0; left: 0; }
.js-motion [data-reveal].is-in .up-focus i:nth-of-type(4) { bottom: 0; right: 0; }

/* Clapper strip along the bottom edge */
.up-clapper {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px; z-index: 1; opacity: .9;
  background: repeating-linear-gradient(-55deg, var(--text) 0 14px, #0b0b0c 14px 28px);
  border-top: 1px solid rgba(0,0,0,.6);
}

.up-frame-sm .up-focus { width: 82%; padding: 12px 16px; }
.up-frame-sm .up-focus-title { font-size: clamp(18px, 2vw, 24px); }
.up-frame-sm .up-focus i { width: 12px; height: 12px; }
.up-frame-sm .up-frame-top, .up-frame-sm .up-frame-bottom { left: 12px; right: 12px; font-size: 10px; }
.up-frame-sm .up-frame-top { top: 10px; }
.up-frame-sm .up-frame-bottom { bottom: 18px; }
.up-frame-sm .up-clapper { height: 8px; background-size: auto; }

/* Lead card: a widescreen (2.39:1) shot on top of the text */
.up-frame-lg { aspect-ratio: 2.39 / 1; }
.up-frame-lg .up-focus { translate: -50% -58%; }
.up-lead-card .up-frame { margin: -10px -10px 20px; }
.up-card { padding: 10px; }
.up-card .up-frame { border-radius: 8px; }
.up-card-body { padding: 14px 12px 12px; }

/* Hero slate: counters read like a clapperboard */
.up-slate { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 640px;
  border: 1px solid var(--hair2); border-radius: 14px; overflow: hidden; background: var(--panel); padding-top: 14px; }
.up-slate::before { content: ''; position: absolute; inset: 0 0 auto; height: 14px;
  background: repeating-linear-gradient(-55deg, var(--text) 0 16px, #0b0b0c 16px 32px); }
.up-slate div { min-width: 0; border: 0; border-radius: 0; background: none; border-left: 1px solid var(--hair); }
.up-slate div:first-child { border-left: 0; }
.up-slate dd { font-family: var(--mono); font-weight: 600; font-size: 34px; letter-spacing: -.02em; }

/* Film reel of the latest shots */
.up-reel { position: relative; margin-top: 40px; overflow: hidden; border-block: 1px solid var(--hair);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.up-reel[hidden] { display: none; }
.up-reel::before, .up-reel::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.16) 10px 18px, transparent 18px 28px); }
.up-reel::before { top: 6px; } .up-reel::after { bottom: 6px; }
.up-reel-track { display: flex; gap: 10px; width: max-content; padding: 22px 0; animation: up-reel 60s linear infinite; }
.up-reel:hover .up-reel-track, .up-reel:focus-within .up-reel-track { animation-play-state: paused; }
@keyframes up-reel { to { transform: translateX(-50%); } }
.up-reel-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 220px; aspect-ratio: 16 / 9;
  padding: 12px 14px; border-radius: 6px; border: 1px solid var(--hair); text-decoration: none;
  background: radial-gradient(80% 90% at 50% 30%, rgba(255,255,255,.06), transparent 65%), #08080a;
  transition: border-color .2s var(--ease), transform .3s var(--ease); }
.up-reel-cell:hover, .up-reel-cell:focus-visible { border-color: var(--gold-b); transform: translateY(-2px); }
.up-reel-no { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--quiet); }
.up-reel-title { font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }

.up-day { scroll-margin-top: 90px; }

@media (max-width: 860px) {
  .up-slate { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .up-slate dd { font-size: 26px; }
  .up-frame-bottom { bottom: 20px; }
}
@media (max-width: 480px) {
  .up-lead-card .up-frame { margin: -8px -8px 16px; }
  .up-frame-top, .up-frame-bottom { font-size: 9.5px; left: 12px; right: 12px; }
  .up-slate div { padding: 12px 10px; }
  .up-slate dt { font-size: 10px; }
  .up-reel-cell { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .up-reel-track { animation: none; }
  .up-reel { overflow-x: auto; mask-image: none; }
  .up-rec::before { animation: none; }
}
