/* COLOSSUS — monochrome marble, spacious, cinematic. */

:root {
  --bg: #0b0a09;
  --bg-raised: #131210;
  --ink: #ece7de;
  --ink-soft: #bdb6aa;
  --muted: #847e74;
  --line: rgba(236, 231, 222, 0.16);
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 104px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font: 300 clamp(1.15rem, 1.45vw, 1.45rem)/1.6 var(--serif);
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase;
  border: 1px solid rgba(236, 231, 222, 0.42);
  background: rgba(11, 10, 9, 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--quiet { border-color: transparent; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 6px; position: relative; }
.btn--quiet::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 14px; height: 1px;
  background: currentColor; opacity: 0.45; transform-origin: left; transition: transform 0.6s var(--ease), opacity 0.6s;
}
.btn--quiet:hover { background: none; color: var(--ink); border-color: transparent; }
.btn--quiet:hover::after { opacity: 1; transform: scaleX(1.06); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(11, 10, 9, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { pointer-events: none; }
.site-header:focus-within { opacity: 1 !important; filter: none !important; pointer-events: auto; }
.brand { font: 500 14px/1 var(--display); letter-spacing: 0.42em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.site-nav a {
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.4s;
}
.site-nav a:hover { color: var(--ink); }
.motion-toggle {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); transition: color 0.4s;
}
.motion-toggle:hover { color: var(--ink); }
.site-nav .site-nav__cta { color: var(--ink); padding: 12px 18px; border: 1px solid var(--line); transition: border-color 0.4s, background-color 0.4s; }
.site-nav .site-nav__cta:hover { border-color: var(--ink); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero { position: relative; background: #000; }
.hero__frame {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: #000 url('../assets/img/hero-poster.webp') center / cover no-repeat;
}
/* Same box as `background-size: cover` on a 16:9 source, so canvas, poster and cutout align. */
.cover {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  width: max(100vw, 177.78svh); height: max(100svh, 56.25vw);
  translate: -50% -50%;
}
.hero__canvas { z-index: 1; }
.hero__title {
  position: absolute; left: 0; right: 0; top: 34svh; z-index: 2;
  text-align: center; line-height: 0.74;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.hero__title span { display: inline-block; font-size: 14vw; letter-spacing: 0.04em; margin-right: -0.04em; white-space: nowrap; }
.hero__cutout { z-index: 3; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 34%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%);
}
.hero__intro {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 8svh, 88px); z-index: 5;
  max-width: 360px; display: grid; gap: 18px;
}
.hero__lede { font: 300 1.25rem/1.45 var(--serif); color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 6px; }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 8svh, 88px); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 500 10px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
.hero__cue::after { content: ''; width: 1px; height: 56px; background: linear-gradient(var(--ink), transparent); transform-origin: top; }
.motion .hero__cue::after { animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Story passages — without .motion (reduced motion or no JS) they read as a static sequence. */
.hero__story {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 64px 48px;
  padding: 18vh var(--gutter); background: var(--bg);
}
.passage img {
  width: auto; max-width: 100%; max-height: 30vh; max-height: 30svh; margin-bottom: 28px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7));
}
.passage__index { font: 400 13px/1 var(--display); letter-spacing: 0.3em; color: var(--muted); margin-bottom: 14px; }
.passage__title { font: 400 clamp(1.7rem, 2.4vw, 2.5rem)/1.1 var(--display); margin-bottom: 16px; }
.passage p:last-child { font: 300 clamp(1.08rem, 1.25vw, 1.3rem)/1.6 var(--serif); color: var(--ink-soft); }

.motion .hero { height: 520vh; height: 520svh; }
.motion .hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .hero__story { position: absolute; inset: 0; z-index: 6; display: block; padding: 0; background: none; pointer-events: none; }
.motion .passage {
  position: absolute; top: 52%; translate: 0 -50%;
  width: min(29vw, 420px);
  opacity: 0; visibility: hidden; will-change: opacity, transform, filter;
}
.motion .passage img { will-change: transform; }
.motion .passage--left { left: var(--gutter); }
.motion .passage--right { right: var(--gutter); }
.motion .passage--right img { margin-left: auto; }

/* ---------- Chapters (shared 3D scene) ---------- */

main { position: relative; z-index: 1; }
.stage3d {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; visibility: hidden;
}
.chapter {
  position: relative; min-height: 130vh; min-height: 130svh;
  display: flex; align-items: center;
  padding: 20vh var(--gutter);
}
.chapter__content { width: min(42vw, 560px); }
.chapter--right .chapter__content { margin-left: auto; margin-right: 2vw; }
.chapter--left .chapter__content { margin-right: auto; margin-left: 2vw; }
.chapter--gallery .chapter__content { width: min(48vw, 700px); }
.chapter__title { font: 400 clamp(2.3rem, 4.4vw, 4.5rem)/1.04 var(--display); margin: 22px 0 28px; letter-spacing: 0.01em; }

.timeline { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline__date { font: 400 14px/1.7 var(--display); letter-spacing: 0.14em; color: var(--ink); }
.timeline p { font: 300 1.15rem/1.55 var(--serif); color: var(--ink-soft); }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--bg); padding: 26px 24px 28px; }
.steps__num { font: 400 12px/1 var(--display); letter-spacing: 0.3em; color: var(--muted); }
.steps h3 { font: 400 1.35rem/1.2 var(--display); margin: 14px 0 8px; letter-spacing: 0.06em; }
.steps p { font: 300 1.08rem/1.5 var(--serif); color: var(--ink-soft); }
.chapter__figure { margin: 48px 0 0; display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 24px; align-items: center; }
.chapter__figure img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)); }
.chapter__figure figcaption { font: 300 italic 1.1rem/1.5 var(--serif); color: var(--muted); }

