/* ============================================================
   HYPEHAUS — SHELL · NAV · HERO · FOOTER
   ============================================================ */

main { position: relative; z-index: 1; }

section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
}
.wrap { max-width: 1320px; margin: 0 auto; width: 100%; }
.wrap--narrow { max-width: 920px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 14px var(--gutter);
  background: rgba(2,2,2,0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--w06);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav__mark { width: 26px; height: 26px; object-fit: contain; }
.nav__word {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__link {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--w55);
  transition: color .4s var(--ease);
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }

.btn {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  padding: 12px 22px;
  border: 1px solid var(--w25);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--white); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--solid::before { background: var(--crimson); }
.btn--solid:hover { color: #fff; border-color: var(--crimson); }
.btn--ghost { border-color: var(--w12); color: var(--w70); }

.nav__menu { display: none; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--gutter) 116px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}
#hero-canvas.is-ready { opacity: 1; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1500px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--w55);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px 2px rgba(233,30,71,0.7);
  animation: pulseDot 2.6s var(--ease) infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.7); }
}
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.84;
  font-size: clamp(40px, 9.5vw, 154px);
  margin: 4px 0;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; white-space: nowrap; will-change: transform; }
.hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--w70);
  line-height: 1.55;
  text-wrap: balance;
}
.hero__sub em { font-style: italic; color: var(--white); font-family: var(--display); font-weight: 500; text-transform: none; }

.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--w40);
  text-decoration: none;
  cursor: pointer;
  transition: color .35s var(--ease);
}
.scrollcue:hover { color: var(--white); }
.scrollcue .bar {
  width: 1px; height: 42px;
  background: linear-gradient(var(--w40), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue .bar::after {
  content: "";
  position: absolute; top: -54px; left: 0;
  width: 1px; height: 54px;
  background: linear-gradient(transparent, var(--white));
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop { to { transform: translateY(108px); } }

/* ============================================================
   SECTION HEADER SHARED
   ============================================================ */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
.eyebrow-row .idx { color: var(--w32); }
.eyebrow-row .ln { flex: 0 0 46px; height: 1px; background: var(--w18); }

.bigstmt {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(32px, 5.2vw, 82px);
}
.bigstmt em {
  font-style: italic; font-weight: 500; text-transform: none;
  letter-spacing: -0.02em;
  color: var(--w70);
}

/* ============================================================
   FOOTER / JOIN
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vh, 110px) var(--gutter) 48px;
  border-top: 1px solid var(--w08);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer__brand .nav__word { font-size: 22px; }
.footer__col h4 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  color: var(--w40);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--w70);
  padding: 7px 0;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer__col a:hover { color: var(--white); transform: translateX(4px); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--w06);
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom .mono { color: var(--w32); }

/* gigantic background wordmark in footer */
.footer__ghost {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: clamp(70px, 19vw, 320px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--w08);
  text-align: center;
  margin-top: 50px;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__menu {
    display: flex; flex-direction: column; gap: 5px;
    width: 30px; cursor: pointer; background: none; border: 0;
  }
  .nav__menu span { height: 1.5px; background: var(--white); display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}
