/* ==========================================================================
   hypehouse.la — shared stylesheet
   Design tokens, base styles and the component set used across all pages.
   ========================================================================== */

/* ------------------------------------------------------------- fonts ---- */
/* Self-hosted (assets/fonts/) — no third-party requests. The Archivo files
   are variable fonts: one file per subset covers weights 100–900. The
   unicode-range splits mirror Google Fonts', so a browser only downloads the
   subsets a page actually uses. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0E0D12;
  --ink-deep: #07060D;
  --cream: #F7F2E6;
  --orange: #FF4A2E;
  --orange-soft: #FF8A6E;
  --gold: #FFC94A;
  --tan: #8A6A44;
  --clay: #C2543F;

  --line: rgba(247, 242, 230, 0.14);
  --line-strong: rgba(247, 242, 230, 0.22);
  --text-dim: rgba(247, 242, 230, 0.78);
  --text-dimmer: rgba(247, 242, 230, 0.55);
  --text-faint: rgba(247, 242, 230, 0.38);

  --pad-x: clamp(18px, 5vw, 72px);
  --nav-h: 66px;
  --measure: 1240px;
  --measure-narrow: 1080px;

  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo Black", Archivo, system-ui, sans-serif;
}

/* --------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--orange); }

p { text-wrap: pretty; }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

input, textarea, select, button { font-family: var(--sans); }
input::placeholder, textarea::placeholder { color: rgba(247, 242, 230, 0.34); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--orange); color: var(--ink); }

@keyframes hhBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes hhFlicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.55; }
  52% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Screen-reader-only text, and the skip link that reveals itself on focus. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

/* ---------------------------------------------------------------- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(14px, 3vw, 40px);
  background: rgba(14, 13, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 242, 230, 0.12);
}

/* The home page floats the nav over the hero instead of pushing it down. */
.nav--fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(14, 13, 18, 0.74);
}

.nav__logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav__logo img {
  height: clamp(30px, 7vw, 42px);
  width: auto;
  mix-blend-mode: screen;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 0 1 auto;
  min-width: 0;
}

/* Current page marker in the nav. */
.nav__links [aria-current="page"] { color: var(--orange); }

/* -------------------------------------------------------------- type ---- */

/* Small orange kicker above a heading, with an optional rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--muted { color: var(--text-dimmer); }
.eyebrow--tan { color: var(--tan); }

.eyebrow__rule {
  width: 26px;
  height: 1px;
  background: var(--orange);
  flex: 0 0 auto;
}

.h-hero {
  margin: 0;
  font-size: clamp(36px, 7vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.h-section {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
}

.body-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--cream); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 242, 230, 0.4);
}
.btn--ghost:hover {
  background: rgba(247, 242, 230, 0.08);
  color: var(--cream);
  border-color: var(--cream);
}

.btn--quiet {
  background: transparent;
  color: var(--orange);
  border: 1px solid rgba(255, 74, 46, 0.6);
}
.btn--quiet:hover { background: rgba(255, 74, 46, 0.12); color: var(--orange); }

.btn--lg { padding: 16px 30px; font-size: 13px; }

/* The nav's "work with us" pill. */
.btn--nav {
  padding: 10px clamp(11px, 2.6vw, 16px);
  font-size: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* -------------------------------------------------------------- cards ---- */

.card {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Outlined-on-cream variant used in the divisions grid. */
.card--outline {
  border: 1.5px solid var(--ink);
  background: #FFFFFF;
  border-radius: 22px;
}

.card--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.card__index {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.card__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.06;
  letter-spacing: 0;
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 242, 230, 0.74);
}
.card--outline .card__text, .card--cream .card__text { color: rgba(14, 13, 18, 0.72); }

.card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ------------------------------------------------------------- layout ---- */

.wrap { max-width: var(--measure); margin: 0 auto; }
.wrap--narrow { max-width: var(--measure-narrow); margin: 0 auto; }
.wrap--mid { max-width: 1180px; margin: 0 auto; }

.section { padding: clamp(64px, 10vh, 130px) var(--pad-x); }

/* Auto-fitting grid; the min column width is set per instance. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr));
  gap: var(--gap, clamp(18px, 2vw, 32px));
}

/* --------------------------------------------------------------- pill ---- */

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------- stats ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(247, 242, 230, 0.16);
  border-bottom: 1px solid rgba(247, 242, 230, 0.16);
}

