/* =========================================================
   Franco Pastor — founder portfolio
   Visual system: editorial, calm, premium, human-designed
   ========================================================= */

:root {
  /* Two-surface system */
  --surface-page: #F8F3EC;
  --surface-card: rgba(255, 253, 249, 0.94);
  --text-primary: #1D1D1F;
  --text-secondary: #4A4540;
  --accent-navy: #143553;
  --accent-warm: #6F4B1E;
  --border-soft: rgba(132, 93, 37, 0.22);
  --border-stronger: rgba(132, 93, 37, 0.34);
  --chip-bg: #E4D6BD;
  --chip-bg-hover: #DCC9A8;
  --chip-text: #5F3E16;
  --chip-border: rgba(132, 93, 37, 0.34);
  --shadow-soft: 0 12px 28px rgba(50, 43, 35, 0.045);
  --shadow-card: 0 16px 36px rgba(50, 43, 35, 0.06);

  /* Legacy tokens (aliased to the two-surface system for back-compat) */
  --bg: var(--surface-page);
  --surface: var(--surface-card);
  --surface-soft: #F3ECDE;
  --text: var(--text-primary);
  --text-2: var(--text-secondary);
  --muted: #666666;
  --muted-readable: var(--text-secondary);
  --border: var(--border-soft);
  --divider: rgba(170, 139, 82, 0.16);
  --primary: var(--accent-navy);
  --secondary: var(--accent-warm);
  --soft-accent: var(--chip-bg);
  --evidence: #2F5D50;
  --gold: var(--accent-warm);
  --focus: var(--accent-navy);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Inter", Georgia, serif;

  /* Layout */
  --maxw: 1200px;
  --pad-x: 32px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 0 rgba(23, 50, 77, 0.04), 0 6px 16px -10px rgba(23, 50, 77, 0.08);
  --shadow-md: 0 1px 0 rgba(23, 50, 77, 0.05), 0 18px 40px -22px rgba(23, 50, 77, 0.18);

  /* Transition */
  --tx: 180ms cubic-bezier(.2,.7,.2,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

section[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 78px; }
  section[id] { scroll-margin-top: 78px; }
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

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

a:hover { color: var(--text); }

button { font: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* Large display headings — disable fi/fl ligatures and stylistic alternates */
.hero-name,
.section-title,
.display-heading {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "salt" 0, "ss01" 0, "ss02" 0;
}

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: -10000px;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(90, 76, 61, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px rgba(50, 43, 35, 0.055);
  transition: border-color var(--tx), background var(--tx), box-shadow var(--tx);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 18px;
  background: linear-gradient(
    180deg,
    rgba(50, 43, 35, 0.055),
    rgba(50, 43, 35, 0)
  );
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(90, 76, 61, 0.18);
  background: rgba(250, 246, 239, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(50, 43, 35, 0.075);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 4px 6px 4px 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #000;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark .brand-logo-lyntra {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}
.brand-mark-peru {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  overflow: visible;
  box-shadow: 0 2px 6px rgba(50, 43, 35, 0.12);
}
.brand-mark-peru svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-name { font-size: 1rem; }

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color var(--tx), background var(--tx);
}
.primary-nav a:hover { color: var(--text); background: rgba(233, 224, 207, 0.42); }
.primary-nav a.is-active {
  color: var(--text);
  background: rgba(233, 224, 207, 0.76);
  border: 1px solid rgba(214, 200, 171, 0.48);
  padding: 9px 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(50, 43, 35, 0.06);
}
.primary-nav a.is-active:hover { background: rgba(233, 224, 207, 0.84); }
.primary-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  margin-left: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 10px 20px rgba(20, 53, 83, 0.12);
}
.primary-nav .nav-cta:hover { background: #0f2538; color: #fff; transform: translateY(-1px); }
.primary-nav .nav-cta.is-active {
  background: #0f2538;
  border: none;
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  transition: background var(--tx), border-color var(--tx);
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--tx), opacity var(--tx);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--divider);
  background: var(--surface);
}
.mobile-nav-list {
  padding: 8px 0;
}
.mobile-nav-list a {
  display: block;
  padding: 16px var(--pad-x);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}
.mobile-nav-list li:last-child a { border-bottom: none; }
.mobile-nav-list a:hover { background: var(--surface-soft); }

/* =========================================================
   Section primitives
   ========================================================= */
.section {
  padding: 112px 0;
}
/* Two-surface background system: single page background everywhere, sections
   separated only by a quiet border-top. Cards remain on --surface-card with
   their own border + shadow to float above the page. */
.section { background: var(--surface-page); }
.section + .section { border-top: 1px solid rgba(132, 93, 37, 0.12); }
.section-alt { background: inherit; }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.section-head {
  position: sticky;
  top: 100px;
  align-self: start;
}
.section-head-wide {
  position: static;
  margin-bottom: 56px;
  max-width: 820px;
}

.section-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 760;
  color: var(--text-primary);
}

.section-sub {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 720px;
}

.section-sub-small {
  margin: 8px 0 24px;
  color: var(--muted-readable);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 680px;
}

@media (max-width: 640px) {
  .section-title,
  .display-heading {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
}

.subhead {
  margin: 56px 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* Chapter marker - small editorial divider between visual chapters */
.chapter-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 auto 48px;
  padding-bottom: 0;
  position: relative;
}
.chapter-mark::before,
.chapter-mark::after {
  content: "";
  height: 1px;
  width: 36px;
  background: var(--secondary);
  opacity: 0.45;
}
.chapter-mark .chapter-dot {
  color: var(--secondary);
  opacity: 0.7;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
}

.muted {
  color: var(--text-2);
  font-size: 0.95rem;
}
.case-block .muted {
  color: var(--text-2);
  font-weight: 500;
}

.aside {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--soft-accent);
  background: var(--surface-soft);
  color: var(--text-2);
  font-size: 0.98rem;
  border-radius: 4px;
}

.inline-link {
  color: var(--primary);
  border-bottom: 1px solid rgba(23, 50, 77, 0.25);
  padding-bottom: 1px;
}
.inline-link:hover { border-bottom-color: var(--primary); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 600px at 12% 0%, #FBF7EE 0%, transparent 60%),
    radial-gradient(700px 500px at 85% 20%, #F2EBDA 0%, transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin-top: 4px;
}

.hero-roles {
  margin-top: 1.15rem;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 560px;
}
.role-sep { display: none; }

.hero-degree {
  margin-top: 1.4rem;
  margin-bottom: 0;
  color: #2A2A2A;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-degree-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-top: 1.75rem;
  margin-bottom: 1.85rem;
  flex-wrap: wrap;
}
.hero-logo-row img {
  display: block;
  width: auto;
  object-fit: contain;
}
.logo-uw {
  height: 44px;
  max-width: 170px;
}
.hero-logo-lyntra-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 12px;
  border-radius: 11px;
  background: #000;
  flex-shrink: 0;
}
.logo-lyntra {
  height: 32px;
  width: auto;
  max-width: 96px;
  display: block;
  object-fit: contain;
}
.logo-housing-gate {
  height: 52px;
  width: auto;
  max-width: 170px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: none;
  transform-origin: center left;
}
.logo-row-sep {
  width: 1px;
  height: 38px;
  background: rgba(90, 76, 61, 0.22);
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
  margin-inline: 0.55rem;
}

.hero-thesis {
  margin-top: 4px;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 680px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 0;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta .btn { min-width: 190px; min-height: 58px; }
.hero-text-bottom { margin-top: 0.75rem; }

.hero-proof-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--muted-readable);
  font-size: 0.95rem;
  line-height: 1.4;
}
.hero-proof-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 50, 77, 0.25);
  padding-bottom: 0.08rem;
}
.hero-proof-links a:hover {
  border-bottom-color: var(--primary);
}
.hero-proof-links span {
  color: rgba(90, 76, 61, 0.45);
}

