/* ─── TOKENS — LosAltos Brand Code ──────────────
   Navy #1F2A33 → bg
   Slate Blue #556B7D → surface/secondary
   Gold #D4A84F → accent
   Off White #F4F4F2 → text
   Gilda Display → headlines
   DM Mono → labels/nav
   Source Serif 4 → body prose
─────────────────────────────────────────────── */
:root {
  --bg:        #1c2830;
  --surface:   #243340;
  --slate:     #556B7D;
  --rule:      rgba(244, 244, 242, 0.1);
  --text:      #F4F4F2;
  --muted:     rgba(244, 244, 242, 0.42);
  --accent:    rgba(244, 244, 242, 0.05);
  --gold:      #D4A84F;
  --font-display: 'Gilda Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', monospace;
  --col: 680px;
  --margin: clamp(1.5rem, 6vw, 7rem);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
  opacity: 0;
  animation: pageFade 0.9s ease 0.1s forwards;
}

@keyframes pageFade { to { opacity: 1; } }

.site-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--margin);
}

/* ─── NAV ────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 40, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 calc(-1 * var(--margin));
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links .portal-link {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  opacity: 0.7;
}

.nav-links .portal-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background: var(--rule);
}

.nav-links .portal-link:hover { opacity: 1; color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; gap: 1.25rem; padding: 1.5rem 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  nav { flex-wrap: wrap; }
}

/* ─── SHARED TYPOGRAPHY ──────────────────────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: block;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--text);
}

h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

p {
  color: rgba(242, 239, 232, 0.78);
  line-height: 1.8;
  max-width: var(--col);
}

a { color: var(--text); text-decoration: none; }

.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 1.25rem 0 1.25rem 2rem;
  margin: 3.5rem 0;
  max-width: var(--col);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(244, 244, 242, 0.88);
  line-height: 1.6;
}

.section-rule { border: none; border-top: 1px solid var(--rule); margin: 4rem 0; }

.prose-section { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.prose-section:last-child { border-bottom: none; }
.prose-section h2 { margin-bottom: 1.75rem; }
.prose-section p + p { margin-top: 1.25rem; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  margin-top: 2.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover { color: var(--text); border-color: rgba(242, 239, 232, 0.4); }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

footer span, footer a {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

/* ══════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════ */
.home-hero { padding: 7rem 0 5rem; border-bottom: 1px solid var(--rule); }
.home-hero .kicker { margin-bottom: 3rem; }
.home-hero h1 { max-width: 820px; margin-bottom: 3rem; }
.home-hero .lede {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
}

.home-control-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
}

.control-strip-item {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule);
}
.control-strip-item:last-child { border-right: none; }
.control-strip-num { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.14em; color: var(--muted); display: block; margin-bottom: 0.75rem; }
.control-strip-label { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--text); display: block; margin-bottom: 0.5rem; }
.control-strip-desc { font-family: var(--font-display); font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 800px) {
  .home-control-strip { grid-template-columns: 1fr 1fr; }
  .control-strip-item { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
}
@media (max-width: 480px) { .home-control-strip { grid-template-columns: 1fr; } }

.home-closing { padding: 6rem 0; text-align: left; }
.home-closing h2 { max-width: 600px; margin-bottom: 1.5rem; font-size: clamp(1.6rem, 3.5vw, 2.5rem); }

.home-pressure-list { list-style: none; margin: 2.5rem 0; max-width: 480px; }
.home-pressure-list li {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.01em;
}
.home-pressure-list li:first-child { border-top: 1px solid var(--rule); }

.home-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 4rem; border-top: 1px solid var(--rule); }
.pillar { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--rule); }
.pillar:last-child { border-right: none; }
.pillar h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.pillar p { font-size: 0.88rem; max-width: none; }

@media (max-width: 700px) {
  .home-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); padding: 2rem 0; }
}

.home-steadiness {
  background: var(--slate);
  margin: 0 calc(-1 * var(--margin));
  padding: 5rem var(--margin);
}
.home-steadiness p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: rgba(244, 244, 242, 0.9);
  max-width: 560px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.home-steadiness p + p { margin-top: 0.5rem; color: var(--gold); font-style: italic; }

/* ══════════════════════════════════════════════
   MODEL PAGE
══════════════════════════════════════════════ */
.model-hero { padding: 7rem 0 4rem; border-bottom: 1px solid var(--rule); }
.model-hero h1 { max-width: 700px; margin-bottom: 2rem; }
.model-hero p { font-size: 1.05rem; max-width: 580px; }

.control-points { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.control-points-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 3rem; }
.control-points-header h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.control-points-header .kicker { margin: 0; }

.control-table { width: 100%; border-top: 1px solid var(--rule); }
.control-row {
  display: grid;
  grid-template-columns: 3rem 14rem 1fr;
  align-items: start;
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0;
  gap: 2rem;
  transition: background 0.2s ease;
}
.control-row:hover { background: var(--accent); margin: 0 -2rem; padding-left: 2rem; padding-right: 2rem; }
.control-num { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.2rem; }
.control-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text); line-height: 1.2; }
.control-desc { font-family: var(--font-display); font-size: 0.95rem; font-weight: 300; color: rgba(242, 239, 232, 0.65); line-height: 1.7; max-width: none; }

@media (max-width: 700px) {
  .control-row { grid-template-columns: 2.5rem 1fr; grid-template-rows: auto auto; }
  .control-name { grid-column: 2; }
  .control-desc { grid-column: 1 / -1; padding-left: 2.5rem; }
}

