/* Homepage Hero — isolated from case-study and About page treatments. */
body[data-page="home"] .home-hero-transition {
  --home-hero-scale: 1;
  --home-hero-brightness: 1;
  position: relative;
  isolation: isolate;
}

body[data-page="home"] .home-hero {
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #160f25;
}

body[data-page="home"] .home-hero__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #160f25;
}

body[data-page="home"] .home-hero__media,
body[data-page="home"] .home-hero__media img,
body[data-page="home"] .home-hero__media > canvas,
body[data-page="home"] .home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-page="home"] .home-hero__media {
  overflow: hidden;
  background: #302052;
  user-select: none;
  transform: scale(var(--home-hero-scale));
  transform-origin: 50% 50%;
  filter: brightness(var(--home-hero-brightness));
  will-change: transform, filter;
}

body[data-page="home"] .home-hero__media img {
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  transition: opacity .18s ease;
}

body[data-page="home"] .home-hero__media > canvas {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

body[data-page="home"] .home-hero__media.is-liquid-ready > img { opacity: 0; }
body[data-page="home"] .home-hero__media.is-liquid-ready > canvas { opacity: 1; }

body[data-page="home"] .home-hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 3, 9, .08) 0%, transparent 42%, rgba(7, 4, 10, .24) 100%),
    linear-gradient(90deg, rgba(9, 5, 16, .12) 0%, transparent 38%, rgba(9, 5, 16, .05) 100%);
  pointer-events: none;
}

body[data-page="home"] .home-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100%;
  grid-template-columns: 62% 38%;
  gap: 0;
  align-items: end;
  padding-top: 7.5rem;
  padding-bottom: clamp(2.4rem, 3.65vw, 6rem);
  text-shadow: 0 2px 30px rgba(11, 5, 18, .28);
}

body[data-page="home"] .home-hero__identity,
body[data-page="home"] .home-hero__statement {
  min-width: 0;
}

body[data-page="home"] .home-hero__name-line {
  display: grid;
  width: fit-content;
  grid-template-columns: max-content auto;
  gap: clamp(.85rem, 1.25vw, 2rem);
  align-items: start;
}

body[data-page="home"] .home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.4rem, 6.6vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .84;
}

body[data-page="home"] .home-hero__year {
  margin-top: .2em;
  color: rgba(255,255,255,.88);
  font-size: clamp(.78rem, .72vw, 1.1rem);
  letter-spacing: -.015em;
}

body[data-page="home"] .home-hero__role {
  margin: clamp(.75rem, 1.15vw, 1.75rem) 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(.95rem, 1.1vw, 1.7rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

body[data-page="home"] .home-hero__statement {
  max-width: 42rem;
  padding-left: clamp(2rem, 2.6vw, 4.2rem);
  padding-bottom: .12rem;
}

body[data-page="home"] .home-hero-positioning {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 1.55vw, 2.45rem);
  font-weight: 430;
  letter-spacing: -.035em;
  line-height: 1.07;
}

body[data-page="home"] .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem clamp(1.4rem, 2vw, 3rem);
  margin-top: clamp(1rem, 1.25vw, 1.8rem);
  color: rgba(255,255,255,.58);
  font-size: clamp(.78rem, .78vw, 1.16rem);
  letter-spacing: .015em;
  text-transform: none;
}

body[data-page="home"] .home-next-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 -2rem 5rem rgba(0,0,0,.24);
}

body[data-page="home"] .home-next-panel > .capabilities-section {
  background: var(--bg);
}

