/* ===========================
   Custom Properties
   =========================== */
:root {
  /* Brand */
  --color-evergreen: #375033;
  --color-sky-blue: #0096f7;
  --color-terracotta: #C4622D;
  --color-deep-forest: #13140e;
  --color-creme: #f4f3e8;

  /* Surface */
  --color-bg: #fdfdf7;
  --color-bg-alt: #f5f2de;
  --color-stat-card: #ece8d5;

  /* Text */
  --color-ink: #000000;
  --color-graphite: #666666;
  --color-stone: #999999;

  /* UI */
  --color-border: #e7e3e1;
  --color-white: #ffffff;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  --max-width: 1200px;
  --section-gap: 96px;
  --label-col: 148px;
  --content-max: 660px;

  --ease-out: cubic-bezier(0.25, 0, 0, 1);
  --radius: 5px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.feature-grid .feature {
  opacity: 0;
  transform: translateY(10px);
}

.feature-grid .feature:nth-child(1) { transition: opacity 0.4s ease 0.08s, transform 0.4s ease 0.08s; }
.feature-grid .feature:nth-child(2) { transition: opacity 0.4s ease 0.16s, transform 0.4s ease 0.16s; }
.feature-grid .feature:nth-child(3) { transition: opacity 0.4s ease 0.24s, transform 0.4s ease 0.24s; }

.two-col.visible .feature { opacity: 1; transform: none; }

.stat-callout {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.two-col.visible .stat-callout { opacity: 1; transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===========================
   Reduced motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .feature-grid .feature, .stat-callout,
  .hero-wordmark, .hero-headline, .hero-body, .hero-ctas,
  .hero-bg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.two-col {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: 56px;
  align-items: start;
}

.label-col { padding-top: 8px; }

.split-content {
  display: grid;
  grid-template-columns: 55fr 42fr;
  gap: 56px;
  align-items: start;
}

/* ===========================
   Hero animations
   =========================== */
@keyframes fadeUpBlur {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes heroBgZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.hero-wordmark { animation: fadeUpBlur 0.6s var(--ease-out) forwards; animation-delay: 0.2s; opacity: 0; }
.hero-headline { animation: fadeUpBlur 0.65s var(--ease-out) forwards; animation-delay: 0.42s; opacity: 0; }
.hero-body     { animation: fadeUpBlur 0.65s var(--ease-out) forwards; animation-delay: 0.72s; opacity: 0; }
.hero-ctas     { animation: fadeUpBlur 0.55s var(--ease-out) forwards; animation-delay: 1.0s; opacity: 0; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.15px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover { opacity: 0.78; }

.btn-primary-hero { background: var(--color-sky-blue); color: var(--color-white); }
.btn-ghost-hero   { background: transparent; color: var(--color-creme); border: 1px solid rgba(244,243,232,0.38); }

.btn-nav {
  background: transparent;
  color: rgba(244,243,232,0.68);
  border: 1px solid rgba(244,243,232,0.22);
  padding: 9px 18px;
  font-size: 14px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.nav.scrolled .btn-nav {
  background: var(--color-evergreen);
  color: var(--color-white);
  border-color: var(--color-evergreen);
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 15px 22px;
}

/* ===========================
   Nav
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(242, 245, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  padding: 14px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-brand {
  font-size: 15px;
  letter-spacing: -0.2px;
  color: rgba(244,243,232,0.78);
  transition: color 0.3s;
}
.nav.scrolled .nav-brand { color: var(--color-evergreen); }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 84px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background-image:
    linear-gradient(to bottom,
      rgba(13,14,9,0.42) 0%,
      rgba(13,14,9,0.68) 52%,
      rgba(13,14,9,0.94) 100%),
    url('hero.jpg');
  background-size: cover;
  background-position: center top;
  animation: heroBgZoom 3.2s var(--ease-out) forwards;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-inner { max-width: 600px; }

.hero-wordmark {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: rgba(244,243,232,0.4);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-headline {
  font-size: clamp(30px, 5.5vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: clamp(-0.3px, -0.015em, -1px);
  color: var(--color-creme);
  margin-bottom: 44px;
  text-wrap: balance;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-body p {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.08px;
  color: rgba(244,243,232,0.62);
}

.hero-close {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: rgba(244,243,232,0.88);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

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

.section-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--color-evergreen);
  text-transform: uppercase;
  line-height: 1;
  border-left: 2px solid var(--color-evergreen);
  border-radius: 0 6px 6px 0;
  padding: 7px 11px 7px 9px;
}

/* Parchment sections — label gets warm sand */
.section .section-label {
  background: var(--color-bg-alt);
}

/* Warm sand sections — label gets light evergreen tint */
.section-alt .section-label {
  background: #dce6da;
}

.section-heading {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: clamp(-0.5px, -0.024em, -1.2px);
  color: var(--color-evergreen);
  margin-bottom: 22px;
  text-wrap: balance;
  padding-top: 18px;
}

.section-heading::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-evergreen);
  margin-bottom: 16px;
  opacity: 0.6;
}

.section-heading--no-rule::before { display: none; }
.section-heading--no-rule { padding-top: 0; margin-bottom: 28px; }

.section-intro {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.1px;
  color: var(--color-ink);
  margin-bottom: 36px;
  max-width: 65ch;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-body p {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.1px;
  color: var(--color-ink);
  max-width: 65ch;
}

.close-line {
  font-size: 18px;
  line-height: 1.48;
  letter-spacing: -0.25px;
  color: var(--color-evergreen);
  font-weight: 500;
  max-width: 54ch;
}

/* ===========================
   Feature grid
   =========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.feature-name {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-evergreen);
  margin-bottom: 10px;
  font-weight: 500;
  opacity: 0.9;
}

.feature p:last-child {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.1px;
  color: var(--color-ink);
  max-width: 26ch;
}

/* ===========================
   Stat callout
   =========================== */
.stat-callout {
  background: var(--color-bg);
  border-radius: 6px;
  border-left: 3px solid var(--color-evergreen);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}

/* ===========================
   Thermometer animation
   =========================== */
@keyframes tempDrop {
  0%   { height: 78%; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  38%  { height: 18%; animation-timing-function: linear; }
  58%  { height: 18%; animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
  100% { height: 78%; }
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.thermometer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.thermo-tube {
  width: 10px;
  height: 68px;
  border: 2px solid var(--color-evergreen);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  position: relative;
}

.thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-evergreen);
  animation: tempDrop 3.2s ease infinite;
}

.thermo-bulb {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-evergreen);
  border-radius: 50%;
  background: var(--color-evergreen);
  margin-top: -2px;
}

.stat-text { display: flex; flex-direction: column; gap: 2px; }

.stat-number {
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--color-evergreen);
}

.stat-label {
  font-size: 16px;
  letter-spacing: -0.2px;
  color: var(--color-evergreen);
  opacity: 0.65;
}

.stat-desc {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.05px;
  color: var(--color-graphite);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

/* ===========================
   Image break
   =========================== */
.image-break {
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.70) saturate(0.75);
  display: block;
}

/* ===========================
   Platform image (A new way section)
   =========================== */
.platform-img-wrap {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 36px;
}

.platform-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) saturate(0.88);
  display: block;
}

/* ===========================
   Team photos
   =========================== */
.team-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.team-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-photo-circle {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.team-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-photo-circle--cindee img {
  object-position: 60% 35%;
  transform: scale(1.6);
  transform-origin: 60% 35%;
}

.team-photo-info {
  text-align: center;
}

.team-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-ink);
  margin-bottom: 3px;
}

.team-role {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-graphite);
}

