/* ------------------------------------------------------------------
   Elevator Capital — site styles
   Palette: chalk (page), steel (ink + panel), slate (secondary text),
   amber (the lift indicator), amber-soft (tint), line (rules)
   Type: Archivo variable (width axis does the talking)
   ------------------------------------------------------------------ */

:root {
  --chalk: #f4f5f2;
  --paper: #ffffff;
  --steel: #1b2a33;
  --steel-2: #253741;
  --slate: #56666f;
  --line: #d9ddda;
  --amber: #e9a23b;
  --amber-deep: #c9801a;
  --amber-soft: #fbebcf;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--chalk);
  font-variation-settings: "wdth" 100;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--amber); }
a:hover { text-decoration-color: var(--steel); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-variation-settings: "wdth" 92; letter-spacing: -0.03em; line-height: 1.0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-variation-settings: "wdth" 94; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--steel-2); max-width: 56ch; }
.muted { color: var(--slate); }
.small { font-size: 0.9rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; }
.brand span b { font-weight: 700; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { text-decoration: none; font-size: 0.97rem; color: var(--steel-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--steel); }
.nav a:hover { color: var(--steel); }
.nav .admin { font-size: 0.85rem; color: var(--slate); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.97rem; border: 1.5px solid var(--steel); color: var(--steel); background: transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--steel); color: var(--chalk); }
.btn.primary { background: var(--steel); color: var(--chalk); }
.btn.primary:hover { background: var(--steel-2); border-color: var(--steel-2); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--steel); }
.btn.amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--chalk); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-family: inherit; font-size: 0.9rem; color: var(--steel); }