@media (max-width: 1120px) {
  body[data-page="home"] .home-hero__content {
    grid-template-columns: 57% 43%;
  }

  body[data-page="home"] .home-hero__statement { padding-left: 1rem; }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-hero {
    position: sticky;
    height: max(43rem, 100svh);
    min-height: 0;
  }

  body[data-page="home"] .home-hero__media {
    transform: none !important;
    filter: none !important;
  }

  body[data-page="home"] .home-hero__media > canvas { display: none; }
  body[data-page="home"] .home-hero__media.is-liquid-ready > img { opacity: 1; }

  body[data-page="home"] .home-hero__media img {
    object-position: 50% 50%;
  }

  body[data-page="home"] .home-hero__shade {
    background: linear-gradient(180deg, rgba(5,3,9,.08) 0%, rgba(5,3,9,.08) 46%, rgba(5,3,9,.52) 100%);
  }

  body[data-page="home"] .home-hero__content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 2.15rem;
    padding-top: 6rem;
    padding-bottom: 1.8rem;
  }

  body[data-page="home"] .home-hero h1 {
    font-size: clamp(4.4rem, 19vw, 6.7rem);
  }

  body[data-page="home"] .home-hero__year {
    margin-top: .18em;
    font-size: .76rem;
  }

  body[data-page="home"] .home-hero__role {
    margin-top: .7rem;
    font-size: .92rem;
  }

  body[data-page="home"] .home-hero__statement {
    max-width: 31rem;
    padding: 0;
  }

  body[data-page="home"] .home-hero-positioning {
    font-size: clamp(1.13rem, 5.4vw, 1.45rem);
  }

  body[data-page="home"] .home-hero-meta {
    display: grid;
    gap: .2rem;
    margin-top: .85rem;
    font-size: .76rem;
  }

  body[data-page="home"] .home-next-panel {
    min-height: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-hero {
    position: relative;
  }

  body[data-page="home"] .home-hero__media {
    transform: none !important;
    filter: none !important;
  }

  body[data-page="home"] .home-hero__media > canvas { display: none; }
  body[data-page="home"] .home-hero__media.is-liquid-ready > img { opacity: 1; }
  body[data-page="home"] .home-next-panel { box-shadow: none; }
  body[data-page="home"] .capability-panel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  body[data-page="home"] .capability-media__image {
    transform: none !important;
    transition: none !important;
  }
}

