﻿/* ========================================
   LAYOUT — Header, Hero, Sections, Grids, Footer
   ======================================== */

/* ---------- SITE HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(250,246,236,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.header-logo {
  font-family: var(--sans-en);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--turq-deep);
}
.site-header:not(.scrolled) .header-logo {
  color: var(--cream);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-nav a {
  font-family: var(--sans-en);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.site-header:not(.scrolled) .header-nav a {
  color: rgba(250,246,236,.8);
}
.header-nav a:hover {
  color: var(--turq);
}
.site-header:not(.scrolled) .header-nav a:hover {
  color: var(--white);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background: var(--turq-deep);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92,175,198,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(27,125,150,.22) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  width: 100%;
}
.hero .eyebrow {
  color: var(--turq-light);
}
.hero .eyebrow .pulse-dot {
  background: var(--turq-light);
}
.hero .eyebrow .pulse-dot::after {
  background: var(--turq-light);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--turq-light);
}
.hero-tagline {
  font-family: var(--sans-en);
  font-size: clamp(.92rem, 1.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(250,246,236,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.hero-tagline span {
  color: var(--white);
  font-weight: 800;
  padding: .12rem .7rem;
  border-radius: var(--radius-full);
  background: rgba(250,246,236,.12);
  backdrop-filter: blur(6px);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(250,246,236,.82);
  font-weight: 400;
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ---------- SECTIONS (shared) ---------- */
.section {
  position: relative;
  padding: 6rem 1.5rem;
}
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.section-head {
  max-width: 44em;
  margin-bottom: 3rem;
}
.section-head.text-center {
  margin-left: auto;
  margin-right: auto;
}
.section-dark {
  background: var(--turq-deep);
  color: var(--white);
}
.section-cream {
  background: var(--cream);
  color: var(--ink);
}
.section-pale {
  background: var(--turq-pale);
  color: var(--ink);
}
.section-cream-deep {
  background: var(--cream-deep);
  color: var(--ink);
}

/* Radial gradient overlays for dark sections */
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(92,175,198,.1) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(250,246,236,.04) 0%, transparent 50%);
  pointer-events: none;
}
.section-dark > * {
  position: relative;
  z-index: 1;
}

/* ---------- GRIDS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.team-grid .role-card {
  flex: 0 1 calc(33.333% - 1.2rem);
}
.team-grid .role-card:nth-child(n+4) {
  flex: 0 1 calc(30% - 1.2rem);
}

/* ---------- VM CELLS ---------- */
.vm-cell {
  background: var(--cream);
  padding: 2.8rem 2.2rem;
}
.vm-cell:first-child {
  border-left: 1px solid var(--line);
}

/* ---------- GOAL LIST ---------- */
.goal-list {
  display: flex;
  flex-direction: column;
}
.goal-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.goal-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- WHO GRID ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pulse-divider {
  max-width: 28rem;
  margin: 2rem auto 0;
}
.pulse-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* ---------- COMPASS LIST ---------- */
.compass-list {
  display: flex;
  flex-direction: column;
}
.compass-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  padding: 2.2rem 2rem;
  border-left: 3px solid var(--turq);
  margin-left: 1.2rem;
  align-items: start;
}
.compass-item + .compass-item {
  border-top: 1px solid var(--line);
}
.compass-num {
  font-family: var(--sans-en);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--turq);
  opacity: .12;
  line-height: 1;
  user-select: none;
  min-width: 3.5rem;
  text-align: center;
}
.compass-item h3 {
  font-size: 1.2rem;
  margin-bottom: .4rem;
  line-height: 1.5;
}
.compass-item p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 42em;
}

/* ---------- BUILDING GRID ---------- */
.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(27,125,150,.12) 0%, transparent 55%);
  pointer-events: none;
}
.site-footer > * {
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.footer-bottom {
  border-top: 1px solid rgba(250,246,236,.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-family: var(--sans-en);
  font-size: .75rem;
  letter-spacing: .08em;
  color: rgba(250,246,236,.45);
}
.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(250,246,236,.3);
  flex-shrink: 0;
}

/* ---------- FLATLINE CARD ---------- */
.flatline-card {
  border: 1px solid rgba(250,246,236,.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: rgba(250,246,236,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- LOGO ---------- */
.header-logo img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(27,125,150,.3);
  box-shadow: 0 2px 10px rgba(27,125,150,.2);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, border-color .3s ease;
}
.header-logo:hover img {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(27,125,150,.35);
  border-color: var(--turq);
}
.site-header:not(.scrolled) .header-logo img {
  border-color: rgba(250,246,236,.3);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header:not(.scrolled) .header-logo:hover img {
  border-color: rgba(250,246,236,.7);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
