/* Electric Pancake LLC — "The Midnight Stack"
   One stylesheet, no build step. Dark, cinematic, served hot. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0b0907;          /* Midnight Griddle */
  --raised: #17130f;      /* Cast iron */
  --raised-2: #201a14;
  --cream: #f3e9d8;       /* Cream Soda */
  --cream-80: rgba(243, 233, 216, 0.8);
  --amber: #d9822b;       /* Maple Amber */
  --amber-deep: #a9561a;
  --butter: #f5c76a;      /* Butter Gold */
  --arc: #9fdcff;         /* Arc Blue */
  --cherry: #ff4f7b;      /* Neon Cherry */
  --smoke: #8c8073;       /* Smoke */
  --hair: rgba(243, 233, 216, 0.12);
  --hair-amber: rgba(217, 130, 43, 0.45);

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(96px, 14vw, 200px);
  --radius: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-syrup: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--bg); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--arc);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Film grain + vignette that tie the page to the footage */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}
.kicker__drop {
  width: 10px; height: 13px;
  flex: none;
  background: var(--amber);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(180deg);
  box-shadow: 0 0 14px rgba(217, 130, 43, 0.55);
}
.kicker__num { color: var(--butter); font-variant-numeric: tabular-nums; white-space: nowrap; }

.display {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--butter);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.lede {
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
  line-height: 1.65;
  color: var(--cream-80);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(217, 130, 43, 0.75), 0 0 0 1px rgba(245, 199, 106, 0.35) inset;
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(243, 233, 216, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--butter);
  color: var(--butter);
  box-shadow: none;
}
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.site-header.is-scrolled {
  background: rgba(11, 9, 7, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--hair-amber);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 10px;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-80);
  padding: 8px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--butter);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover { color: var(--butter); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 767px) {
  .site-header__inner { height: 64px; }
  .nav a:not(.nav__cta) { display: none; }
  .brand__name { font-size: 1.1875rem; }
  .brand__mark { width: 30px; height: 30px; }
}
@media (max-width: 359px) {
  .brand__name { font-size: 1.0625rem; }
}

/* ---------- Syrup scroll line (desktop) ---------- */
.syrup-line {
  position: fixed;
  left: clamp(14px, 1.6vw, 26px);
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
.syrup-line__track {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(243, 233, 216, 0.08) 12%, rgba(243, 233, 216, 0.08) 88%, transparent);
}
.syrup-line__fill {
  position: absolute; left: 0; top: 0; width: 2px;
  height: 100%;
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(to bottom, rgba(217, 130, 43, 0), var(--amber) 18%, var(--butter));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(217, 130, 43, 0.6);
}
.syrup-line__drop {
  position: absolute;
  left: -4px;
  top: calc(var(--progress, 0) * 100%);
  width: 10px; height: 13px;
  margin-top: -3px;
  background: var(--butter);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(180deg);
  box-shadow: 0 0 16px rgba(245, 199, 106, 0.8);
}
@media (min-width: 1100px) {
  .syrup-line { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #050403;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* below 50% pushes the stack right, away from the headline */
  object-position: 40% 50%;
}
.hero__media video {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero__media video.is-playing { opacity: 1; }

/* The dark side of the scrim is anchored to the text column, not to a share of
   the viewport, so the copy never lands on the lit stack at any width. */
.hero {
  /* headline size, and where the text column ends: the wrap's left edge plus
     the wider of "Stacked." (~4.2em) and the intro line */
  --hero-fs: clamp(3.5rem, min(10.2vw, 13vh), 9.5rem);
  --text-right: calc(max(var(--gutter), 50% - (var(--max) / 2)) + max(var(--hero-fs) * 4.2, 26rem));
}
/* var() hides an unsupported unit until computed-value time, so gate svh here */
@supports (height: 1svh) {
  .hero { --hero-fs: clamp(3.5rem, min(10.2vw, 13svh), 9.5rem); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(11, 9, 7, 0.9) 0%,
      rgba(11, 9, 7, 0.78) var(--text-right),
      rgba(11, 9, 7, 0.3) calc(var(--text-right) + 200px),
      rgba(11, 9, 7, 0) calc(var(--text-right) + 400px)),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0) 26%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.72) 0%, rgba(11, 9, 7, 0) 22%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(88px, 13vh, 120px);
  padding-top: clamp(88px, 13svh, 120px);
  padding-bottom: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(96px, 12svh, 140px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.5vw, 28px);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}
