/* Homepage styles. Mobile-first; @media (min-width: 760px) for desktop. */

html, body { margin: 0; padding: 0; }
body {
  background: var(--fives-bg);
  color: var(--fives-text);
  font-family: var(--fives-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hp-app { min-height: 100vh; }

/* Type helpers */
.hp-eyebrow {
  font-family: var(--fives-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fives-primary);
  margin: 0 0 12px;
}
.hp-eyebrow--accent { color: var(--fives-accent); }
.hp-h2 {
  font-family: var(--fives-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--fives-text);
  text-wrap: balance;
}
.hp-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fives-text);
  margin: 0 0 16px;
  max-width: 56ch;
  text-wrap: pretty;
}
.hp-body em { font-style: italic; color: var(--fives-text); }

/* Sections */
.hp-section {
  padding: 56px 24px;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.hp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  color: #ffffff;
  transition: background .25s ease, color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.hp-nav.is-scrolled {
  background: rgba(245, 239, 225, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fives-text);
  border-bottom: 1px solid var(--fives-line);
}
.hp-nav-brand {
  display: inline-flex; align-items: center; color: inherit; text-decoration: none;
}
.hp-nav-links {
  display: none;
  gap: 28px;
}
.hp-nav-links a {
  font-size: 14px; font-weight: 500;
  color: inherit; opacity: 0.82; text-decoration: none;
  transition: opacity .15s;
}
.hp-nav-links a:hover { opacity: 1; }
.hp-nav-end { display: none; align-items: center; gap: 16px; }
.hp-nav-schools {
  color: inherit; opacity: 0.78; text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.hp-nav-schools:hover { opacity: 1; }
.hp-nav-cta {
  background: #ffffff;
  color: var(--fives-primary);
  padding: 8px 14px;
  border-radius: var(--fives-r-sm);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.hp-nav.is-scrolled .hp-nav-cta {
  background: var(--fives-primary);
  color: #ffffff;
}
.hp-nav.is-scrolled .hp-nav-cta:hover { background: var(--fives-primary-700); }
.hp-nav-burger {
  background: transparent; border: none; color: inherit; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--fives-r-sm);
}
.hp-nav-burger:hover { background: rgba(255,255,255,0.12); }
.hp-nav.is-scrolled .hp-nav-burger:hover { background: rgba(0,0,0,0.06); }

@media (min-width: 760px) {
  .hp-nav { padding: 18px 40px; }
  .hp-nav-links { display: flex; }
  .hp-nav-end { display: flex; }
  .hp-nav-burger { display: none; }
}

/* ─── Shared video placeholder ───────────────────────────── */
.hp-vid-ph {
  width: 100%; height: 100%;
  background: var(--fives-bg-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  pointer-events: none;
}
.hp-vid-ph-play {
  color: var(--fives-text);
  opacity: 0.28;
  flex-shrink: 0;
}
.hp-vid-ph-label {
  font-family: var(--fives-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--fives-muted);
  opacity: 0.8;
  padding: 4px 10px;
  border: 1px dashed var(--fives-line);
  border-radius: 2px;
  max-width: 90%;
  text-align: center;
}
/* Standalone 16:9 video card placeholder (used outside the hero) */
.hp-vid-card {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--fives-bg-2);
  border-radius: var(--fives-r-md);
  overflow: hidden;
  border: 1px solid var(--fives-line);
}
.hp-vid-card .hp-vid-ph { border-radius: var(--fives-r-md); }

/* ─── Hero ────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 540px;
  max-height: 920px;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}
.hp-hero-media {
  position: absolute; inset: 0;
}
.hp-hero-media--still { display: none; }
@media (max-width: 759px) {
  .hp-hero-media--video { display: none; }
  .hp-hero-media--still { display: block; }
  .hp-hero {
    aspect-ratio: auto;
    min-height: 560px;
    max-height: none;
    height: auto;
    padding-bottom: 48px;
  }
}
.hp-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.14) 0%,
    rgba(0,0,0,0.06) 28%,
    rgba(0,0,0,0.68) 75%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 1;
}
.hp-placeholder-tag--dark {
  color: rgba(42,36,24,0.6);
  border-color: rgba(42,36,24,0.25);
}
.hp-placeholder-sub--dark { color: var(--fives-muted); opacity: 0.85; }

.hp-hero-body {
  position: relative; z-index: 2;
  padding: 120px 24px 48px;
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  box-sizing: border-box;
}
.hp-hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.78;
}
.hp-hero-h1 {
  font-family: var(--fives-display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 0;
  text-wrap: balance;
}
.hp-br-mobile { display: inline; }
@media (min-width: 760px) {
  .hp-br-mobile { display: none; }
  .hp-hero-body { padding: 120px 40px 72px; }
  .hp-hero-h1 { letter-spacing: -2.6px; }
}
.hp-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  margin: 22px 0 28px;
  max-width: 520px;
  color: rgba(255,255,255,0.82);
}
.hp-hero-ctas {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
}
@media (min-width: 540px) {
  .hp-hero-ctas { flex-direction: row; align-items: center; gap: 14px; }
}

.hp-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px;
  border-radius: var(--fives-r-sm);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  justify-content: center;
}
.hp-btn-primary {
  background: #ffffff;
  color: var(--fives-primary);
}
.hp-btn-primary:hover { background: var(--fives-bg-2); }
.hp-btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.42);
}
.hp-btn-ghost:hover { background: rgba(255,255,255,0.10); }

.hp-hero-unmute {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--fives-r-sm);
  color: #ffffff;
  font-family: var(--fives-body);
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
.hp-hero-unmute:hover { background: rgba(0,0,0,0.6); }
@media (max-width: 759px) {
  .hp-hero-unmute { display: none; }
}

/* ─── Welcome + diagram ──────────────────────────────────── */
.hp-welcome {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 72px;
  align-items: start;
}
@media (min-width: 760px) {
  .hp-welcome {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    padding-top: 112px;
    padding-bottom: 112px;
    align-items: center;
  }
}
.hp-welcome-text .hp-h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hp-welcome-text .hp-body { font-size: 17px; }

.hp-diagram {
  margin: 0;
  background: var(--fives-bg-2);
  border-radius: var(--fives-r-md);
  padding: 28px 24px 18px;
  border: 1px solid var(--fives-line);
}
.hp-diagram svg { display: block; }
.hp-diagram figcaption {
  margin-top: 14px;
  font-family: var(--fives-mono);
  font-size: 11px;
  color: var(--fives-muted);
  letter-spacing: 0.4px;
  display: flex; flex-direction: column; gap: 2px;
}
.hp-diagram figcaption em { color: var(--fives-muted); font-style: italic; opacity: 0.8; }

/* ─── Three pillars ──────────────────────────────────────── */
.hp-pillars { background: transparent; }
.hp-pillars-head { margin-bottom: 36px; max-width: 640px; }
.hp-pillars-head .hp-h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 0;
}
.hp-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .hp-pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.hp-pillar {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--fives-line);
  border-radius: var(--fives-r-md);
  padding: 28px 26px 26px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s, transform .15s;
  position: relative;
  min-height: 240px;
}
.hp-pillar:hover {
  background: #ffffff;
  border-color: var(--fives-primary);
  transform: translateY(-2px);
}
.hp-pillar-glyph {
  color: var(--fives-primary);
  margin-bottom: 22px;
}
.hp-pillar-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fives-muted);
  margin-bottom: 10px;
}
.hp-pillar-n {
  color: var(--fives-primary);
  font-family: var(--fives-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
}
.hp-pillar-title {
  font-family: var(--fives-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  color: var(--fives-text);
  line-height: 1.18;
}
.hp-pillar-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fives-muted);
  margin: 0 0 18px;
}
.hp-pillar-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--fives-primary);
}

