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

:root {
  --navy:      #0D1323;
  --terracotta:#E05212;
  --terra-dk:  #E05212;
  --teal:      #1F4D63;
  --graphite:  #1A1A1A;
  --sand:      #F2EBDF;
  --white:     #FFFFFF;
  --line:      #E2DAD0;
  --muted:     #8A8278;
  --fd:        'Satoshi', sans-serif;
  --fb:        'Inter', sans-serif;
  --nav-h:     64px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--fb);
  background: var(--sand);
  color: var(--graphite);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fallback for browsers that don't support overflow-x: clip */
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}

/* ── NAV BAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  border-bottom: none;
  background: var(--sand);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--navy);
  text-decoration: none;
  text-transform: lowercase;
  line-height: 1;
}
.logo .brand-mark {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo .brand-mark .fill { fill: var(--navy); }
.logo .brand-mark .accent { fill: var(--terracotta); }
.logo .brand-word {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  color: var(--navy);
  line-height: 1;
  /* lock the "a" into the modular F */
  margin-left: -0.14em;
}

.nav-cta {
  font-family: var(--fb);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-cta:hover {
  color: var(--terracotta);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

/* ── SHARED BUTTON ── terracotta, 10px radius, stripe flash, hover lift */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--terracotta);
  border: none;
  height: 52px;
  padding: 0 2rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: background 0.22s, transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--terra-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,65,15,0.22);
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}
.btn:hover::after { animation: stripe 0.48s ease forwards; }

@keyframes stripe { to { left: 150%; } }

/* ── BUTTON SIZE VARIANTS ── */
.btn--sm {
  height: 36px;
  padding: 0 1.25rem;
  font-size: 0.78rem;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(28px, 5vh, 56px)) 2rem clamp(48px, 8vh, 72px);
  position: relative;
  background: var(--sand);
}
.hero::before {
  content: '';
  position: absolute;
  top: 35%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(194,65,15,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--fb);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

.tagline {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 2rem;
}

.headline {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--navy);
  max-width: 620px;
  margin: 0 auto 1.2rem;
}

.support-line {
  font-family: var(--fb);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--graphite);
  margin-bottom: 2.75rem;
}

/* Scroll nudge */
.scroll-hint {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.3;
}
.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.2; transform: scaleY(0.7); }
  50%      { opacity: 0.8; transform: scaleY(1); }
}

/* ── TICKER SECTION ── */
.ticker-wrapper {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-row {
  position: relative;
  padding: 0.85rem 0;
  display: flex;
  overflow: hidden;
  background: #EDE8DF;
}
.ticker-row + .ticker-row {
  border-top: 1px solid var(--line);
  background: #E5EDF0;
}
.ticker-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 2rem 0 1.75rem;
  background: linear-gradient(to right, #EDE8DF 55%, transparent);
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.ticker-row:nth-child(2) .ticker-label {
  color: var(--teal);
  background: linear-gradient(to right, #E5EDF0 55%, transparent);
}
.ticker-track {
  display: flex;
  animation: tickerFwd 30s linear infinite;
  white-space: nowrap;
}
.ticker-track-rev { animation: tickerFwd 24s linear infinite reverse; }
@keyframes tickerFwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.6rem;
  font-family: var(--fb);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(42,42,42,0.45);
}
.ticker-item .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.5;
  flex-shrink: 0;
}
.ticker-item.hi { color: var(--graphite); font-weight: 600; }
.ticker-row:nth-child(2) .ticker-item    { color: rgba(44,105,133,0.45); }
.ticker-row:nth-child(2) .ticker-item.hi { color: var(--teal); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: #EDE8DF;
}
.footer-wordmark {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.045em;
  color: var(--navy);
  text-transform: lowercase;
  text-decoration: none;
  line-height: 1;
}
.footer-wordmark:hover { color: var(--navy); }

/* Pill email form */
.email-form {
  display: flex;
  align-items: center;
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s;
}
.email-form:focus-within { border-color: var(--teal); }
.email-input {
  font-family: var(--fb);
  font-size: 0.82rem;
  background: transparent;
  border: none;
  color: var(--graphite);
  width: 190px;
  outline: none;
  padding: 0.3rem 0;
}
.email-input::placeholder { color: var(--muted); }

.email-submit {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  background: var(--terracotta);
  border: none;
  color: var(--white);
  padding: 0.52rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.email-submit:hover { background: var(--terra-dk); }
.email-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}
.email-submit:hover::after { animation: stripe 0.45s ease forwards; }

.footer-right { display: flex; align-items: center; gap: 1.25rem; }

.footer-link {
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--navy); }

