/* ==========================================================================
   Grabsty Official Brand Typography (Loaded from brand/fonts/)
   ========================================================================== */

/* Bricolage Grotesque - Modern Variable Font (Weight 200..900, Optical Size 12..96) */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque[opsz,wdth,wght].ttf') format('truetype-variations'),
       url('brand/fonts/BricolageGrotesque-Bold.ttf') format('truetype');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* Static Weight Declarations for Maximum Browser Compatibility */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque-Regular.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque-Medium.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque-SemiBold.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque-Bold.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('brand/fonts/BricolageGrotesque-ExtraBold.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque-ExtraBold.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* 96pt Display Cut for Monumental Headlines */
@font-face {
  font-family: 'Bricolage Grotesque 96pt';
  src: url('brand/fonts/BricolageGrotesque96pt-Bold.ttf') format('truetype'),
       url('brand/fonts/BricolageGrotesque96pt-Bold.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* Kelsi - Official Brand Bubble/Graffiti Streetwear Display Typeface */
@font-face {
  font-family: 'Kelsi';
  src: url('brand/fonts/kelsi-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kelsi Fill';
  src: url('brand/fonts/kelsi-fill.otf') format('opentype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

html { overflow-x: clip; }
:root {
  /* Strict Grabsty 3-Hue Palette */
  --ink: #0F0F0F;
  --ink-surface: #171717;
  --ink-elevated: #1F1F1F;
  --paper: #FFFFFF;
  --signal: #5A59EE;
  --signal-hover: #7271F2;
  --signal-subtle: rgba(90, 89, 238, 0.12);
  --signal-glow: rgba(90, 89, 238, 0.35);
  
  /* Semantic Approved Exceptions */
  --shield-bg: #F2F3FE;
  --shield-stroke: #5356EE;
  --error: #EF4444;

  /* Alpha Opacities */
  --paper-5: rgba(255, 255, 255, 0.05);
  --paper-10: rgba(255, 255, 255, 0.10);
  --paper-20: rgba(255, 255, 255, 0.20);
  --paper-40: rgba(255, 255, 255, 0.40);
  --paper-60: rgba(255, 255, 255, 0.60);
  --paper-80: rgba(255, 255, 255, 0.80);

  /* Emil Kowalski Timing Curves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);

  /* Typography - Official Grabsty Brand Fonts */
  --font-display: 'Bricolage Grotesque 96pt', 'Bricolage Grotesque', sans-serif;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-kelsi: 'Kelsi', cursive, sans-serif;
  --font-kelsi-fill: 'Kelsi Fill', 'Kelsi', cursive, sans-serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ink);
  /* Architectural Drafting Matrix: Hairline Grid + Coordinates Crosshairs */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(90, 89, 238, 0.045) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 16px 16px;
  background-position: 0 0, 0 0, 8px 8px;
  color: var(--paper);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

::selection {
  background-color: var(--signal);
  color: var(--paper);
}

.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;
}

/* Headings Default To Brand Heading Typeface */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Brand Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-kelsi {
  font-family: var(--font-kelsi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.font-kelsi-fill {
  font-family: var(--font-kelsi-fill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  z-index: 10000;
  width: 0%;
  pointer-events: none;
  transition: width 40ms linear;
}

/* ==========================================================================
   Celebration Party Popper Canvas
   ========================================================================== */
.party-popper-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   Texture & Ambient Stage
   ========================================================================== */

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
}

/* Subtle Mughal Jaali Islamic Star Watermark */
.jaali-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none'%3E%3Cpath d='M60 0L75 45L120 60L75 75L60 120L45 75L0 60L45 45Z' stroke='%23FFFFFF' stroke-width='1'/%3E%3Crect x='30' y='30' width='60' height='60' stroke='%235A59EE' stroke-width='0.8' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='20' stroke='%23FFFFFF' stroke-width='0.8' stroke-dasharray='3 3'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 89, 238, 0.14) 0%, rgba(90, 89, 238, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
  will-change: transform;
}

/* Lahore Architectural Floating Accents Stage */
.heritage-stage,
.memphis-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.heritage-shape,
.memphis-shape {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 0 18px rgba(90, 89, 238, 0.18));
}

@media (max-width: 1180px) {
  .heritage-stage,
  .memphis-stage {
    opacity: 0.2;
  }
}

@media (max-width: 860px) {
  .heritage-stage,
  .memphis-stage {
    display: none !important;
  }
}

.shape-arch {
  top: 13%;
  left: 5%;
  animation: float-slow 8s ease-in-out infinite alternate;
}

.shape-jharokha {
  top: 23%;
  right: 6%;
  animation: float-rev 9s ease-in-out infinite alternate;
}

.shape-jaali {
  top: 48%;
  left: 4%;
  animation: spin-slow 50s linear infinite;
}

.shape-meridian {
  top: 38%;
  right: 5%;
  animation: float-slow 11s ease-in-out infinite alternate;
}

.shape-dome {
  top: 68%;
  left: 7%;
  animation: float-rev 10s ease-in-out infinite alternate;
}

.shape-muqarnas {
  top: 80%;
  right: 8%;
  animation: float-slow 9s ease-in-out infinite alternate;
}

@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(6deg); }
}

@keyframes float-rev {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(20px) rotate(-6deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--paper-10);
  z-index: 1000;
  transition: border-color 200ms ease;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Ambient Global Collector Ticker (Feature 5) */
.header-live-ticker {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--paper-20);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--paper-80);
  transition: opacity 250ms ease;
  user-select: none;
}

@media (min-width: 680px) {
  .header-live-ticker {
    display: inline-flex;
  }
}

.ticker-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--signal);
  animation: pulse-live 2s infinite;
  flex-shrink: 0;
}

