/* =========================================================
   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: full-width portrait hugging the bottom, with the text dropped into
   the bottom third of the screen and sitting on top of the image. */
@media (max-width: 767.98px) {
  .page--home {
    min-height: 100svh;
  }

  .home-hero {
    min-height: 100svh;
    padding-inline: var(--space-2);
    align-items: flex-end;
    padding-bottom: var(--space-4);
  }

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

  .home-hero .hero__identity {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 38%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .home-hero__media {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .home-hero__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* ---- 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;
}

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

.contact__intro {
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--text-mute);
  max-width: 44ch;
}

.contact__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 40rem;
}

.contact__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.contact__label {
  color: var(--text-mute);
}

.contact__link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-h3);
  font-weight: var(--fw-subhead);
  letter-spacing: -0.01em;
  width: fit-content;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.contact__link:hover,
.contact__link:focus-visible {
  text-decoration-color: currentColor;
}

/* ---- 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);
}

/* On mobile, keep each sentence on its own line instead of wrapping mid-thought. */
@media (max-width: 767.98px) {
  .bio__lede-line {
    display: block;
  }
}

.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);
}