.live-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--arc);
  box-shadow: 0 0 0 0 rgba(159, 220, 255, 0.6), 0 0 12px rgba(159, 220, 255, 0.9);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(159, 220, 255, 0.55), 0 0 12px rgba(159, 220, 255, 0.9); }
  70% { box-shadow: 0 0 0 10px rgba(159, 220, 255, 0), 0 0 12px rgba(159, 220, 255, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(159, 220, 255, 0), 0 0 12px rgba(159, 220, 255, 0.9); }
}

.hero__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: var(--hero-fs);
  line-height: 0.86;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(22px, 3vw, 36px);
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.08em 0.1em 0;
  margin-bottom: -0.08em;
}
.hero__line > span {
  display: inline-block;
  will-change: transform, clip-path;
}
/* let the neon halo on "Electric." breathe past its line box */
.hero__line--3 { overflow: visible; }
.hero__line--1 > span { color: var(--butter); }
.hero__line--2 > span { color: var(--cream); }
.hero__line--3 > span { color: var(--cream); }

.hero__sub {
  max-width: min(40ch, max(var(--hero-fs) * 4.2, 26rem)); /* stay inside the scrim */
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.6;
  color: var(--cream);
  text-wrap: pretty;
}
.hero__sub-short { display: none; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: clamp(26px, 3.5vw, 40px);
}

.hero__foot {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(20px, 3vw, 32px);
}
.hero__foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  border-radius: 6px;
}
.scroll-cue__bar {
  position: relative;
  width: 1px; height: 38px;
  background: rgba(243, 233, 216, 0.18);
  overflow: hidden;
}
.scroll-cue__bar::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--butter);
  animation: drip 2.2s var(--ease-syrup) infinite;
}
@keyframes drip {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* Fixed, so the one switch that stops every loop is reachable anywhere on the page. */
.motion-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 233, 216, 0.24);
  background: rgba(11, 9, 7, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.motion-toggle:hover { border-color: var(--butter); color: var(--butter); }
.motion-toggle svg { width: 22px; height: 22px; flex: none; }
.motion-toggle [data-icon="play"] { display: none; }
.motion-toggle.is-paused [data-icon="pause"] { display: none; }
.motion-toggle.is-paused [data-icon="play"] { display: block; }
.motion-toggle[hidden] { display: none; }

@media (max-width: 767px) {
  .motion-toggle { justify-content: center; min-width: 44px; padding: 10px; }
  .motion-toggle__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .scroll-cue { display: none; }
  .hero__title { font-size: clamp(3.5rem, 19vw, 6.5rem); }
}

/* Portrait screens get the vertical cut of the film (same query as the
   <picture> source and site.js). Its stack sits in the lower middle, so the
   headline takes the dark top of the frame and the short line + buttons sit
   down on the plate. Landscape screens keep the side scrim at any width. */
@media (orientation: portrait) and (max-width: 1199px) {
  .hero { align-items: stretch; }
  .hero__media video,
  .hero__media img { object-position: 58% 62%; }
  .hero__content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 84px;
    padding-bottom: 88px;
  }
  .hero__sub { margin-top: auto; max-width: 34ch; }
  .hero__sub-long { display: none; }
  .hero__sub-short { display: inline; }
  .hero__eyebrow,
  .hero__sub { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 18px rgba(11, 9, 7, 0.95); }
  .hero__scrim {
    background:
      linear-gradient(0deg, var(--bg) 0, rgba(11, 9, 7, 0.9) 120px, rgba(11, 9, 7, 0.74) 240px, rgba(11, 9, 7, 0.35) 330px, rgba(11, 9, 7, 0) 400px),
      linear-gradient(180deg, rgba(11, 9, 7, 0.86) 0, rgba(11, 9, 7, 0.7) 150px, rgba(11, 9, 7, 0.45) 260px, rgba(11, 9, 7, 0.3) 330px, rgba(11, 9, 7, 0) 390px);
  }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .hero__content { padding-top: 120px; padding-bottom: 120px; }
  .hero__scrim {
    background:
      linear-gradient(0deg, var(--bg) 0, rgba(11, 9, 7, 0.9) 160px, rgba(11, 9, 7, 0.74) 260px, rgba(11, 9, 7, 0.35) 370px, rgba(11, 9, 7, 0) 470px),
      linear-gradient(180deg, rgba(11, 9, 7, 0.86) 0, rgba(11, 9, 7, 0.7) 260px, rgba(11, 9, 7, 0.45) 410px, rgba(11, 9, 7, 0) 520px);
  }
}