.stat__num {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num span { color: var(--orange); }

.stat__label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

/* ----------------------------------------------------- scroll story ---- */

/* The tall scroll container. --p (0 → 1) is written to it by site.js and
   every beat below reveals off a clamp() range of it — no per-element JS. */
.act {
  --p: 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.act__stage {
  position: sticky;
  top: 0;
  z-index: 5;
  flex: 1 1 460px;
  align-self: flex-start;
  height: min(100svh, 78vw);
  min-height: 300px;
  overflow: hidden;
  background: var(--ink);
}

.act__sky { position: absolute; inset: 0; }

.act__text {
  position: relative;
  z-index: 1;
  flex: 1 1 400px;
  min-width: 0;
  padding: 0 clamp(18px, 4vw, 64px);
}

.chapter {
  min-height: 112vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20vh 0 8vh;
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * 30px));
}

.chapter__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.chapter__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.02;
}

.chapter__body {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.62;
  color: rgba(247, 242, 230, 0.8);
}
.chapter__body:last-child { margin-bottom: 0; }

/* The aside panel used for the "launchpad" side story. */
.aside-panel {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 38px);
  background: rgba(247, 242, 230, 0.04);
}

/* Timeline chips over the stage. */
.chip {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(14, 13, 18, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 230, 0.2);
  opacity: var(--t);
}
.chip--now { color: var(--ink); background: var(--orange); border-color: var(--orange); }

.chip-track {
  position: absolute;
  top: 82px;
  left: clamp(14px, 3vw, 34px);
  height: 26px;
}

.progress {
  position: absolute;
  bottom: 18px;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  height: 3px;
  background: rgba(247, 242, 230, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.progress__fill { width: calc(var(--p) * 100%); height: 100%; background: var(--orange); }

/* Night wash over the stage in the later beats. */
.act__night {
  position: absolute;
  inset: 0;
  background: var(--ink-deep);
  pointer-events: none;
  opacity: calc(var(--t) * 0.66);
}

/* ------------------------------------------------------------- frames ---- */

/* Photography placeholder. Swap the <img> src in and the caption styling
   stays put; the frame keeps its aspect ratio either way. */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(14, 13, 18, 0.06);
  border: 1px dashed rgba(14, 13, 18, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame--dark {
  background: rgba(247, 242, 230, 0.05);
  border-color: rgba(247, 242, 230, 0.24);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame__label {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 13, 18, 0.42);
}
.frame--dark .frame__label { color: rgba(247, 242, 230, 0.42); }

.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--3x4 { aspect-ratio: 3 / 4; }

/* --------------------------------------------------------------- form ---- */

.form-shell {
  border: 1px solid rgba(247, 242, 230, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(247, 242, 230, 0.04);
}

.tabs { position: relative; }
.tabs__row { display: grid; grid-template-columns: repeat(3, 1fr); }

.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 242, 230, 0.2);
  color: var(--cream);
  padding: 20px 10px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.tab:hover { background: rgba(247, 242, 230, 0.06); }
.tab[aria-selected="true"] { background: rgba(247, 242, 230, 0.06); }

.tabs__indicator {
  --i: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33.3333%;
  height: 3px;
  background: var(--orange);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.form-body { padding: clamp(24px, 3.4vw, 46px); }

.form-blurb {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 54ch;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 28px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }

.field__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 230, 0.5);
}

.field__input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 242, 230, 0.28);
  color: var(--cream);
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 160ms ease;
}
.field__input:focus { border-bottom-color: var(--orange); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--orange); }
textarea.field__input { resize: vertical; }

.field__error {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  min-height: 0;
}
.field__error:empty { display: none; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.form-note { font-size: 12px; color: rgba(247, 242, 230, 0.45); }
.form-note a { color: rgba(247, 242, 230, 0.7); text-decoration: underline; }

/* Honeypot — off-screen, never shown to a human, filled only by bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: clamp(20px, 4vh, 50px) 0;
}

.form-success__title {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1.05;
}

.is-hidden { display: none !important; }

/* ----------------------------------------------------------- timeline ---- */

.timeline { border-top: 1px solid rgba(247, 242, 230, 0.16); }

.timeline__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(247, 242, 230, 0.1);
}
.timeline__row:last-of-type { border-bottom: 0; }

.timeline__year {
  font-family: var(--display);
  font-size: 18px;
  color: var(--orange);
}

.timeline__text { font-size: 16px; line-height: 1.6; color: var(--text-dim); }

@media (max-width: 520px) {
  .timeline__row { grid-template-columns: 1fr; gap: 8px; }
}

/* ------------------------------------------------------------- footer ---- */

.footer {
  position: relative;
  z-index: 10;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vh, 72px) var(--pad-x) 40px;
}

.footer__cols {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 32ch; }
.footer__brand img { height: 58px; width: auto; mix-blend-mode: screen; align-self: flex-start; }
.footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dimmer); }

.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }

.footer__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 230, 0.4);
}

.footer__meta {
  max-width: var(--measure);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 230, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Compact single-line footer used on the interior pages. */
.footer--slim {
  padding: 34px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
