/* ============================================
   CSS CUSTOM PROPERTIES — BRAND SYSTEM
   ============================================ */
:root {
  /* Backgrounds — light theme */
  --color-bg-deep:      #EDE8D8;
  --color-bg-surface:   #E0DBCB;
  --color-bg-raised:    #D5D0C0;

  /* Brand Accents */
  --color-orange:       #C8601A;
  --color-orange-muted: #A34E14;
  --color-olive:        #5C6B2E;
  --color-olive-light:  #7A8A3A;

  /* Text — dark on light */
  --color-text-primary:   #181C0F;
  --color-text-secondary: #3A3D2E;
  --color-text-muted:     #7A7D6E;
  --color-text-inverse:   #EDE8D8;

  /* Functional */
  --color-border:        #C5C0B0;
  --color-border-accent: #C8601A;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'IBM Plex Sans', sans-serif;

  /* Type Scale — viewport-responsive */
  --text-xs:   clamp(0.75rem, 0.65rem + 0.2vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.75rem + 0.25vw, 1.05rem);
  --text-base: clamp(1rem, 0.85rem + 0.3vw, 1.2rem);
  --text-lg:   clamp(1.25rem, 1rem + 0.5vw, 1.6rem);
  --text-xl:   clamp(1.75rem, 1.3rem + 0.9vw, 2.4rem);
  --text-2xl:  clamp(2.5rem, 1.8rem + 1.4vw, 3.5rem);
  --text-3xl:  clamp(3.5rem, 2.5rem + 2vw, 5rem);
  --text-4xl:  clamp(5rem, 3.5rem + 3vw, 7rem);

  /* Motion */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-smooth:  cubic-bezier(0, 0.5, 0.5, 1);
  --duration-ui:   300ms;
  --duration-reveal: 700ms;

  /* Color cycling */
  --cycle-1: #C8601A;
  --cycle-2: #5C6B2E;
  --cycle-3: #7A8A3A;
  --cycle-4: #A34E14;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-deep);
  overflow-x: hidden;
  position: relative;
}

#halftoneTopCanvas,
#halftoneBottomCanvas {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

#halftoneTopCanvas {
  top: 0;
}

#halftoneBottomCanvas {
  bottom: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

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

/* ============================================
   COLOR CYCLING ANIMATION
   ============================================ */
@keyframes colorCycle {
  0%   { background-color: var(--cycle-1); }
  25%  { background-color: var(--cycle-2); }
  50%  { background-color: var(--cycle-3); }
  75%  { background-color: var(--cycle-4); }
  100% { background-color: var(--cycle-1); }
}

@keyframes colorCycleText {
  0%   { color: var(--cycle-1); }
  25%  { color: var(--cycle-2); }
  50%  { color: var(--cycle-3); }
  75%  { color: var(--cycle-4); }
  100% { color: var(--cycle-1); }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-reveal) var(--ease-default),
              transform var(--duration-reveal) var(--ease-default);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#voxelCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

body.lite-mode #voxelCanvas {
  display: none;
}

#grainCanvas,
#dotCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#grainCanvas {
  opacity: 0.04;
  z-index: 6;
}

#dotCanvas {
  opacity: 0.06;
  z-index: 6;
}

body.lite-mode #grainCanvas,
body.lite-mode #dotCanvas {
  display: none;
}


/* ============================================
   HERO SECTION — Full-viewport opening
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 6vw, 8rem) 0;
}

.hero-content {
  max-width: clamp(520px, 48vw, 800px);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw, 1rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 3rem);
}

.hero-label-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 1.08;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

.hero-line {
  display: block;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: clamp(380px, 34vw, 560px);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================
   WAITLIST FORM (shared by hero + closing CTA)
   ============================================ */
.waitlist-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
  width: 100%;
}

.waitlist-input {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem;
  outline: none;
  transition: border-color var(--duration-ui) var(--ease-default);
  -webkit-appearance: none;
  border-radius: 0;
}

.waitlist-input::placeholder {
  color: var(--color-text-muted);
}

