/* ============================================================
   layout.css — nav, logo, footer, hero, sections
   ============================================================ */

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(21,9,16);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-3);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 78px;
}
.nav__links {
  display: flex; gap: 30px; margin-left: auto;
  font-weight: 600; font-size: 15px;
}
.nav__links a { position: relative; padding: 4px 0; color: var(--cream); opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--magenta-bright); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: 14px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 11px; overflow: hidden;
  flex: 0 0 auto; box-shadow: 0 4px 16px -6px rgba(216,27,114,.7);
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo__words { display: flex; flex-direction: column; line-height: 1; }
.logo__words strong { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.logo__words em {
  font-style: normal; font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; margin-top: 3px;
}

/* burger */
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: none; position: relative; margin-left: auto; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream);
  transition: transform .3s, opacity .2s; border-radius: 2px;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile sheet */
.nav__sheet {
  position: fixed; inset: 78px 0 0 0; z-index: 89;
  background: var(--ink); padding: 36px var(--gut);
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  visibility: hidden; pointer-events: none;
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  border-top: 1px solid var(--ink-3);
}
.nav__sheet.is-open { transform: none; visibility: visible; pointer-events: auto; }
.nav__sheet a:not(.btn) {
  font-family: var(--display); font-weight: 700; font-size: 32px;
  padding: 12px 0; display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateX(-16px); transition: opacity .4s, transform .4s;
}
.nav__sheet.is-open a:not(.btn) { opacity: 1; transform: none; }
.nav__sheet a .mono { color: var(--magenta-bright); font-size: 15px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(216,27,114,.42), transparent 55%),
    radial-gradient(90% 80% at 12% 96%, rgba(255,77,157,.18), transparent 60%),
    linear-gradient(180deg, rgba(21,9,16,.2), rgba(21,9,16,.86) 78%, var(--ink));
}
.hero__bg .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.hero__bg .ph__tag { position: absolute; top: 96px; right: 24px; margin: 0; z-index: 3; }

/* big spinning aperture ghost behind text */
.hero__ghost {
  position: absolute; z-index: 1; pointer-events: none;
  right: -8%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 720px); aspect-ratio: 1; opacity: .14;
  mix-blend-mode: screen;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__ghost { animation: none; } }

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title { color: #fff; font-size: clamp(46px, 7.4vw, 112px); line-height: 0.96; max-width: 15ch; }
.hero__title .line { display: block; }
.hero__title .line > span { display: inline-block; }
.line--rot { margin-top: .02em; }

/* kinetic rotating word */
.rotator { display: inline-block; }
.rotator__word { display: inline-block; color: var(--magenta-bright); }

.hero__foot {
  margin-top: clamp(34px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px;
}
.hero__foot .lead { flex: 1 1 320px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.hero__scroll .dot { width: 22px; height: 36px; border: 1.5px solid var(--muted-on-dark); border-radius: 12px; position: relative; }
.hero__scroll .dot::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; border-radius: 3px;
  background: var(--magenta-bright); transform: translateX(-50%);
  animation: scrolly 1.8s ease-in-out infinite;
}
@keyframes scrolly { 0%,100%{ opacity:0; transform: translate(-50%,0);} 40%{opacity:1;} 70%{ opacity:0; transform: translate(-50%,12px);} }

/* marquee strip */
.marquee {
  background: var(--magenta); color: #fff; overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.18);
  padding-block: 16px;
}
.marquee__track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: slide 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -.01em; padding-inline: 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee__track span::after { content: "✶"; font-size: .7em; opacity: .8; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

/* ---------------- FOOTER ---------------- */
.footer { padding-block: clamp(56px, 7vw, 90px) 34px; border-top: 1px solid var(--ink-3); }
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer__h { color: var(--magenta-bright); margin-bottom: 6px; }
.footer__cols a { opacity: .82; transition: opacity .2s, color .2s; }
.footer__cols a:hover { opacity: 1; color: var(--pink-soft); }
.footer__bot {
  margin-top: clamp(40px, 6vw, 70px); padding-top: 22px; border-top: 1px solid var(--ink-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
