/* ============================================================
   Miguel Calderaz — Investment Strategist
   Clean white editorial · floating card · wealth-management feel
   ============================================================ */

:root {
  --white:   #ffffff;
  --off:     #f8f7f5;
  --gray-1:  #f2f1ef;
  --gray-2:  #e8e6e3;
  --gray-3:  #c4c0ba;
  --gray-4:  #7a7570;
  --ink:     #1a1917;
  --ink-mid: #2e2b28;
  --ink-soft:#4a4641;
  --navy:    #10243e;
  --navy-lt: #1c3a5e;
  --gold:    #b5843a;
  --gold-lt: #d4a55a;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 3.75rem;
  --pad-x: max(1rem, env(safe-area-inset-left, 0px));
  --pad-r: max(1rem, env(safe-area-inset-right, 0px));
  --container: min(76rem, calc(100% - var(--pad-x) - var(--pad-r)));

  --ff-serif: "Playfair Display", Georgia, serif;
  --ff-sans:  "Manrope", system-ui, sans-serif;
  --ff-mono:  "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3 { margin: 0; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul,dl { margin: 0; padding: 0; list-style: none; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; }

.container { width: var(--container); margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--gray-2);
  box-shadow: 0 2px 24px rgba(26,25,23,0.07);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

/* hamburger */
.nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn-bar {
  display: block;
  width: 1.3rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-btn[aria-expanded="true"] .nav-btn-bar:first-child { transform: translateY(5px) rotate(45deg); }
.nav-btn[aria-expanded="true"] .nav-btn-bar:last-child  { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  padding: 0.5rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
  box-shadow: 0 12px 32px rgba(26,25,23,0.1);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mm-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem var(--pad-x);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--gray-1);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background 0.2s;
}
.mm-link:hover,
.mm-link:active { color: var(--navy); background: var(--off); }
.mm-link:last-child { border-bottom: none; }

.menu-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26,25,23,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-veil.is-visible { opacity: 1; pointer-events: auto; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 110% 0%, rgba(181,132,58,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at -20% 100%, rgba(181,132,58,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text {
  padding: 2rem var(--pad-x) 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.hero-pre {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  max-width: 100%;
}

.hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 11.5vw, 8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero-last {
  font-weight: 400;
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  max-width: 36ch;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.hero-badges span {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Scroll cue */
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.hero-scroll:hover { color: rgba(255,255,255,0.7); }
.hero-scroll-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.hero-scroll-text { line-height: 1; }

/* Hero photo */
.hero-photo {
  margin: 0;
  position: relative;
  flex: none;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--navy) 55%, transparent) 0%,
    transparent 35%,
    transparent 60%,
    var(--navy) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: min(52vw, 22rem);
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* Hero stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}

.hstat {
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  min-width: 0;
}
.hstat:nth-child(2n) { border-right: none; }
.hstat:nth-child(n+3) { border-bottom: none; }

.hstat-val {
  font-family: var(--ff-serif);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.hstat-val em {
  font-style: normal;
  font-size: 0.9em;
  color: var(--gold-lt);
}
.hstat-key {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding-block: 3.5rem;
}
.section--gray { background: var(--off); }
.section--dark {
  background: var(--ink-mid);
  color: var(--white);
}

.section-tag {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-tag--light { color: var(--gold-lt); }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}
.section-title--light { color: var(--white); }

/* ── About ──────────────────────────────────────────────── */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-left .section-title {
  margin-bottom: 0;
}

.about-lead {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.about-right p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-profile {
  margin-top: 1.75rem;
  padding: 1.15rem 1.15rem 1.15rem 1.25rem;
  background: var(--gray-1);
  border-left: 3px solid var(--gold);
  border-radius: 0 0.5rem 0.5rem 0;
}

.about-profile dl { display: flex; flex-direction: column; gap: 0.85rem; }
.about-profile dl > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: start;
}
.about-profile dt {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
  padding-top: 0.2rem;
}
.about-profile dd {
  font-size: 0.88rem;
  color: var(--ink-mid);
  font-weight: 500;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--gray-2);
}

.tl-item {
  display: block;
  padding: 0 0 2.5rem 1.75rem;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-year-col {
  display: block;
  margin-bottom: 0.6rem;
}

.tl-year {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.tl-dot {
  position: absolute;
  left: -0.35rem;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--off);
  flex-shrink: 0;
  z-index: 1;
}

.tl-body {
  min-width: 0;
}

.tl-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.tl-org {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem !important;
}
.tl-list { display: flex; flex-direction: column; gap: 0.4rem; }
.tl-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
}
.tl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 1.5px;
  background: var(--gold);
}

/* ── Academy ────────────────────────────────────────────── */
.academy-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.academy-intro p {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.65);
  max-width: 60ch;
  line-height: 1.8;
}

.academy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.acad-card {
  padding: 1.35rem 1.25rem;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
  min-width: 0;
}
.acad-card:hover { background: rgba(255,255,255,0.07); }
.acad-card--wide { grid-column: 1 / -1; }

.acad-num {
  font-family: var(--ff-serif);
  font-size: clamp(2.1rem, 8vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.acad-num em {
  font-style: normal;
  font-size: 0.7em;
  color: var(--gold-lt);
}
.acad-card > p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.acad-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.acad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.acad-tags span {
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
}

/* ── Philosophy ─────────────────────────────────────────── */
.phil-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.phil-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.phil-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pil {
  padding: 1.35rem 0;
  border-top: 1px solid var(--gray-2);
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: start;
}
.pil:last-child { border-bottom: 1px solid var(--gray-2); }

.pil-n {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 0.35rem;
}
.pil h3 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  min-width: 0;
}
.pil p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.75;
  min-width: 0;
}

.phil-quote-block {
  background: var(--navy);
  border-radius: 1rem;
  padding: 1.75rem 1.35rem;
  color: var(--white);
}

.phil-quote-block blockquote {
  margin: 0;
  padding: 0;
  border: none;
}
.phil-quote-block blockquote p {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.phil-quote-block footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.phil-quote-block cite {
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.phil-quote-block footer > span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.footer-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-academy {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ── Reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 480px) {
  :root {
    --pad-x: max(1.25rem, env(safe-area-inset-left, 0px));
    --pad-r: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .academy-cards { grid-template-columns: 1fr 1fr; }
  .acad-card { padding: 1.5rem; }
  .acad-card--wide { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  :root {
    --header-h: 4rem;
    --pad-x: max(1.5rem, env(safe-area-inset-left, 0px));
    --pad-r: max(1.5rem, env(safe-area-inset-right, 0px));
  }

  .section { padding-block: 4.5rem; }
  .hero-text { padding: 3rem var(--pad-x) 2.25rem; }
  .hero-photo img { max-height: none; aspect-ratio: 4 / 3; }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .hstat {
    padding: 1.25rem 1.15rem;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .hstat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.07); }
  .hstat:last-child { border-right: none; }

  .about-profile dl > div {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .tl-item {
    display: grid;
    grid-template-columns: 7rem 0.75rem minmax(0, 1fr);
    gap: 0 1.5rem;
    padding: 0 0 2.5rem 0;
  }
  .tl-year-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 0;
    padding-top: 0.35rem;
  }
  .tl-year {
    display: block;
    background: none;
    color: var(--gray-4);
    padding: 0;
    border-radius: 0;
    text-align: right;
    white-space: normal;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
  }
  .timeline::before { left: 7.8rem; }
  .tl-dot {
    position: relative;
    left: auto;
    top: 0.45rem;
  }

  /* Keep philosophy stacked on tablet; 3-col only from 900px */
  .phil-pillars { display: flex; flex-direction: column; gap: 0; }
  .pil {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    padding: 1.35rem 0;
    border-top: 1px solid var(--gray-2);
    border-bottom: none;
  }
  .pil:last-child { border-bottom: 1px solid var(--gray-2); }
  .pil-n { padding-top: 0.35rem; margin-bottom: 0; }
  .pil h3 { grid-column: 2; grid-row: 1; }
  .pil p { grid-column: 2; grid-row: 2; }

  .phil-quote-block { padding: 2.25rem 2rem; border-radius: 1.25rem; }
}

@media (min-width: 900px) {
  .phil-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
  }
  .pil {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    padding: 1.5rem 0 0;
    border-top: 3px solid var(--gold);
    border-bottom: none;
  }
  .pil:last-child { border-bottom: none; }
  .pil-n,
  .pil h3,
  .pil p {
    grid-column: auto;
    grid-row: auto;
  }
  .pil-n { padding-top: 0; margin-bottom: 0.5rem; }
  .pil h3 { margin-bottom: 0.5rem; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-btn   { display: none; }
  .mobile-menu,
  .menu-veil { display: none !important; }

  .hero {
    min-height: 100dvh;
  }

  .hero-inner {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px) - 7.5rem);
  }

  .hero-text {
    flex: 1;
    justify-content: center;
    padding: 4rem 2.5rem 4rem 3rem;
    max-width: 52%;
  }

  .hero-scroll { margin-top: 0.5rem; }

  .hero-photo {
    flex: 1;
    min-height: 0;
  }
  .hero-photo::before {
    background: linear-gradient(
      to right,
      color-mix(in srgb, var(--navy) 70%, transparent) 0%,
      transparent 40%,
      transparent 70%,
      var(--navy) 100%
    );
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center 20%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .hstat {
    flex: unset;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: none;
    padding: 1.35rem 1.5rem;
  }
  .hstat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.07); }
  .hstat:last-child { border-right: none; }

  .section { padding-block: 5rem; }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
  }
  .about-left .section-title { position: sticky; top: 7rem; }

  .academy-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
  }

  .phil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: max(2rem, env(safe-area-inset-left, 0px));
    --pad-r: max(2rem, env(safe-area-inset-right, 0px));
  }

  .hero-text { padding: 5rem 4rem 5rem 5.5rem; }
  .section { padding-block: 6.5rem; }
  .phil-pillars { gap: 0 2.5rem; }
}

/* Very small phones */
@media (max-width: 379px) {
  .hero h1 { font-size: clamp(2.25rem, 12vw, 2.85rem); }
  .hero-badges span { font-size: 0.62rem; padding: 0.3rem 0.55rem; }
  .hstat { padding: 0.95rem 0.75rem; }
  .section-title { font-size: clamp(1.75rem, 8vw, 2.25rem); margin-bottom: 1.75rem; }
}

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