.proof-eyebrow {
  margin-top: 24px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--secondary);
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.evidence-strip li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 6px;
  min-width: 0;
}
.evidence-strip li + li { border-left: 1px solid var(--divider); padding-left: 18px; }
.evidence-num {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--evidence);
  line-height: 1.05;
}
.evidence-num.evidence-word {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: -0.01em;
}
.evidence-label {
  font-size: 0.82rem;
  color: var(--muted-readable);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* Portrait */
.hero-portrait-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, #F2EBDA 0%, #EFE7D6 55%, #E6DCC8 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.portrait-frame img,
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}
.portrait-frame-photo {
  background: #1a1a1a;
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.portrait-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
  color: var(--primary);
  opacity: 0.32;
  line-height: 1;
}
.portrait-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--secondary);
}
.portrait-path {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.portrait-caption {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cap-eyebrow {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.cap-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cap-role {
  font-size: 0.92rem;
  color: var(--text-2);
}
.cap-line {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.role-stack {
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.role-stack li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary);
  background: var(--soft-accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}
.cap-slogan {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
}
.chip-sponsor {
  margin-top: 0.6rem;
}
.chip-quiet {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  font-size: 0.78rem;
}
.involvement-reveal {
  margin-top: 0.85rem;
  border-top: 1px solid var(--divider);
  padding-top: 0.75rem;
}
.involvement-label {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 2rem;
  align-items: start;
  margin: 0 0 1rem;
}
.meta-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.meta-grid dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.meta-grid dd {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .meta-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}
.edu-chips { margin-top: 0.85rem; }

@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
    grid-template-rows: auto auto;
    column-gap: 56px;
    row-gap: 36px;
    align-items: start;
  }
  .hero-text-top { grid-column: 1; grid-row: 1; }
  .hero-portrait-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 6px;
    max-width: none;
    width: 100%;
  }
  .hero-text-bottom { grid-column: 1; grid-row: 2; }
}

@media (min-width: 1240px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 380px);
    column-gap: 72px;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--tx), border-color var(--tx), color var(--tx), transform var(--tx);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #0f2538; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* =========================================================
   About — principles
   ========================================================= */
.about-intro {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 12px;
}
.principles {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.principles li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--tx), box-shadow var(--tx);
}
.principles li:hover { border-color: rgba(23, 50, 77, 0.35); box-shadow: var(--shadow-sm); }
.principle-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.principles h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.principles p { color: var(--text-2); font-size: 0.96rem; }