.waitlist-input:focus {
  border-color: var(--color-orange);
}

.waitlist-input:disabled {
  opacity: 0.5;
  cursor: default;
}

.waitlist-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-inverse);
  background-color: var(--color-orange);
  border: 1px solid var(--color-orange);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background-color var(--duration-ui) var(--ease-default),
              color var(--duration-ui) var(--ease-default),
              border-color var(--duration-ui) var(--ease-default);
}

.waitlist-btn:hover {
  background-color: transparent;
  color: var(--color-orange);
}

.waitlist-btn:active {
  background-color: var(--color-orange-muted);
  color: var(--color-text-inverse);
  border-color: var(--color-orange-muted);
}

.waitlist-btn.submitted,
.waitlist-btn.submitted:hover {
  background-color: transparent;
  color: var(--color-olive-light);
  border-color: var(--color-olive-light);
  cursor: default;
  pointer-events: none;
}

.waitlist-form-success {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-olive-light);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.hero-form-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ============================================
   SIDE NAVIGATION (FIXED)
   ============================================ */
#sideNav {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(200px, 14vw, 300px);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 3vw, 4rem) clamp(1.5rem, 2vw, 3rem);
  opacity: 1;
  pointer-events: auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.3vw, 1.35rem);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 3vw, 4rem);
  cursor: pointer;
  transition: color var(--duration-ui) var(--ease-default);
}

.nav-logo:hover {
  color: var(--color-orange);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links li a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color var(--duration-ui) var(--ease-default);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-text-primary);
}

.nav-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background-color var(--duration-ui) var(--ease-default),
              width var(--duration-ui) var(--ease-default);
}

.nav-links li a:hover .nav-dot,
.nav-links li a.active .nav-dot {
  background-color: var(--color-olive);
  width: 12px;
}

.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-social {
  display: flex;
  gap: 1.25rem;
}

.nav-social a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-ui) var(--ease-default);
}

.nav-social a:hover {
  color: var(--color-text-primary);
}

.nav-toggles {
  display: flex;
  gap: 1rem;
}

.nav-toggle-btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--duration-ui) var(--ease-default);
}

.nav-toggle-btn:hover {
  color: var(--color-text-primary);
}

.nav-toggle-btn .toggle-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 0.4em;
  vertical-align: middle;
  background-color: var(--color-olive);
  transition: background-color var(--duration-ui) var(--ease-default);
}

.nav-toggle-btn.on .toggle-indicator {
  background-color: var(--color-orange);
}

/* ============================================
   MOBILE NAV (HAMBURGER)
   ============================================ */
#mobileNavToggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  pointer-events: auto;
}

#mobileNavToggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform var(--duration-ui) var(--ease-default),
              opacity var(--duration-ui) var(--ease-default),
              background-color var(--duration-ui) var(--ease-default);
}

#mobileNavToggle span:nth-child(1) { background-color: var(--color-orange); }
#mobileNavToggle span:nth-child(2) { background-color: var(--color-olive-light); }
#mobileNavToggle span:nth-child(3) { background-color: var(--color-olive); }

#mobileNavToggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#mobileNavToggle.open span:nth-child(2) {
  opacity: 0;
}
#mobileNavToggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

#mobileMenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background-color: var(--color-bg-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 400ms var(--ease-default);
}

#mobileMenu.open {
  opacity: 1;
}

#mobileMenu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  transition: color var(--duration-ui) var(--ease-default);
}

#mobileMenu a:hover {
  color: var(--color-orange);
}

