@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;800&family=Newsreader:ital,wght@1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* Design Tokens & Theme Control */
:root {
  --ink:         #1A1A18;
  --ink-soft:    #4A4944;
  --paper:       #F4F2EC;
  --paper-pure:  #FAF9F5;
  --line:        #DAD7CE;
  --line-dark:   #2D2C29;
  --signal:      #E2553B;
  --signal-deep: #B23A26;

  /* Theme Defaults (Light Theme) */
  --bg:          var(--paper);
  --text:        var(--ink);
  --text-soft:   var(--ink-soft);
  --border:      var(--line);
  --accent:      var(--signal);
  --accent-hover:var(--signal-deep);
  --noise-opacity: 0.06;

  /* Typography */
  --font-display:   "Hanken Grotesk", "Söhne", "Neue Haas Grotesk Display", system-ui, sans-serif;
  --font-editorial: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-mono:      "IBM Plex Mono", "Berkeley Mono", ui-monospace, monospace;
}

/* Explicit Dark Theme override */
html.dark-theme {
  --bg:          var(--ink);
  --text:        var(--paper);
  --text-soft:   #B8B5AC;
  --border:      var(--line-dark);
  --accent:      #F0775E;
  --accent-hover:var(--signal);
  --noise-opacity: 0.04;
}

/* CSS Resets & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
  min-height: 100dvh;
}

/* Base Texture: SVG noise overlay across body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  pointer-events: none;
  opacity: var(--noise-opacity);
  z-index: 9999;
}

html.dark-theme body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Snap Scroll Framework */
html.snap-enabled {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
}

html.snap-enabled body {
  height: 100%;
  overflow-y: scroll;
}

/* Layout Grid Structure */
.section {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 88px);
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-bottom: 1px solid var(--border);
}

/* Hairline left border */
.section::before {
  content: "";
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 56px);
  left: clamp(28px, 5vw, 88px);
  width: 1px;
  background: var(--border);
  transition: background 300ms ease;
}

/* Top & Bottom headers */
.top, .bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-left: 24px;
  position: relative;
  z-index: 10;
}

.center {
  display: grid;
  align-content: center;
  padding-left: 24px;
  padding-right: 8px;
  z-index: 2;
}

/* Header links styling */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.25vw, 20px);
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
  user-select: none;
}

.utility {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}
.utility:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========================================== */
/*  HOMEPAGE SPECIFICS                        */
/* ========================================== */

/* Hero Title & Pulse Dot */
.tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  max-width: 20ch;
  margin: 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

.dot-inline {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--accent);
  margin-left: 0.1em;
  transform: scale(0.6);
  opacity: 0;
  animation:
    dot-in 700ms cubic-bezier(0.16, 1, 0.3, 1) 900ms forwards,
    pulse 1800ms cubic-bezier(0.4, 0, 0.2, 1) 1600ms infinite;
}

/* Details Mono Row */
.uses {
  margin-top: clamp(24px, 3vw, 40px);
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 1em;
}
.uses span { white-space: nowrap; }
.uses .sep { color: var(--border); }

/* Scroll Cue Component */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 36px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0;
  animation: cue 1200ms cubic-bezier(0.16, 1, 0.3, 1) 2000ms forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 10;
}
.scroll-cue .arrow {
  width: 1px;
  height: 22px;
  background: var(--text-soft);
  animation: nudge 2200ms ease-in-out 3000ms infinite;
}
.scroll-cue:hover {
  color: var(--accent);
}
.scroll-cue:hover .arrow {
  background: var(--accent);
}

/* Slide 2: Always-dark mission overrides */
#mission {
  background: var(--ink);
  color: var(--paper);
  --text: var(--paper);
  --text-soft: #B8B5AC;
  --border: var(--line-dark);
  --accent: #F0775E;
}
#mission::before { background: var(--line-dark); }
#mission .small-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: 0.22em;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.7;
}

#mission .mission-line,
#mission .mark-foot,
#mission .backronym {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

#mission.in-view .mission-line { transition-delay: 150ms; opacity: 1; transform: none; }
#mission.in-view .mark-foot    { transition-delay: 600ms; opacity: 1; transform: none; }
#mission.in-view .backronym    { transition-delay: 900ms; opacity: 1; transform: none; }

#mission .mission-line {
  margin: 0;
  max-width: 44ch;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 36px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--paper);
}

/* Bottom Center Brand Stamp in Mission */
#mission .mark-foot {
  grid-row: 3;
  justify-self: center;
  padding-left: 0;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: flex-end;
  line-height: 0.85;
}
#mission .mark-foot .letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: 0.15em;
  color: var(--paper);
}
#mission .mark-foot .dot {
  display: inline-block;
  width: clamp(5px, 0.4vw, 7px);
  height: clamp(5px, 0.4vw, 7px);
  border-radius: 999px;
  background: var(--accent);
  margin-left: 0.15em;
  margin-bottom: 4px;
}
#mission.in-view .mark-foot .dot {
  animation: pulse 1600ms cubic-bezier(0.4, 0, 0.2, 1) 1200ms infinite;
}

#mission .backronym {
  grid-row: 4;
  justify-self: center;
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}
#mission .backronym .k {
  color: var(--accent);
  font-weight: 500;
}
#mission {
  grid-template-rows: auto 1fr auto auto auto;
}

/* ========================================== */
/*  SUBPAGES COMMON & TYPOGRAPHY               */
/* ========================================== */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.subpage-hero {
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.subpage-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

.subpage-subtitle {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
}

.content-section {
  padding: clamp(40px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border);
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.body-serif {
  font-family: var(--font-editorial);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
  color: var(--text);
}

.body-serif p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

/* Typography elements */
h2.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 34px);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* Simple list values styling */
.minimal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.minimal-list-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
}

