/* Let the project poster carry the hero, with both text blocks on one baseline. */
.poster-carousel {
  --hero-gutter: max(4vw, calc((100% - 1440px) / 2 + 4vw));
  --hero-baseline: 145px;
  min-height: 620px;
}

.poster-shade {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .68) 18%, rgba(0, 0, 0, .24) 42%, transparent 68%),
    linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 25%);
}

.hero-kicker {
  left: var(--hero-gutter);
  right: var(--hero-gutter);
  top: 110px;
  color: #d0d0ce;
}

.hero-identity {
  left: var(--hero-gutter);
  bottom: var(--hero-baseline);
  max-width: 45%;
}

.hero-overline {
  margin: 0 0 19px;
  font-size: 10px;
  letter-spacing: .25em;
  color: #c7c7c3;
}

.hero-identity h1 {
  font-family: var(--font);
  font-size: clamp(80px, 7.5vw, 112px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero-identity h1 span {
  margin: 15px 0 22px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .28em;
  color: #cececa;
}

.hero-role {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: .08em;
  color: #e5e5e1;
}

.hero-discover {
  gap: 29px;
  padding: 0 0 7px;
  font-size: 11px;
  border-bottom-color: #ffffff75;
}

.hero-project {
  left: auto;
  right: var(--hero-gutter);
  bottom: var(--hero-baseline);
  display: block;
  width: clamp(360px, 28vw, 420px);
  min-width: 0;
  max-width: 43%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  text-shadow: 0 2px 18px #0008;
}

.hero-project .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #c2c2bd;
  font-family: var(--font);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .16em;
  white-space: nowrap;
}

.hero-project .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ffffff50;
}

.hero-project h2 {
  margin: 22px 0 12px;
  font-family: var(--font);
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.hero-project p {
  margin: 0 0 26px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .025em;
  color: #d0d0cd;
}

.carousel-detail {
  display: inline-flex;
  align-items: center;
  gap: 31px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid #ffffff75;
  border-radius: 0;
  color: #f0f0ed;
  background: transparent;
  font-size: 11px;
  line-height: 1.8;
  text-shadow: inherit;
  transition: border-color .2s, color .2s;
}

.carousel-detail span { font-size: 16px; line-height: 1; }
.carousel-detail:hover { background: transparent; color: #fff; border-bottom-color: #fff; }

.carousel-bottom {
  left: var(--hero-gutter);
  right: var(--hero-gutter);
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  border: 0;
}

.slide-position { display: none; }
.carousel-dots {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
}

.carousel-dot {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 14px 0 10px;
  border: 0;
  border-top: 1px solid #ffffff40;
  background: transparent;
  text-align: left;
  color: #b4b4b0;
  transition: color .2s, border-color .2s;
}

.carousel-dot::after { display: none; }
.carousel-dot span { flex-shrink: 0; font: 9px monospace; color: inherit; }
.carousel-dot strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
.carousel-dot:hover, .carousel-dot[aria-current="true"] { color: #fff; border-top-color: #fff; }
.carousel-dot[aria-current="true"] span { color: inherit; }

.carousel-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}
.carousel-controls button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff40;
  background: transparent;
  font-size: 17px;
}
.carousel-controls button:hover { background: #ffffff14; border-color: #ffffff80; }
.carousel-controls .carousel-play {
  width: auto;
  gap: 8px;
  padding: 0 13px 0 0;
  border: 0;
  font-size: 10px;
}
.carousel-controls .play-label { display: inline; }
.carousel-controls .carousel-fullscreen { margin-left: 3px; border: 0; }

@media (max-width: 1100px) {
  .hero-project { width: 360px; max-width: 44%; }
  .hero-project h2 { font-size: 38px; }
  .hero-identity { max-width: 42%; }
  .hero-identity h1 { font-size: 80px; }
  .carousel-bottom { gap: 22px; }
  .carousel-dots { gap: 14px; }
  .carousel-dot { gap: 8px; }
  .carousel-dot strong { font-size: 10px; }
  .carousel-controls .carousel-play { width: 38px; padding: 0; }
  .carousel-controls .play-label { display: none; }
}

@media (min-width: 761px) and (max-height: 660px) {
  .poster-carousel { --hero-baseline: 120px; min-height: 540px; }
  .hero-kicker { top: 97px; }
  .hero-identity h1 { font-size: 76px; }
  .hero-overline { margin-bottom: 13px; }
  .hero-identity h1 span { margin: 12px 0 16px; }
  .hero-role { margin-bottom: 19px; }
  .hero-project h2 { margin-top: 18px; font-size: 38px; }
  .hero-project p { margin-bottom: 20px; }
  .carousel-bottom { bottom: 20px; }
}

@media (max-width: 760px) {
  .poster-carousel {
    --hero-gutter: 18px;
    height: 100svh;
    min-height: clamp(620px, 90svh, 730px);
  }
  /* Keep each character's focal point centered across phone aspect ratios. */
  .poster-slide[data-project="sea"] { --mobile-poster-focus: 67.4%; }
  .poster-slide[data-project="omni"] { --mobile-poster-focus: 25.2%; }
  .poster-slide[data-project="moon"] { --mobile-poster-focus: 47.5%; }
  .poster-slide[data-project="wish"] { --mobile-poster-focus: 37.5%; }
  .poster-carousel:not(:fullscreen) .poster-slides { top: 60px; }
  .poster-carousel:not(:fullscreen) .poster-slide img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateX(clamp(calc(50vw - 100%), calc(-1 * var(--mobile-poster-focus, 50%)), -50vw));
  }
  .hero-kicker { top: 91px; font-size: 7px; }
  .hero-identity { bottom: 310px; max-width: 90%; }
  .hero-overline { font-size: 8px; margin-bottom: 13px; }
  .hero-identity h1 { font-size: clamp(58px, 15vw, 76px); }
  .hero-identity h1 span { font-size: 8px; margin: 12px 0 15px; }
  .hero-role { font-size: 11px; margin-bottom: 19px; }
  .hero-discover { font-size: 10px; gap: 25px; }
  .hero-project {
    left: var(--hero-gutter);
    right: var(--hero-gutter);
    bottom: 105px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 14px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-project .eyebrow { grid-column: 1 / -1; font-size: 8px; gap: 14px; margin: 0 0 15px; }
  .hero-project h2 { grid-column: 1; font-size: clamp(25px, 7.4vw, 38px); margin: 0 0 9px; }
  .hero-project p { grid-column: 1; font-size: 10px; margin: 0; line-height: 1.8; letter-spacing: 0; }
  .carousel-detail { grid-column: 2; grid-row: 2 / 4; align-self: center; gap: 15px; font-size: 10px; padding: 0 0 6px; }
  .carousel-detail span { font-size: 15px; }
  .poster-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .93), rgba(0, 0, 0, .62) 37%, rgba(0, 0, 0, .2) 64%, transparent 85%),
      linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 70%);
  }
  .carousel-bottom { bottom: 23px; gap: 18px; }
  .carousel-dots { gap: 8px; }
  .carousel-dot { justify-content: center; height: 36px; padding: 11px 0 8px; gap: 0; }
  .carousel-dot span { font-size: 10px; }
  .carousel-dot strong { display: none; }
  .carousel-controls { gap: 4px; }
  .carousel-controls button { width: 32px; height: 36px; font-size: 16px; }
  .carousel-controls .carousel-play { width: 26px; gap: 0; padding: 0; }
  .carousel-controls .play-label { display: none; }
  .carousel-controls .carousel-fullscreen { width: 28px; margin-left: 0; }
}