/* Short portrait phones (SE-class): smaller headline so the stack still shows
   between the headline and the buttons. */
@media (max-width: 767px) and (max-height: 700px) and (orientation: portrait) {
  .hero__title { font-size: clamp(2.75rem, min(19vw, 9vh), 6.5rem); margin-bottom: 14px; }
  .hero__content { padding-top: 76px; padding-bottom: 24px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__ctas { margin-top: 18px; gap: 10px; }
  .hero__ctas .btn { min-height: 46px; padding-block: 11px; }
}

/* Landscape phones and other very short screens: compact desktop layout so
   the headline, line and buttons all fit above the fold. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    --hero-fs: clamp(2.5rem, 11vh, 3.5rem);
    /* the column here is just the short line and the two buttons */
    --text-right: calc(max(var(--gutter), 50% - (var(--max) / 2)) + 22rem);
  }
  .hero__scrim {
    background:
      linear-gradient(90deg,
        rgba(11, 9, 7, 0.9) 0%,
        rgba(11, 9, 7, 0.78) var(--text-right),
        rgba(11, 9, 7, 0.3) calc(var(--text-right) + 140px),
        rgba(11, 9, 7, 0) calc(var(--text-right) + 280px)),
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0) 26%),
      linear-gradient(180deg, rgba(11, 9, 7, 0.72) 0%, rgba(11, 9, 7, 0) 22%);
  }
  .hero__sub { max-width: 22rem; }
  .hero__title { font-size: var(--hero-fs); margin-bottom: 12px; }
  .hero__content { padding-top: 72px; padding-bottom: 20px; }
  .hero__eyebrow { margin-bottom: 10px; }
  .hero__sub-long { display: none; }
  .hero__sub-short { display: inline; }
  .hero__ctas { margin-top: 16px; }
  .hero__foot { display: none; }
}

/* Laptops with short windows: a slightly smaller intro line keeps it to four
   lines, so the buttons and scroll cue stay above the fold. */
@media (min-width: 768px) and (orientation: landscape) and (max-height: 820px) {
  .hero__sub { font-size: 1.0625rem; }
}

