/* =========================================================
   page-home.css — homepage + bio intro
   ========================================================= */

.hero {
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
}

.hero__eyebrow {
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__identity {
  margin-top: var(--space-3);
  font-size: var(--fs-h3);
  font-weight: var(--fw-body);
  color: var(--text-mute);
  max-width: 34ch;
}

.hero__rotate {
  color: var(--text);
  font-weight: var(--fw-subhead);
}

/* =========================================================
   Homepage split hero: text left, fixed full-screen portrait right
   ========================================================= */
.page--home {
  min-height: 100vh;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--bp-xl);
  margin-inline: auto;
  padding-top: var(--header-h);
  padding-inline: var(--gutter);
}

.home-hero__text {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 48rem);
}

.home-hero .hero__identity {
  max-width: 32ch;
}

/* Keep the name on a single line. */
.page--home .hero__title {
  white-space: nowrap;
}

/* Fixed portrait pinned to the bottom-right so its hard bottom edge hugs the
   viewport bottom while the soft top blends into the page. It sits behind the
   text (lower z-index) for the overlap. */
.home-hero__media {
  position: fixed;
  /* Align the image's right edge to the centered content container instead of
     the viewport edge, so on wide screens it stays near the title. */
  right: max(0px, calc((100vw - var(--bp-xl)) / 2));
  bottom: 0;
  z-index: 0;
  line-height: 0;
  pointer-events: none;
}

.home-hero__img {
  display: block;
  width: auto;
  height: auto;
  max-height: 94vh;
  max-width: 54vw;
  object-fit: contain;
  object-position: bottom right;
}

/* Mobile: the portrait doesn't work well at small sizes, so hide it and let
   the text stand on its own. */
@media (max-width: 767.98px) {
  .home-hero {
    padding-inline: var(--space-2);
  }

  .home-hero__text {
    width: 100%;
    max-width: 30ch;
  }

  .home-hero__media {
    display: none;
  }
}

/* ---- Section teasers ---- */
.teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .teasers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.teaser {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 16rem;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: background var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}

.teaser:hover,
.teaser:focus-visible {
  transform: translateY(-4px);
}

.teaser--software:hover {
  background: color-mix(in srgb, var(--bg-alt) 88%, var(--tint-software));
}

.teaser--film:hover {
  background: color-mix(in srgb, var(--bg-alt) 88%, var(--tint-film));
}

.teaser__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-title);
  line-height: 1;
}

.teaser__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.teaser__arrow {
  font-size: 1.5rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.teaser:hover .teaser__arrow,
.teaser:focus-visible .teaser__arrow {
  transform: translateX(4px);
}

/* ---- Grid page heads ---- */
.page-head {
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: var(--space-4);
}

.page-head__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-title);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-head__sub {
  margin-top: var(--space-2);
  color: var(--text-mute);
  max-width: 48ch;
}

/* ---- Bio ---- */
.bio {
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-4);
}

.bio__lede {
  font-size: var(--fs-h2);
  font-weight: var(--fw-body);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-bottom: var(--space-5);
}

.bio__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .bio__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bio__col h2 {
  margin-bottom: var(--space-2);
}

.bio__col p + p {
  margin-top: var(--space-2);
}

.bio__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--fs-nav);
  font-weight: var(--fw-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.bio__link:hover,
.bio__link:focus-visible {
  border-bottom-color: var(--text);
}

.bio__link-arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.bio__link:hover .bio__link-arrow,
.bio__link:focus-visible .bio__link-arrow {
  transform: translateX(4px);
}
