:root {
  --bg: #000;
  --text: #fff;
  --muted: #9a9a9a;
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --ink: #000;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 2rem));
  --header: 4rem;
  --chapter: 0;
}

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

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ========== SCROLL BACKGROUND ========== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}

.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(60deg) translateY(var(--grid-y, 0%)) scale(1.4);
  transform-origin: center top;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

body[data-chapter="0"] .bg-grid {
  opacity: 0.12;
}
body[data-chapter="1"] .bg-grid,
body[data-chapter="2"] .bg-grid {
  opacity: 0.45;
}
body[data-chapter="3"] .bg-grid,
body[data-chapter="4"] .bg-grid {
  opacity: 0.28;
}
body[data-chapter="5"] .bg-grid {
  opacity: 0.18;
}

.bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  top: var(--scan-y, -20%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.04),
    transparent
  );
  mix-blend-mode: screen;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0, 0, 0, 0.75) 75%),
    linear-gradient(to top, #000 0%, transparent 30%);
}

/* Chapter tint on whole page via body */
body[data-chapter="0"] {
  --glow: 0.05;
}
body[data-chapter="4"] .bg-vignette,
body[data-chapter="5"] .bg-vignette {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0, 0, 0, 0.7) 75%),
    linear-gradient(to top, #000 0%, transparent 30%);
}

/* ========== STORY CHROME ========== */
.story-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
}

.story-chrome-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.story-chrome-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
}

.story-chrome-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem var(--wrap);
  margin-inline: auto;
  width: var(--wrap);
  max-width: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.is-story .story-chrome-meta {
  opacity: 1;
  transform: none;
}

#chrome-chapter {
  color: #fff;
  font-weight: 700;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  /* Shell always present; individual .rise pieces fly in via GSAP */
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--wrap);
  margin-inline: auto;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo:hover {
  opacity: 1;
}

.logo-mark {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
}

.logo-text {
  /* types on after frame */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s ease 0.15s;
}

body[data-chapter="2"] .logo-text,
body[data-chapter="3"] .logo-text,
body[data-chapter="4"] .logo-text,
body[data-chapter="5"] .logo-text,
body.story-done .logo-text {
  clip-path: inset(0 0 0 0);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: #fff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.6rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.7rem;
  background: transparent;
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  opacity: 1;
}

.btn-sm {
  padding: 0.48rem 0.85rem;
  min-height: 2.15rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn.full {
  width: 100%;
}

/* ========== STORY STAGE ========== */
.story {
  position: relative;
  z-index: 1;
}

.story-sticky {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header) + 1.25rem) 0 2.5rem;
  /* GSAP ScrollTrigger pins this element while the story plays */
}

.story-stage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  width: var(--wrap);
}

.story-left {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  min-height: 22rem;
}

/* ===== Landing (visible before scroll) ===== */
.landing-intro {
  position: relative;
  z-index: 2;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.landing-brand .logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
}

.landing-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.landing-title em {
  font-style: normal;
  color: var(--muted);
  display: inline-block;
  animation: titleBreathe 3.6s ease-in-out infinite;
}

@keyframes titleBreathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.landing-sub {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 28rem;
  line-height: 1.55;
}

.scroll-invite {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: invitePulse 2.4s ease-in-out infinite;
}

@keyframes invitePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

.scroll-mouse {
  width: 1.4rem;
  height: 2.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}

.scroll-mouse i {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 0.22rem;
  height: 0.4rem;
  margin-left: -0.11rem;
  border-radius: 99px;
  background: #fff;
  animation: mouseWheel 1.6s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(0.55rem);
  }
}

/* Story copy sits under landing, swapped in by GSAP */
.story-copy {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  max-width: 34rem;
  opacity: 0;
  pointer-events: none;
}

.story-copy.is-active {
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-left h1,
#story-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede,
#story-body {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 30rem;
}

.story-beats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.story-beats li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid transparent;
  padding: 0.35rem 0.6rem;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.story-beats li.on {
  background: #fff;
  color: #000;
}

.story-beats li.done {
  color: #fff;
  border-color: var(--line-strong);
}

.story-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  opacity: 0;
  pointer-events: none;
}

.story-cta.is-live,
body.story-done .story-cta {
  opacity: 1;
  pointer-events: auto;
}

