.home .site-header {
  position: fixed;
  top: var(--gap-small);
  width: 100%;
}

.home-page { background: var(--background-subtle); }

.home-hero {
  min-height: clamp(44rem, 50.36vw, 60.4rem);
  padding: 6.5rem 0 0;
}

.home-hero__grid {
  display: grid;
  min-height: clamp(38rem, 44.27vw, 53.1rem);
  grid-template-columns: minmax(0, 900fr) minmax(0, 690fr);
  gap: var(--gap-large);
  align-items: center;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.home-hero .section-heading {
  gap: var(--space-2);
  max-width: var(--side-content-max);
}

.home-hero .section-heading__title,
.home-hero__title {
  max-width: var(--side-content-max);
  margin: 0;
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-section);
}

.home-hero .section-heading__title strong,
.home-hero__title strong {
  font-weight: var(--font-weight-heading-strong);
}

.home-hero .section-heading__body,
.home-hero__lead {
  max-width: var(--side-content-max);
  margin: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.home-hero__tags {
  margin-top: 0;
}

.home-hero .tag--large {
  min-height: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-body);
}

.home-hero__portrait {
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--border-width-default) solid var(--text-inverse);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card);
}

.home-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero[data-home-opening].is-opening-ready .section-heading > *,
.home-hero[data-home-opening].is-opening-ready .home-hero__tags,
.home-hero[data-home-opening].is-opening-ready .home-hero__portrait {
  opacity: 0;
  transform: translateY(var(--space-3));
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
  transition-delay: calc(var(--home-opening-index, 0) * 100ms);
}

.home-hero[data-home-opening].is-opening-visible .section-heading > *,
.home-hero[data-home-opening].is-opening-visible .home-hero__tags,
.home-hero[data-home-opening].is-opening-visible .home-hero__portrait {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero[data-home-opening].is-opening-ready .section-heading > *,
  .home-hero[data-home-opening].is-opening-ready .home-hero__tags,
  .home-hero[data-home-opening].is-opening-ready .home-hero__portrait {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-page .site-section {
  padding-block: var(--section-padding);
}

.home-section-heading {
  max-width: var(--content-wide);
}

.home-section-heading .section-heading__title {
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-section);
}

.home-section-heading .section-heading__body {
  max-width: var(--side-content-max);
  margin: 0;
  font-size: var(--font-size-body);
}

.home-work .home-section-heading,
.home-work .wp-block-bytjda-header-group {
  margin-bottom: var(--gap-medium);
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-small);
}

.home-project-card {
  position: relative;
  display: flex;
  min-height: clamp(35rem, 40vw, 48rem);
  align-items: flex-end;
  overflow: hidden;
  border: var(--border-width-strong) solid color-mix(in srgb, var(--text-inverse) 60%, transparent);
  border-radius: var(--radius-media);
  color: var(--text-inverse);
  background: var(--text-subtle);
  text-decoration: none;
}

.home-project-card__image,
.home-project-card__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-project-card__image {
  object-fit: cover;
  transition: transform var(--duration-medium) var(--ease-out);
}

.home-project-card__scrim {
  background: linear-gradient(to top, color-mix(in srgb, var(--color-neutral-900) 72%, transparent), transparent 62%);
}

.home-project-card__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--card-padding);
}

.home-project-card h3 {
  margin-bottom: var(--gap-small);
  font-size: var(--font-size-body);
}

.home-project-card .tag,
.home-experience-card .tag,
.home-capabilities .tag {
  min-height: 0;
  padding: 0.45rem 1rem;
  font-size: var(--font-size-small);
}

.home-project-card:hover .home-project-card__image {
  transform: scale(1.025);
}

.home-experience__intro {
  display: grid;
  grid-template-columns: minmax(0, var(--content-wide)) minmax(25rem, 36.625rem);
  gap: var(--gap-large);
  align-items: center;
  margin-bottom: var(--gap-large);
}

.home-experience__media {
  position: relative;
  height: 35.5625rem;
}

.home-experience__media img {
  position: absolute;
  top: 50%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-media);
  transform: translateY(-50%);
}

.home-experience__media img:nth-child(1) {
  z-index: 3;
  left: -1.75rem;
  width: 62%;
}

.home-experience__media img:nth-child(2) {
  z-index: 2;
  left: 29%;
  width: 56%;
  filter: brightness(0.8) blur(1px);
}

.home-experience__media img:nth-child(3) {
  z-index: 1;
  right: 0;
  width: 50%;
  filter: brightness(0.6) blur(2px);
}