.social-links { display: flex; gap: 0.5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sand);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ENTRANCE ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.85s cubic-bezier(0.22,1,0.36,1) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.08s; }
.fade-up:nth-child(2) { animation-delay: 0.22s; }
.fade-up:nth-child(3) { animation-delay: 0.36s; }
.fade-up:nth-child(4) { animation-delay: 0.50s; }
.fade-up:nth-child(5) { animation-delay: 0.64s; }
.fade-up:nth-child(6) { animation-delay: 0.78s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  nav { padding: 1rem 1.5rem; }
  /* Mobile header: mark-only for a cleaner nav */
  .logo .brand-word { display: none; }
  .hero { padding: calc(var(--nav-h) + 56px) 1.5rem 3rem; }
  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .email-input { width: 140px; }
  .ticker-label { display: none; }
}

/* Laptop-height / short viewports: pull hero up a touch */
@media (max-height: 820px) and (min-width: 769px) {
  .hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 56px;
  }
  .scroll-hint { margin-top: 1.5rem; }
}

/* JS-driven state (replaces inline style mutations) */
.is-hidden { display: none !important; }
.email-submit.is-success {
  background: #2C6985;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* LANDING PAGE REDESIGN                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── HERO OVERRIDES — terracotta surface, editorial, left-aligned ─────────── */
.hero {
  min-height: 100svh;
  background: var(--terracotta);
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: calc(var(--nav-h) + 2rem) clamp(2rem, 6vw, 5rem) 4rem;
}
.hero::before { display: none; }

.hero-inner {
  text-align: left;
  max-width: 1040px;
}

.hero-headline {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-subline {
  font-family: var(--fb);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ── WHITE BUTTON — for terracotta and navy surfaces ─────────────────────── */
.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn--white::after { display: none; }

/* ── MISSION SECTION ─────────────────────────────────────────────────────── */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(480px, 70vh, 820px);
}

.mission-image-wrap {
  overflow: hidden;
  position: relative;
}

.mission-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.mission-content {
  background: var(--sand);
  padding: clamp(3rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-left: 1px solid var(--line);
}

.mission-statement {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.mission-body {
  font-family: var(--fb);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--graphite);
  max-width: 380px;
  margin-bottom: 2.5rem;
}

/* ── WHAT WE DO SECTION ──────────────────────────────────────────────────── */
.what-section {
  background: var(--sand);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.what-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.what-label {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.what-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

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

.what-num {
  display: block;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.what-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.what-body {
  font-family: var(--fb);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--graphite);
}

/* ── MOMENT SECTION — navy ───────────────────────────────────────────────── */
.moment-section {
  background: var(--navy);
  padding: clamp(4rem, 9vw, 7rem) clamp(2rem, 6vw, 5rem);
}

.moment-inner {
  max-width: 820px;
}

.moment-headline {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.moment-body {
  font-family: var(--fb);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ── CTA SECTION — terracotta ────────────────────────────────────────────── */
.cta-section {
  background: var(--terracotta);
  padding: clamp(4rem, 9vw, 7rem) clamp(2rem, 6vw, 5rem);
}

.cta-inner {
  max-width: 820px;
}

.cta-headline {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-family: var(--fb);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}

/* ── CREDIBILITY SECTION ─────────────────────────────────────────────────── */
.credibility-section {
  background: var(--sand);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.supported-by-label {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.supported-by-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.supported-by-logos {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.8;
}

.partner-logo--innovate {
  height: 64px;
}

.partner-logo--nexus {
  mix-blend-mode: multiply;
}

.testimonial {
  border-left: 3px solid var(--terracotta);
  padding-left: 2rem;
}

.testimonial-quote {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.testimonial-attr {
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(2.8rem, 12vw, 4rem);
    margin-bottom: 2rem;
  }

  .mission {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mission-image-wrap {
    height: 65vw;
    min-height: 260px;
  }
  .mission-content {
    padding: 2.5rem 1.5rem;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .mission-statement {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .what-section { padding: 3rem 1.5rem; }
  .what-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .moment-section,
  .cta-section {
    padding: 3.5rem 1.5rem;
  }

  .credibility-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .credibility-section {
    padding: 3rem 1.5rem;
  }
}