.ticker-text {
  white-space: nowrap;
  letter-spacing: 0.02em;
}


/* Phones: icon-only SFX toggle so the header stays on one line */
@media (max-width: 479px) {
  .header-meta {
    gap: 0.75rem;
  }
}

.header-action-btn {
  white-space: nowrap;
}

.success-sticker-badge img {
  width: 135px;
  height: auto;
  margin: 0 auto 0.75rem;
  transform: rotate(-5deg);
}


.brand-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: transform 150ms var(--ease-out);
}

.brand-logo:hover {
  transform: skewX(-4deg);
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--signal);
  display: inline-block;
  margin-left: 2px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-action-btn {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--signal);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.header-action-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--signal);
}

.header-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--signal);
}

/* ==========================================================================
   Page Content & Layout
   ========================================================================== */
.page-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Lahore Heritage Coordinates Tag */
.hero-heritage-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--ink);
  border: 1.5px solid var(--paper-20);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--paper-80);
  box-shadow: 3px 3px 0 var(--signal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heritage-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse-live 2s infinite;
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--paper);
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--signal);
  font-variation-settings: "opsz" 96, "wdth" 100, "wght" 900;
}

.hero-br {
  display: none;
}

@media (min-width: 768px) {
  .hero-br {
    display: block;
  }
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%) rotate(4deg);
  animation: word-reveal 750ms var(--ease-out) forwards;
}

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Subtitle Box */
.hero-subtitle-box {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  background-color: var(--ink);
  border: 3px solid var(--paper);
  padding: 0.85rem 1.5rem;
  box-shadow: -5px 5px 0 var(--signal);
  text-align: center;
  position: relative;
}

/* Brand stickers: slapped on corners, never in the reading or form path */
.brand-sticker {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.45));
}

.hero-subtitle-box .brand-sticker {
  position: absolute;
  z-index: 2;
}


.sticker-steal {
  width: clamp(92px, 12vw, 144px);
  right: 0;
  bottom: 0;
  transform: translate(18%, 72%) rotate(7deg);
}

@media (min-width: 768px) {
  /* Phones have no gutter beside the box, so this one only shows from tablet up */
  .sticker-steal { transform: translate(42%, 56%) rotate(7deg); }
}

.subtitle-text {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--paper);
  line-height: 1.55;
  font-weight: 600;
}

/* ==========================================================================
   Funnel Form & State
   ========================================================================== */
.funnel-container {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  position: relative;
  min-height: 165px;
}

