:root {
  --ink: #080809;
  --paper: #f3efe6;
  --coral: #ff644f;
  --yellow: #f4c84e;
  --muted: rgba(243,239,230,.64);
  --line: rgba(243,239,230,.22);
  --serif: Georgia,"Times New Roman",serif;
  --sans: Arial,Helvetica,sans-serif;
  --page: min(1480px,calc(100% - 64px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { min-height: 100svh; margin: 0; padding-bottom: 82px; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: var(--sans); }
body::after { content:""; position: fixed; inset: 0; z-index: 50; opacity: .05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"); }
[hidden] { display: none!important; }
a { color: inherit; text-decoration: none; }
button,input,select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 80; top: 10px; left: 10px; padding: 12px 16px; background: var(--yellow); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

.timeline-header { width: var(--page); min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 auto; border-bottom: 1px solid var(--line); }
.timeline-wordmark { font: 400 22px/1 var(--serif); letter-spacing: .26em; }
.timeline-header nav { align-self: stretch; display: flex; align-items: center; gap: 46px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.timeline-header nav a { position: relative; height: 100%; display: grid; place-items: center; }
.timeline-header nav a:hover,.timeline-header nav a.active { color: var(--coral); }
.timeline-header nav a.active::after { content:""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--coral); }
.timeline-contribute { justify-self: end; color: var(--yellow); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
main,footer { width: var(--page); margin-inline: auto; }
.timeline-hero { min-height: 430px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: center; border-bottom: 1px solid var(--line); }
.timeline-hero h1 { margin: 0; font: italic 400 clamp(64px,7.4vw,112px)/.84 var(--serif); letter-spacing: -.055em; }
.timeline-hero h1 em { color: var(--yellow); }
.timeline-hero > p { max-width: 480px; color: var(--muted); font: 18px/1.6 var(--serif); }

.timeline-controls { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: minmax(250px,1.6fr) repeat(4,minmax(120px,.7fr)) auto; gap: 1px; padding: 1px; border-bottom: 1px solid var(--line); background: var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.timeline-controls label { min-width: 0; display: grid; gap: 7px; padding: 14px 15px; background: rgba(8,8,9,.97); }
.timeline-controls label > span { color: var(--muted); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.timeline-controls input,.timeline-controls select,.sort-control select { width: 100%; min-width: 0; border: 0; padding: 0; outline: 0; background: transparent; color-scheme: dark; font-size: 13px; }
.timeline-controls input::placeholder { color: rgba(243,239,230,.38); }
.timeline-controls > button { border: 0; padding: 0 22px; background: var(--coral); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.album-trophies,.gallery-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section-heading,.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading h2,.gallery-heading h2 { margin: 0; font: 400 34px/1 var(--serif); }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); text-align: right; font: italic 14px/1.45 var(--serif); }
.trophy-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px,310px); gap: 12px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; scrollbar-color: var(--coral) transparent; }
.trophy-card { min-height: 235px; position: relative; display: grid; align-content: end; overflow: hidden; border: 1px solid var(--line); padding: 19px; background: #111; text-align: left; scroll-snap-align: start; isolation: isolate; }
.trophy-card::after { content:""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent 25%,rgba(0,0,0,.92)); }
.trophy-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.76); transition: transform .5s ease,filter .5s ease; }
.trophy-card:hover img { transform: scale(1.04); filter: saturate(1); }
.trophy-card.active { border-color: var(--yellow); box-shadow: inset 0 -4px var(--yellow); }
.trophy-card .trophy-mark { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 11px; border: 1px solid var(--coral); border-radius: 50%; color: var(--coral); font: italic 14px var(--serif); }
.trophy-card strong { font: 400 23px/1.05 var(--serif); }
.trophy-card small { margin-top: 8px; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.trophy-card.all-card { background: radial-gradient(circle at 70% 20%,rgba(244,200,78,.19),transparent 33%),linear-gradient(135deg,#171719,#080809); }
.trophy-card.all-card::after { background: none; }

.gallery-actions { display: flex; align-items: center; gap: 17px; }
#timeline-result-count { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.view-switch { display: flex; border: 1px solid var(--line); }
.view-switch button { min-height: 38px; border: 0; padding: 0 13px; background: transparent; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.view-switch button.active { background: var(--paper); color: var(--ink); }
.sort-control { min-width: 124px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.timeline-gallery { display: grid; gap: 38px; }
.date-group { display: grid; gap: 13px; }
.date-group-heading { display: flex; align-items: baseline; gap: 12px; }
.date-group-heading h3 { margin: 0; font: 400 19px var(--serif); }
.date-group-heading span { color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.date-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; grid-auto-flow: dense; }
.timeline-card { min-width: 0; position: relative; display: block; overflow: hidden; background: #111; aspect-ratio: 1; }
.timeline-card img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.78); transition: filter .3s ease,transform .4s ease; }
.timeline-card:hover img { filter: saturate(1); transform: scale(1.025); }
.timeline-card .card-info { position: absolute; inset: auto 0 0; padding: 24px 9px 8px; opacity: 0; background: linear-gradient(transparent,rgba(0,0,0,.84)); transition: opacity .25s ease; }
.timeline-card:hover .card-info,.timeline-card:focus-visible .card-info { opacity: 1; }
.card-info strong { display: block; overflow: hidden; font: italic 13px var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.card-info small { color: rgba(243,239,230,.7); font-size: 8px; letter-spacing: .08em; }
.timeline-card.video::after { content:"▶"; position: absolute; top: 9px; right: 9px; width: 27px; height: 27px; display: grid; place-items: center; background: rgba(8,8,9,.73); font-size: 9px; }
.timeline-gallery.canvas .date-grid { grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: minmax(70px,5.3vw); }
.timeline-gallery.canvas .timeline-card { aspect-ratio: auto; grid-column: span 2; grid-row: span 3; }
.timeline-gallery.canvas .timeline-card:nth-child(9n + 1),.timeline-gallery.canvas .timeline-card:nth-child(9n + 6) { grid-column: span 4; grid-row: span 5; }
.timeline-gallery.canvas .timeline-card:nth-child(9n + 3) { grid-column: span 3; grid-row: span 4; }
.timeline-gallery.canvas .timeline-card:nth-child(9n + 8) { grid-column: span 3; grid-row: span 3; }
.timeline-empty { min-height: 260px; display: grid; place-items: center; margin: 0; color: var(--muted); font: italic 21px var(--serif); }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
footer a { color: var(--coral); }
.bottom-tabs { position: fixed; z-index: 35; right: 50%; bottom: 16px; width: min(390px,calc(100% - 28px)); min-height: 58px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(243,239,230,.22); background: rgba(8,8,9,.92); box-shadow: 0 14px 55px rgba(0,0,0,.46); backdrop-filter: blur(18px); transform: translateX(50%); }
.bottom-tabs a { display: grid; place-content: center; gap: 4px; color: var(--muted); text-align: center; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.bottom-tabs a span { color: var(--paper); font-size: 13px; line-height: 1; }
.bottom-tabs a:hover,.bottom-tabs a.active,.bottom-tabs a.active span { color: var(--coral); }

@media (max-width: 1050px) {
  .timeline-controls { grid-template-columns: 1.5fr repeat(2,1fr); }
  .timeline-controls > button { min-height: 54px; }
  .date-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  :root { --page: calc(100% - 30px); }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .timeline-header { min-height: 76px; grid-template-columns: 1fr auto; }
  .timeline-header nav { display: none; }
  .timeline-wordmark { font-size: 19px; }
  .timeline-hero { min-height: 350px; grid-template-columns: 1fr; gap: 22px; align-content: center; }
  .timeline-hero h1 { font-size: clamp(55px,16vw,78px); }
  .timeline-hero > p { margin: 0; font-size: 15px; }
  .timeline-controls { position: relative; grid-template-columns: 1fr 1fr; margin-inline: -15px; }
  .timeline-controls .search-control { grid-column: 1/-1; }
  .timeline-controls > button { min-height: 50px; }
  .album-trophies,.gallery-section { padding: 37px 0; }
  .section-heading,.gallery-heading { align-items: start; flex-direction: column; gap: 15px; }
  .section-heading > p { text-align: left; }
  .trophy-rail { grid-auto-columns: 72vw; margin-right: -15px; }
  .gallery-actions { width: 100%; flex-wrap: wrap; }
  #timeline-result-count { flex: 1 1 100%; }
  .view-switch { flex: 1; }
  .view-switch button { flex: 1; }
  .date-grid,.timeline-gallery.canvas .date-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: auto; gap: 3px; }
  .timeline-gallery.canvas .timeline-card,.timeline-gallery.canvas .timeline-card:nth-child(n) { aspect-ratio: 1; grid-column: span 1; grid-row: span 1; }
  .timeline-gallery.canvas .timeline-card:nth-child(7n + 1) { aspect-ratio: auto; grid-column: span 2; grid-row: span 2; }
  .timeline-card .card-info { display: none; }
  footer { min-height: 90px; }
  .bottom-tabs { bottom: max(10px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms!important; animation-duration: .01ms!important; }
}