/* Hero entrance (only when JS marks the page ready and motion is OK) */
.js .hero__line > span { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
.js .hero__eyebrow,
.js .hero__sub,
.js .hero__ctas,
.js .hero__foot { opacity: 0; }
.js.is-ready .hero__line > span {
  animation: pour 1.05s var(--ease-out) forwards;
}
.js.is-ready .hero__line--1 > span { animation-delay: 0.15s; }
.js.is-ready .hero__line--2 > span { animation-delay: 0.33s; }
.js.is-ready .hero__line--3 > span { animation: pour-glow 1.05s var(--ease-out) 0.51s forwards, neon-catch 1.6s linear 1.5s forwards; }
.js.is-ready .hero__eyebrow { animation: fade-up 0.9s var(--ease-out) 0.05s forwards; }
.js.is-ready .hero__sub { animation: fade-up 0.9s var(--ease-out) 0.75s forwards; }
.js.is-ready .hero__ctas { animation: fade-up 0.9s var(--ease-out) 0.9s forwards; }
.js.is-ready .hero__foot { animation: fade-up 0.9s var(--ease-out) 1.2s forwards; }

@keyframes pour {
  from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
  to { clip-path: inset(0 0 -20% 0); transform: none; }
}
/* same wipe, but ends unclipped so the neon glow isn't cut into a box */
@keyframes pour-glow {
  from { clip-path: inset(0 -1em 100% -1em); transform: translateY(0.35em); }
  to { clip-path: inset(-1em); transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes neon-catch {
  0% { text-shadow: none; color: var(--cream); }
  4% { text-shadow: 0 0 18px rgba(159, 220, 255, 0.9), 0 0 2px #fff; color: #eaf8ff; }
  8% { text-shadow: none; color: rgba(243, 233, 216, 0.45); }
  12% { text-shadow: 0 0 24px rgba(159, 220, 255, 0.95), 0 0 3px #fff; color: #f2fbff; }
  16% { text-shadow: none; color: rgba(243, 233, 216, 0.55); }
  22% { text-shadow: 0 0 30px rgba(159, 220, 255, 0.9), 0 0 60px rgba(159, 220, 255, 0.4); color: #f4fbff; }
  100% { text-shadow: 0 0 22px rgba(159, 220, 255, 0.45), 0 0 54px rgba(159, 220, 255, 0.18); color: #f3f8f7; }
}

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.intro__heading {
  grid-column: 1 / span 7;
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
}
.intro__body {
  grid-column: 8 / span 5;
  display: grid;
  gap: 22px;
}
@media (max-width: 899px) {
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__heading,
  .intro__body { grid-column: 1 / -1; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--raised);
  border-block: 1px solid var(--hair-amber);
  padding-block: clamp(18px, 2.4vw, 26px);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 10vw, 160px);
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--raised), rgba(23, 19, 15, 0)); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--raised), rgba(23, 19, 15, 0)); }
.marquee__track {
  display: flex;
  width: max-content;
}
/* only drift when site.js is running, so the pause switch is always available */
.site-ready .marquee__track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  padding-right: clamp(22px, 3vw, 40px);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--butter);
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(245, 199, 106, 0.25);
}
.marquee__bolt {
  width: 0.55em; height: 0.8em;
  flex: none;
  color: var(--arc);
  filter: drop-shadow(0 0 6px rgba(159, 220, 255, 0.7));
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- The stack (portfolio) ---------- */
.stack__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.stack__heading {
  grid-column: 1 / span 7;
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
}
.stack__intro { grid-column: 8 / span 5; }
@media (max-width: 899px) {
  .stack__head { grid-template-columns: minmax(0, 1fr); }
  .stack__heading,
  .stack__intro { grid-column: 1 / -1; }
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
@media (max-width: 899px) {
  .stack__grid { grid-template-columns: minmax(0, 1fr); }
}

@property --arc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--raised);
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
/* hairline border + one-shot electric arc tracing it on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--hair);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 3;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--arc-angle), transparent 0deg, transparent 300deg, rgba(159, 220, 255, 0.15) 320deg, var(--arc) 350deg, #fff 357deg, rgba(159, 220, 255, 0.6) 359deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 18px 60px -28px rgba(245, 199, 106, 0.35);
}
.card:hover::after,
.card:focus-within::after {
  animation: arc-trace 1.5s var(--ease-syrup) forwards;
}
@keyframes arc-trace {
  0% { --arc-angle: 0deg; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { --arc-angle: 360deg; opacity: 0; }
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #000;
}
.card__media img,
.card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity 0.6s;
}
.card__media video { opacity: 0; }
.card__media video.is-playing { opacity: 1; }
.card:hover .card__media img,
.card:hover .card__media video,
.card:focus-within .card__media img,
.card:focus-within .card__media video { transform: scale(1.04); }
.card__media::after {
  /* shared grade: warm shadows + vignette + butter glow rising on hover */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(11, 9, 7, 0.55) 100%),
    linear-gradient(0deg, rgba(23, 19, 15, 0.85) 0%, rgba(23, 19, 15, 0) 30%),
    linear-gradient(0deg, rgba(245, 199, 106, 0.22), rgba(245, 199, 106, 0) 45%);
  background-size: 100% 100%, 100% 100%, 100% 0%;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.8s var(--ease-out);
  pointer-events: none;
}
.card:hover .card__media::after,
.card:focus-within .card__media::after { background-size: 100% 100%, 100% 100%, 100% 100%; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: clamp(24px, 3vw, 40px);
}
.card__ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}
.card__ticket .live-dot { width: 7px; height: 7px; }
.card__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-size: clamp(2.375rem, 3.8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.card__oneliner {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1;
  font-size: clamp(1.1875rem, 1.2vw + 0.8rem, 1.5rem);
  line-height: 1.3;
  color: var(--butter);
  text-wrap: balance;
}
.card__desc {
  color: var(--cream-80);
  max-width: 58ch;
  text-wrap: pretty;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  position: relative;
  padding: 7px 12px;
  border: 1px dashed rgba(140, 128, 115, 0.7);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--cream-80);
  white-space: nowrap;
}
.card__cta {
  margin-top: auto;
  padding-top: 10px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
  border-bottom: 1px solid var(--hair-amber);
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--butter); border-color: var(--butter); }
.text-link .btn__arrow { transition: transform 0.35s var(--ease-out); }
.text-link:hover .btn__arrow { transform: translateX(4px); }
/* make the whole card clickable via the CTA */
.card__cta .text-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: var(--radius);
}

