/* ════════════════════════════════════════════════════════════════════
   ZAXIMUM · DESIGN SYSTEM
   Cinematic · brutalist-editorial · chrome on black
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@300;400;500;700;900&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --bg:        #050505;
  --bg-2:      #0a0a0a;
  --paper:     #f5f3ee;     /* inverted sections */
  --ink:       #f6f6f4;
  --ink-soft:  rgba(246, 246, 244, 0.74);
  --ink-dim:   rgba(246, 246, 244, 0.50);
  --ink-faint: rgba(246, 246, 244, 0.32);
  --line:      rgba(246, 246, 244, 0.10);
  --line-2:    rgba(246, 246, 244, 0.18);
  --chrome-1:  #ffffff;
  --chrome-2:  #c8c8c8;
  --chrome-3:  #6e6e6e;

  --display:   "Big Shoulders Display", "Anton", Impact, sans-serif;
  --body:      "DM Sans", -apple-system, ui-sans-serif, system-ui, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad-x:     clamp(20px, 4vw, 64px);
  --maxw:      1680px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: #fff; color: #000; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ───── film grain overlay ───── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
/* vignette + scanline */
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 199; background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 100%); }

/* ════════════════════════════════
   TYPE SYSTEM
   ════════════════════════════════ */

/* eyebrow / chapter marker */
.eb {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eb .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; }
.eb .slash { color: var(--ink); }

/* huge condensed display type */
.hx {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 0.86;
  text-transform: uppercase;
  margin: 0;
  font-stretch: condensed;
}
.hx-xl { font-size: clamp(72px, 14vw, 240px); }
.hx-l  { font-size: clamp(60px, 10vw, 168px); }
.hx-m  { font-size: clamp(48px, 7vw, 112px); }
.hx-s  { font-size: clamp(36px, 5vw, 76px); }

.thin { font-weight: 300; }
.italic { font-style: italic; }

/* serif-style highlight (we fake it with weight + italic) */
.serif-italic {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.005em;
}

/* chrome gradient on text — used SPARINGLY */
.chrome {
  background: linear-gradient(180deg,
    #ffffff 0%,
    #d8d8d8 22%,
    #6c6c6c 47%,
    #1a1a1a 50%,
    #6e6e6e 53%,
    #d2d2d2 78%,
    #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ════════════════════════════════
   GRID HELPERS
   ════════════════════════════════ */

.shell { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.col-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.divider { height: 1px; background: var(--line); }
.divider-bright { height: 1px; background: var(--line-2); }

/* ════════════════════════════════
   NAV
   ════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad-x);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(5,5,5,0.78), rgba(5,5,5,0.45));
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, padding 0.3s;
}
.nav.flat { background: transparent; border-bottom-color: transparent; }
.nav-mark {
  display: flex; align-items: center; gap: 14px;
  justify-self: start;
}
.nav-mark img { width: 32px; height: 32px; filter: drop-shadow(0 0 14px rgba(255,255,255,0.18)); }
.nav-mark .wm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(.7,.1,.3,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ── Mobile nav toggle: typographic, not a hamburger ─────────── */
.hamburger {
  display: none; background: none; border: 0; padding: 6px 10px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); position: relative;
}
.hamburger .lab {
  display: inline-block; transition: opacity 0.22s ease, transform 0.22s ease;
}
.hamburger .close-lab { position: absolute; inset: 6px 10px; opacity: 0; transform: translateY(4px); pointer-events: none; }
.hamburger.on .open-lab { opacity: 0; transform: translateY(-4px); }
.hamburger.on .close-lab { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-end { display: none; }
  .hamburger { display: inline-block; justify-self: end; z-index: 101; }

  /* Full-screen takeover */
  .nav-links {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh; min-height: 100vh; width: 100vw;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 84px 0 0;
    background: #050505;
    backdrop-filter: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.42s ease, visibility 0s linear 0.42s;
    z-index: 100;
    overflow-y: auto;
    counter-reset: navnum;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.42s ease, visibility 0s;
  }
  .nav-links::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(0,0,0,0.55) 100%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
    pointer-events: none; mix-blend-mode: screen;
  }
  .nav-links a {
    display: grid; grid-template-columns: 64px 1fr auto;
    align-items: center; gap: 14px;
    padding: 22px var(--pad-x);
    border-top: 1px solid var(--line);
    font-family: var(--display); font-weight: 700;
    font-size: clamp(44px, 11vw, 88px); line-height: 1; letter-spacing: -0.01em;
    text-transform: uppercase; color: var(--ink);
    counter-increment: navnum;
    position: relative; z-index: 1;
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.7,.1,.3,1);
  }
  .nav-links a:last-of-type { border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a::before {
    content: "0" counter(navnum);
    font-family: var(--mono); font-weight: 400;
    font-size: 11px; letter-spacing: 0.22em;
    color: var(--ink-faint);
  }
  .nav-links.open a { opacity: 1; transform: translateY(0); }
  .nav-links.open a:nth-of-type(1) { transition-delay: 0.08s; }
  .nav-links.open a:nth-of-type(2) { transition-delay: 0.16s; }
  .nav-links.open a:nth-of-type(3) { transition-delay: 0.24s; }
  .nav-links.open a:nth-of-type(4) { transition-delay: 0.32s; }
  .nav-links a .arr-mob {
    font-family: var(--mono); font-size: 14px; color: var(--ink-faint);
  }

  /* mobile menu chrome — time/IG/CTA at the bottom */
  .nav-foot {
    margin-top: auto;
    padding: 28px var(--pad-x) 32px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 16px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-faint);
    position: relative; z-index: 1;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s cubic-bezier(.7,.1,.3,1) 0.4s;
  }
  .nav-foot a { color: var(--ink); padding: 0; border: 0; font-size: 11px; letter-spacing: 0.2em; font-family: var(--mono); font-weight: 400; opacity: 1; transform: none; transition: none; counter-increment: none; display: inline; }
  .nav-foot a::before, .nav-foot a::after { display: none; }
  .nav-foot .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .nav-links.open .nav-foot { opacity: 1; transform: translateY(0); }
}
@media (min-width: 981px) {
  .nav-foot { display: none; }
}

