/* META 2026 — photo gallery
   Dark editorial theme built around the META brand teal (#008da9). */

:root {
  --bg: #0a0c0f;
  --bg-2: #0e1116;
  --bg-3: #141920;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #e9ecef;
  --muted: #8f98a3;
  --muted-2: #6b737d;
  --accent: #1fb6d6;
  --accent-deep: #008da9;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --gap: 10px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #05252d; padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ───────────────────────────── hero ───────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.hero__stage { position: absolute; inset: 0; z-index: -3; background: #05070a; }

.hero__stage figure {
  position: absolute; inset: 0; margin: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease;
  will-change: opacity, transform;
}
.hero__stage figure.is-on { opacity: 1; animation: kenburns 15s linear forwards; }

@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(0, -1.4%, 0); }
}

.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(10, 12, 15, .30) 0%, rgba(10, 12, 15, .82) 62%, var(--bg) 100%),
    linear-gradient(180deg, rgba(6, 20, 26, .55) 0%, rgba(8, 10, 14, .60) 45%, var(--bg) 100%);
}

.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.55'/></svg>");
}

.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad) 0;
}

.topbar__home { text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; }
.topbar__mark {
  font-weight: 700; letter-spacing: .26em; font-size: 15px; text-transform: uppercase;
}
.topbar__year {
  font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--accent);
}
.topbar__next {
  text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; transition: color .25s, border-color .25s, background .25s;
  white-space: nowrap;
}
.topbar__next:hover { color: var(--text); border-color: var(--accent); background: rgba(31, 182, 214, .10); }

.hero__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 40px var(--pad) 96px;
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__eyebrow {
  margin: 0 0 22px;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--accent);
}
.hero__eyebrow::after {
  content: ""; display: block; width: 46px; height: 1px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 15vw, 10.5rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .55);
}
.hero__title em { font-style: italic; color: var(--accent); }

.hero__sub {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  font-weight: 300;
  line-height: 1.55;
  color: #c3cad3;
}
.hero__sub sup { font-size: .62em; }

.hero__facts {
  list-style: none; display: flex; gap: clamp(26px, 6vw, 68px);
  margin: 42px 0 0; padding: 0;
}
.hero__facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__facts span {
  font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1;
}
.hero__facts small {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2);
}

.hero__dates {
  margin: 40px 0 0;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: dot 1.9s ease-in-out infinite;
}
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: .1; } }

/* ─────────────────────────── day nav bar ─────────────────────────── */

.daybar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 15, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.daybar__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--pad);
  max-width: 1800px; margin: 0 auto;
}

.daybar__pills {
  display: flex; gap: 6px; overflow-x: auto; flex: 1;
  padding: 11px 0; scrollbar-width: none;
}
.daybar__pills::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.pill b { font-weight: 600; }
.pill i { font-style: normal; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pill:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.pill.is-active {
  color: #d7f4fb; background: rgba(31, 182, 214, .14); border-color: rgba(31, 182, 214, .38);
}
.pill.is-active i { color: var(--accent); }

.daybar__top {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  cursor: pointer; font-size: 14px; line-height: 1;
  opacity: 0; pointer-events: none; transition: opacity .3s, color .2s, border-color .2s;
}
.daybar__top.is-on { opacity: 1; pointer-events: auto; }
.daybar__top:hover { color: var(--text); border-color: var(--accent); }

/* ───────────────────────────── sections ───────────────────────────── */

main { max-width: 1800px; margin: 0 auto; padding: 0 var(--pad) 40px; }

.sect { padding: clamp(56px, 8vw, 104px) 0 0; scroll-margin-top: 70px; }

.sect__head {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34ch);
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--gap);
}
@media (max-width: 820px) { .sect__head { grid-template-columns: 1fr; align-items: start; } }

.sect__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px;
}
.sect__label::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .6;
}

.sect__title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.01em;
}

.sect__when {
  margin: 10px 0 0;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}

.sect__blurb { margin: 0; color: var(--muted); font-size: .94rem; font-weight: 300; line-height: 1.65; }
.sect__count { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }

/* ────────────────────────── justified grid ────────────────────────── */

.grid { position: relative; width: 100%; }

.tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--bg-3);
  border-radius: 3px;
  cursor: zoom-in;
  transition: left .32s cubic-bezier(.2,.7,.2,1), top .32s cubic-bezier(.2,.7,.2,1),
              width .32s cubic-bezier(.2,.7,.2,1), height .32s cubic-bezier(.2,.7,.2,1);
}
.tile.no-anim { transition: none; }

.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.tile img.is-in { opacity: 1; transform: none; }

