/* ==========================================================================
   Harrison Pedranti - Personal Site Refresh v2.0
   Design tokens: dark engineering spec-sheet aesthetic.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Animations
   -------------------------------------------------------------------------- */
@keyframes hp_blink {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

@keyframes hp_chip {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,77,0,.5); }
  50% { opacity: .35; box-shadow: 0 0 0 4px rgba(255,77,0,0); }
}

@keyframes hp_sway {
  0%,100% { transform: scale(1.35) rotate(0deg); }
  50% { transform: scale(1.37) rotate(-.5deg); }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: #0A0A0B;
  color: #EDEDED;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #FF4D00;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #FF4D00;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.hp-pad {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hp-accent {
  color: #FF4D00;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.hp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hp-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hp-header__wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #EDEDED;
  white-space: nowrap;
}

.hp-header__wordmark:hover {
  color: #EDEDED;
}

.hp-header__logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.hp-nav {
  display: flex;
  gap: clamp(12px,3vw,32px);
}

.hp-nav a {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A8A8E;
  white-space: nowrap;
  transition: color .2s ease;
}

.hp-nav a:hover {
  color: #FF4D00;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hp-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

/* Flag background */
.hp-hero__flag {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 72%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right,#000 0%,#000 58%,transparent 100%);
  mask-image: linear-gradient(to right,#000 0%,#000 58%,transparent 100%);
}

.hp-hero__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  transform: scale(1.35);
  transform-origin: 30% 50%;
  opacity: .5;
  filter: brightness(.52) contrast(1.08) saturate(.85);
  mix-blend-mode: screen;
  animation: hp_sway 9s ease-in-out infinite;
}

.hp-hero__flag-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,#0A0A0B 0%,transparent 22%,transparent 78%,#0A0A0B 100%);
}

/* Faint 64px grid */
.hp-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* Hero content */
.hp-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 64px;
  width: 100%;
}

.hp-hero__eyebrow {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FF4D00;
  margin: 0 0 28px;
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
}

.hp-hero__h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(3rem,11vw,8rem);
  line-height: .95;
  text-shadow: 0 2px 40px rgba(0,0,0,.75);
}

.hp-hero__h1 span {
  display: block;
}

.hp-hero__sub {
  font-size: clamp(17px,1.9vw,22px);
  line-height: 1.45;
  color: #EDEDED;
  font-weight: 400;
  max-width: 40ch;
  margin: 22px 0 0;
  text-shadow: 0 1px 14px rgba(0,0,0,.9);
}

.hp-hero__typewriter {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: clamp(12px,1.6vw,15px);
  letter-spacing: .04em;
  color: #FF4D00;
  margin-top: 28px;
  min-height: 1.4em;
}

.hp-cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  margin-left: 2px;
  background: #FF4D00;
  vertical-align: text-bottom;
  animation: hp_blink 1s step-end infinite;
}