/* =========================================================
   Capabilities
   ========================================================= */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.capability-grid-secondary { margin-top: 20px; }
.capability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--tx), box-shadow var(--tx), transform var(--tx);
}
.capability-card:hover {
  border-color: rgba(23, 50, 77, 0.35);
  box-shadow: var(--shadow-sm);
}
.capability-card h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.capability-card p {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.capability-evidence {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}
.capability-evidence strong { color: var(--text-2); font-weight: 600; }

/* =========================================================
   Impact (Founder-Operator)
   ========================================================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.impact-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.impact-card:hover { border-color: var(--border-stronger); }
.impact-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 680;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 0.44rem 0.86rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
  align-self: flex-start;
  line-height: 1.1;
  min-height: 34px;
}
.impact-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.impact-action,
.impact-outcome {
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}
.impact-outcome {
  color: #2A2520;
  font-weight: 500;
}
.impact-card .inline-details { margin-top: auto; }
.impact-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}
/* Action / Impact / Proof rich layout */
.impact-grid-rich .impact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.impact-aip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.impact-aip dt {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.impact-aip dd {
  margin: 4px 0 0;
  color: #2A2520;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.6;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
}

.impact-aip dt:nth-of-type(2) {
  margin-top: 14px;
  color: var(--gold);
}
.impact-aip dd:last-of-type {
  margin-top: 4px;
  margin-left: 0;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-left: 2px solid var(--border);
  border-radius: 0 6px 6px 0;
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
}

.impact-effect {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  color: var(--text-2);
  font-weight: 500;
}

/* =========================================================
   Case study (Lyntra, Housing Gate)
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.case-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.case-block h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.case-block p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }
.case-block p + p { margin-top: 8px; }

/* =========================================================
   Lyntra — academic execution layout
   ========================================================= */
.section-body {
  margin-top: 12px;
  max-width: 760px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.6;
}

.lyntra-product-grid,
.lyntra-pair { margin-top: 28px; }

/* Lyntra phase cards (01-04 sequence) */
.lyntra-phase-head {
  margin-top: 28px;
  margin-bottom: 18px;
}
.lyntra-phase-head .section-eyebrow {
  color: var(--accent-warm);
  font-family: var(--font-sans);
  font-weight: 720;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.lyntra-phase-sub {
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}
.lyntra-phase-grid,
.lyntra-loop-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.lyntra-loop-strip {
  margin: 0.85rem 0 0;
  padding: 0;
}

.lyntra-loop-card {
  height: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 1.05rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.loop-number,
.phase-num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--accent-navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

.lyntra-loop-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}

.lyntra-loop-card > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.48;
  font-size: 0.98rem;
}

.lyntra-loop-card .inline-details { margin-top: auto; }

.lyntra-experience-head {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}
.lyntra-experience-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.9vw, 1.42rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.product-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

.product-proof-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  height: 100%;
}

.product-proof-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}

.product-proof-card > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
  font-size: 0.98rem;
  max-width: 62ch;
}
.example-label {
  color: var(--accent-warm);
  font-weight: 740;
}

.product-proof-card .inline-details { margin-top: auto; }

/* Guided checkpoint panels (expanded Lyntra support cards) */
.guided-checkpoint-panel {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(248, 243, 236, 0.62);
  border: 1px solid rgba(132, 93, 37, 0.22);
  display: grid;
  gap: 0.9rem;
}
.checkpoint-header h4 {
  margin: 0 0 0.3rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.2;
}
.checkpoint-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 520;
}
.checkpoint-row-list {
  display: grid;
  gap: 0.55rem;
}
.checkpoint-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(132, 93, 37, 0.18);
}
.checkpoint-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid rgba(132, 93, 37, 0.30);
  color: var(--accent-navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.checkpoint-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.45;
}
.checkpoint-row-done {
  border-color: rgba(20, 53, 83, 0.22);
  background: rgba(228, 214, 189, 0.34);
}
@media (max-width: 640px) {
  .checkpoint-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .checkpoint-label { width: fit-content; }
}