.form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 300ms ease, transform 300ms var(--ease-out), filter 300ms ease;
}

.form-wrapper.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  filter: blur(8px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   Waitlist Location Banner (Lahore Focus)
   ========================================================================== */
.waitlist-location-card {
  width: 100%;
  background-color: var(--ink-surface);
  border: 2px solid var(--paper);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
  box-shadow: 4px 4px 0 var(--signal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: left;
}

.waitlist-loc-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loc-arch-badge {
  width: 40px;
  height: 40px;
  background-color: var(--ink);
  border: 1.5px solid var(--paper-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--signal);
}

.loc-arch-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.loc-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.loc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.loc-sub {
  font-size: 0.6875rem;
  color: var(--paper-80);
}

.loc-status-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--paper);
  background-color: var(--signal);
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--paper);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* ==========================================================================
   Referred-By Banner
   ========================================================================== */
.referral-banner {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background-color: var(--signal-subtle);
  border: 2px dashed var(--signal);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.referral-banner.hidden {
  display: none;
}

.ref-badge-icon {
  color: var(--signal);
  font-size: 0.875rem;
}

/* ==========================================================================
   Role & Interest Selectors
   ========================================================================== */
.role-selector-wrap,
.interest-selector-wrap {
  width: 100%;
  text-align: left;
  margin-bottom: 0.25rem;
}

.role-selector-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper-60);
  margin-bottom: 0.45rem;
}

.role-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.role-pill {
  background-color: var(--ink-surface);
  border: 2px solid var(--paper-20);
  color: var(--paper-80);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 120ms ease;
}

@media (min-width: 480px) {
  .role-pill {
    font-size: 0.75rem;
    padding: 0.65rem 0.5rem;
  }
}

.role-pill:hover,
.interest-pill:hover {
  border-color: var(--paper-60);
  color: var(--paper);
  background-color: var(--ink-elevated);
}

.role-pill.active,
.interest-pill.active {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 var(--signal);
}

.role-pill-indicator {
  font-size: 0.65rem;
}

/* Interest Selector Pills (Lahore Architecture Design Focus) */
.interest-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 520px) {
  .interest-pills {
    grid-template-columns: 1.15fr 1fr;
  }
  .interest-pills button[data-interest="both"] {
    grid-column: 1 / -1;
  }
}

.interest-pill {
  background-color: var(--ink-surface);
  border: 2px solid var(--paper-20);
  color: var(--paper-80);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 120ms ease;
}

.interest-icon {
  font-size: 0.75rem;
}

.interest-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.interest-icon-svg svg {
  display: block;
}

.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   Form Fields Grid & Inputs
   ========================================================================== */
.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
}

@media (min-width: 580px) {
  .form-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .input-group-full {
    grid-column: 1 / -1;
  }
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper-80);
  margin-bottom: 0.35rem;
}

.field-req {
  color: var(--signal);
}

.field-opt {
  color: var(--paper-60);
  font-weight: 600;
  font-size: 0.625rem;
}

.form-text-input {
  width: 100%;
  height: 48px;
  background-color: var(--paper);
  border: 3px solid var(--ink);
  padding: 0 1rem;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 700;
  outline: none;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), border-color 150ms ease;
  box-shadow: 3px 3px 0 var(--signal);
}

.form-text-input::placeholder {
  color: rgba(15, 15, 15, 0.45);
  font-weight: 600;
}

.form-text-input:focus {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--signal);
}

.form-text-input.has-error {
  border-color: var(--error);
  box-shadow: 3px 3px 0 var(--error);
  animation: input-shake 300ms ease;
}

@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.input-error-msg {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--error);
  margin-top: 0.35rem;
  min-height: 1rem;
  text-align: left;
}

.form-action-row {
  width: 100%;
  margin-top: 0.25rem;
}

.form-action-row .submit-btn {
  width: 100%;
}

/* Primary CTA Button (Strict 1-Primary CTA Rule) */
.submit-btn {
  height: 52px;
  background-color: var(--signal);
  color: var(--paper);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0 1.75rem;
  border: 3px solid var(--paper);
  box-shadow: 5px 5px 0 var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .submit-btn:hover {
    background-color: var(--signal-hover);
    box-shadow: 8px 8px 0 var(--paper);
  }
}

