:root {
  --stone: #0c0c0d;
  --stone-2: #141416;
  --stone-3: #1c1c1f;
  --vein: rgba(255, 255, 255, 0.07);
  --ink: #efece6;
  --ink-2: #b9b5ad;
  --muted: #85817a;
  --gilt: #d4af37;
  --gilt-soft: rgba(212, 175, 55, 0.14);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------- navigation */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: linear-gradient(to bottom, rgba(12, 12, 13, 0.85), rgba(12, 12, 13, 0));
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 650; letter-spacing: 0.22em; font-size: 14px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .dev { display: inline-flex; align-items: center; gap: 6px; color: var(--gilt); }
@media (max-width: 720px) { .nav-links a:not(.dev) { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: min(100vh, 860px); display: grid; align-items: end; overflow: hidden;
  background: var(--stone);
}

/* The hero cycles through five frames, 7 s each, cross-fading in CSS alone (no script, so the page can forbid
   every script). Each slide's delay starts it already faded in, so the first frame is visible at once. */
.slides { position: absolute; inset: 0; margin: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide 35s linear infinite; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 0;
  animation: drift 35s linear infinite; }
/* the shade over each frame, under its caption, so the headline reads on any picture */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--stone) 0%, rgba(12, 12, 13, 0.55) 38%, rgba(12, 12, 13, 0.05) 70%),
    linear-gradient(to right, rgba(12, 12, 13, 0.75), rgba(12, 12, 13, 0.25) 55%, transparent 75%);
}
.slide figcaption {
  position: absolute; right: 28px; bottom: 28px; z-index: 2; margin: 0; font-size: 12.5px; color: var(--ink-2);
  background: rgba(12, 12, 13, 0.6); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.slide:nth-child(1), .slide:nth-child(1) img { animation-delay: -1.2s; }
.slide:nth-child(2), .slide:nth-child(2) img { animation-delay: 5.8s; }
.slide:nth-child(3), .slide:nth-child(3) img { animation-delay: 12.8s; }
.slide:nth-child(4), .slide:nth-child(4) img { animation-delay: 19.8s; }
.slide:nth-child(5), .slide:nth-child(5) img { animation-delay: 26.8s; }
@keyframes slide {
  0% { opacity: 0; } 3.4% { opacity: 1; } 20% { opacity: 1; } 23.4% { opacity: 0; } 100% { opacity: 0; }
}
/* The slow zoom carries a rotation too small to see (0.01 degrees, a quarter of a pixel at the picture's edge). Without
   it Firefox snaps an unrotated, scaled picture to whole pixels, so the zoom held still and then jumped: measured
   2026-12-05 in headless Firefox, frame by frame at 60 Hz, 77 of 89 frames did not move and then jumped about a pixel;
   with it every frame moves, the largest step 0.4 px. (will-change and a 3D transform did not help.) */
@keyframes drift {
  0% { transform: scale(1.0) rotate(0.01deg); } 23.4% { transform: scale(1.05) rotate(0.01deg); }
  100% { transform: scale(1.05) rotate(0.01deg); }
}
/* Motion off: the first frame only, still. */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { animation: none; }
  .slide:nth-child(1) { opacity: 1; }
}
.hero .wrap { width: 100%; position: relative; z-index: 3; padding-bottom: clamp(56px, 12vh, 130px); }
.eyebrow { color: var(--gilt); letter-spacing: 0.28em; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.hero h1 {
  margin: 14px 0 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(44px, 7.4vw, 96px); max-width: 12ch;
}
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; margin: 22px 0 0; }
.foot-rule { width: 84px; height: 3px; background: var(--gilt); margin-top: 30px; border-radius: 2px; }

/* ------------------------------------------------------------ sections */
section { padding: 110px 0 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 10px 0 14px; }
.section-head p { color: var(--ink-2); margin: 0; }

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
figcaption b { color: var(--ink-2); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gallery figure:nth-child(1) { grid-column: span 4; }
.gallery figure:nth-child(2) { grid-column: span 2; }
.gallery figure:nth-child(3), .gallery figure:nth-child(4), .gallery figure:nth-child(5) { grid-column: span 2; }
.gallery figure .frame { aspect-ratio: 16 / 9; }
.gallery figure:nth-child(2) .frame { aspect-ratio: auto; height: calc(100% - 34px); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { grid-column: auto !important; }
  .gallery figure:nth-child(2) .frame { aspect-ratio: 16 / 9; height: auto; }
}

/* a day in three frames */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.day figure { position: relative; }
.day img { border-radius: 0; aspect-ratio: 4 / 5; }
.day .time {
  position: absolute; left: 18px; bottom: 16px; font-size: 34px; font-weight: 650; letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.day .time small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
@media (max-width: 720px) { .day { grid-template-columns: 1fr; } .day img { aspect-ratio: 16 / 10; } }

.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.worlds .frame { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .worlds { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.split .frame img { aspect-ratio: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- inside */
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .inside { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .inside { grid-template-columns: 1fr; } }
.tile {
  background:
    radial-gradient(120% 90% at 0% 0%, var(--vein), transparent 55%),
    var(--stone-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 26px 26px 24px;
}
.tile h3 { margin: 0 0 4px; font-size: 19px; }
.tile h3::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gilt); margin-top: 12px; border-radius: 2px; }
.tile ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.tile li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.tile li:first-child { border-top: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 54px; color: var(--muted); font-size: 14px; }
.facts b { display: block; color: var(--ink); font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }

/* -------------------------------------------------------------- footer */
footer { margin-top: 120px; padding: 40px 0 60px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lock { width: 13px; height: 13px; }

/* the fog clip */
.clip video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--stone-2); }
/* skip link for keyboards */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--gilt); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }
/* the 404 page */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); margin: 10px 0 16px; }
.notfound a { color: var(--gilt); }