.minimal-list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.minimal-list-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  padding-top: 4px;
}

.minimal-list-content h3 {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.minimal-list-content p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Feature grid items on features.html */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.feature-card {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

/* Table styling for Pricing and dashboard datasets */
.minimal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.minimal-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
}

.minimal-table td {
  padding: 24px 12px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(14px, 1.1vw, 16px);
  vertical-align: top;
}

.minimal-table tr:hover td {
  background-color: rgba(26, 26, 24, 0.02);
}

html.dark-theme .minimal-table tr:hover td {
  background-color: rgba(244, 242, 236, 0.01);
}

/* Pricing Cards Layout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.price-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--paper-pure);
  transition: border-color 200ms ease, background-color 300ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

html.dark-theme .price-card {
  background-color: rgba(255, 255, 255, 0.02);
}

.price-card:hover {
  border-color: var(--accent);
}

.price-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.price-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin: 4px 0 16px 0;
}

.price-amount {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.price-amount span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.price-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.price-features li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.price-btn {
  display: block;
  text-align: center;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--text);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 180ms ease, background-color 200ms ease;
}

.price-btn:hover {
  background-color: var(--accent);
}

/* Sleek Minimal Forms on contact.html */
.minimal-form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 36px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-submit {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  border-radius: 4px;
}

.form-submit:hover {
  background-color: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Sleek FAQ toggles matching contact.html */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text);
  margin: 0;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-soft);
  transition: transform 200ms ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
  padding-top: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-soft);
  line-height: 1.6;
}

/* ========================================== */
/*  FULLSCREEN MENU NAVIGATION OVERLAY        */
/* ========================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(244, 242, 236, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 400ms cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  place-content: center;
}

html.dark-theme .nav-overlay {
  background-color: rgba(26, 26, 24, 0.9);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-close {
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  right: clamp(28px, 5vw, 88px);
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
  z-index: 1002;
}

.nav-overlay-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-overlay-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-overlay-link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 48px);
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 500ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              color 200ms ease;
}

.nav-overlay.open .nav-overlay-link {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger transition delay for menu link reveal */
.nav-overlay.open .nav-overlay-link:nth-child(1) { transition-delay: 100ms; }
.nav-overlay.open .nav-overlay-link:nth-child(2) { transition-delay: 150ms; }
.nav-overlay.open .nav-overlay-link:nth-child(3) { transition-delay: 200ms; }
.nav-overlay.open .nav-overlay-link:nth-child(4) { transition-delay: 250ms; }
.nav-overlay.open .nav-overlay-link:nth-child(5) { transition-delay: 300ms; }
.nav-overlay.open .nav-overlay-link:nth-child(6) { transition-delay: 350ms; }
.nav-overlay.open .nav-overlay-link:nth-child(7) { transition-delay: 400ms; }

.nav-overlay-link:hover {
  color: var(--accent);
  transform: scale(1.03);
}

/* Theme switch block inside overlay */
.theme-selector-wrap {
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease 450ms, transform 500ms ease 450ms;
}

.nav-overlay.open .theme-selector-wrap {
  opacity: 1;
  transform: translateY(0);
}

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 180ms ease;
}

.theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-btn:hover:not(.active) {
  border-color: var(--text);
  color: var(--text);
}

/* ========================================== */
/*  WAITLIST POPUP MODAL                      */
/* ========================================== */
.waitlist-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 24, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.waitlist-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.waitlist-modal-container {
  background-color: var(--bg);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 520px;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  filter: blur(4px);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 400ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.waitlist-modal-overlay.open .waitlist-modal-container {
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.waitlist-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-soft);
  transition: color 150ms ease;
}

.waitlist-modal-close:hover {
  color: var(--accent);
}

.waitlist-modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.waitlist-modal-desc {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.waitlist-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .waitlist-form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.form_message-success-wrapper,
.form_message-error-wrapper {
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

.form_message-success-wrapper {
  background-color: rgba(59, 226, 133, 0.1);
  border: 1px solid rgba(59, 226, 133, 0.3);
  color: #27a85e;
}

.form_message-error-wrapper {
  background-color: rgba(226, 85, 59, 0.1);
  border: 1px solid rgba(226, 85, 59, 0.3);
  color: var(--accent);
}

/* ========================================== */
/*  TRANSITION AND INTERACTIVE EFFECTS        */
/* ========================================== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* CSS Keyframes */
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dot-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cue {
  to {
    opacity: 0.65;
  }
}

@keyframes nudge {
  0%, 100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 85, 59, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(226, 85, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 85, 59, 0);
  }
}

/* Page transitions / loading effect */
.loading-curtain {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.loading-curtain.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ========================================== */
/*  RESPONSIVE OVERRIDES                      */
/* ========================================== */
@media (max-width: 720px) {
  .tagline {
    max-width: 14ch;
  }
  #mission .mission-line {
    font-size: clamp(20px, 5vw, 26px);
    max-width: 22ch;
  }
  .scroll-cue {
    display: none;
  }
  .section::before {
    bottom: clamp(20px, 4vw, 56px);
  }
}

@media (max-width: 560px) {
  .uses {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .uses .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
  }
  .tagline, .dot-inline, .uses, .scroll-cue, .scroll-cue .arrow,
  #mission .mission-line, #mission .mark-foot, #mission .backronym,
  .fade-in-on-scroll {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