/* Homepage capabilities — Fuel-referenced sticky stack with one continuous media frame. */
body[data-page="home"] .capabilities-section {
  padding-top: 0;
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

body[data-page="home"] .capabilities-section .section-intro {
  display: flex;
  width: min(83.333vw, 50rem);
  min-height: clamp(27rem, 48svh, 42rem);
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto clamp(3.5rem, 8vh, 7rem);
  padding-top: clamp(7rem, 11vw, 11rem);
}

body[data-page="home"] .capabilities-section .section-intro .eyebrow {
  margin-bottom: 1.15rem;
}

body[data-page="home"] .capabilities-section .section-intro h2 {
  max-width: none;
  margin: 0;
}

/* Match the more restrained Music case-study heading scale across homepage sections. */
body[data-page="home"] :is(
  .capabilities-section .section-intro h2,
  .work-heading h2,
  .home-about-copy p,
  .footer-cta h2
) {
  font-size: clamp(2.5rem, 3.85vw, 4.35rem);
  line-height: .98;
}

body[data-page="home"] .work-copy h3 {
  font-size: clamp(2.2rem, 3.85vw, 4.35rem);
}

body[data-page="home"] .work-heading,
body[data-page="home"] .home-about-grid {
  width: min(83.333vw, 50rem);
  margin-inline: auto;
}

body[data-page="home"] .work-heading {
  display: block;
}

body[data-page="home"] .work-heading h2 {
  max-width: none;
  margin-top: 1.15rem;
}

body[data-page="home"] .work-heading > p {
  max-width: 44rem;
  margin: 1.6rem 0 0;
}

body[data-page="home"] .home-about-grid {
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

body[data-page="home"] .home-about-copy p {
  max-width: none;
}

body[data-page="home"] .work-row {
  --work-accent: #ff5365;
  grid-template-columns: minmax(26rem, 1.15fr) minmax(18rem, .72fr);
}

body[data-page="home"] .work-row:nth-child(2) { --work-accent: #4387f4; }
body[data-page="home"] .work-row:nth-child(3) { --work-accent: #7b5cff; }
body[data-page="home"] .work-row:nth-child(4) { --work-accent: #15c96b; }

body[data-page="home"] .capability-stack {
  display: grid;
  justify-items: center;
  gap: clamp(3.5rem, 5vw, 5.5rem);
  margin: 0;
  padding: 0 0 clamp(8rem, 15vw, 13rem);
}

body[data-page="home"] .capability-panel {
  --capability-stack-step: 0px;
  position: sticky;
  z-index: 1;
  top: calc(5rem + var(--capability-stack-step));
  display: grid;
  width: min(83.333vw, 50rem);
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "visual"
    "copy";
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #f3f2ed;
  background: var(--bg);
  box-shadow: none;
  opacity: var(--stack-opacity, 1);
  transform: scale(var(--stack-scale, 1));
  transform-origin: 50% 0;
  filter: brightness(var(--stack-brightness, 1));
  transition: opacity .18s linear, transform .18s linear, filter .18s linear;
}

body[data-page="home"] .capability-panel:nth-child(2) {
  --capability-stack-step: 40px;
  z-index: 2;
}

body[data-page="home"] .capability-panel:nth-child(3) {
  --capability-stack-step: 80px;
  z-index: 3;
}

body[data-page="home"] .capability-panel:nth-child(4) {
  position: relative;
  z-index: 4;
  top: auto;
}

body[data-page="home"] .capability-media {
  position: relative;
  grid-area: visual;
  width: 100%;
  aspect-ratio: 1300 / 720;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

body[data-page="home"] .capability-media__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

body[data-page="home"] .capability-panel:hover .capability-media__image,
body[data-page="home"] .capability-panel:focus-within .capability-media__image {
  transform: scale(1.012);
}

body[data-page="home"] .capability-panel__copy {
  position: static;
  z-index: auto;
  display: grid;
  grid-area: copy;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 1rem 0 0;
  color: #f3f2ed;
  background: transparent;
}

body[data-page="home"] .capability-panel__copy > span {
  position: static;
  grid-row: 1;
  grid-column: 2;
  display: block;
  margin: .06rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.25;
  opacity: 1;
}

body[data-page="home"] .capability-panel__copy > div {
  position: static;
  grid-row: 1;
  grid-column: 1;
  display: block;
  min-width: 0;
}

body[data-page="home"] .capability-panel h3 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-transform: none;
}

body[data-page="home"] .capability-panel p {
  max-width: none;
  margin: .42rem 0 0;
  color: rgba(255,255,255,.46);
  font-size: .7rem;
  line-height: 1.4;
  opacity: 1;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  body[data-page="home"] .capability-stack {
    gap: clamp(3.75rem, 7vw, 6rem);
  }

  body[data-page="home"] .capability-panel,
  body[data-page="home"] .capability-panel:nth-child(n) {
    position: relative;
    z-index: auto;
    top: auto;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  body[data-page="home"] .work-row {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .work-copy {
    grid-column: 1;
  }
}

@media (max-width: 960px) {
  body[data-page="home"] .capabilities-section .section-intro {
    width: 100%;
  }

  body[data-page="home"] .work-heading,
  body[data-page="home"] .home-about-grid { width: 100%; }

}

@media (max-width: 760px) {
  body[data-page="home"] .capabilities-section {
    padding-bottom: 4rem;
  }

  body[data-page="home"] .capabilities-section .section-intro {
    min-height: 22rem;
    margin-bottom: 2.5rem;
    padding-top: 6.5rem;
  }

  body[data-page="home"] .capability-stack {
    gap: 3.75rem;
    padding-bottom: 2rem;
  }

  body[data-page="home"] .capability-media {
    aspect-ratio: 1300 / 720;
  }

  body[data-page="home"] .capability-panel__copy {
    padding: .85rem 0 0;
  }

  body[data-page="home"] .capability-panel__copy > span {
    margin-top: .04rem;
    font-size: .68rem;
  }

  body[data-page="home"] .capability-panel h3 {
    font-size: .95rem;
  }

  body[data-page="home"] .capability-panel p {
    max-width: 32rem;
    margin-top: .35rem;
    font-size: .68rem;
    white-space: normal;
  }
}