/* Legacy guided-checkpoint wrapper (chip groups, two-col) */
.guided-checkpoint {
  margin-top: 0.85rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(248, 243, 236, 0.62);
  border: 1px solid rgba(132, 93, 37, 0.20);
  display: grid;
  gap: 0.85rem;
}
.checkpoint-panel-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.checkpoint-context {
  margin: 0;
  color: #3F3934;
  font-weight: 540;
  line-height: 1.48;
  font-size: 0.94rem;
}
.checkpoint-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.checkpoint-step {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(132, 93, 37, 0.20);
  border-radius: 14px;
  padding: 0.75rem;
  min-height: 100%;
}
.checkpoint-step h4 {
  margin: 0 0 0.35rem;
  color: #1D1D1F;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.18;
}
.checkpoint-step p {
  margin: 0;
  color: #4A4540;
  font-size: 0.88rem;
  line-height: 1.42;
}
.guide-rows {
  gap: 0.65rem;
}
.guide-row {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(132, 93, 37, 0.18);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}
.guide-row h4 {
  margin: 0 0 0.3rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
}
.guide-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.42;
}
.chip-groups {
  gap: 0.75rem;
}
.chip-group-label {
  margin: 0 0 0.4rem;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.guide-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.guide-col {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(132, 93, 37, 0.18);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}
.guide-col h4 {
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
}
.guide-list {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}
.guide-list li + li { margin-top: 0.25rem; }

@media (max-width: 1180px) {
  .checkpoint-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .checkpoint-step-grid { grid-template-columns: 1fr; }
  .guide-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 1150px) {
  .lyntra-loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .product-proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lyntra-loop-grid { grid-template-columns: 1fr; }
  .lyntra-loop-card { padding: 1rem; }
}

.phase-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.phase-num {
  width: 42px;
  height: 42px;
}

.phase-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.phase-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.phase-card details.reveal-more { margin-top: auto; }
.phase-card details.reveal-more p { color: var(--text-primary); font-size: 0.93rem; line-height: 1.55; }

@media (max-width: 1024px) {
  .lyntra-phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lyntra-phase-grid { grid-template-columns: 1fr; }
}

/* Benefits-for-students callout card */
.product-proof-card.lyntra-benefits,
.lyntra-benefits {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.35rem 1.4rem;
  gap: 0.85rem;
}
.lyntra-my-role {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  padding: 1.35rem 1.4rem;
}
.product-proof-card.lyntra-benefits h3,
.lyntra-benefits h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.lyntra-benefits > p {
  color: var(--text-primary);
  font-weight: 520;
}
.lyntra-benefits .chip-row { margin-top: 0.35rem; margin-bottom: 0.15rem; }
.lyntra-benefits .inline-details { margin-top: 0.35rem; }

/* Boxed details grid (used inside .section-details accordions) */
.details-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.15rem 1.15rem;
}
.details-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(50, 43, 35, 0.035);
}
.details-card h4 {
  margin: 0 0 0.4rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.details-card > p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-weight: 660;
  font-size: 0.86rem;
  line-height: 1.1;
}
.mini-card-stack {
  display: grid;
  gap: 0.65rem;
}
.mini-detail-card {
  border: 1px solid rgba(132, 93, 37, 0.18);
  background: rgba(248, 243, 236, 0.62);
  border-radius: 14px;
  padding: 0.75rem;
}
.mini-detail-card strong {
  display: block;
  color: var(--text-primary);
  font-weight: 740;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.mini-detail-card span {
  color: var(--text-secondary);
  line-height: 1.45;
  font-size: 0.92rem;
}
.details-card ul.bullets {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .details-card-grid { grid-template-columns: 1fr; padding: 0 0.85rem 0.85rem; }
}

/* Housing Gate workflow / accordion inner body */
.section-details .details-body {
  padding: 0 1.15rem 1.15rem;
  display: grid;
  gap: 1.4rem;
}
.hg-workflow-head { margin-top: 0.4rem; }
.hg-workflow-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hg-workflow-sub {
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}
.workflow-step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.workflow-step-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.05rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.workflow-step-card h4 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.workflow-step-card > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}
.workflow-step-card details.reveal-more { margin-top: auto; }
@media (max-width: 1200px) {
  .workflow-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .workflow-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workflow-step-grid { grid-template-columns: 1fr; }
}

.hg-benefits h4,
.hg-block-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hg-benefits > p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}

.expansion-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.expansion-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  box-shadow: 0 8px 20px rgba(50, 43, 35, 0.035);
}
.expansion-card h5 {
  margin: 0 0 0.3rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.expansion-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .expansion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .expansion-grid { grid-template-columns: 1fr; }
}

/* Important-summary paragraph (used in Housing Gate "Why it matters") */
.important-summary {
  color: #2E2A24;
  font-weight: 520;
  line-height: 1.62;
}
.important-summary strong {
  color: var(--text-primary);
  font-weight: 760;
}

.lyntra-full {
  margin-top: 18px;
}

