/* =============================================================================
   home.css — styles unique to the homepage (hero, about band, word-helix,
   "choose a path" cards). Everything else (nav, footer, buttons, type scale,
   colors, .reveal animations) comes from site.css. Design tokens (--bg-dark,
   --fg-accent, etc.) are defined in site.css :root.
   ============================================================================= */

/* ---------- HERO ----------------------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-dark);            /* fallback / behind the canvas */
  padding: 70px var(--page-padding-x) 1.8rem; /* clear the fixed nav; bottom room for the trained strip */
}

/* Animated particle field (created by home.js). Sits behind the text; screen
   blend + low opacity keep it a faint cinematic glow over the navy hero. */
.home-hero #heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  opacity: 0.38; mix-blend-mode: screen;
}

.home-hero-inner {
  position: relative; z-index: 2;
  max-width: 760px; width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;                /* fill the space between the nav and the trained strip */
  display: flex; flex-direction: column; justify-content: center; /* center hero content vertically */
}

.home-hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: var(--heading-xl);          /* clamps to 5.5rem / 88px on desktop */
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg-light);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 24px rgba(12, 25, 41, .6), 0 1px 5px rgba(12, 25, 41, .45);
}

.home-hero .hero-lede {
  font-family: "Libre Franklin", -apple-system, sans-serif;
  font-size: var(--body-lg);
  line-height: 1.55;
  color: var(--fg-light);
  opacity: 0.82;
  max-width: 480px;
  margin: 0;
  text-shadow: 0 1px 16px rgba(12, 25, 41, .5);
}

.home-hero .hero-cta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}
.hero-textlink {
  font-size: var(--nav); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  transition: color 0.2s ease;
}
.hero-textlink:hover { color: var(--fg-light); text-decoration: none; }

/* "Trained at" strip — sits in normal flow at the bottom of the hero (never overlaps content) */
.hero-trained {
  position: relative; z-index: 2;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 238, .14);
  padding-top: 1rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-trained .label {
  font-size: .7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; opacity: .45; color: var(--fg-light);
}
.hero-trained .text { font-size: .875rem; opacity: .45; color: var(--fg-light); }

@media (max-width: 768px) {
  .home-hero h1 { line-height: 1.04; overflow-wrap: break-word; }
}

/* ---------- ABOUT (cream band) -------------------------------------------- */
.home-about {
  background: var(--bg-light);
  color: var(--fg-dark);
  padding: var(--section-padding-y) var(--page-padding-x);
}
.home-about-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.home-about .eyebrow { margin: 0 0 1rem; }
.home-about h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: var(--heading-md);
  line-height: 1.1;
  color: var(--fg-dark);
  margin: 0 0 1.5rem;
}
.home-about p {
  font-family: "Libre Franklin", -apple-system, sans-serif;
  font-size: 1rem; line-height: 1.6;
  color: var(--fg-dark);
  margin: 0 0 1.25rem;
}
.home-about .about-readmore {
  display: inline-block; margin-top: 0.5rem;
  font-size: var(--nav); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-accent);
}

/* Inline headshot floated into the text column */
.about-headshot {
  float: left;
  width: 150px;
  margin: 0.35rem 1.7rem 0.9rem 0;
}
.about-headshot img {
  width: 100%; aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; object-position: center top;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(12, 25, 41, .16);
  display: block;
}
.about-headshot .cap { text-align: center; margin-top: 0.55rem; line-height: 1.3; }
.about-headshot .cap .n { font-weight: 600; color: var(--fg-dark); font-size: 0.8rem; }
.about-headshot .cap .s {
  display: block; color: var(--muted-on-light); font-size: 0.68rem;
  letter-spacing: 0.04em; margin-top: 0.15rem;
}

/* 3D rotating word "helix" (built by home.js). EXACT original Kimi geometry:
   container 20vw x 60vh clipped, perspective 800px, radius 4.65rem, step 3.5rem. */
.about-helix-wrap {
  position: relative; justify-self: center; align-self: center;
  width: 20vw; max-width: 340px; height: 60vh; max-height: 480px;
  perspective: 800px; overflow: hidden; pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.about-helix { position: absolute; inset: 0; transform-style: preserve-3d;
  animation: about-helix-spin 34s linear infinite; }
.about-helix .hr {
  position: absolute; top: 50%; left: 50%; width: 120px; height: 20px;
  border-radius: 999px; will-change: transform;
}
.about-helix .hw {
  position: absolute; top: 50%; left: 50%; width: 100%; text-align: center;
  font: 400 2.4rem "DM Serif Display", Georgia, serif;
  backface-visibility: hidden; will-change: transform;
}
@keyframes about-helix-spin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to   { transform: rotateX(8deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .about-helix { animation: none; transform: rotateX(8deg) rotateY(24deg); }
}

@media (max-width: 880px) {
  .home-about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-helix-wrap { display: none; }     /* hide helix on small screens */
  .about-headshot { width: 188px; margin: 0 auto 1.25rem; float: none; }
}

/* ---------- CHOOSE A PATH (dark cards) ------------------------------------ */
.choose-path {
  background: var(--bg-dark); color: var(--fg-light);
  padding: var(--section-padding-y) var(--page-padding-x);
}
.choose-path-inner { max-width: 1120px; margin: 0 auto; }
.choose-path .eyebrow { margin: 0 0 1rem; }
.choose-path-intro {
  font-family: "Libre Franklin", -apple-system, sans-serif;
  font-size: 1.05rem; line-height: 1.6;
  color: rgba(247, 244, 238, .65);
  max-width: 560px; margin: 0 0 3rem;
}
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.path-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: rgba(247, 244, 238, .02);
  border: 1px solid rgba(247, 244, 238, .14); border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 119, 90, .55);
  background: rgba(247, 244, 238, .04);
  text-decoration: none;
}
.path-icon { color: var(--fg-accent); margin: 0 0 1.1rem; }
.path-icon svg { width: 28px; height: 28px; display: block; }
.path-card h3 {
  font: 400 1.5rem/1.2 "DM Serif Display", Georgia, serif;
  color: var(--fg-light); margin: 0 0 .75rem;
}
.path-card p {
  font: 400 .95rem/1.6 "Libre Franklin", -apple-system, sans-serif;
  color: rgba(247, 244, 238, .68); margin: 0 0 1.5rem; flex: 1 1 auto;
}
.path-cta {
  font: 600 .85rem/1 "Libre Franklin", -apple-system, sans-serif;
  text-transform: uppercase; letter-spacing: .06em; color: var(--fg-accent);
}
@media (max-width: 860px) { .paths-grid { grid-template-columns: 1fr; } }