.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%);
  opacity: 0; transition: opacity .35s ease;
}
.tile__badge {
  position: absolute; left: 10px; bottom: 8px; z-index: 2;
  font-size: 10px; letter-spacing: .16em; color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 6px rgba(0,0,0,.8); font-variant-numeric: tabular-nums;
}
.tile:hover::after, .tile:focus-within::after { opacity: 1; }
.tile:hover .tile__badge, .tile:focus-within .tile__badge { opacity: .95; transform: none; }
.tile:hover img { transform: scale(1.045); }

@media (hover: none) { .tile:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tile, .tile img { transition: opacity .3s ease; }
  .hero__stage figure.is-on { animation: none; }
}

/* ───────────────────────────── outro ───────────────────────────── */

.outro {
  max-width: 720px; margin: clamp(70px, 11vw, 150px) auto 0;
  padding: 0 var(--pad) clamp(60px, 9vw, 110px);
  text-align: center;
}
.outro__kicker { margin: 0 0 14px; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); }
.outro__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.06; }
.outro__title em { font-style: italic; color: var(--accent); }
.outro__text { margin: 20px auto 0; color: var(--muted); font-weight: 300; font-size: .96rem; max-width: 56ch; }
.outro__cta {
  display: inline-block; margin-top: 34px; text-decoration: none;
  padding: 14px 32px; border-radius: 999px;
  border: 1px solid rgba(31, 182, 214, .45); color: #d7f4fb;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: background .25s, border-color .25s, transform .25s;
}
.outro__cta:hover { background: rgba(31, 182, 214, .14); border-color: var(--accent); transform: translateY(-2px); }

.foot {
  border-top: 1px solid var(--line);
  padding: 34px var(--pad) 54px;
  text-align: center; color: var(--muted-2); font-size: 12.5px;
}
.foot p { margin: 0 0 8px; }
.foot__fine { font-size: 11.5px; opacity: .8; }
.foot a { color: var(--muted); }

/* ──────────────────────────── lightbox ──────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  opacity: 0; transition: opacity .28s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .965); backdrop-filter: blur(8px); }

.lb__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(12px, 3vw, 26px);
}
.lb__meta { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.lb__day { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__counter { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.lb__tools { display: flex; gap: 6px; }
.lb__btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 50%;
  background: rgba(255, 255, 255, .05); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.lb__btn:hover { background: rgba(31, 182, 214, .18); border-color: rgba(31, 182, 214, .4); }
.lb__btn.is-done { color: var(--accent); }
.lb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }

.lb__stage {
  position: relative; z-index: 1; margin: 0;
  display: grid; place-items: stretch;
  min-height: 0; padding: 0 clamp(8px, 6vw, 84px);
}

/* The frame gives the image a definite box to size against, so a tall photo
   can never spill over the caption and filmstrip below. */
.lb__frame { position: relative; min-height: 0; min-width: 0; }

.lb__img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  border-radius: 2px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .35s ease;
  touch-action: pan-y;
}
.lb__img.is-ready { opacity: 1; }
.lb__img.is-zoom { cursor: zoom-out; max-width: none; max-height: none; }

.lb__spin {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--accent);
  animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s;
}
.lb.is-loading .lb__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(16, 19, 24, .6);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s, opacity .2s;
}
.lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.lb__nav:hover { background: rgba(31, 182, 214, .2); border-color: rgba(31, 182, 214, .45); }
.lb__nav:disabled { opacity: .22; cursor: default; }
.lb__nav--prev { left: clamp(8px, 2vw, 22px); }
.lb__nav--next { right: clamp(8px, 2vw, 22px); }
@media (max-width: 720px) { .lb__nav { display: none; } }

.lb__caption {
  position: relative; z-index: 2; text-align: center;
  padding: 14px 20px 6px; color: var(--muted); font-size: 12.5px;
  min-height: 34px;
}
.lb__time { letter-spacing: .12em; }

.lb__strip {
  position: relative; z-index: 2;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 8px clamp(12px, 3vw, 26px) 16px;
  scroll-behavior: smooth;
}
.lb__strip::-webkit-scrollbar { display: none; }
.lb__strip img {
  flex: 0 0 auto; height: 54px; width: auto; border-radius: 2px; cursor: pointer;
  opacity: .38; filter: saturate(.6); transition: opacity .22s, filter .22s, outline-color .22s;
  outline: 2px solid transparent; outline-offset: -2px;
}
.lb__strip img:hover { opacity: .8; filter: none; }
.lb__strip img.is-current { opacity: 1; filter: none; outline-color: var(--accent); }
@media (max-width: 560px) { .lb__strip { display: none; } }