/* Emil Kowalski 0.97 Scale Rule */
.submit-btn:active {
  transform: scale(0.97) !important;
  box-shadow: 2px 2px 0 var(--paper) !important;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--paper);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-slow 800ms linear infinite;
  margin-left: 0.5rem;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

/* Trust Pill (Canonical Mercari Geometry) */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--signal);
  transform: rotate(1deg);
  transition: transform 200ms ease;
  cursor: default;
}

.trust-pill:hover {
  transform: rotate(0deg) scale(1.02);
}

.canonical-shield {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.trust-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.trust-bullet {
  color: var(--paper-40);
  font-size: 0.75rem;
}

.trust-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--paper-80);
}

.social-counter {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--paper-60);
  letter-spacing: 0.03em;
}

.counter-num {
  color: var(--paper);
  font-weight: 800;
}

.lookup-toggle-wrap {
  margin-top: 0.75rem;
  text-align: center;
}

.lookup-toggle-btn {
  background: transparent;
  border: none;
  color: var(--paper-80);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 150ms ease;
  padding: 0.25rem 0.5rem;
}

.lookup-toggle-btn:hover {
  color: var(--paper);
}

.lookup-toggle-btn:focus-visible {
  outline: 2px solid var(--paper);
}

/* Success Card */
.success-state {
  width: 100%;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), filter 400ms ease;
}

.success-state.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.92) rotate(-3deg);
  filter: blur(6px);
  pointer-events: none;
}

.success-card {
  background-color: var(--signal);
  border: 4px solid var(--paper);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 10px 10px 0 var(--ink), 10px 10px 0 4px var(--paper);
  animation: success-pop 500ms var(--ease-spring) forwards;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

@keyframes success-pop {
  0% { transform: scale(0.9) rotate(-3deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-badge-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--paper);
  border: 3px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 1rem;
}

.success-badge-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.success-queue-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  background-color: var(--ink);
  color: var(--paper);
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-shadow: 2px 2px 0 var(--ink);
}

/* Success Details Box */
.success-details-box {
  width: 100%;
  background-color: var(--ink);
  border: 2px solid var(--paper);
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
}

.success-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 0.4rem;
}

.success-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--signal);
  letter-spacing: 0.08em;
}

.detail-value {
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--paper);
  text-align: right;
  overflow-wrap: anywhere;
}

.success-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   Viral Referral Station
   ========================================================================== */
.referral-station {
  width: 100%;
  background-color: var(--ink);
  border: 3px solid var(--paper);
  padding: 1.35rem 1.15rem;
  margin: 0.5rem 0 1.25rem;
  text-align: center;
  box-shadow: 5px 5px 0 var(--paper);
}

.ref-station-header {
  margin-bottom: 1rem;
}

.ref-station-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--signal);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
}

.ref-station-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.ref-station-desc {
  font-size: 0.8125rem;
  color: var(--paper-80);
  line-height: 1.45;
  max-width: 24rem;
  margin: 0 auto;
}

.ref-link-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.85rem;
}

@media (min-width: 480px) {
  .ref-link-box {
    flex-direction: row;
    gap: 0.35rem;
  }
}

.ref-link-input {
  flex: 1;
  height: 44px;
  background-color: var(--ink-surface);
  border: 2px solid var(--paper-40);
  padding: 0 0.85rem;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  outline: none;
  transition: border-color 150ms ease;
}

.ref-link-input:focus {
  border-color: var(--paper);
}

.copy-ref-btn {
  height: 44px;
  background-color: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0 1.25rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 120ms ease;
  white-space: nowrap;
}

.copy-ref-btn:hover {
  background-color: var(--signal);
  color: var(--paper);
  border-color: var(--paper);
}

.copy-ref-btn:active {
  transform: scale(0.97);
}

.copy-ref-btn.copied {
  background-color: #10B981;
  color: var(--paper);
  border-color: var(--paper);
}

.ref-share-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.85rem;
}