.lyntra-loop {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.lyntra-loop-eyebrow {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.lyntra-loop-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lyntra-loop-pills li {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #E9E0CF;
  border: 1px solid #D6C8AB;
  color: #6E5828;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.1;
}
.lyntra-loop-pills li + li::before {
  content: "→";
  margin-right: 12px;
  margin-left: -4px;
  color: rgba(90, 76, 61, 0.78);
  font-weight: 600;
}
.lyntra-loop-sub {
  margin-top: 14px;
  color: var(--muted-readable);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 720px;
}

.lyntra-callout {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(245, 239, 228, 0.78) 100%
    );
  border-color: rgba(214, 200, 171, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(50, 43, 35, 0.04);
}

.lyntra-sub-callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(233, 224, 207, 0.42);
  border: 1px solid rgba(214, 200, 171, 0.5);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 550;
  line-height: 1.5;
}


.reveal-inline {
  margin-top: 14px;
}
.reveal-inline summary {
  font-size: 0.9rem;
  color: var(--primary);
}

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--evidence);
}
.metric-num-word {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.metric-label { color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.metric-grid-compact li { padding: 18px; min-height: auto; }

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--chip-text);
  font-size: 0.84rem;
  font-weight: 680;
  letter-spacing: -0.005em;
  transition: border-color var(--tx), color var(--tx);
}
.badge:hover { border-color: var(--primary); color: var(--primary); }

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.chip-row-tight { gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  min-height: 28px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.chip:hover { background: var(--chip-bg-hover); }

/* Bullets */
.bullets {
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}
.bullets.numbered {
  counter-reset: bnum;
}
.bullets.numbered li { padding-left: 28px; }
.bullets.numbered li::before {
  counter-increment: bnum;
  content: counter(bnum) ".";
  top: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* =========================================================
   Reveal-more (details)
   ========================================================= */
.reveal-more {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.reveal-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  transition: background var(--tx);
}
.reveal-more > summary:hover { background: var(--surface-soft); }
.reveal-more > summary::-webkit-details-marker { display: none; }
.reveal-body {
  padding: 18px;
  border-top: 1px solid var(--divider);
  background: var(--surface-soft);
}
.reveal-grouped {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.reveal-grouped h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 8px;
}
.reveal-grouped > div + div { /* no border, grid spacing only */ }
.reveal-grouped .reveal-note {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.reveal-inline {
  margin-top: 12px;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.reveal-inline > summary {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.reveal-inline > summary:hover { background: transparent; color: var(--primary); }
.reveal-inline[open] > summary { color: var(--primary); }

/* Chevron */
.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform var(--tx);
}
details[open] > summary .chev,
.proj-details[open] > summary .chev,
.reveal-more[open] > summary .chev,
.timeline-row details[open] > summary .chev {
  transform: rotate(-135deg);
}

/* =========================================================
   Flow row (steps)
   ========================================================= */
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.flow-row[aria-label="Housing Gate workflow"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.flow-num {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary);
  background: var(--soft-accent);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.flow-step h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.flow-step p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }

/* =========================================================
   Projects
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.filter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  min-height: 44px;
  transition: background var(--tx), color var(--tx), border-color var(--tx);
}
.filter-btn:hover { background: var(--surface-soft); color: var(--text); }
.filter-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color var(--tx), box-shadow var(--tx);
}
.project-card:hover { border-color: rgba(23, 50, 77, 0.35); box-shadow: var(--shadow-sm); }
.project-card[hidden] { display: none; }

.project-head { margin-bottom: 10px; }
.project-cat {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-card h3 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.project-role {
  font-size: 0.88rem;
  color: var(--muted-readable);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.project-desc {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-top: 4px;
}
.project-outcome {
  margin-top: 1.05rem;
  margin-bottom: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(245, 239, 228, 0.72) 100%
    );
  border: 1px solid rgba(214, 200, 171, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(50, 43, 35, 0.035);
  color: var(--muted-readable);
  font-size: 0.94rem;
  line-height: 1.55;
  line-height: 1.55;
}
.project-outcome strong { color: var(--text); font-weight: 750; }
@media (max-width: 640px) {
  .project-outcome {
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    font-size: 0.92rem;
  }
}

.proj-details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.proj-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
}
.proj-details > summary::-webkit-details-marker { display: none; }
.proj-details .reveal-body {
  padding: 12px 0 0;
  background: transparent;
  border-top: none;
}
.proj-details .reveal-body p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 8px;
}
.proj-details .reveal-body p:first-child { margin-top: 4px; }
.proj-details .reveal-body p strong { color: var(--text); font-weight: 600; }

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* =========================================================
   Hackathons
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
/* Shared editorial pill label — used in Hackathons meta, Impact eyebrows, etc. */
.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}
.pill-label:hover { background: var(--chip-bg-hover); }

.hack-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.hack-meta-pills li { white-space: normal; }
.hack-card h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hack-card p { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }
.hack-card p + p { margin-top: 8px; }

/* =========================================================
   Recognition
   ========================================================= */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.recognition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.recognition-card h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.recognition-card p:not(.rec-cat) {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.recognition-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recognition-list li {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.55;
}
.recognition-list strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Startup Support
   ========================================================= */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.support-cat {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 12px;
}
.support-body {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.support-expand {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.support-outcome {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-left: 2px solid var(--evidence);
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}
.support-outcome strong { color: var(--evidence); font-weight: 600; }

/* =========================================================
   Upcoming
   ========================================================= */
.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.upcoming-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upcoming-when {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
}
.upcoming-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* =========================================================
   Leadership Timeline
   ========================================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px dashed var(--border);
  padding-left: 22px;
  margin-left: 8px;
}
.timeline-row {
  position: relative;
}
.timeline-row::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--secondary);
}
.timeline-row details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tx);
}
.timeline-row details:hover { border-color: rgba(23, 50, 77, 0.3); }
.timeline-row summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.timeline-row summary::-webkit-details-marker { display: none; }
.t-line { display: flex; flex-direction: column; gap: 4px; }
.t-role {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.t-meta { font-size: 0.86rem; color: var(--text-2); margin-top: 6px; }
.t-tools { margin-top: 6px; margin-bottom: 0; }
.t-meta-row { margin-top: 10px; margin-bottom: 0; padding-left: 0; list-style: none; }
.t-impact { color: var(--text-2); font-size: 0.94rem; line-height: 1.55; margin-top: 10px; }

/* Shared text-only metadata pill system */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}
.meta-pill:hover { background: var(--chip-bg-hover); }
.meta-pill.date,
.meta-pill.tool {
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 620;
}
.meta-pill.long {
  white-space: normal;
  line-height: 1.3;
  text-align: left;
  max-width: 100%;
}
@media (max-width: 640px) {
  .meta-row { gap: 0.45rem; }
  .meta-pill { min-height: 28px; padding: 4px 10px; font-size: 0.78rem; }
}
.timeline-row details .reveal-body {
  background: var(--surface-soft);
  border-top: 1px solid var(--divider);
}

/* =========================================================
   Experience groups + stack
   ========================================================= */
.exp-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.exp-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.exp-group h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 14px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  height: auto;
  align-self: start;
}
.stack-card h4 {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--text);
}
.stack-card .chip-row { margin-top: 0; }

