/*
 * Hero — spec-sheet vital panel.
 * Two-column: text/lede on the left, portrait on the right (PRESERVES original
 * portrait aspect ratio — no forced landscape crop). Vital stats sit as a thin
 * data strip ABOVE the headline, not as a tall left rail.
 * Hero background is transparent so the 3D robot canvas shows through.
 */

.hero-section {
  background: transparent; /* Robot canvas shows through here only */
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
/* Engineering-drawing corner brackets — hairline, top-left + bottom-right only. */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  pointer-events: none;
  z-index: 0;
}
.hero-section::before { top: var(--s-5); left: var(--s-5); border-right: 0; border-bottom: 0; }
.hero-section::after  { bottom: var(--s-5); right: var(--s-5); border-left: 0; border-top: 0; }

.hero-split-content {
  display: grid;
  /* Left = text. Right = portrait. align-items: stretch so both columns share height. */
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: var(--s-7);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* VITAL STATS — horizontal data strip above the name. Mono key/value chips. */
.hero-rail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--s-2) 0;
  margin-bottom: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-2);
  background: var(--paper); /* Opaque so the strip reads cleanly over the robot */
}
.vital-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
}
.vital-stats > div {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-4);
  border-right: 1px dashed var(--rule);
}
.vital-stats > div:last-child { border-right: 0; }
.vital-stats dt { color: var(--ink-2); font-weight: 500; }
.vital-stats dd { color: var(--ink); font-weight: 500; }

/* LEFT COLUMN — identity + lede + buttons + about prose.
   display:flex with column direction so the box fills the grid cell height
   set by the portrait on the right (align-items:stretch on the parent grid). */
.hero-split-text {
  min-width: 0;
  background: var(--paper);
  padding: var(--s-5);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-split-text .eyebrow { margin-bottom: var(--s-4); }

.hero-split-text h1 {
  font-family: var(--font-mono);
  /* Kept large but not catastrophic: scales from 48 to 88 by viewport. */
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: var(--s-5);
  /* Allow long names to wrap cleanly without overflowing the column. */
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Single red period — the system's one stage cue. The h1 already ends with "Ponce." in the markup,
   but if you change it, this gives you a fallback flag. We DO NOT auto-append here to avoid double dots. */

.hero-split-text .lede {
  margin-bottom: var(--s-6);
  max-width: 42ch;
}

.hero-split-text p {
  font-family: var(--font-serif);
  font-size: var(--t-16);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--s-4);
  max-width: var(--measure);
}

.hero-buttons {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  align-items: center;
  flex-wrap: wrap;
}

/* RIGHT COLUMN — portrait. Original aspect ratio preserved (no object-fit: cover).
   align-self stretch + flex-column makes the wrapper match the text box height;
   the image inside keeps its aspect ratio and sits centered in the wrapper. */
.hero-split-image,
.hero-figure {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: var(--s-3);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.hero-split-image img,
.hero-figure img {
  width: 100%;
  height: 100%;        /* fill wrapper height set by left column */
  max-height: none;
  display: block;
  object-fit: contain;  /* preserve original aspect ratio — no zoom/crop */
  /* Full color, no grayscale filter. */
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-2);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
}

/* Social row */
.about-social {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.about-social .social-icon {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease-step), color var(--dur-1) var(--ease-step);
}
.about-social .social-icon:hover { color: var(--mark); border-bottom-color: var(--mark); }
.about-social .social-icon i { font-size: var(--t-14); }

a.scroll-down { display: none !important; }

/* ── TABLET (≤900px) ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-section { padding: var(--s-6) 0; }
  .hero-section::before, .hero-section::after { width: 20px; height: 20px; }
  .hero-rail { margin-bottom: var(--s-5); }
  .vital-stats > div { padding: var(--s-1) var(--s-3); }

  /* Single column: text then portrait */
  .hero-split-content { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero-split-image, .hero-figure { align-self: auto; max-height: 360px; overflow: hidden; }
  .hero-split-image img, .hero-figure img {
    width: 100%; height: 360px; object-fit: cover; object-position: center top;
  }
}

/* ── MOBILE (≤600px) — flex reorder: stats → portrait → text ─────── */
@media (max-width: 600px) {
  .hero-section { padding: var(--s-5) 0 var(--s-6); }
  /* Hide engineering corner brackets on mobile — they overlap content */
  .hero-section::before, .hero-section::after { display: none; }

  /* Use flex with explicit order to reorder DOM: stats, portrait, then text */
  .hero-split-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
  }
  .hero-rail { order: 1; margin-bottom: 0; }
  .hero-figure { order: 2; }
  .hero-split-text { order: 3; }

  /* Vital stats: single scrollable row, no overflow */
  .vital-stats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vital-stats > div {
    flex-shrink: 0;
    padding: var(--s-2) var(--s-3);
    border-right: 1px solid var(--rule);  /* solid, not dashed — looks cleaner at small sizes */
    gap: var(--s-2);
  }
  .vital-stats dt { font-size: 10px; }
  .vital-stats dd { font-size: 11px; text-decoration: none; }

  /* PORTRAIT — full-width hero strip, fixed height, cover crop */
  .hero-figure {
    width: 100%;
    height: 260px;
    border: 1px solid var(--ink);
    padding: 0;
    margin: 0;
    overflow: hidden;
    align-self: auto;
    max-height: none;
    background: var(--paper);
  }
  .hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    max-height: none;
  }
  .hero-figure figcaption {
    display: none;  /* caption clutters the small mobile hero */
  }

  /* TEXT BLOCK — clean padding, no border (the figure already frames things) */
  .hero-split-text {
    border: 1px solid var(--ink);
    background: var(--paper);
    padding: var(--s-4) var(--s-4) var(--s-3);
    height: auto;
  }
  .hero-split-text .eyebrow { margin-bottom: var(--s-2); }
  .hero-split-text h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    margin-bottom: var(--s-3);
    line-height: 0.95;
  }
  .hero-split-text .lede {
    margin-bottom: var(--s-4);
    font-size: var(--t-14);
    max-width: none;
  }

  /* Buttons full-width stacked — easier tap target on phone */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
  }
  .hero-buttons .btn { text-align: center; }

  /* Hide bio paragraphs on mobile — too much for hero */
  .hero-split-text > p:not(.lede):not(.eyebrow) { display: none; }

  /* Social — compact row, no border separator (lede already groups things) */
  .about-social {
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    gap: var(--s-4);
    flex-wrap: wrap;
  }
  .about-social .social-icon { font-size: var(--t-11); }
}