.ref-share-btn {
  flex: 1;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--paper);
  transition: all 120ms ease;
  cursor: pointer;
}

.share-x {
  background-color: var(--ink);
  color: var(--paper);
}

.share-x:hover {
  background-color: var(--paper);
  color: var(--ink);
}

.share-wa {
  background-color: var(--signal);
  color: var(--paper);
}

.share-wa:hover {
  background-color: var(--signal-hover);
}

.share-native {
  background-color: var(--ink-surface);
  color: var(--paper);
}

.share-native.hidden {
  display: none;
}

.ref-tracker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--paper-60);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--paper-10);
}

.ref-tracker-dot {
  width: 6px;
  height: 6px;
  background-color: var(--signal);
  border-radius: 50%;
}

.success-footer-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px dashed rgba(15, 15, 15, 0.4);
  width: 100%;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
}

.success-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.15rem;
  align-items: center;
}

.secondary-card-btn {
  width: 100%;
  height: 44px;
  background-color: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 120ms ease;
}

.secondary-card-btn:hover {
  background-color: var(--ink-surface);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--paper);
}

.secondary-card-btn:active {
  transform: scale(0.98);
}

.back-link-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.35rem 0.75rem;
  transition: opacity 120ms ease;
}

.back-link-btn:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Kinetic Marquee (lapz.io style)
   ========================================================================== */
.marquee-section {
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  background-color: var(--signal);
  color: var(--paper);
  padding: 1.25rem 0;
  border-top: 4px solid var(--paper);
  border-bottom: 4px solid var(--paper);
  transform: rotate(-2deg);
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
  box-shadow: 0 8px 0 var(--ink);
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-stream {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding-right: 1.5rem;
}

.star-sep {
  color: var(--paper);
  font-size: 1.25rem;
}

/* ==========================================================================
   Features Section & Bento Grid
   ========================================================================== */
.features-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.section-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.section-tag span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--paper);
  background-color: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--signal);
  padding: 0.35rem 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 3.5rem;
  text-transform: uppercase;
  font-variation-settings: "opsz" 48, "wght" 800;
}

/* ==========================================================================
   Lahore Architecture Design Showcase Card
   ========================================================================== */
.lahore-architecture-card {
  width: 100%;
  background-color: var(--ink-surface);
  border: 3px solid var(--paper);
  box-shadow: 8px 8px 0 var(--signal);
  padding: 2.25rem 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.arch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed var(--paper-20);
}

.arch-badge-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Architecture Blueprint Study Switcher Tabs */
.arch-study-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arch-study-tab {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  background-color: var(--ink);
  color: var(--paper-80);
  border: 1.5px solid var(--paper-20);
  cursor: pointer;
  transition: all 140ms ease;
  user-select: none;
}

.arch-study-tab:hover {
  color: var(--paper);
  border-color: var(--paper);
  transform: translateY(-1px);
}

.arch-study-tab.active {
  background-color: var(--signal);
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 2px 2px 0 var(--paper);
}

.arch-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--paper);
  background-color: var(--signal);
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--paper);
}

.arch-card-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--paper-80);
}

.arch-badge-city {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--paper-60);
}

.arch-card-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 880px) {
  .arch-card-content-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .arch-card-visual {
    position: sticky;
    top: 6rem;
  }
}

/* Phones: keep the order diagram at a readable size and let it scroll sideways */
@media (max-width: 600px) {
  .arch-card-visual {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .arch-blueprint-svg {
    min-width: 540px;
  }
}

.arch-brand-stickers {
  display: flex;
  align-items: flex-end;
  margin-top: 1.75rem;
}

.sticker-price-tag {
  width: clamp(150px, 40vw, 190px);
  transform: rotate(-6deg);
}

.sticker-bag {
  width: clamp(78px, 20vw, 96px);
  margin-left: 0.25rem;
  transform: rotate(9deg);
}

.arch-card-visual {
  width: 100%;
  background-color: var(--ink);
  border: 2px solid var(--paper-40);
  box-shadow: 5px 5px 0 var(--paper);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-blueprint-frame {
  width: 100%;
}

.arch-blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
}

.arch-study-panel {
  transition: opacity 220ms ease;
}

.arch-study-panel.hidden {
  display: none !important;
}

.arch-card-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.arch-info-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.25;
}