/* =========================================================
   Certifications
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cert-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--tx);
}
.cert-chip:hover { border-color: rgba(23, 50, 77, 0.35); }
.cert-chip strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}
.cert-chip span {
  color: var(--muted-readable);
  font-size: 0.86rem;
  font-weight: 500;
}

/* =========================================================
   Education
   ========================================================= */
.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.edu-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.edu-when {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 8px;
}
.edu-row h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.edu-row p { color: var(--text-2); font-size: 0.96rem; line-height: 1.55; margin-top: 6px; }
.edu-row p:first-of-type { margin-top: 0; }

.lang-block { margin-top: 32px; }
.lang-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--secondary);
  margin-bottom: 14px;
}
.lang-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lang-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-list strong { font-weight: 600; font-size: 1rem; color: var(--text); }
.lang-list span { color: var(--text-2); font-size: 0.94rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-links {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color var(--tx), color var(--tx), background var(--tx);
}
.link-row:hover { border-color: var(--primary); color: var(--primary); }
.link-meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}
.link-row[aria-disabled="true"] { color: var(--muted); cursor: default; }
.link-row[aria-disabled="true"]:hover { border-color: var(--border); color: var(--muted); }

.contact-form {
  margin-top: 32px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-transform: uppercase;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  font: inherit;
  color: var(--text);
  transition: border-color var(--tx), background var(--tx);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--evidence);
}
.form-status.is-error { color: #8a2b2b; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 36px 0;
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: inline-flex; gap: 10px; align-items: center; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--primary); }

/* =========================================================
   Hero eyebrow with subtle Peru flag + Wisconsin location mark
   ========================================================= */
.eyebrow-flag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 8px;
}
.eyebrow-flag .loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-flag .loc-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.flag-pe {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mark-wi {
  display: inline-block;
  width: 13px;
  height: 15px;
  flex-shrink: 0;
}

/* Community Impact extra spacing between lede and metrics */
.metric-grid-spaced { margin-top: 16px; }
@media (max-width: 768px) { .metric-grid-spaced { margin-top: 12px; } }

.metric-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}
@media (max-width: 480px) {
  .metric-grid-2x2 { grid-template-columns: 1fr; }
}

/* Section-level inline link rows (Lyntra/Housing Gate header link rows) */
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.section-links .inline-link { font-size: 0.94rem; }

/* Hackathon card inline link rows */
.hack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.hack-links .inline-link { font-size: 0.94rem; }