@media (max-width: 360px) {
  .poster-carousel { --hero-gutter: 18px; }
  .hero-project { gap: 0 12px; }
  .hero-project .eyebrow { font-size: 7px; }
  .carousel-detail { gap: 12px; font-size: 9px; }
  .carousel-bottom { gap: 14px; }
  .carousel-dots { gap: 6px; }
}

/* Fullscreen keeps the same controls while giving the poster the full canvas. */
.poster-carousel:fullscreen { height: 100vh; min-height: 0; padding: 0; }
.poster-carousel:fullscreen .hero-identity,
.poster-carousel:fullscreen .hero-kicker { display: none; }
.poster-carousel:fullscreen .poster-slide img { object-fit: contain; object-position: center; padding: 0 0 84px; }
.poster-carousel:fullscreen .poster-shade { background: linear-gradient(0deg, #000d, #0004 23%, transparent 48%); }
.poster-carousel:fullscreen .hero-project {
  display: block;
  left: auto;
  right: var(--hero-gutter);
  bottom: 108px;
  width: min(360px, 80%);
  max-width: 80%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.poster-carousel:fullscreen .hero-project .eyebrow,
.poster-carousel:fullscreen .hero-project p { display: none; }
.poster-carousel:fullscreen .hero-project h2 { margin: 0 0 10px; font-size: 26px; }
.poster-carousel:fullscreen .carousel-detail { font-size: 10px; padding: 0 0 5px; }
.poster-carousel:fullscreen .carousel-bottom { left: var(--hero-gutter); right: var(--hero-gutter); bottom: 23px; padding: 0; }

@media (max-width: 760px) {
  .poster-carousel:fullscreen .hero-project { left: var(--hero-gutter); right: var(--hero-gutter); width: auto; max-width: none; bottom: 96px; }
  .poster-carousel:fullscreen .hero-project h2 { font-size: 23px; }
  .poster-carousel:fullscreen .poster-slide img { padding: 0 0 75px; }
}