.arch-info-desc {
  font-size: 0.9375rem;
  color: var(--paper-80);
  line-height: 1.6;
}

.arch-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.arch-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--paper);
  background-color: var(--ink);
  border: 1.5px solid var(--paper);
  box-shadow: 2px 2px 0 var(--signal);
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

/* Lahore Design Lineage: 3 Pillars Grid */
.arch-lineage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .arch-lineage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lineage-card {
  background-color: var(--ink-surface);
  border: 2px solid var(--paper-20);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, border-color 140ms ease;
  text-align: left;
}

.lineage-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--signal);
}

.lineage-card-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--signal);
  letter-spacing: -0.04em;
}

.lineage-card-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lineage-card-desc {
  font-size: 0.8125rem;
  color: var(--paper-80);
  line-height: 1.5;
}

.lineage-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--paper-60);
  background-color: var(--paper-5);
  border: 1px solid var(--paper-10);
  padding: 0.2rem 0.5rem;
  margin-top: auto;
  letter-spacing: 0.04em;
}

/* Subtle Ambient Lahore Skyline Horizon Backdrop */
.lahore-skyline-backdrop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.9;
}

.skyline-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 860px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --lift-y: 0px;

  background-color: var(--ink-surface);
  border: 3px solid var(--paper);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 7px 7px 0 var(--signal);
  transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateY(var(--lift-y));
  transition: transform 150ms var(--ease-out), box-shadow 350ms var(--ease-out);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    box-shadow: 12px 12px 0 var(--signal);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--paper);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper-80);
  background: var(--paper-10);
  padding: 0.25rem 0.5rem;
}

.card-visual {
  min-height: 150px;
  background-color: var(--ink);
  border: 2px solid var(--paper-20);
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Card 1: Escrow Visual */
.escrow-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--paper-5);
  border: 1px solid var(--paper-20);
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}

.escrow-icon-wrap {
  width: 24px;
  height: 24px;
}

.escrow-icon {
  width: 100%;
  height: 100%;
}

.escrow-status-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.escrow-status-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--paper);
}

.escrow-status-desc {
  font-size: 0.6875rem;
  color: var(--paper-60);
}

.escrow-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--ink);
  z-index: 2;
}

.step-dot.active {
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--paper-20);
  margin: 0 4px;
}

.step-line.active {
  background: var(--signal);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--paper-60);
  padding: 0 0.25rem;
}

/* Card 2: Interactive Archival Wardrobe Vault (Feature 2) */
.vault-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.vault-tab-btn {
  background: var(--ink);
  border: 1.5px solid var(--paper-20);
  color: var(--paper-60);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 120ms ease;
  white-space: nowrap;
}

.vault-tab-btn:hover {
  color: var(--paper);
  border-color: var(--paper-60);
}

.vault-tab-btn.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 2px 2px 0 var(--signal);
}

.mockup-listing-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 150ms ease, transform 150ms ease;
}

.vault-provenance-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.6rem;
  margin-top: 0.65rem;
  align-self: center;
}

.mockup-img-container {
  height: 90px;
  background: rgba(90, 89, 238, 0.05);
  border: 1px dashed var(--paper-20);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.garment-svg {
  width: 60px;
  height: 70px;
}

/* Canonical Sharp Sold Badge (Strict Plick Invariant: 0px radius, purple bg) */
.sharp-sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--signal);
  color: var(--paper);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 0 !important; /* Strict Plick Invariant */
  box-shadow: 2px 2px 0 var(--ink);
}

.mockup-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mockup-brand {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.05em;
}

.mockup-item-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--paper-80);
}

/* Card 3: Interactive Clutter Filter X-Ray Toggle */
.clutter-toggle-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.clutter-tab-btn {
  background: var(--ink);
  border: 1.5px solid var(--paper-20);
  color: var(--paper-60);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.45rem 0.35rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 150ms ease;
  white-space: nowrap;
}