.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.plate {
  position: relative; display: block; padding: 0; border: 0; margin: 0;
  aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: zoom-in; text-align: left;
}
.plate--feature { grid-column: 1 / -1; }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.78) contrast(1.05);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%); pointer-events: none; }
.plate:hover img, .plate:focus-visible img { transform: scale(1.045); filter: brightness(0.95) contrast(1.05); }
.plate__label {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  display: flex; align-items: baseline; gap: 12px;
  font: 400 clamp(0.85rem, 1vw, 1.05rem)/1.2 var(--display); letter-spacing: 0.08em;
}
.plate__label em { font: 400 10px/1 var(--sans); font-style: normal; letter-spacing: 0.28em; color: var(--muted); }
.plate--feature .plate__label { font-size: clamp(1.1rem, 1.6vw, 1.5rem); left: 24px; bottom: 22px; }

/* ---------- Explore CTA ---------- */

.explore {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 18vh var(--gutter);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11, 10, 9, 0.35), var(--bg) 72%),
    linear-gradient(rgba(11, 10, 9, 0.7), rgba(11, 10, 9, 0.7)),
    var(--bg) url('../assets/img/plates/signature-1600.webp') center 35% / cover no-repeat;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.explore__inner { max-width: 880px; display: grid; justify-items: center; gap: 26px; }
.explore__title { font: 400 clamp(2.6rem, 7vw, 6.6rem)/1 var(--display); letter-spacing: 0.02em; }
.explore__ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative; z-index: 1; background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 44px var(--gutter); border-top: 1px solid var(--line);
}
.site-footer__nav { display: flex; gap: 28px; }
.site-footer__nav a, .site-footer__note { font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.site-footer__nav a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(94vw, 1380px); max-width: none; max-height: 94svh;
  padding: 56px 72px 32px; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 5, 4, 0.94); backdrop-filter: blur(8px); }
.lightbox__figure { margin: 0; display: grid; gap: 22px; }
.lightbox__figure img { width: 100%; max-height: 72svh; object-fit: contain; background: #000; }
.lightbox figcaption { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: baseline; }
.lightbox__count { grid-row: span 2; font: 500 11px/1 var(--sans); letter-spacing: 0.26em; color: var(--muted); }
.lightbox__title { font: 400 1.6rem/1.2 var(--display); letter-spacing: 0.04em; }
.lightbox__caption { font: 300 1.15rem/1.5 var(--serif); color: var(--ink-soft); }
.lightbox__nav, .lightbox__close {
  position: absolute; background: none; border: 1px solid var(--line); cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  transition: border-color 0.4s, background-color 0.4s;
}
.lightbox__nav { top: calc(50% - 60px); width: 48px; height: 48px; font-size: 18px; letter-spacing: 0; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__close { top: 0; right: 0; padding: 12px 16px; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--ink); }

/* ---------- Reveal & grain ---------- */

.motion .reveal { opacity: 0; translate: 0 48px; transition: opacity 1.4s var(--ease), translate 1.4s var(--ease); }
.motion .reveal.is-visible { opacity: 1; translate: 0 0; }

.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  body { font-size: 17px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(11, 10, 9, 0.97);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .site-nav a, .motion-toggle { font-size: 13px; }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; }

  .hero__intro { right: var(--gutter); max-width: none; bottom: 36px; }
  .hero__cue { display: none; }
  .hero__shade { background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 55%), linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 20%); }

  .motion .passage, .motion .passage--left, .motion .passage--right {
    top: auto; bottom: 34px; left: var(--gutter); right: var(--gutter); width: auto; translate: none;
  }
  .motion .passage img { max-height: 13svh; max-width: 55%; margin: 0 0 16px; }
  .motion .passage--right img { margin-left: 0; }

  .chapter { padding: 46svh var(--gutter) 12svh; align-items: flex-start; min-height: auto; }
  .chapter__content, .chapter--gallery .chapter__content { width: 100%; margin: 0; }
  .chapter__content {
    padding: 28px 22px 32px; margin: 0 -6px;
    /* Light enough that the column stays visible, ghosted, behind the text. */
    background: linear-gradient(rgba(11, 10, 9, 0.5), rgba(11, 10, 9, 0.72));
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--line);
  }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .chapter__figure { grid-template-columns: 1fr; }
  .chapter__figure img { max-width: 260px; }

  .lightbox { padding: 64px 0 24px; }
  .lightbox__nav { top: auto; bottom: -64px; }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { left: 60px; right: auto; }
}

/* Without .motion (OS reduced-motion preference or the Motion toggle set to off) nothing animates. */
html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after {
  transition-duration: 0.01ms !important; animation: none !important;
}