/* Spec strip */
.hp-spec-strip {
  display: flex;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hp-spec-strip span {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b9b9bd;
  padding: 14px 20px 14px 0;
  margin-right: 20px;
  border-right: 1px solid rgba(255,255,255,.10);
}

.hp-spec-strip span:last-child {
  border-right: none;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   6. Currently (#now)
   -------------------------------------------------------------------------- */
.hp-now {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: #0C0C0E;
}

.hp-now__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hp-now__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hp-now__date {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: #8A8A8E;
}

.hp-now__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hp-now__logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  object-fit: cover;
  flex-shrink: 0;
}

.hp-now__org-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #EDEDED;
}

.hp-now__org-title {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A8A8E;
  margin-top: 3px;
}

.hp-now__statement {
  font-size: clamp(20px,2.6vw,30px);
  line-height: 1.4;
  color: #EDEDED;
  font-weight: 400;
  max-width: 30ch;
  margin: 0 0 36px;
}

/* Stat tiles: hairline grid */
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.hp-stat-tile {
  background: #0C0C0E;
  padding: 24px;
  transition: background .2s ease, box-shadow .2s ease;
}

/* Inset ring so the gap:1px hairline grid isn't broken */
.hp-stat-tile:hover {
  background: #151517;
  box-shadow: inset 0 0 0 1px rgba(255,77,0,.4);
}

.hp-stat-tile__figure {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 30px;
  font-weight: 700;
  color: #FF4D00;
}

.hp-stat-tile__caption {
  font-size: 14px;
  color: #c7c7cb;
  margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   7. Chips (status pills)
   -------------------------------------------------------------------------- */
.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FF4D00;
  border: 1px solid rgba(255,77,0,.4);
  padding: 5px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.hp-chip--sm {
  font-size: 10px;
  letter-spacing: .06em;
  padding: 4px 8px;
}

/* Live pulsing dot, only for live/orange chips */
.hp-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF4D00;
  flex-shrink: 0;
  animation: hp_chip 1.9s ease-in-out infinite;
}

/* Muted chip for school cards: no orange, no pulse */
.hp-chip--muted {
  color: #8A8A8E;
  border: 1px solid rgba(255,255,255,.14);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 4px 8px;
}

.hp-chip--muted .hp-chip__dot {
  animation: none;
  background: #8A8A8E;
}

/* --------------------------------------------------------------------------
   8. Section header pattern (reused)
   -------------------------------------------------------------------------- */
.hp-section {
  position: relative;
  padding: 96px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hp-section--projects {
  padding: 64px 0;
}

.hp-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hp-section-head--spaced {
  margin-top: 64px;
}

.hp-section-head__label {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #EDEDED;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.hp-section-head__rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.10);
}

/* --------------------------------------------------------------------------
   9. Work blocks
   -------------------------------------------------------------------------- */
.hp-work-block {
  background: #111113;
  display: grid;
  border: 1px solid rgba(255,255,255,.10);
  margin-top: 1px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-work-block:hover {
  border-color: rgba(255,77,0,.35);
  box-shadow: 0 0 0 1px rgba(255,77,0,.25);
}

.hp-work-block:first-of-type {
  margin-top: 0;
}

/* Text left, image right */
.hp-split--text-left {
  grid-template-columns: 1fr 45%;
}

/* Image left, text right */
.hp-split--media-left {
  grid-template-columns: 45% 1fr;
}

.hp-work-block__text {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.hp-work-block__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #111113;
}

/* Border between text and media, left or right depending on layout */
.hp-split--text-left .hp-work-block__media {
  border-left: 1px solid rgba(255,255,255,.10);
}

.hp-split--media-left .hp-work-block__media {
  border-right: 1px solid rgba(255,255,255,.10);
}

.hp-work-block__media img {
  width: 100%;
  height: auto;
}

/* Card header row */
.hp-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-school-card .hp-cardhead {
  margin-bottom: 16px;
}

.hp-label {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #8A8A8E;
}

.hp-work-block__h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.hp-work-block__desc {
  font-size: 15px;
  color: #8A8A8E;
  margin: 0 0 4px;
}

/* Scope section */
.hp-scope {
  margin: 22px 0 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.hp-scope__label {
  display: block;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8A8E;
  margin-bottom: 14px;
}

.hp-scope__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.hp-scope__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.45;
  color: #EDEDED;
}

.hp-bullet {
  position: absolute;
  left: 0;
  font-family: 'SF Mono',monospace;
  color: #FF4D00;
}

.hp-work-block__footer {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: auto 0 0;
  color: #c7c7cb;
}

/* --------------------------------------------------------------------------
   10. Task-transfer panel (Block C)
   -------------------------------------------------------------------------- */
.hp-transfer-panel {
  margin-top: 1px;
  border: 1px solid rgba(255,255,255,.10);
  background: #111113;
  padding: 28px;
}

.hp-transfer-panel__label {
  display: block;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8A8E;
  margin-bottom: 18px;
}

/* When the label sits in a cardhead row next to the EXECUTED chip,
   the row owns the spacing */
.hp-cardhead .hp-transfer-panel__label {
  margin-bottom: 0;
}

.hp-transfer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.hp-clip {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: #0A0A0B;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-clip:hover,
.hp-clip--playing {
  border-color: #FF4D00;
  box-shadow: 0 0 0 1px #FF4D00, 0 0 24px rgba(255,77,0,.28);
}

.hp-clip--human {
  height: 440px;
}

.hp-clip--robot {
  height: 600px;
}

.hp-clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Human clip is scaled up to crop onto the mortar tube */
.hp-clip--human video {
  object-position: center 90%;
  transform: scale(2.35);
}

.hp-clip--robot video {
  object-position: center 52%;
}

/* Train / Execute overlay, fades in once the clip ends */
.hp-clip__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,11,.55);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.hp-clip--ended .hp-clip__overlay {
  opacity: 1;
}

.hp-clip__overlay span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(28px,4vw,52px);
  color: #FFF;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

.hp-clip__caption {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c7c7cb;
  margin: 12px 0 0;
}

.hp-clip__lead {
  font-size: 14px;
  color: #8A8A8E;
  line-height: 1.5;
  margin: 10px 0 16px;
}

.hp-clip__lead--tight {
  margin-bottom: 0;
}

.hp-clip__sublabel {
  display: block;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8A8E;
  margin-bottom: 14px;
}

.hp-clip__sublabel--spaced {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   11. Projects: Building Now (People card)
   -------------------------------------------------------------------------- */
.hp-people-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 4px;
  background: #111113;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hp-people-card:hover {
  border-color: rgba(255,77,0,.35);
  box-shadow: 0 0 0 1px rgba(255,77,0,.25);
  transform: translateY(-3px);
}

.hp-people-card__icon {
  flex: 0 0 88px;
}

.hp-people-card__icon img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
}

.hp-people-card__body {
  flex: 1;
  min-width: 0;
}

.hp-people-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.hp-people-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #EDEDED;
}

.hp-people-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: #8A8A8E;
  margin: 0 0 12px;
  max-width: 62ch;
}

