/* ============================================
   Prime Meridian AI — Design System
   Night Sky Navigator Theme
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colour palette — Night Sky Navigator */
  --color-primary: #E8DCC8;
  --color-primary-light: #F0E8D8;
  --color-primary-dark: #C8BCA8;
  --color-accent: #D4A853;
  --color-accent-light: #E8C87A;
  --color-accent-hover: #C49A45;
  --color-bg: #0B1120;
  --color-surface: #131B2E;
  --color-surface-alt: #1A2540;
  --color-text: #C8C5BE;
  --color-text-secondary: #8A8780;
  --color-text-inverse: #0B1120;
  --color-border: #1E2A42;
  --color-border-light: #1A2540;
  --color-success: #4ADE80;
  --color-error: #F87171;

  /* Typography */
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Type scale (1.25 ratio) */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1140px;
  --max-width-narrow: 720px;
  --max-width-wide: 1320px;
  --nav-height: 72px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section--alt {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-surface-alt);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-primary);
}

/* Atmospheric section dividers */
.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), var(--color-accent), var(--color-border), transparent);
  opacity: 0.4;
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 42, 66, 0.6);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.nav--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav__logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-left: var(--space-xs);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn--nav {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children in grids */
.reveal-stagger .reveal {
  transition-delay: calc(var(--reveal-index, 0) * 0.08s);
}


/* --- Hero --- */
.hero {
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  position: relative;
}

.hero__title {
  font-size: var(--text-4xl);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
  position: relative;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Hero load animation */
.hero .hero__eyebrow,
.hero .hero__title,
.hero .hero__subtitle,
.hero .hero__actions {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .hero__eyebrow { animation-delay: 0.1s; }
.hero .hero__title   { animation-delay: 0.2s; }
.hero .hero__subtitle { animation-delay: 0.35s; }
.hero .hero__actions  { animation-delay: 0.5s; }

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


/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Accent top-edge on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--color-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

/* Cards inside alt sections get contrasting bg */
.section--alt .card {
  background: var(--color-bg);
}

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
  background: rgba(212, 168, 83, 0.06);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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


/* --- Steps --- */
.steps {
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  counter-increment: step-counter;
  position: relative;
}

.step + .step {
  border-top: 1px solid var(--color-border-light);
}

.step__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  transition: all var(--transition-base);
}

.step:hover .step__number {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.25);
}

.step__content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.step__content p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.step__time {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}


/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}


/* --- Testimonial / Quote --- */
.quote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-xl);
  margin: var(--space-2xl) 0;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.quote__attribution {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-sm);
}


/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-lg);
  position: relative;
}

.cta-banner .btn {
  position: relative;
}


/* --- Objection Handler --- */
.objection {
  padding: var(--space-xl) 0;
  transition: all var(--transition-base);
}

.objection + .objection {
  border-top: 1px solid var(--color-border-light);
}

.objection__question {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.objection__answer {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  max-width: 640px;
}


/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
  padding: var(--space-xl) 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}


/* --- About / Profile --- */
.profile {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.profile__image {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
}

.profile__content h1 {
  margin-bottom: var(--space-md);
}

.profile__content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}


/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-group input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.form-group .optional {
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--color-accent);
}

.checkbox-group label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}


/* --- Calendly Embed --- */
.calendly-embed {
  min-height: 650px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}


/* --- Footer --- */
.footer {
  background: #080D18;
  color: var(--color-text-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), rgba(212, 168, 83, 0.3), var(--color-border), transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  margin-bottom: var(--space-md);
}

.footer__brand img {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-size: var(--text-sm);
  max-width: 300px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.footer__links a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.footer__bottom a {
  color: var(--color-text-secondary);
}

.footer__bottom a:hover {
  color: var(--color-accent);
}


/* --- Decorative Accents --- */

/* Subtle corner accent on section headers */
.section-header__eyebrow::before,
.section-header__eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
  opacity: 0.5;
}

.section-header__eyebrow::before {
  margin-right: var(--space-sm);
}

.section-header__eyebrow::after {
  margin-left: var(--space-sm);
}

/* Gold accent dot separator between card icon and title */
.card__icon::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: var(--space-sm);
  opacity: 0.6;
}

/* Subtle grid dots background on alt sections */
.section--alt {
  background-image: radial-gradient(circle, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Accent line on steps connecting the numbers */
.step::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 78px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  opacity: 0.15;
}

.step:last-child::after {
  display: none;
}

/* Hero eyebrow gets the same flanking lines */
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
  opacity: 0.4;
}