/* Community Impact: two-item editorial layout */
.community-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px clamp(22px, 3vw, 32px);
  margin-top: 28px;
}
.community-item + .community-item { margin-top: 24px; }
.community-head { margin-bottom: 14px; }
.community-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 8px;
}
.community-item h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.community-sub {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}
.community-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 12px 0 14px;
  font-size: 0.94rem;
}
.community-meta dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--secondary);
  margin-right: 6px;
}
.community-meta dd { color: var(--text-2); }
.community-body {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.community-impact {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.community-impact strong { color: var(--evidence); font-weight: 600; }
.campaign-proof-label {
  margin-top: 22px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .community-meta { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   Capability pillar preview
   ========================================================= */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
  align-items: stretch;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: border-color var(--tx), transform var(--tx);
}
.pillar-card h3 { min-height: 3.2rem; }
.pillar-card:hover { border-color: rgba(23, 50, 77, 0.3); transform: translateY(-2px); }
.pillar-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  background: var(--soft-accent);
  border: 1px solid rgba(138, 100, 43, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.edu-involvement-label {
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.25;
}
.pillar-card p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
}

.reveal-capabilities { margin-top: 32px; }
.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 4px;
}
.capability-list li {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.55;
}
.capability-list li strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Lyntra guided-module grid
   ========================================================= */
.reveal-modules .reveal-intro,
.reveal-modules .reveal-footer { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 14px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.module-card h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 6px;
}
.module-card p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Housing Gate proof chip row */
.chip-row-tight.chip-proof { margin-top: 10px; }

/* Recognition / project inline link rows */
.rec-link,
.project-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.community-links {
  margin-top: 18px;
}
.rec-link .inline-link,
.project-links .inline-link {
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .project-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
/* .next-steps-link styles defined with .next-steps-card below */

/* =========================================================
   Contact: compact single-CTA layout
   ========================================================= */
.contact-body { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.contact-primary { align-self: flex-start; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
}
.contact-actions .btn { min-width: 190px; }
@media (max-width: 640px) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 10px;
    width: 100%;
  }
  .contact-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
.contact-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 0.96rem;
  color: var(--text-2);
}
.contact-inline-links .inline-link { font-size: 0.96rem; }

/* =========================================================
   Contact actions
   ========================================================= */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}
.btn.btn-large {
  padding: 14px 22px;
  font-size: 1rem;
  border-radius: 12px;
}
.contact-email-line {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

/* Mobile nav Contact CTA */
.mobile-nav-list a.mobile-contact-cta {
  background: var(--primary);
  color: #fff;
  margin: 8px var(--pad-x);
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}
.mobile-nav-list a.mobile-contact-cta:hover {
  background: #0f2538;
  color: #fff;
}

/* Keep nav Contact button visible regardless of active section */
.primary-nav .nav-cta { color: #fff !important; }
.primary-nav .nav-cta:hover { color: #fff !important; }

/* =========================================================
   Next Steps card (Housing Gate)
   ========================================================= */
.next-steps-card {
  margin-top: 28px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: none;
}
.next-steps-tag {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  background: var(--soft-accent);
  border: 1px solid rgba(138, 100, 43, 0.14);
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.next-steps-card h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}
.next-steps-body {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.next-steps-card .chip-row {
  margin-top: 18px;
  margin-bottom: 8px;
}
.next-steps-link { margin-top: 18px; margin-bottom: 0; }

/* =========================================================
   Expansion list (Housing Gate expanded workflow)
   ========================================================= */
.reveal-roomy { padding: 30px 32px; }
.reveal-roomy h4 { margin-top: 22px; }
.reveal-roomy h4:first-of-type { margin-top: 0; }
.reveal-roomy p { line-height: 1.7; color: var(--text-2); }

.expansion-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 12px 0 8px;
}
.expansion-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.expansion-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.expansion-num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--secondary);
}
.expansion-body {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  :root { --pad-x: 28px; }
  .section { padding: 96px 0; }
  .hero { padding: 80px 0 64px; }
  .section-grid { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 48px; }
  .capability-grid,
  .impact-grid,
  .recognition-grid,
  .stack-grid,
  .cert-grid,
  .exp-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .section-head { position: static; }
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .capability-grid,
  .impact-grid,
  .recognition-grid,
  .stack-grid,
  .cert-grid,
  .exp-groups,
  .project-grid,
  .reveal-grouped,
  .pillar-grid,
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-list { grid-template-columns: 1fr; }
  .case-grid,
  .support-grid,
  .upcoming-list,
  .two-col,
  .metric-grid,
  .lang-list,
  .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-row,
  .flow-row[aria-label="Housing Gate workflow"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-strip li + li { border-left: none; padding-left: 6px; }
}

@media (max-width: 820px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }

  .header-inner { min-height: 64px; }

  .hero-roles { gap: 4px 10px; }
  .hero-logo-row { gap: 1.25rem; margin-top: 1.4rem; margin-bottom: 1.5rem; }
  .logo-uw { height: 36px; max-width: 140px; }
  .hero-logo-lyntra-wrap { height: 40px; padding: 0 10px; border-radius: 9px; }
  .logo-lyntra { height: 26px; max-width: 80px; }
  .logo-housing-gate { height: 44px; max-width: 150px; transform: none; }
  .logo-row-sep { display: none; }
  .hero-text-bottom { margin-top: 0.5rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-proof-links { margin-top: 0.75rem; justify-content: flex-start; }
  .proof-eyebrow { margin-top: 18px; margin-bottom: 8px; }

  .chapter-mark { margin-bottom: 32px; font-size: 0.86rem; }
  .chapter-mark::before,
  .chapter-mark::after { width: 24px; }

  .hero-portrait-wrap { margin-left: auto; margin-right: auto; max-width: 320px; }

  .evidence-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    gap: 14px;
  }
  .evidence-strip li + li { border-left: none; padding-left: 0; }

  .capability-grid,
  .impact-grid,
  .recognition-grid,
  .stack-grid,
  .cert-grid,
  .exp-groups,
  .project-grid,
  .reveal-grouped,
  .case-grid,
  .support-grid,
  .upcoming-list,
  .two-col,
  .metric-grid,
  .lang-list,
  .pillar-grid,
  .module-grid,
  .contact-links { grid-template-columns: 1fr; }

  .lyntra-loop { padding: 18px 18px; }
  .lyntra-loop-pills { gap: 6px; }
  .lyntra-loop-pills li { font-size: 0.84rem; padding: 6px 11px; }
  .lyntra-loop-pills li + li::before { margin-right: 10px; }
  .lyntra-outcome { margin-top: 22px; margin-bottom: 22px; font-size: 1.12rem; }
  .lyntra-sub-callout { padding: 10px 12px; font-size: 0.92rem; }

  .flow-row,
  .flow-row[aria-label="Housing Gate workflow"] { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }

  .timeline { padding-left: 18px; }
  .timeline-row::before { left: -25px; }

  .reveal-grouped { gap: 16px; }
}

@media (max-width: 430px) {
  :root { --pad-x: 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-name { letter-spacing: -0.04em; }
  .filter-bar { padding: 6px; }
  .filter-btn { padding: 8px 12px; font-size: 0.86rem; min-height: 40px; }
  .contact-form { padding: 22px; }
}

@media (max-width: 375px) {
  :root { --pad-x: 18px; }
  .hero-name { font-size: 2.8rem; line-height: 1.04; }
  .badge, .chip { font-size: 0.78rem; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* =========================================================
   Print / PDF export
   ========================================================= */
/* =========================================================
   .section-details accordion (HCI two-surface progressive disclosure)
   ========================================================= */
.section-details {
  margin-top: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--shadow-soft);
  overflow: hidden;
}
.section-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-sans);
  font-weight: 740;
  font-size: 0.96rem;
  color: var(--accent-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
}
.section-details > summary::-webkit-details-marker { display: none; }
.section-details > summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-navy);
  line-height: 1;
}
.section-details[open] > summary::after { content: "–"; }
.section-details > summary:focus-visible {
  outline: 2px solid var(--accent-navy);
  outline-offset: 2px;
}

/* Inline expandable details (cards, impact, Lyntra loop) */
.inline-details {
  margin-top: 0.85rem;
}
.product-proof-card .inline-details,
.lyntra-loop-card .inline-details {
  margin-top: auto;
}
.inline-details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--accent-navy);
  font-weight: 740;
  font-size: 0.92rem;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details > summary::after {
  content: "›";
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-navy);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--tx);
}
.inline-details[open] > summary::after {
  transform: rotate(90deg);
}
.inline-details > summary:hover { text-decoration: underline; }
.inline-details > summary:focus { outline: none; }
.inline-details > summary:focus-visible {
  outline: 2px solid var(--accent-navy);
  outline-offset: 3px;
}
.inline-details > summary:active,
.inline-details[open] > summary {
  outline: none;
  border: none;
  box-shadow: none;
}
.inline-details p,
.inline-details li {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.95rem;
}
.involvement-reveal.inline-details { margin-top: auto; padding-top: 0.5rem; }
.involvement-reveal .impact-aip { margin-top: 0.75rem; }