.pressure-section { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.pressure-section h2 { margin-bottom: 2rem; }
.pressure-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid var(--rule); }
.pressure-phase { padding: 2rem 1.5rem 2rem 0; border-right: 1px solid var(--rule); }
.pressure-phase:last-child { border-right: none; }
.phase-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.75rem; }
.pressure-phase p { font-size: 0.9rem; max-width: none; color: rgba(242, 239, 232, 0.65); }

@media (max-width: 700px) {
  .pressure-phases { grid-template-columns: 1fr; }
  .pressure-phase { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
}

.model-conclusion { padding: 5rem 0; }
.model-conclusion p { font-size: 1.05rem; max-width: 580px; color: rgba(242, 239, 232, 0.72); }
.model-conclusion p + p { margin-top: 1.25rem; }

.conclusion-statement {
  margin: 3.5rem 0;
  padding: 2.5rem 3rem;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  max-width: 620px;
}
.conclusion-statement p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: rgba(244, 244, 242, 0.9); line-height: 1.65; max-width: none; }
.conclusion-statement p + p { margin-top: 0.75rem; color: var(--gold); }

/* ══════════════════════════════════════════════
   ENGAGEMENT PAGE
══════════════════════════════════════════════ */
.engagement-hero { padding: 7rem 0 4rem; border-bottom: 1px solid var(--rule); }
.engagement-hero .lede { font-size: 1rem; font-style: italic; color: var(--muted); max-width: 560px; line-height: 1.7; margin-top: 2rem; }
.engagement-body { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.engagement-body h2 { margin-bottom: 1.75rem; }
.engagement-body p { max-width: var(--col); color: rgba(242, 239, 232, 0.72); }
.engagement-body p + p { margin-top: 1.25rem; }
.engagement-structure { padding: 5rem 0 3rem; border-bottom: none; }
.engagement-structure h2 { margin-bottom: 1.75rem; }
.engagement-structure p { max-width: var(--col); color: rgba(242, 239, 232, 0.72); }
.engagement-structure p + p { margin-top: 1.25rem; }

.objective-block {
  margin: 4rem 0;
  max-width: var(--col);
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 2rem 2.5rem;
}
.objective-block p { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; font-style: italic; color: rgba(244, 244, 242, 0.9); line-height: 1.65; max-width: none; }
.objective-block p + p { margin-top: 0.75rem; color: var(--gold); font-size: 1rem; }

.vantage-note { margin-top: 3rem; padding: 4rem 0 5rem; border-top: 1px solid var(--rule); }
.vantage-box { border: 1px solid var(--rule); padding: 2.5rem 3rem; max-width: 620px; position: relative; }
.vantage-box::before {
  content: 'Infrastructure';
  position: absolute;
  top: -0.55rem;
  left: 2rem;
  background: var(--bg);
  padding: 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.vantage-box p { font-size: 0.95rem; color: rgba(242, 239, 232, 0.65); line-height: 1.75; max-width: none; }
.vantage-box a {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 1.25rem;
  border-bottom: 1px solid rgba(201, 184, 122, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.vantage-box a:hover { border-color: var(--gold); }

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.about-hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}
.about-hero-text h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); max-width: 480px; margin-bottom: 2rem; }
.about-hero-text p { max-width: 520px; color: rgba(244, 244, 242, 0.72); }
.about-hero-text p + p { margin-top: 1.25rem; }

.about-photo { position: sticky; top: 7rem; }
.about-photo-frame { width: 100%; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; position: relative; }
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; mix-blend-mode: luminosity; opacity: 0.88; filter: contrast(1.1) brightness(0.92); }
.about-photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--bg) 100%); pointer-events: none; }

@media (max-width: 800px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 100%; }
}

.about-background { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.about-background p { max-width: var(--col); color: rgba(242, 239, 232, 0.72); }
.about-background p + p { margin-top: 1.25rem; }

.about-platform { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.about-platform p { max-width: var(--col); color: rgba(242, 239, 232, 0.72); }
.about-platform p + p { margin-top: 1.25rem; }

.about-pull {
  border-left: 2px solid var(--gold);
  padding: 1.25rem 0 1.25rem 2rem;
  margin: 2.5rem 0;
  max-width: var(--col);
}
.about-pull p { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; font-weight: 400; color: rgba(244, 244, 242, 0.88); line-height: 1.6; max-width: none; }

.about-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 3rem 0 1.5rem;
  max-width: var(--col);
  border-top: 1px solid var(--rule);
}
.about-lifecycle-step { padding: 1.5rem 1rem 1.5rem 0; border-right: 1px solid var(--rule); }
.about-lifecycle-step:last-child { border-right: none; }
.about-lifecycle-num { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.about-lifecycle-name { font-family: var(--font-display); font-size: 0.82rem; color: rgba(242, 239, 232, 0.65); line-height: 1.4; display: block; }

@media (max-width: 600px) {
  .about-lifecycle { grid-template-columns: 1fr 1fr; }
  .about-lifecycle-step { border-right: none; border-bottom: 1px solid var(--rule); }
}

.selected-contexts { padding: 5rem 0; }
.selected-contexts h3 { margin-bottom: 2rem; }
.context-list { list-style: none; max-width: var(--col); border-top: 1px solid var(--rule); }
.context-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(242, 239, 232, 0.72);
}
.context-list li::before { content: '—'; color: var(--muted); flex-shrink: 0; font-family: var(--font-mono); font-size: 0.65rem; }
