/* ============================================================
   GENETIC REGIMENS — Editorial Minimal design system
   Palette pulled from the brand mark only: rust, charcoal, paper.
   Display: Fraunces (editorial serif). Body: Georgia. Labels: Arial.
   ============================================================ */

:root {
  --paper: #F7F4EC;
  --paper-deep: #EFE9DC;
  --ink: #1A1817;
  --ink-soft: #4A4642;
  --ink-faint: #7A756D;
  --rust: #A32B22;
  --rust-deep: #7C1F19;
  --line: #DCD3C1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-label: Arial, Helvetica, sans-serif;

  --max-w: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img { height: 34px; width: auto; }

.nav-brand span {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--rust); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px var(--pad);
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 2px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: var(--paper);
  border: 1px solid var(--rust);
}
.btn-primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Helix spine (signature element) ---------- */

.helix-spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.helix-spine svg { width: 100%; height: 100%; }

.helix-spine path {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 0.1s linear;
}

@media (max-width: 900px) {
  .helix-spine { display: none; }
}

/* ---------- Sections ---------- */

section { position: relative; z-index: 2; }

.section {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.section-alt { background: var(--paper-deep); }

.eyebrow {
  display: block;
  margin-bottom: 18px;
}

/* Safe-by-default: content is fully visible unless JS explicitly primes it
   with .reveal-pre (see script.js). If JS fails or is slow, nothing is ever
   hidden — this is a progressive enhancement, not a gate. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-pre { opacity: 0; transform: translateY(18px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(80px, 14vw, 150px);
  padding-bottom: clamp(60px, 10vw, 110px);
  text-align: left;
}

.hero-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.08;
  max-width: 16ch;
}

.hero .hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 24px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .hero-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }
  .hero .eyebrow { margin-bottom: 10px; }
}

/* ---------- Problem section ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 36px;
}

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

.problem-item {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.problem-item h3 { margin-bottom: 10px; }

/* ---------- Founder / two-col media ---------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

@media (max-width: 820px) {
  .split, .split.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse .split-media { order: 1; }
  .split.reverse .split-text { order: 2; }
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
}

.split-text .stat-row {
  display: flex;
  gap: 40px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.stat { min-width: 90px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--rust);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
  display: block;
}

/* ---------- What we do ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.offer-item {
  background: var(--paper);
  padding: 32px 28px;
}

.offer-item .label { display: block; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

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

.testi-card {
  border-top: 2px solid var(--rust);
  padding-top: 20px;
}

.testi-quote {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 18px;
}

.testi-name {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.testi-name strong { color: var(--ink); }

/* ---------- Consultation teaser ---------- */

.consult-box {
  border: 1px solid var(--ink);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 760px) {
  .consult-box { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
}

.final-cta h2 { max-width: 20ch; margin: 0 auto 20px; }
.final-cta .hero-sub { margin: 0 auto 32px; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Mobile sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  padding: 12px var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.sticky-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 760px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
}

/* ---------- Consultation page specific ---------- */

.hinglish-note {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.consult-steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.consult-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.consult-step:last-child { border-bottom: 1px solid var(--line); }

.consult-step .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--rust);
}

/* ---------- Consultation gate modal ---------- */

.gr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 24, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

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

body.gr-modal-lock { overflow: hidden; }

.gr-modal {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 40px);
}

.gr-modal h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: clamp(20px, 3vw, 24px);
}

.gr-modal-sub {
  font-size: 15px;
  margin-bottom: 24px;
}

.gr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}

.gr-modal-close:hover { color: var(--rust); }

.gr-field { margin-bottom: 18px; }

.gr-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.gr-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  border-radius: 0;
}

.gr-field input:focus {
  outline: none;
  border-bottom-color: var(--rust);
}

.gr-modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.gr-modal-success .gr-modal-done {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .gr-modal { padding: 28px 22px; }
}