.hero__eyebrow::before {
  margin-right: var(--space-sm);
}

.hero__eyebrow::after {
  margin-left: var(--space-sm);
}


/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}


/* --- Page offset for fixed nav --- */
main {
  padding-top: var(--nav-height);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Mobile nav */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(19, 27, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .step::after {
    display: none;
  }

  .profile {
    gap: var(--space-xl);
  }

  .profile__image {
    max-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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

/* ============================================
   Homepage Enhancements (v2 April 2026)
   ============================================ */

/* --- Noise Texture Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  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.9' 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: 256px;
}

/* --- Meridian Line --- */
.meridian-line {
  position: fixed;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(212, 168, 83, 0.06) 20%,
    rgba(212, 168, 83, 0.03) 50%,
    rgba(212, 168, 83, 0.06) 80%,
    transparent 100%
  );
}

/* --- Homepage Hero: Asymmetric Grid --- */
.hero--home {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: left;
}

/* Constellation dot grid */
.hero--home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(212, 168, 83, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 0%, transparent 70%);
}

.hero__glow {
  position: absolute;
  top: 10%; right: 5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.07) 0%, rgba(212, 168, 83, 0.02) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero--home__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
}

.hero--home .hero__content {
  position: relative;
  z-index: 2;
}

.hero--home .hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero--home .hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-light);
}

.hero--home .hero__subtitle {
  font-weight: 300;
}

.hero--home .hero__actions {
  justify-content: flex-start;
}

/* --- Opportunity Map Preview --- */
.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-preview {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto;
}

.map-preview__bg {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(212, 168, 83, 0.08), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.map-preview__axis-y,
.map-preview__axis-x {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.map-preview__axis-y {
  left: 16px; top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
  white-space: nowrap;
}

.map-preview__axis-x {
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-preview__grid {
  position: absolute;
  inset: 40px;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 25% 25%;
  opacity: 0.4;
}

.map-preview__quadrant {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.25;
  color: var(--color-primary);
}

.map-preview__quadrant--tl { top: 48px; left: 48px; }
.map-preview__quadrant--tr { top: 48px; right: 48px; color: var(--color-accent); opacity: 0.5; }
.map-preview__quadrant--bl { bottom: 48px; left: 48px; }
.map-preview__quadrant--br { bottom: 48px; right: 48px; }

.map-dot {
  position: absolute;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: dot-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.map-dot:hover {
  transform: scale(1.5);
}

.map-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.map-dot:hover::after { opacity: 1; }

@keyframes dot-appear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.map-preview__trend {
  position: absolute;
  inset: 40px;
  overflow: hidden;
  pointer-events: none;
}

.map-preview__trend::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 141%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: rotate(-45deg);
  transform-origin: bottom left;
  opacity: 0.2;
}

/* Hero load animation for homepage */
.hero--home .hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero--home .hero__content > :nth-child(1) { animation-delay: 0.15s; }
.hero--home .hero__content > :nth-child(2) { animation-delay: 0.3s; }
.hero--home .hero__content > :nth-child(3) { animation-delay: 0.45s; }
.hero--home .hero__content > :nth-child(4) { animation-delay: 0.6s; }

.hero--home .hero__visual {
  opacity: 0;
  animation: hero-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* --- Differentiators Grid --- */
.differentiators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border-light);
}

.diff-item {
  padding: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-slow);
}

.diff-item:nth-child(odd) {
  border-right: 1px solid var(--color-border-light);
}

.diff-item:hover {
  background: rgba(212, 168, 83, 0.02);
}

.diff-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.diff-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  font-weight: 300;
  max-width: 380px;
}

/* --- Homepage Responsive --- */
@media (max-width: 900px) {
  .hero--home__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    display: none;
  }
  .hero--home {
    text-align: center;
  }
  .hero--home .hero__actions {
    justify-content: center;
  }
  .differentiators {
    grid-template-columns: 1fr;
  }
  .diff-item:nth-child(odd) {
    border-right: none;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  animation: cookieSlideUp 0.3s ease-out;
}

.cookie-banner--hidden {
  animation: cookieSlideDown 0.3s ease-in forwards;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cookieSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cookie-banner__btn--accept {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-accent-hover);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.cookie-banner__btn--reject:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

#cookie-settings-link {
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: center;
  }
}