/* ===========================
   Form tabs
   =========================== */
.form-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 30px;
}

.form-tab {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.15px;
  color: var(--color-graphite);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 24px 11px 0;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.form-tab.active { color: var(--color-evergreen); border-bottom-color: var(--color-evergreen); }
.form-tab:hover:not(.active) { color: var(--color-ink); }

/* ===========================
   Form panels
   =========================== */
.form-panel { display: none; }
.form-panel.active { display: block; animation: fadeIn 0.3s var(--ease-out); }

.form-desc {
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.1px;
  color: var(--color-graphite);
  margin-bottom: 22px;
  max-width: 54ch;
}

.join-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.join-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-graphite);
  padding-left: 18px;
  position: relative;
}

.join-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-evergreen);
  font-size: 12px;
  top: 2px;
}

/* ===========================
   Forms
   =========================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input[type="text"],
input[type="email"] {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.1px;
  background: var(--color-white);
  border: 1px solid #d4cfc9;
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--color-ink);
  outline: none;
  width: 100%;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

input::placeholder { color: var(--color-stone); }
input:focus { border-color: var(--color-evergreen); box-shadow: 0 0 0 3px rgba(55,80,51,0.1); }

.form .btn-primary { margin-top: 12px; max-width: 460px; }

/* ===========================
   Form success state
   =========================== */
.form-success {
  position: relative;
  min-height: 130px;
  padding: 8px 0 24px;
  animation: fadeIn 0.4s var(--ease-out);
}

.success-msg {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.6px;
  color: var(--color-evergreen);
  line-height: 1.1;
  margin-bottom: 10px;
}

.success-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-graphite);
  max-width: 38ch;
}

.success-butterfly {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes wingFlapRest {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.5); }
}

.success-butterfly.resting .wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: wingFlapRest 1.1s ease-in-out infinite;
}

/* ===========================
   Butterfly swarm
   =========================== */
#join { position: relative; }
#join .two-col { position: relative; z-index: 1; }

.butterfly-swarm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.butterfly {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes wingFlap {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.28); }
}

.butterfly .wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: wingFlap 0.42s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .butterfly-swarm { display: none; }
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 28px 0;
  background: var(--color-deep-forest);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand   { font-size: 14px; letter-spacing: -0.15px; color: rgba(244,243,232,0.38); }
.footer-location{ font-size: 14px; letter-spacing: -0.15px; color: rgba(244,243,232,0.18); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 960px) {
  .split-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-callout,
  .houston-img-wrap { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  :root { --section-gap: 64px; --label-col: 0px; }

  .two-col { grid-template-columns: 1fr; gap: 14px; }
  .label-col { display: none; }

  .hero { align-items: flex-end; padding: 100px 0 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }

  .feature-grid { grid-template-columns: 1fr; gap: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .form .btn-primary { width: 100%; text-align: center; }

  .form-tabs { flex-direction: column; border-bottom: none; }
  .form-tab {
    border-bottom: none;
    border-left: 2px solid transparent;
    padding: 9px 14px;
    margin-bottom: 0;
  }
  .form-tab.active {
    border-bottom-color: transparent;
    border-left-color: var(--color-evergreen);
    background: rgba(55,80,51,0.06);
  }

  .image-break { height: 200px; }
}

@media (max-width: 480px) {
  .hero-headline { letter-spacing: -0.5px; }
  .btn-nav { font-size: 13px; padding: 8px 14px; }
}