/* ════════════════════════════════
   BUTTONS
   ════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform 0.5s cubic-bezier(.7,.1,.3,1);
  z-index: -1;
}
.btn:hover { color: #000; }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform 0.4s; }
.btn:hover .arr { transform: translateX(6px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s, border-color 0.3s, padding 0.3s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); padding-right: 8px; }
.btn-ghost .arr { transition: transform 0.4s; }
.btn-ghost:hover .arr { transform: translateX(6px); }

/* ════════════════════════════════
   MARQUEE / TICKER
   ════════════════════════════════ */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: mqscroll 60s linear infinite;
  width: max-content;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-right: 32px;
  color: var(--ink);
}
.marquee-track > span > i {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ink);
  transform: rotate(45deg);
  margin: 0 22px;
  font-style: normal;
}
.marquee.invert { background: var(--paper); border-color: rgba(0,0,0,0.1); }
.marquee.invert .marquee-track > span { color: #0a0a0a; }
.marquee.invert .marquee-track > span > i { background: #0a0a0a; }
.marquee.slow .marquee-track { animation-duration: 90s; }
.marquee.reverse .marquee-track { animation-direction: reverse; }

@keyframes mqscroll {
  to { transform: translateX(-50%); }
}

/* ════════════════════════════════
   PAGE CHAPTER HEADER
   ════════════════════════════════ */

.chapter {
  padding: clamp(140px, 16vh, 220px) var(--pad-x) clamp(60px, 8vh, 100px);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.chapter-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.chapter-meta div b { color: var(--ink); font-weight: 500; }
.chapter h1 { font-family: var(--display); font-weight: 900; line-height: 0.84; letter-spacing: -0.005em; text-transform: uppercase; margin: 0; font-size: clamp(72px, 14vw, 240px); }
.chapter .lede {
  margin-top: 36px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
}
@media (max-width: 760px) {
  .chapter-meta { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */

.footer {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--pad-x) 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 22px;
  font-weight: 400;
}
.footer-mark {
  display: flex; flex-direction: column; gap: 18px;
}
.footer-mark .lockup { display: flex; align-items: center; gap: 14px; }
.footer-mark img { width: 44px; height: 44px; filter: drop-shadow(0 0 18px rgba(255,255,255,0.15)); }
.footer-mark .wm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-mark p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32ch;
}
.footer-list { display: flex; flex-direction: column; gap: 12px; }
.footer-list a {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s, padding 0.25s;
}
.footer-list a:hover { color: var(--ink); padding-left: 6px; }

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════ */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }

/* slow ambient pulse — for chrome glints */
@keyframes glint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.glint { animation: glint 4s ease-in-out infinite; }

/* live blinker */
@keyframes blink { 50% { opacity: 0.2; } }
.blink { animation: blink 1.4s steps(2, end) infinite; }

/* ════════════════════════════════
   CINEMATIC INTRO
   ════════════════════════════════ */

.intro {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.intro.gone { opacity: 0; transition: opacity 0.8s 0.3s; }
.intro.done { display: none; }
.intro-stack { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.intro-z {
  width: 88px; height: 88px;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.4));
  opacity: 0; transform: scale(0.7);
  animation: introZ 1.4s 0.2s cubic-bezier(.2,.7,.3,1) forwards;
}
.intro-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
  display: flex;
  overflow: hidden;
}
.intro-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: introUp 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}
.intro-word span:nth-child(1)  { animation-delay: 0.6s; }
.intro-word span:nth-child(2)  { animation-delay: 0.66s; }
.intro-word span:nth-child(3)  { animation-delay: 0.72s; }
.intro-word span:nth-child(4)  { animation-delay: 0.78s; }
.intro-word span:nth-child(5)  { animation-delay: 0.84s; }
.intro-word span:nth-child(6)  { animation-delay: 0.90s; }
.intro-word span:nth-child(7)  { animation-delay: 0.96s; }
.intro-word span:nth-child(8)  { animation-delay: 1.02s; }
.intro-bar {
  width: 220px; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.intro-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left;
  animation: introBar 1.4s 0.6s cubic-bezier(.6,0,.2,1) forwards;
}
.intro-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; animation: introFade 0.6s 1.2s forwards;
}
@keyframes introZ {
  0% { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes introUp { to { transform: translateY(0); } }
@keyframes introBar { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: 1; } }

/* ════════════════════════════════
   CURSOR DOT
   ════════════════════════════════ */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--ink); border-radius: 50%;
  pointer-events: none; z-index: 250;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s, height 0.25s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none; z-index: 250;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out, width 0.25s, height 0.25s;
  mix-blend-mode: difference;
}
@media (hover: none), (max-width: 980px) {
  .cursor-dot, .cursor-ring { display: none; }
}