.hg-visible-grid { margin-top: 1.25rem; }

/* Housing Gate visible card grid */
.housing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.25rem;
}
.housing-card,
.housing-role-card,
.accelerator-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.housing-card h3,
.housing-role-card h3,
.accelerator-card h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.housing-card p,
.accelerator-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
}
.accelerator-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.45rem 1.2rem;
}
.accelerator-card h3 { margin-bottom: 0.35rem; }
.accelerator-card > p:not(.accelerator-link) { margin-top: 0.2rem; }
.accelerator-chips {
  margin: 1.15rem 0 0.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 0.85rem;
}
.accelerator-chips .chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  min-height: 34px;
  padding: 0.44rem 0.86rem;
}
.accelerator-link {
  margin: 1.65rem 0 0;
}
.housing-role-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  padding: 1.35rem 1.45rem;
}
.housing-role-main {
  width: 100%;
}
.housing-role-main h3 {
  margin: 0 0 0.45rem;
}
.housing-role-main p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}
.housing-role-chips {
  width: 100%;
  max-width: 56rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 0.75rem;
}
.housing-role-chips .chip {
  flex: 0 0 10.25rem;
  width: 10.25rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding: 0.44rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.25;
}
@media (max-width: 760px) {
  .housing-card-grid { grid-template-columns: 1fr; }
  .housing-role-card,
  .accelerator-card { grid-column: auto; }
  .housing-role-card {
    gap: 1rem;
    padding: 1.25rem 1.15rem;
  }
  .housing-role-chips,
  .accelerator-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .housing-role-chips .chip {
    flex: 0 0 calc(50% - 0.45rem);
    width: calc(50% - 0.45rem);
  }
}

@media (max-width: 480px) {
  .housing-role-chips .chip {
    flex: 0 0 100%;
    width: 100%;
    max-width: 16rem;
  }
  .accelerator-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .chip,
  .badge,
  .meta-pill,
  .pill-label,
  .detail-chip {
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
  }
}

.section-details .details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.15rem 1.15rem;
}
.section-details .details-group {
  border-top: 1px solid rgba(170, 139, 82, 0.22);
  padding-top: 1rem;
}
.section-details .details-group h4 {
  margin: 0 0 0.55rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 740;
}
.section-details .details-group ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.section-details .details-group ul li { margin-bottom: 0.2rem; }
@media (max-width: 700px) {
  .section-details .details-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Print / PDF export
   ========================================================= */
@media print {
  body {
    background: #fff !important;
    color: #111;
  }
  .site-header,
  .floating-nav,
  .sticky-nav,
  .skip-link { position: static !important; }
  .site-header { box-shadow: none !important; backdrop-filter: none !important; }
  section,
  .section { break-inside: avoid; page-break-inside: avoid; padding-block: 24px; }
  .case-block,
  .pillar-card,
  .impact-card,
  .project-card,
  .recognition-card,
  .hack-card,
  .stack-card,
  .cert-chip,
  .edu-row,
  .community-item,
  .next-steps-card,
  .support-card,
  .timeline-row,
  .section-details,
  .metric-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  a { color: inherit; text-decoration: none; }
  details { break-inside: avoid; }
  details[open] summary .chev { display: none; }
  details:not([open]) > *:not(summary) { display: none !important; }
}
