/* ZenithLife — The Ascent design system */
@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@600;700&family=Karla:wght@400;600&family=Space+Mono:wght@500&display=swap');

:root {
  --chalk: #FAF8F4;
  --glacier: #E6ECEE;
  --basalt: #12161C;
  --solar: #EA580C;
  --solar-light: #FB923C;
  --solar-muted: #FDBA74;
  --stone: #5C6670;
  --font-heading: 'Chivo', sans-serif;
  --font-body: 'Karla', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --max-width: 72rem;
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  background: var(--chalk);
  color: var(--basalt);
}

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

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { opacity: 0.85; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.25rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }

/* Surfaces */
.surface-chalk { background: var(--chalk); color: var(--basalt); }
.surface-glacier { background: var(--glacier); color: var(--basalt); }
.surface-basalt { background: var(--basalt); color: var(--chalk); }
.surface-solar { background: var(--solar); color: var(--chalk); }

.text-stone { color: var(--stone); }
.text-solar { color: var(--solar); }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 1rem;
}

.surface-basalt .eyebrow { color: var(--solar-light); }
.surface-glacier .eyebrow,
.surface-chalk .eyebrow { color: var(--solar); }

.hairline {
  border: none;
  border-top: 1px solid rgba(18, 22, 28, 0.12);
  margin: 0;
}

.surface-basalt .hairline { border-top-color: rgba(250, 248, 244, 0.2); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  color: var(--basalt);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--chalk);
  box-shadow: 0 1px 0 rgba(18, 22, 28, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-peak {
  width: 0;
  height: 0;
  border-left: 0.45rem solid transparent;
  border-right: 0.45rem solid transparent;
  border-bottom: 0.75rem solid var(--solar);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.main-nav a[aria-current="page"] { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--solar);
  color: var(--chalk);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.surface-solar .cta-btn-light {
  background: var(--chalk);
  color: var(--basalt);
}

.surface-solar .cta-btn-outline {
  border-color: var(--chalk);
  color: var(--chalk);
}

.surface-basalt .btn-secondary { border-color: var(--chalk); }
.surface-basalt .btn-primary { background: var(--solar); color: var(--chalk); }

.surface-basalt .project-tag,
.surface-basalt .card-num,
.surface-basalt .faq-question::after { color: var(--solar-light); }

.surface-basalt .stat-num { color: var(--solar-light); }

.surface-basalt .capability-row .cap-num { color: var(--solar-light); }

.btn:hover { filter: brightness(1.05); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero — The Ascent */
.hero-ascent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--chalk) 0%, var(--glacier) 100%);
  padding: 6.5rem 0 0;
}

.hero-ascent-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero-ascent-content {
  position: relative;
  z-index: 2;
}

.hero-ascent-visual {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(18, 22, 28, 0.12);
  border: 1px solid rgba(18, 22, 28, 0.08);
}

.hero-ascent-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 22, 28, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-ascent-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.altitude-line,
.altitude-ticks { display: none; }

.hero-the-ascent {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-bottom: 1rem;
}

.hero-ascent h1 {
  max-width: 22ch;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.0625rem;
  max-width: 58ch;
  line-height: 1.7;
  color: var(--stone);
  margin-bottom: 0;
}

.hero-trust {
  padding: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--solar);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.45;
}

.surface-basalt .stat-label { color: rgba(250, 248, 244, 0.75); }

/* Horizontal ridge — 4 stages */
.ridge-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 2.5rem;
}

.ridge-rail::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(18, 22, 28, 0.12);
  z-index: 0;
}

.surface-basalt .ridge-rail::before { background: rgba(250, 248, 244, 0.15); }

.ridge-item {
  position: relative;
  padding: 0 1rem 0 0;
  z-index: 1;
}

.ridge-item::before {
  content: attr(data-stage);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--solar-light);
  display: block;
  margin-bottom: 1.5rem;
}

.surface-chalk .ridge-item::before,
.surface-glacier .ridge-item::before { color: var(--solar); }

.ridge-marker {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--solar);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.surface-basalt .ridge-marker { box-shadow: 0 0 0 3px var(--basalt); }

.ridge-item h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }

.ridge-item p {
  font-size: 0.9375rem;
  color: var(--stone);
  margin: 0;
}

.surface-basalt .ridge-item p { color: rgba(250, 248, 244, 0.75); }

/* Measure trio */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.trio-card h3 { margin-bottom: 0.75rem; }

.trio-card p { color: var(--stone); margin: 0; }

/* Capability rows */
.capability-rows { display: flex; flex-direction: column; }

.capability-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(18, 22, 28, 0.1);
  align-items: start;
}

.capability-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

.capability-row:first-child { border-top: 1px solid rgba(18, 22, 28, 0.1); }