/* ---------- floor chips (the lift indicator language) ---------- */
.floor {
  display: inline-grid; place-items: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.45rem;
  background: var(--steel); color: var(--amber);
  font-variation-settings: "wdth" 62; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  border-radius: 4px; line-height: 1;
}
.floor.big { min-width: 3rem; height: 3rem; font-size: 1.6rem; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-head .floor-name { font-size: 0.95rem; color: var(--slate); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin: 18px 0 22px; max-width: 14ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .reveal { opacity: 0; transform: translateY(8px); animation: rise 0.7s ease-out forwards; }
.hero .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal:nth-child(3) { animation-delay: 0.3s; }
.hero .reveal:nth-child(4) { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the indicator panel */
.panel {
  background: var(--steel); color: var(--chalk);
  border-radius: 10px; padding: 26px 26px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 30px 60px -30px rgba(27,42,51,0.45);
}
.panel .display { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 14px; margin-bottom: 14px; }
.panel .digits { font-variation-settings: "wdth" 62; font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--amber); letter-spacing: 0.02em; min-width: 2ch; text-shadow: 0 0 18px rgba(233,162,59,0.35); }
.panel .arrow { width: 26px; height: 26px; color: var(--amber); opacity: 0.9; }
.panel .arrow.off { opacity: 0.25; }
.panel .floors { display: grid; gap: 2px; }
.panel .floors a { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 6px; text-decoration: none; color: rgba(244,245,242,0.78); font-size: 0.98rem; }
.panel .floors a .n { font-variation-settings: "wdth" 62; font-weight: 700; font-size: 1.1rem; color: rgba(244,245,242,0.55); text-align: center; border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; height: 1.9rem; display: grid; place-items: center; }
.panel .floors a:hover, .panel .floors a.lit { background: rgba(255,255,255,0.06); color: var(--chalk); }
.panel .floors a.lit .n { color: var(--amber); border-color: var(--amber); }
.panel .caption { margin: 16px 0 0; font-size: 0.82rem; color: rgba(244,245,242,0.55); max-width: none; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper); }
.section.dark { background: var(--steel); color: var(--chalk); border-top: 0; }
.section.dark .muted { color: rgba(244,245,242,0.65); }
.section.dark a { text-decoration-color: var(--amber); }
.section.dark .floor { background: var(--amber); color: var(--steel); }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.strand { border-top: 3px solid var(--amber); padding-top: 18px; }
.strand h3 { margin-bottom: 8px; }
.strand p { font-size: 1rem; color: var(--steel-2); }
.strand .link { font-weight: 600; font-size: 0.95rem; }

/* curriculum list — a real sequence, so floor numbers are earned */
.levels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.levels li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.levels li h3 { margin-bottom: 6px; }
.levels li p { margin: 0; font-size: 1rem; color: var(--steel-2); max-width: 70ch; }
.levels li .tag { font-size: 0.85rem; color: var(--slate); white-space: nowrap; padding-top: 4px; }
.levels li ul { margin-top: 10px; display: grid; gap: 4px; }
.levels li ul li { display: block; padding: 0; border: 0; font-size: 0.97rem; color: var(--steel-2); padding-left: 18px; position: relative; }
.levels li ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--amber); }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 72px); }
.principle h3 { margin-bottom: 8px; }
.principle p { font-size: 1rem; margin: 0; }
.rule-box { margin-top: 40px; padding: 24px 28px; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.rule-box p { margin: 0; max-width: 76ch; }
.rule-box p + p { margin-top: 8px; }

/* people */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; }
.person .avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--steel); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; font-variation-settings: "wdth" 80; overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--slate); font-size: 0.95rem; margin-bottom: 10px; }
.person p { font-size: 1rem; }
.person .cred { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.person .cred span { font-size: 0.82rem; color: var(--steel-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.section.dark .person .cred span { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: var(--chalk); }

/* bio pages */
.bio { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); padding: 40px 0; border-top: 1px solid var(--line); }
.bio .avatar { width: 200px; height: 200px; border-radius: 12px; background: var(--steel); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: 3rem; font-variation-settings: "wdth" 80; overflow: hidden; }
.bio .avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio h2 { font-size: 1.8rem; margin-bottom: 4px; }
.bio .role { color: var(--slate); margin-bottom: 18px; }
.bio .timeline { display: grid; gap: 10px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.bio .timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 0.95rem; }
.bio .timeline li span:first-child { color: var(--slate); }

/* forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }
.form input, .form textarea, .form select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--steel); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--steel); outline: none; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .note { font-size: 0.85rem; color: var(--slate); margin: 0; }
.inline-form { display: flex; gap: 10px; max-width: 560px; }
.inline-form input { flex: 1; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section.dark .inline-form input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--chalk); }
.section.dark .inline-form input::placeholder { color: rgba(244,245,242,0.5); }

/* media */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--steel); border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(244,245,242,0.7); text-align: center; padding: 24px; }
.video .placeholder .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--amber); display: grid; place-items: center; margin: 0 auto 14px; color: var(--amber); }

/* prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--slate); font-size: 0.85rem; }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 16ch; margin: 14px 0 16px; }

/* stats that are not performance claims */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0; }
.facts div { border-top: 3px solid var(--amber); padding-top: 14px; }
.facts strong { display: block; font-size: 2rem; font-variation-settings: "wdth" 80; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.facts span { font-size: 0.95rem; color: var(--slate); }
.facts.text strong { font-size: 1.3rem; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--steel); color: rgba(244,245,242,0.78); padding: 56px 0 36px; font-size: 0.92rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer h4 { color: var(--chalk); margin-bottom: 12px; font-size: 0.95rem; }
.site-footer a { color: var(--chalk); text-decoration-color: rgba(233,162,59,0.7); }
.site-footer ul { display: grid; gap: 8px; }
.site-footer .legal { padding-top: 24px; font-size: 0.84rem; line-height: 1.55; color: rgba(244,245,242,0.6); }
.site-footer .legal p { max-width: none; }
.site-footer .brand { color: var(--chalk); margin-bottom: 14px; }
.site-footer .brand .mark { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2, .principles, .people { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio .avatar { width: 140px; height: 140px; font-size: 2.2rem; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--chalk); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-block; }
  .levels li { grid-template-columns: 2.6rem 1fr; }
  .levels li .tag { grid-column: 2; }
  .form .row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .person { grid-template-columns: 64px 1fr; gap: 14px; }
  .person .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
  .panel .digits { font-size: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}