/* Lilo Kiri: the cinematic coming-soon strip */
.card--soon {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.card--soon .card__media {
  aspect-ratio: auto;
  min-height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
}
.card--soon .card__media img,
.card--soon .card__media video {
  filter: saturate(0.82) contrast(0.98);
  animation: bob 6s ease-in-out infinite;
  inset: -6px 0;
  height: calc(100% + 12px);
}
.card--soon:hover .card__media img,
.card--soon:hover .card__media video { transform: scale(1.03); }
.card--soon .card__body { justify-content: center; }
@keyframes bob {
  0%, 100% { translate: 0 -3px; }
  50% { translate: 0 3px; }
}
.stamp {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 2;
  padding: 10px 16px 9px;
  border: 2px solid var(--cherry);
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe3ea;
  background: rgba(11, 9, 7, 0.72);
  transform: rotate(-6deg);
  text-shadow: 0 0 8px rgba(255, 79, 123, 0.6);
  box-shadow: 0 0 18px rgba(255, 79, 123, 0.55), inset 0 0 14px rgba(255, 79, 123, 0.35);
}
.soon-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
}
.soon-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 10px rgba(255, 79, 123, 0.8);
}
@media (max-width: 899px) {
  .card--soon { grid-template-columns: minmax(0, 1fr); }
  .card--soon .card__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* Plates sliding down the counter */
/* Uses the standalone `translate` property so it never fights the cards'
   hover `transform` lift. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease-out) var(--delay, 0s), translate 0.9s var(--ease-out) var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; translate: none; }
.js .card.reveal {
  transition:
    opacity 0.9s var(--ease-out) var(--delay, 0s),
    translate 0.9s var(--ease-out) var(--delay, 0s),
    transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
}

/* ---------- House rules ---------- */
.rules__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.rules__heading { font-size: clamp(2.75rem, 6.2vw, 5.75rem); }
.rules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 96px);
  counter-reset: rule;
}
.rule {
  position: relative;
  padding-top: clamp(56px, 6vw, 84px);
  border-top: 1px solid var(--hair);
}
.rule__num {
  position: absolute;
  top: -0.12em;
  right: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 199, 106, 0.32);
  pointer-events: none;
  user-select: none;
}
.rule__title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 0;
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  max-width: 18ch;
}
.rule__body { position: relative; color: var(--cream-80); max-width: 46ch; }
@media (max-width: 1023px) {
  .rule { padding-top: clamp(76px, 10vw, 96px); }
  .rule__num { font-size: clamp(5rem, 9vw, 7rem); }
}
@media (max-width: 767px) {
  .rules__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 130, 43, 0.22), rgba(217, 130, 43, 0.08) 45%, rgba(217, 130, 43, 0) 70%);
  pointer-events: none;
  z-index: -1;
}
.contact .kicker { justify-content: center; }
.contact__heading {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.contact__body {
  margin-inline: auto;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
  color: var(--cream-80);
  text-wrap: pretty;
}
.contact__email {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--f-display);
  font-weight: 450;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 0;
  font-size: clamp(1.5rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  color: var(--butter);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(245, 199, 106, 0.45);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.25s, text-shadow 0.25s;
}
.contact__email:hover {
  text-decoration-color: var(--butter);
  text-shadow: 0 0 30px rgba(245, 199, 106, 0.45);
}
.contact__cta { margin-top: clamp(28px, 4vw, 40px); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: 28px 96px; /* clears the fixed pause pill */
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--smoke);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}
.site-footer__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a {
  text-decoration: none;
  color: var(--cream-80);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.site-footer a:hover { color: var(--butter); border-color: var(--butter); }

/* ---------- 404 ---------- */
.lost {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
}
.lost__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lost > :not(.lost__bg) { position: relative; z-index: 1; }
.lost__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  opacity: 0.2;
}
.lost__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 50%, rgba(11, 9, 7, 0.2), var(--bg));
}
.neon-86 {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 22px 10px;
  border: 3px solid var(--cherry);
  border-radius: 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: #ffe3ea;
  text-shadow: 0 0 12px rgba(255, 79, 123, 0.95), 0 0 40px rgba(255, 79, 123, 0.65);
  box-shadow: 0 0 24px rgba(255, 79, 123, 0.6), inset 0 0 22px rgba(255, 79, 123, 0.4);
  animation: stutter 2.2s linear 0.4s both;
}
@keyframes stutter {
  0% { opacity: 0.08; }
  6% { opacity: 1; }
  9% { opacity: 0.15; }
  14% { opacity: 0.9; }
  17% { opacity: 0.2; }
  30% { opacity: 1; }
  33% { opacity: 0.4; }
  38%, 100% { opacity: 1; }
}
.lost__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.lost__body {
  max-width: 40ch;
  margin: 0 auto 32px;
  color: var(--cream-80);
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
  text-wrap: pretty;
}