.clutter-tab-btn:hover {
  color: var(--paper);
  border-color: var(--paper-60);
}

.clutter-tab-btn.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 2px 2px 0 var(--signal);
}

.comparison-visual {
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: all 250ms ease;
  padding: 1rem;
}

/* Casino Chaotic Mode */
.comparison-visual.mode-casino {
  background-color: #1A0D00;
  border-color: #F59E0B;
  box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.2);
}

.casino-overlay {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  animation: jitter-in 200ms ease;
}

.comparison-visual.mode-casino .casino-overlay {
  display: flex;
}

.comparison-visual.mode-casino .discipline-content {
  display: none;
}

.casino-banner {
  background: #DC2626;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 0.6875rem;
  padding: 0.3rem 0.5rem;
  text-align: center;
  letter-spacing: 0.02em;
  animation: pulse-red 800ms infinite alternate;
}

@keyframes pulse-red {
  from { background-color: #DC2626; transform: scale(1); }
  to { background-color: #EF4444; transform: scale(1.02); }
}

.casino-chips-wrap {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.casino-badge {
  font-family: var(--font-main);
  font-size: 0.625rem;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  border: 1px solid #F59E0B;
  background: #78350F;
  color: #FDE68A;
}

.blink-slow {
  animation: blink-anim 1.2s infinite;
}

.blink-fast {
  animation: blink-anim 600ms infinite;
  background: #B45309;
}

.shake-pill {
  animation: shake-badge 400ms infinite;
  background: #991B1B;
  color: #FEE2E2;
}

@keyframes blink-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes shake-badge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-1deg); }
  75% { transform: translateX(2px) rotate(1deg); }
}

.casino-countdown {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 900;
  color: #EF4444;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  text-align: center;
  border: 1px dashed #EF4444;
}

/* Grabsty Discipline Mode */
.discipline-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.discipline-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.discipline-metric-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  background: var(--signal-subtle);
  color: var(--paper);
  border: 1.5px solid var(--signal);
  padding: 0.35rem 0.6rem;
  letter-spacing: 0.05em;
}

.discipline-status-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--paper-20);
  padding: 0.5rem 0.75rem;
  justify-content: center;
}

.discipline-indicator-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
}

.discipline-status-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--paper-80);
  letter-spacing: 0.06em;
}

/* Card Typography */
.card-title {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.card-desc {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper-80);
  line-height: 1.55;
}

/* Wide Metrics Card */
@media (min-width: 860px) {
  .full-width {
    grid-column: 1 / -1;
  }
}

.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .metrics-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.metric-value {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--signal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.8125rem;
  color: var(--paper-60);
  max-width: 16rem;
}

.metric-divider {
  width: 100%;
  height: 2px;
  background: var(--paper-10);
}

@media (min-width: 768px) {
  .metric-divider {
    width: 2px;
    height: 70px;
  }
}

/* ==========================================================================
   FAQ Section (Memphis Accordion)
   ========================================================================== */
.faq-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--ink-surface);
  border: 3px solid var(--paper);
  box-shadow: 5px 5px 0 var(--signal);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.faq-item[open] {
  box-shadow: 8px 8px 0 var(--signal);
}

.faq-question {
  padding: 1.5rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--signal);
  transition: transform 250ms var(--ease-out);
}

.faq-item[open] .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper-80);
  line-height: 1.6;
  border-top: 1px solid var(--paper-10);
  padding-top: 1.25rem;
}

/* ==========================================================================
   Bottom Funnel Banner
   ========================================================================== */
.bottom-cta-section {
  max-width: 1080px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.cta-banner-box {
  background-color: var(--signal);
  border: 4px solid var(--paper);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 12px 12px 0 var(--ink), 12px 12px 0 4px var(--paper);
  position: relative;
}

.cta-sticker-sun {
  position: absolute;
  top: -3.25rem;
  right: 4%;
  width: clamp(84px, 11vw, 124px);
  height: auto;
  transform: rotate(14deg);
  filter: none;
  pointer-events: none;
}

.cta-kelsi {
  letter-spacing: 0.01em;
  text-shadow: none;
  color: var(--ink);
}

.cta-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 0.75rem;
  text-shadow: 3px 3px 0 var(--ink);
  font-variation-settings: "opsz" 72, "wght" 900;
}