.story-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story-hint .hint-line {
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

body.is-building .story-hint {
  opacity: 0.85;
}

body[data-chapter="5"] .story-hint,
body.story-done .story-hint {
  opacity: 0 !important;
}

/* Pin distance is controlled by ScrollTrigger (end: +=450%), not a runway div. */

/* ========== BUILD SITE (right panel) ========== */
.story-right {
  position: relative;
  min-height: min(68dvh, 560px);
  display: grid;
  place-items: center;
}

.build {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  background: #050505;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    24px 24px 0 rgba(255, 255, 255, 0.03);
  transform: perspective(1400px) rotateY(-14deg) rotateX(5deg) scale(0.92);
  transform-origin: center center;
  transition: transform 0.15s linear, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

body[data-chapter="0"] .build {
  border-color: rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(-18deg) rotateX(8deg) scale(0.86);
  opacity: 0.85;
}

body[data-chapter="2"] .build,
body[data-chapter="3"] .build {
  border-color: var(--line-strong);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    28px 28px 0 rgba(255, 255, 255, 0.05);
}

body[data-chapter="4"] .build,
body[data-chapter="5"] .build {
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) scale(1);
  border-color: #fff;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.75);
}

.build-chrome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
}

.build-dots {
  display: flex;
  gap: 0.3rem;
}

.build-dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  border: 1px solid #555;
  background: #1a1a1a;
}