/* ─── How to use ─────────────────────────────────────────── */
.hp-howto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  border-top: 1px solid var(--fives-line);
}
@media (min-width: 760px) {
  .hp-howto {
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
.hp-howto-lead .hp-h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
}
.hp-howto-list { margin: 0; padding: 0; display: flex; flex-direction: column; }
.hp-howto-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--fives-line);
}
.hp-howto-row:last-child { border-bottom: 1px solid var(--fives-line); }
.hp-howto-row dt {
  font-family: var(--fives-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.1px;
  color: var(--fives-text);
}
.hp-howto-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fives-muted);
}
@media (max-width: 759px) {
  .hp-howto-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

/* Generic image/content placeholder labels (used in history teaser etc.) */
.hp-placeholder-tag {
  font-family: var(--fives-mono);
  font-size: 11px; letter-spacing: 1.4px;
  padding: 4px 10px;
  border: 1px dashed rgba(255,255,255,0.32);
  border-radius: 2px;
  color: rgba(255,255,255,0.42);
}
.hp-placeholder-tag--dark {
  color: rgba(42,36,24,0.6);
  border-color: rgba(42,36,24,0.25);
}
.hp-placeholder-sub { font-family: var(--fives-mono); font-size: 10px; letter-spacing: 0.6px; opacity: 0.7; color: rgba(255,255,255,0.42); }
.hp-placeholder-sub--dark { color: var(--fives-muted); opacity: 0.85; }

/* ─── History teaser ─────────────────────────────────────── */
.hp-history {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: var(--fives-bg-2);
  max-width: none;
  padding-left: 24px; padding-right: 24px;
  padding-top: 72px; padding-bottom: 72px;
}
.hp-history > * { max-width: 1240px; }
@media (min-width: 760px) {
  .hp-history {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 112px 40px;
    align-items: center;
  }
  .hp-history > .hp-history-image,
  .hp-history > .hp-history-text { max-width: 580px; }
  .hp-history-image { justify-self: end; width: 100%; }
  .hp-history-text { justify-self: start; }
}
.hp-history-image {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(155,107,63,0.06) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #d8c9a8 0%, #b89a72 100%);
  border-radius: var(--fives-r-md);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--fives-mono);
}
.hp-history-text .hp-h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1.2px;
}
.hp-history-cta {
  font-size: 14px; font-weight: 600;
  color: var(--fives-primary);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
}
.hp-history-cta:hover { color: var(--fives-primary-700); text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────────── */
.hp-footer {
  background: var(--fives-bg);
  border-top: 1px solid var(--fives-line);
  padding: 64px 24px 24px;
}
.hp-footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .hp-footer { padding: 80px 40px 28px; }
  .hp-footer-inner { grid-template-columns: 1.3fr 3fr; gap: 56px; }
}
.hp-footer-brand p {
  font-size: 14px;
  color: var(--fives-muted);
  line-height: 1.55;
  margin-top: 16px;
  max-width: 28ch;
}
.hp-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}
@media (min-width: 760px) {
  .hp-footer-cols { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.hp-footer-h {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fives-text);
  margin-bottom: 14px;
}
.hp-footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--fives-muted);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .15s;
}
.hp-footer-cols a:hover { color: var(--fives-text); }
.hp-footer-base {
  max-width: 1240px; margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--fives-line);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  color: var(--fives-muted);
}
@media (min-width: 760px) {
  .hp-footer-base { flex-direction: row; justify-content: space-between; gap: 24px; }
}