/* If site.js never runs (blocked, offline), don't leave content hidden. */
.js:not(.site-ready) .reveal { animation: failsafe-in 0.6s ease 1.5s forwards; }
@keyframes failsafe-in { to { opacity: 1; translate: none; } }

/* The hero's pause button stops every loop on the page. */
.motion-paused .live-dot,
.motion-paused .scroll-cue__bar::after,
.motion-paused .card--soon .card__media img,
.motion-paused .card--soon .card__media video,
html:not(.site-ready) .live-dot,
html:not(.site-ready) .scroll-cue__bar::after,
html:not(.site-ready) .card--soon .card__media img,
html:not(.site-ready) .card--soon .card__media video { animation-play-state: paused; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .hero__line > span { clip-path: none; transform: none; }
  .js .hero__eyebrow,
  .js .hero__sub,
  .js .hero__ctas,
  .js .hero__foot,
  .js .reveal { opacity: 1; transform: none; translate: none; }
  .hero__line--3 > span { text-shadow: 0 0 22px rgba(159, 220, 255, 0.4); }
  .marquee__track,
  .site-ready .marquee__track { animation: none; }
  .card--soon .card__media img,
  .card--soon .card__media video { animation: none; }
  .neon-86 { animation: none; }
  .live-dot { animation: none; }
  .scroll-cue__bar::after { animation: none; top: 30%; }
}

/* ---------- Print ---------- */
@media print {
  .grain, .syrup-line, .site-header, .hero__media, .motion-toggle, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