.cta-desc {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 2rem;
}

.cta-scroll-btn {
  display: inline-block;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  padding: 1.1rem 2.5rem;
  border: 4px solid var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.cta-scroll-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.cta-scroll-btn:active {
  transform: scale(0.97);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 4px solid var(--paper);
  background-color: var(--ink);
  padding: 3rem 1.5rem;
  width: 100%;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.02em;
}

/* Logotype SVG has ~10% built-in padding; negative margins align glyphs to the content edge. */
.footer-logotype {
  display: block;
  height: 56px;
  width: auto;
  margin: -10px -12px -10px -12px;
}

@media (min-width: 640px) {
  .footer-logotype { height: 68px; margin: -12px -15px -12px -15px; }
}

.footer-copy-inline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--paper-40);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--paper-60);
  letter-spacing: 0.06em;
}

.footer-bottom {
  border-top: 1px solid var(--paper-10);
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--paper-40);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

@keyframes autoRevealFallback {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll:not(.in-view) {
  animation: autoRevealFallback 400ms ease 1.2s forwards;
}

.reveal-up {
  transform: translateY(50px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-rotate {
  transform: translateY(40px) rotate(-3deg);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal-rotate.in-view {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.bento-card.animate-on-scroll {
  transform: perspective(1000px) translateY(50px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.bento-card.animate-on-scroll.in-view {
  opacity: 1;
  transform: perspective(1000px) translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; animation-delay: 100ms; }
.delay-150 { transition-delay: 150ms; animation-delay: 150ms; }
.delay-200 { transition-delay: 200ms; animation-delay: 200ms; }
.delay-250 { transition-delay: 250ms; animation-delay: 250ms; }
.delay-300 { transition-delay: 300ms; animation-delay: 300ms; }
.delay-350 { transition-delay: 350ms; animation-delay: 350ms; }
.delay-450 { transition-delay: 450ms; animation-delay: 450ms; }

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll,
  .reveal-up,
  .reveal-rotate,
  .bento-card.animate-on-scroll,
  .word {
    opacity: 1 !important;
    transform: none !important;
  }

  .cursor-glow,
  .heritage-shape,
  .memphis-shape {
    display: none !important;
  }

  .marquee-track {
    transform: none !important;
  }
}

/* ==========================================================================
   3D layer (scene3d.js)
   ========================================================================== */
#scene-3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

/* The WebGL objects take over from the flat heritage SVG accents. */
body.has-3d .heritage-stage { display: none; }

.tilt-3d {
  transition: transform 180ms ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-3d-title {
  transition: transform 300ms ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .tilt-3d, .tilt-3d-title { transform: none !important; }
}

/* ==========================================================================
   Header logotype + compact success card (2026-10-31)
   ========================================================================== */
/* The logotype SVG has ~25% empty space above and below the letters, so
   render it tall and pull the margins in to keep the header height. */
.brand-logotype {
  display: block;
  height: 60px;
  width: auto;
  margin: -14px 0 -14px -10px;
}

@media (max-width: 479px) {
  .brand-logotype { height: 48px; margin: -11px 0 -11px -8px; }
}

.success-card {
  padding: 1.5rem 1.25rem 1.1rem;
  box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 3px var(--paper);
}

.success-card .success-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.success-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.9rem;
}

.success-stat {
  background-color: var(--ink);
  border: 2px solid var(--paper);
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.success-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
}

.success-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--paper-40, rgba(255, 255, 255, 0.6));
}

.success-card .success-text {
  font-size: 0.875rem;
  margin-bottom: 0.9rem;
}

.success-card .share-wa {
  flex: none;
  width: 100%;
  height: 44px;
  background-color: var(--ink);
  font-size: 0.8125rem;
  margin-bottom: 0.9rem;
}

.success-card .share-wa:hover {
  background-color: var(--ink-surface);
}

.success-card .success-footer-info {
  justify-content: space-between;
  padding-top: 0.75rem;
}