.mobile-logo {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 200;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  display: none;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile top bar gradient — only present at <=1024px, hidden on desktop */
.mobile-top-bar-bg {
  display: none;
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */
#mainContent {
  position: relative;
  z-index: 10;
  --nav-w: clamp(200px, 14vw, 300px);
  --content-max: clamp(640px, 48vw, 960px);
  --content-pad: max(clamp(1.5rem, 3vw, 4rem), calc((100vw - var(--nav-w) - var(--content-max)) / 2));
  --backdrop-bleed: clamp(3rem, 5vw, 5rem);
  margin-left: var(--nav-w);
  margin-right: 0;
  width: calc(100vw - var(--nav-w));
  max-width: 100%;
  padding: 0 var(--content-pad);
  opacity: 1;
  pointer-events: auto;
}

#mainContent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(237, 232, 216, 0.0) 0%,
    rgba(237, 232, 216, 0.75) 5%,
    rgba(237, 232, 216, 0.88) 15%,
    rgba(237, 232, 216, 0.88) 85%,
    rgba(237, 232, 216, 0.75) 95%,
    rgba(237, 232, 216, 0.0) 100%
  );
  z-index: -2;
  pointer-events: none;
}

#mainContent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: clamp(2.5rem, 3.5vw, 5rem) 0;
  position: relative;
}

/* First regular section after hero */
.hero-section + .section {
  padding-top: clamp(2rem, 2.5vw, 4rem);
}

/* Section number + label */
.section-label {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1vw, 1.25rem);
  margin-bottom: clamp(2.5rem, 3.5vw, 4.5rem);
}

.section-cube {
  width: clamp(24px, 2vw, 36px);
  height: clamp(24px, 2vw, 36px);
  flex-shrink: 0;
  animation: colorCycle 4s steps(1, jump-end) infinite;
}

.section-number {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Display heading */
.display-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.12;
  color: var(--color-text-primary);
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
  letter-spacing: -0.02em;
}

/* Sub heading */
.sub-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: clamp(1rem, 1.5vw, 2rem);
  letter-spacing: -0.01em;
}

/* Body text */
.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: clamp(480px, 42vw, 720px);
}

.body-text + .body-text {
  margin-top: 1.25rem;
}

/* Dot divider */
.dot-divider {
  display: flex;
  gap: clamp(5px, 0.5vw, 8px);
  padding: clamp(2rem, 3vw, 4rem) 0;
}

.dot-divider .dot {
  width: clamp(4px, 0.35vw, 6px);
  height: clamp(4px, 0.35vw, 6px);
}

.dot-divider .dot:nth-child(1) { background-color: var(--color-orange); }
.dot-divider .dot:nth-child(2) { background-color: var(--color-olive); }
.dot-divider .dot:nth-child(3) { background-color: var(--color-olive-light); }
.dot-divider .dot:nth-child(4) { background-color: var(--color-orange-muted); }

.dot-divider.large .dot {
  width: clamp(10px, 1vw, 16px);
  height: clamp(10px, 1vw, 16px);
}

/* ============================================
   SECTION-SPECIFIC: PRINCIPLES
   ============================================ */
.principle-item {
  display: flex;
  gap: clamp(1.25rem, 1.5vw, 2rem);
  margin-bottom: clamp(2rem, 2.5vw, 3.5rem);
  align-items: flex-start;
}

.principle-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text-inverse);
  width: clamp(36px, 3vw, 52px);
  height: clamp(36px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: colorCycle 4s steps(1, jump-end) infinite;
}

.principle-number:nth-child(1) { animation-delay: 0s; }

.principle-item:nth-child(2) .principle-number { animation-delay: -1s; }
.principle-item:nth-child(3) .principle-number { animation-delay: -2s; }
.principle-item:nth-child(4) .principle-number { animation-delay: -3s; }

.principle-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  padding-top: 0.5rem;
}

/* ============================================
   SECTION-SPECIFIC: FEATURES / CAPABILITIES
   ============================================ */
.subsection-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 3vw, 3.5rem);
  padding: clamp(2rem, 2.5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-card:last-child {
  border-bottom: none;
}

.feature-card-text {
  flex: 1;
  min-width: 0;
}

.feature-card-media {
  flex: 0 0 clamp(200px, 22vw, 380px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  align-self: center;
}

.feature-card-media video {
  display: block;
  width: 100%;
  height: auto;
}

.feature-card-number {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.feature-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.feature-card-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-orange);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.feature-card-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: clamp(440px, 38vw, 680px);
}

/* Who it's for list */
.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.audience-list li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audience-list li .al-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  animation: colorCycle 4s steps(1, jump-end) infinite;
}