.hp-people-card__meta {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: #8A8A8E;
}

.hp-people-card__cta {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FF4D00;
  border: 1px solid rgba(255,77,0,.4);
  border-radius: 2px;
  padding: 12px 20px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hp-people-card__cta:hover {
  color: #FF4D00;
  border-color: #FF4D00;
  box-shadow: 0 0 0 1px rgba(255,77,0,.25), 0 0 16px rgba(255,77,0,.15);
  background: rgba(255,77,0,.06);
}

/* --------------------------------------------------------------------------
   12. Projects: From School
   -------------------------------------------------------------------------- */
.hp-school-intro {
  font-size: 14px;
  color: #8A8A8E;
  margin: 0 0 24px;
  max-width: 60ch;
}

/* Hairline grid: 2-column with 1px gaps via gap + background trick */
.hp-school-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.hp-school-card {
  background: #111113;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  transition: box-shadow .2s ease;
}

/* Non-inset shadow + z-index bump: an inset ring would be painted over
   by the card's opaque image header, and the ring must sit above the
   neighboring hairlines of the gap:1px grid on all four sides */
.hp-school-card:hover {
  box-shadow: 0 0 0 1px rgba(255,77,0,.25);
  z-index: 2;
}

.hp-school-card__img-wrap {
  height: 200px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: #111113;
  line-height: 0;
  overflow: hidden;
}

.hp-school-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Radial gradient background for the FSAE bushing card */
.hp-school-card__img-wrap--radial {
  background: radial-gradient(circle at 40% 35%,#1b1b1e 0%,#0d0d0f 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: initial;
}

.hp-school-card__img-wrap--radial img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hp-school-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hp-school-card__h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}

.hp-school-card__desc {
  font-size: 14px;
  color: #8A8A8E;
  margin: 0 0 16px;
  flex-grow: 1;
}

.hp-school-card__footer {
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 0;
  color: #c7c7cb;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.hp-contact-section {
  position: relative;
  padding: 96px 0;
}

.hp-contact-heading {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(2rem,6vw,3.5rem);
  margin: 0 0 48px;
}

.hp-contact-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.hp-contact-row--last {
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* Black-and-orange service logo tile, same treatment as the org logo */
.hp-contact-icon {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hp-contact-icon img {
  width: 40px;
  height: 40px;
  padding: 9px;
  background: #111113;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
}

.hp-contact-link {
  font-size: clamp(18px,3vw,28px);
  font-weight: 700;
  word-break: break-word;
  transition: color .2s ease;
}

.hp-contact-link:hover {
  color: #FF4D00;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.hp-footer {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 32px 0;
}

.hp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'SF Mono','Roboto Mono',ui-monospace,Menlo,monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8A8A8E;
}

.hp-footer__version {
  opacity: .7;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

/* Collapse two-column work blocks and school grid at ~860px */
@media (max-width: 860px) {
  .hp-split--text-left,
  .hp-split--media-left {
    grid-template-columns: 1fr;
  }

  /* When stacked, remove side border, add top border instead */
  .hp-split--text-left .hp-work-block__media,
  .hp-split--media-left .hp-work-block__media {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  /* Reorder: text always comes first on mobile */
  .hp-split--media-left {
    grid-template-areas: "text" "media";
  }

  .hp-split--media-left .hp-work-block__media {
    grid-area: media;
  }

  .hp-split--media-left .hp-work-block__text {
    grid-area: text;
  }

  .hp-school-grid {
    grid-template-columns: 1fr;
  }

  .hp-transfer-grid {
    grid-template-columns: 1fr;
  }

  /* Fixed aspect (not fixed height) so the crop math holds at any width */
  .hp-clip--human,
  .hp-clip--robot {
    height: auto;
    aspect-ratio: 20 / 21;
    max-width: 430px;
    margin: 0 auto;
  }

  /* The human clip is pillarboxed portrait footage inside a 16:9 file;
     zoom anchored at the bottom-left of the action so the tube stays
     in frame and the black side bars stay out of it */
  /* Pillarbox bars sit at 34.17% / 65.78% of the frame; at 1.75x the
     centered window spans 34.7%–65.3%, clear of both bars */
  .hp-clip--human video {
    object-position: center;
    transform: scale(1.75);
    transform-origin: 50% 90%;
  }

  .hp-clip--robot video {
    object-position: center 40%;
  }

  .hp-people-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hp-people-card__cta {
    align-self: stretch;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
  }

  .hp-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hp-hero {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 56px;
  }

  .hp-hero__flag {
    width: 100%;
    opacity: .32;
  }

  .hp-cardhead {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Narrow mobile */
@media (max-width: 600px) {
  .hp-pad {
    padding: 0 20px;
  }

  .hp-nav {
    gap: 18px;
  }

  .hp-nav a {
    font-size: 12px;
  }

  .hp-header__name {
    display: none;
  }

  .hp-spec-strip {
    flex-direction: column;
  }

  .hp-spec-strip span {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-right: 0;
    padding: 12px 0;
  }

  .hp-spec-strip span:last-child {
    border-bottom: none;
  }

  /* Keep the logo tile inline with the link; stacking left the 96px
     icon column floating off-center */
  .hp-contact-row {
    gap: 16px;
  }

  .hp-contact-icon {
    width: auto;
  }

  .hp-contact-link {
    font-size: 16px;
  }

  .hp-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hp-hero__flag img {
    animation: none;
  }
  .hp-cursor {
    animation: none;
    opacity: 1;
  }
  .hp-chip__dot {
    animation: none;
  }
  .hp-people-card:hover {
    transform: none;
  }
}