.build-url {
  border: 1px solid var(--line);
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-viewport {
  position: relative;
  height: min(50dvh, 420px);
  background: #000;
  overflow: hidden;
}

.assemble-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Pieces start off; GSAP flies them in */
.fly-piece {
  will-change: transform, opacity;
}

.build-chrome.fly-piece {
  position: relative;
  z-index: 2;
}

.site-stack {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  z-index: 2;
}

/* 404 sits centered until it flies out */
.void-state {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background: #000;
}

.void-code {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.void-msg {
  color: var(--muted);
}

.void-bars {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
  max-width: 16rem;
}

.void-bars span {
  height: 0.45rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.void-bars span:nth-child(1) {
  width: 100%;
}
.void-bars span:nth-child(2) {
  width: 72%;
}
.void-bars span:nth-child(3) {
  width: 48%;
}

/* Site assembly pieces */
.m-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.m-logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.m-links {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.m-links i {
  width: 1.7rem;
  height: 0.3rem;
  background: #2a2a2a;
}

.m-cta,
.m-btn {
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
}

.m-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  position: relative;
}

.m-hero h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.m-hero p {
  margin: 0.45rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.m-card {
  border: 1px solid var(--line-strong);
  padding: 0.9rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  background: #0a0a0a;
  min-height: 7rem;
}

.m-card strong {
  font-family: var(--display);
  font-size: 1.7rem;
}

.m-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.m-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.m-cards article {
  border: 1px solid var(--line);
  padding: 0.6rem;
  display: grid;
  gap: 0.2rem;
  background: #080808;
}

.m-cards b {
  font-size: 0.82rem;
}

.m-cards span {
  color: var(--faint);
  font-size: 0.72rem;
}

.live-pill {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  border: 1px solid #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.5rem;
  background: #000;
}

.m-phone {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5.4rem;
  height: 9.2rem;
  border: 1px solid var(--line-strong);
  background: #050505;
  padding: 0.4rem;
  z-index: 3;
}

.ph-notch {
  width: 1.8rem;
  height: 0.25rem;
  background: #222;
  margin: 0.12rem auto 0.5rem;
}

.ph-line {
  height: 0.32rem;
  background: #1a1a1a;
  margin-bottom: 0.28rem;
}

.ph-line.short {
  width: 55%;
}

.ph-cta {
  margin-top: 0.5rem;
  height: 1.2rem;
  background: #fff;
}

.keys-plate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.keys-panel {
  max-width: 16rem;
}

.keys-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.6rem;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  font-size: 1.1rem;
}

.keys-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.keys-panel p {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.keys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.keys-tags span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 0.3rem 0.5rem;
}

/* Soft continuous copy (less slideshow) */
.story-left h1,
#story-title {
  transition: none;
}

.story-copy-slot {
  min-height: 9.5rem;
}

/* ========== LOWER SECTIONS ========== */
.panel-section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

.panel-section.alt {
  background: rgba(8, 8, 8, 0.88);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-sub {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.split,
.pricing,
.work-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.split {
  grid-template-columns: 1fr 1fr;
}

.panel,
.price-card,
.work {
  background: #000;
  padding: 1.4rem;
}

.panel h3,
.price-card h3,
.work h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.panel ul,
.price-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.pricing {
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 820px;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: #0a0a0a;
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  padding: 0.25rem 0.5rem;
}

.badge.muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.amount {
  margin: 0.35rem 0 0.1rem;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.amount span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.amount-sub {
  margin: 0 0 1rem;
  color: var(--faint);
}

.price-card ul {
  flex: 1;
  margin-bottom: 1.15rem;
}

.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.work {
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  transition: background 0.15s ease;
}

.work:hover {
  background: #0d0d0d;
  opacity: 1;
}

.pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.work p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.work .go {
  margin-top: 1rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contact-list span:first-child {
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.placeholder-email {
  color: var(--muted);
  font-style: italic;
}

.contact-form {
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  background: #000;
}

.contact-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #050505;
  color: #fff;
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
}

.form-status {
  min-height: 1.15rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.error {
  color: #fff;
}

.fine-print {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: #000;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.site-footer strong {
  font-family: var(--display);
}

.site-footer p {
  margin: 0.3rem 0 0;
  color: var(--faint);
}

.footer-links {
  text-align: right;
}

.footer-links a {
  font-weight: 600;
}

/* Real-site build pieces */
.rise {
  will-change: transform, opacity;
}

/* Breath lives on a pseudo-layer so it never fights entrance transforms */
.live-float {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.live-float::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.live-float:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.live-float.is-resting {
  animation: cardBreathe 5s ease-in-out infinite;
}

@keyframes cardBreathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.04);
  }
}

.live-pulse {
  animation: livePulse 2.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.bg-grid {
  animation: gridDrift 32s linear infinite;
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 64px, 64px 0;
  }
}

.bg-scan {
  animation: scanSweep 8s ease-in-out infinite;
}

@keyframes scanSweep {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.75;
  }
}

.build {
  /* smoother GPU path */
  will-change: transform;
  backface-visibility: hidden;
}

.void-state {
  animation: voidBreathe 3.2s ease-in-out infinite;
}

@keyframes voidBreathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-title em,
  .scroll-invite,
  .scroll-mouse i,
  .live-pulse,
  .live-float.is-resting,
  .bg-grid,
  .bg-scan,
  .void-state {
    animation: none !important;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .story-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-sticky {
    padding-top: calc(var(--header) + 0.5rem);
    justify-content: flex-start;
    min-height: 100dvh;
  }

  .story-left {
    min-height: auto;
    order: 0;
  }

  .story-copy {
    position: relative;
    inset: auto;
  }

  .story-right {
    order: -1;
    min-height: auto;
    margin-bottom: 0.5rem;
  }

  .landing-title {
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
  }

  .landing-sub {
    font-size: 0.98rem;
  }

  .scroll-invite {
    margin-top: 1.4rem;
    font-size: 0.72rem;
  }

  .story-left {
    overflow: visible;
  }

  .build {
    width: min(100%, 400px);
    margin-inline: auto;
    transform: none !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .build-viewport {
    height: min(36dvh, 280px);
  }

  .m-phone {
    display: none;
  }

  .story-hint {
    margin-top: 1rem;
  }

  .split,
  .pricing,
  .work-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .m-hero {
    grid-template-columns: 1fr;
  }

  .m-phone {
    display: none;
  }

  .m-cards {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: fixed;
    inset: calc(var(--header) + 2px) 0 0;
    background: #000;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.15rem 2rem;
    gap: 0.15rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a.btn {
    margin-top: 0.75rem;
    border-bottom: 1px solid #fff;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer-links {
    text-align: left;
  }

  .story-chrome-meta {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }
}

@media (max-width: 520px) {
  :root {
    --wrap: min(1180px, calc(100% - 1.2rem));
  }

  #story-title {
    font-size: 1.9rem;
  }

  .story-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .build,
  .layer,
  .reveal,
  .story-cta,
  .site-header,
  .logo-text {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-grid {
    transform: none;
  }
}