.audience-list li:nth-child(2) .al-dot { animation-delay: -1.33s; }
.audience-list li:nth-child(3) .al-dot { animation-delay: -2.66s; }

/* Contact sub-section */
.contact-block {
  margin-top: 2rem;
}

.contact-block a {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--duration-ui) var(--ease-default),
              border-color var(--duration-ui) var(--ease-default);
}

.contact-block a:hover {
  color: var(--color-orange);
  border-color: var(--color-orange);
}

/* CTA Button */
/* Section video */
.section-video {
  margin-top: clamp(2rem, 3vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(200, 96, 26, 0.10);
  background-color: var(--color-bg-surface);
}

.section-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* Section body paragraph */
.section-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  padding: clamp(3rem, 4vw, 6rem) 0;
  border-top: 1px solid var(--color-border);
  margin-top: clamp(3rem, 4vw, 6rem);
}


.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-ui) var(--ease-default);
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

/* ============================================
   HALFTONE SECTION BACKGROUNDS
   ============================================ */
.halftone-bg {
  position: relative;
}

.halftone-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--color-orange) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.06;
  z-index: -1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

  .section-cube,
  .principle-number,
  .audience-list li .al-dot {
    animation: none !important;
    background-color: var(--color-orange) !important;
  }
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  #sideNav {
    display: none;
  }

  #mobileNavToggle {
    display: flex;
  }

  #mobileMenu {
    display: flex;
  }

  .mobile-logo {
    display: block;
  }

  #mainContent {
    --nav-w: 0px;
    --content-pad: 2rem;
    --backdrop-bleed: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    max-width: 640px;
    padding: 3.5rem var(--content-pad) 0;
  }

  /* Readability backdrop: full-width solid on tablet */
  #mainContent::before {
    left: 0;
    transform: none;
    width: 100%;
    background: rgba(237, 232, 216, 0.94);
  }

  .section {
    padding: 2rem 0;
  }

  .hero-section + .section {
    padding-top: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  /* Fixed mobile top bar background — solid bar with soft fade at bottom */
  .mobile-top-bar-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
      180deg,
      var(--color-bg-deep) 0%,
      var(--color-bg-deep) 65%,
      rgba(237, 232, 216, 0.0) 100%
    );
    z-index: 99;
    pointer-events: none;
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
  :root {
    --text-4xl: 3rem;
    --text-3xl: 2.25rem;
    --text-2xl: 1.75rem;
    --text-xl:  1.4rem;
    --text-lg:  1.25rem;
    --text-base: 1rem;
    --text-sm:  0.875rem;
    --text-xs:  0.75rem;
  }

  #mainContent {
    --content-pad: 1.25rem;
    --backdrop-bleed: 1.25rem;
    padding: 3.5rem var(--content-pad) 0;
  }

  .waitlist-form {
    flex-wrap: wrap;
  }

  .waitlist-btn {
    width: 100%;
  }

  .section {
    padding: 1.5rem 0;
  }

  .hero-section + .section {
    padding-top: 1rem;
  }

  .section-label {
    margin-bottom: 2rem;
  }

  .display-heading {
    margin-bottom: 1.5rem;
  }

  .dot-divider {
    padding: 2rem 0;
  }

  .dot-divider.large {
    padding: 2.5rem 0;
  }

  .principle-item {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .principle-text {
    padding-top: 0;
  }

  .feature-card {
    flex-direction: column;
    padding: 1.75rem 0;
  }

  .feature-card-media {
    flex: none;
    width: 100%;
  }

  .sub-heading {
    margin-bottom: 1rem;
  }

  .subsection-label {
    margin-bottom: 1.75rem;
  }

  /* Hero on mobile */
  .hero-headline {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-sub {
    max-width: 100%;
    font-size: var(--text-base);
  }

  .site-footer {
    padding: 3rem 0;
    margin-top: 2rem;
  }

  .body-text {
    max-width: 100%;
  }

  .feature-card-body {
    max-width: 100%;
  }
}