.surface-basalt .capability-row {
  border-bottom-color: rgba(250, 248, 244, 0.12);
}

.surface-basalt .capability-row:first-child {
  border-top-color: rgba(250, 248, 244, 0.12);
}

.capability-row .cap-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--solar);
  display: block;
  margin-bottom: 0.5rem;
}

.capability-row h3 { margin-bottom: 0; }

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* Photo frame */
.photo-frame { margin: 0; }

.photo-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.75rem;
}

/* Cards */
.card {
  padding: 1.75rem;
  border: 1px solid rgba(18, 22, 28, 0.1);
  background: var(--chalk);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--solar);
  display: block;
  margin-bottom: 0.75rem;
}

/* Expectations block */
.expectations-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.expectations-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(18, 22, 28, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.expectations-list li::before {
  content: '—';
  font-family: var(--font-mono);
  color: var(--solar);
}

.surface-basalt .expectations-list li::before { color: var(--solar-light); }

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item { border-bottom: 1px solid rgba(18, 22, 28, 0.12); }

.surface-basalt .faq-item { border-bottom-color: rgba(250, 248, 244, 0.12); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--solar);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after { content: '−'; }

.faq-answer { padding-bottom: 1.25rem; }

.faq-answer p { margin: 0; color: var(--stone); }

.surface-basalt .faq-answer p { color: rgba(250, 248, 244, 0.8); }

/* CTA band */
.cta-band { text-align: center; }

.surface-solar.cta-band { color: var(--chalk); }

.surface-solar.cta-band h2 { color: var(--chalk); margin-bottom: 1rem; }

.surface-solar.cta-band p {
  max-width: 45ch;
  margin: 0 auto 1.5rem;
  color: rgba(250, 248, 244, 0.92);
}

.cta-band h2 { margin-bottom: 1rem; }

.cta-band p {
  max-width: 45ch;
  margin: 0 auto 1.5rem;
  color: var(--stone);
}

.surface-basalt .cta-band p { color: rgba(250, 248, 244, 0.8); }

/* Page hero */
.page-hero { padding-top: 7rem; }

.page-hero h1 { margin-bottom: 1rem; }

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stone);
}

/* Project cards */
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 0.5rem;
}

.service-block { margin-bottom: 2.5rem; }

.service-block.grid-2 {
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.service-block:last-child { margin-bottom: 0; }

/* Forms */
.form-surface {
  background: var(--chalk);
  padding: 2rem;
  border: 1px solid rgba(18, 22, 28, 0.1);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(18, 22, 28, 0.2);
  background: var(--chalk);
  color: var(--basalt);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--solar);
  outline-offset: 2px;
}

.form-group textarea { min-height: 8rem; resize: vertical; }

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.form-check input { width: auto; margin-top: 0.3rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 1rem;
}

.form-message {
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.form-message.success {
  background: rgba(194, 65, 12, 0.08);
  border-color: var(--solar);
  color: var(--solar);
}

.form-message.error {
  background: rgba(18, 22, 28, 0.06);
  border-color: var(--basalt);
}

/* Legal content */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.1875rem;
  margin-top: 1.75rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(18, 22, 28, 0.1);
}

.legal-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(18, 22, 28, 0.15);
}

.legal-nav a[aria-current="page"] {
  background: var(--basalt);
  color: var(--chalk);
  border-color: var(--basalt);
}

/* 404 */
.error-page {
  min-height: 65vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 8rem 0 4rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  color: var(--solar);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.error-page h1 { margin-bottom: 1rem; }

.error-page p {
  color: var(--stone);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a { text-decoration: none; }

.site-footer .footer-links .eyebrow,
.site-footer .footer-clarifier { color: var(--solar-light); }

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.88);
}

.surface-chalk .footer-disclaimer,
.surface-glacier .footer-disclaimer {
  border-top-color: rgba(18, 22, 28, 0.1);
}

.footer-clarifier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 1rem;
  color: var(--solar-muted);
}

.footer-copy {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.65);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--basalt);
  color: var(--chalk);
  padding: 1.25rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.cookie-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-text a { color: var(--solar-light); }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cookie-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 248, 244, 0.15);
}

.cookie-option {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-ascent-inner,
  .grid-2,
  .grid-3,
  .trio-grid,
  .stat-row,
  .ridge-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ascent h1 { max-width: none; }

  .capability-row {
    grid-template-columns: 5rem 1fr;
    gap: 1rem 1.25rem;
  }

  .capability-row img { grid-row: 1 / 3; }

  .capability-row p { grid-column: 1 / -1; }

  .ridge-rail::before { display: none; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--chalk);
    border-bottom: 1px solid rgba(18, 22, 28, 0.08);
    display: none;
    padding: 1rem 1.25rem;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .ridge-rail { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .cookie-banner { transition: none; }
}