.home-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: var(--border-width-default) solid var(--border-default);
  border-radius: var(--radius-container);
}

.home-experience-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--card-padding);
  border-right: var(--border-width-default) solid var(--border-default);
}

.home-experience-card:last-child {
  border-right: 0;
}

.home-experience-card__company {
  margin: 0;
  font-size: var(--font-size-small);
  text-transform: uppercase;
}

.home-experience-card h3 {
  margin: 0;
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-heading-strong);
  line-height: var(--line-height-card);
}

.home-experience-card > p:not(.home-experience-card__company) {
  min-height: 4.2em;
  margin: 0;
  font-size: var(--font-size-body);
}

.home-roles .home-section-heading,
.home-roles .wp-block-bytjda-header-group {
  margin-bottom: var(--gap-large);
}

.home-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-small);
}

.home-role-card {
  min-height: 25.6875rem;
  padding: var(--card-padding);
  box-shadow: var(--elevation-sm);
}

.home-role-card .feature-card__title {
  margin-top: 2rem;
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-heading-strong);
  line-height: var(--line-height-card);
}

.home-role-card ul {
  padding: 0;
  margin: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  list-style: none;
}

.home-capabilities .home-section-heading,
.home-capabilities .wp-block-bytjda-header-group {
  margin-bottom: var(--gap-large);
}

.home-capability-groups {
  display: grid;
  gap: var(--gap-medium);
}

.home-capability-group h3 {
  margin-bottom: 1rem;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-label);
  text-transform: uppercase;
}

.home-design-footer {
  border-top: var(--border-width-default) solid var(--border-subtle);
}

.home-design-footer__card {
  display: grid;
  grid-template-columns: minmax(20rem, 2fr) repeat(4, minmax(8rem, 1fr));
  gap: var(--gap-medium);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--background-default);
  box-shadow: var(--shadow-card);
}

.home-design-footer__card section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
}

.home-design-footer__card h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-subtitle);
}

.home-design-footer__card p,
.home-design-footer__card a {
  margin: 0;
  font-size: var(--font-size-small);
}

.home-design-footer__meta { color: var(--text-subtle); }

/* The page content still contains the former footer composition. The theme
   now renders that component globally, so hide only the legacy copy. */
.home .home-content > .home-design-footer {
  display: none;
}

@media (max-width: 1200px) {
  .home-hero {
    min-height: auto;
    padding: 8.5rem 0 5rem;
  }

  .home-hero__grid {
    min-height: auto;
  }

  .home-experience__intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  }

  .home-project-card {
    min-height: 34rem;
  }

  .home-role-card .feature-card__title {
    font-size: var(--font-size-card-title);
  }
}

@media (max-width: 900px) {
  .home-hero__grid,
  .home-experience__intro {
    grid-template-columns: 1fr;
  }

  .home-hero--mobile-reverse .home-hero__grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .home-hero__portrait {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

  .home-project-grid,
  .home-role-grid {
    grid-template-columns: 1fr;
  }

  .home-project-card {
    min-height: min(125vw, 42rem);
  }

  .home-experience__media {
    width: min(100%, 38rem);
    margin-inline: auto;
  }

  .home-experience-grid {
    grid-template-columns: 1fr;
  }

  .home-design-footer__card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-design-footer__card section:first-child {
    grid-column: 1 / -1;
  }

  .home-experience-card {
    border-right: 0;
    border-bottom: var(--border-width-default) solid var(--border-default);
  }

  .home-experience-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .home-hero {
    padding-top: 7rem;
  }

  .home-hero .section-heading__title,
  .home-hero__title {
    font-size: var(--font-size-section-title);
    line-height: var(--line-height-section);
  }

  .home-hero__lead,
  .home-section-heading .section-heading__body,
  .home-experience-card > p:not(.home-experience-card__company),
  .home-role-card ul {
    font-size: var(--font-size-body);
  }

  .desktop-only {
    display: none;
  }

  .home-hero__tags {
    gap: var(--gap-small);
  }

  .home-experience__media {
    height: 24rem;
  }

  .home-experience-card,
  .home-role-card {
    padding: var(--card-padding);
  }

  .home-role-card {
    min-height: auto;
  }

  .home-role-card .feature-card__title {
    margin-top: 1rem;
    font-size: var(--font-size-card-title);
  }

  .home-design-footer__card {
    grid-template-columns: 1fr;
    padding: var(--space-4) var(--space-3);
  }

  .home-design-footer__card section:first-child { grid-column: auto; }
}
