/* Art-directed split hero: tall backgrounds, original identity-safe foregrounds. */
body[data-page="home"] .hero-world .scene-background {
  object-fit: cover;
  object-position: center 48%;
}

body[data-page="home"] .hero-world--krystian .scene-background {
  object-position: center 53%;
  filter: none;
}

body[data-page="home"] .hero-world--krystian .scene-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-page="home"] .hero-world--adam .scene-foreground {
  position: absolute;
  inset: auto;
  bottom: 0;
  left: -300px;
  width: clamp(820px, 90vw, 1500px);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

body[data-page="home"] .hero-world--krystian .scene-foreground {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 54%;
  transform: none;
  filter: none;
}

body[data-page="home"] .hero-world--krystian .persona-entry--right {
  right: max(32px, calc((100vw - 1440px) / 2));
  left: auto;
  justify-items: end;
  text-align: right;
}

body[data-page="home"] .persona-entry {
  min-height: 44px;
  text-shadow: 0 2px 14px oklch(0 0 0 / .92);
}

body[data-page="home"] .persona-role {
  margin-bottom: 9px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px 5px;
  border-left: 2px solid var(--accent-hover);
  color: oklch(.99 .004 78);
  background: oklch(.08 .006 65 / .82);
  box-shadow: 0 8px 22px oklch(0 0 0 / .42);
  backdrop-filter: blur(7px);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
}

body[data-page="home"] .persona-entry strong {
  color: oklch(.98 .006 78);
  text-shadow: 0 3px 22px oklch(0 0 0), 0 1px 2px oklch(0 0 0);
}

body[data-page="home"] .hero-label {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 7px 12px 8px;
  color: oklch(.98 .006 78);
  background: oklch(.08 .006 65 / .8);
  box-shadow: 0 10px 28px oklch(0 0 0 / .45);
  backdrop-filter: blur(8px);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: .055em;
  text-shadow: 0 2px 18px oklch(0 0 0);
}

body[data-page="home"] .hero-message h1 {
  max-width: 430px;
  margin-top: 16px;
  font-size: clamp(40px, 3vw, 48px);
  line-height: .97;
  letter-spacing: -.042em;
}

/* Keep the message on the exact axis of the split. Its compact measure and
   vertical placement protect both portraits without making the layout uneven. */
@media (min-width: 761px) {
  body[data-page="home"] .split-hero {
    --hero-stage-height: max(100svh, 720px);
    min-height: max(100svh, 720px);
    overflow: visible;
  }

  body[data-page="home"] .hero-message {
    --hero-copy-top: clamp(250px, 38svh, 360px);
    --hero-bell-size: clamp(118px, 9vw, 150px);
    top: clamp(250px, 38svh, 360px);
    left: 50%;
    width: min(560px, 50vw);
    padding: 0 34px;
    transform: translateX(-50%);
  }

  body[data-page="home"] .hero-lede {
    max-width: 400px;
  }

}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page="home"] .hero-message {
    width: min(470px, 52vw);
    padding-inline: 22px;
    transform: translateX(-50%);
  }

  body[data-page="home"] .hero-message h1 {
    max-width: 380px;
    font-size: clamp(37px, 4vw, 43px);
  }

  body[data-page="home"] .hero-lede {
    max-width: 390px;
  }
}

body[data-page="home"] .hero-concierge {
  position: relative;
  width: max-content;
  margin: 14px auto 0;
}

@media (min-width: 761px) {
  body[data-page="home"] .hero-message > .hero-concierge {
    position: absolute;
    z-index: 30;
    top: calc(var(--hero-stage-height) - var(--hero-copy-top) - var(--hero-bell-size) + 30px);
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }
}

body[data-page="home"] .hero-concierge-bell {
  position: relative;
  width: var(--hero-bell-size, clamp(118px, 9vw, 150px));
  height: var(--hero-bell-size, clamp(118px, 9vw, 150px));
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  opacity: .98;
  background: transparent;
  filter: drop-shadow(0 18px 25px oklch(0 0 0 / .72));
  cursor: pointer;
  transition: transform var(--motion-medium), filter var(--motion-medium);
}

body[data-page="home"] .hero-concierge-bell::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid color-mix(in oklch, var(--text) 24%, transparent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
  transition: opacity var(--motion-fast), transform var(--motion-medium);
}

body[data-page="home"] .hero-concierge-bell:hover,
body[data-page="home"] .hero-concierge-bell[aria-expanded="true"] {
  filter: drop-shadow(0 22px 30px oklch(0 0 0 / .82));
  transform: translateY(-3px);
}

body[data-page="home"] .hero-concierge-bell:hover::after,
body[data-page="home"] .hero-concierge-bell[aria-expanded="true"]::after {
  opacity: 1;
  transform: scale(1);
}

body[data-page="home"] .hero-concierge-bell img {
  width: 100%;
  height: auto;
}

body[data-page="home"] .hero-concierge-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 13px);
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  padding: 27px 29px 25px;
  border: 1px solid var(--border-strong);
  border-top-color: var(--accent-hover);
  color: var(--text);
  background: color-mix(in oklch, var(--surface-1) 96%, transparent);
  box-shadow: 0 24px 70px oklch(0 0 0 / .7);
  text-align: left;
  text-shadow: none;
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

body[data-page="home"] .hero-concierge-popover[hidden] { display: none; }

body[data-page="home"] .hero-concierge-popover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--accent-hover);
  border-left: 1px solid var(--accent-hover);
  background: var(--surface-1);
  transform: translate(-50%, 7px) rotate(45deg);
}

body[data-page="home"] .hero-concierge-popover__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

body[data-page="home"] .hero-concierge-popover__eyebrow {
  margin: 0 42px 12px 0;
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .09em;
}

body[data-page="home"] .hero-concierge-popover h2 {
  margin: 0 35px 15px 0;
  font: 650 26px/1.08 var(--font-sans);
  letter-spacing: -.035em;
}

body[data-page="home"] .hero-concierge-popover p:not(.hero-concierge-popover__eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

body[data-page="home"] .hero-concierge-popover p + p { margin-top: 11px; }

body[data-page="home"] .hero-concierge-popover a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  border-bottom: 1px solid var(--accent-hover);
  font-size: 13px;
  font-weight: 720;
}

@media (min-width: 1101px) {
  body[data-page="home"] .hero-concierge-popover {
    top: 50%;
    left: calc(100% + 18px);
    transform: translateY(-50%);
  }

  body[data-page="home"] .hero-concierge-popover::before {
    top: 50%;
    right: 100%;
    bottom: auto;
    left: auto;
    width: 14px;
    height: 20px;
    border: 0;
    background: var(--accent-hover);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    transform: translateY(-50%);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page="home"] .hero-concierge-popover {
    position: fixed;
    z-index: 1300;
    inset: auto 24px 24px auto;
    transform: none;
  }
  body[data-page="home"] .hero-concierge-popover::before { display: none; }
}

body[data-page="home"] .hero-world .world-shade {
  pointer-events: none;
  background: linear-gradient(
    180deg,
    oklch(0 0 0 / .32) 0%,
    oklch(0 0 0 / .22) 26%,
    transparent 48%,
    transparent 62%,
    oklch(0 0 0 / .66) 100%
  );
  box-shadow: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page="home"] .hero-world--adam .scene-foreground {
    width: 1100px;
  }

}

/* A short desktop viewport crops portrait source images far more aggressively.
   Lower the static foreground so Krystian's head always remains in frame. */
@media (min-width: 761px) and (max-height: 650px) {
  body[data-page="home"] .split-hero {
    --hero-stage-height: 900px;
    min-height: 900px;
  }

  body[data-page="home"] .hero-message {
    --hero-copy-top: 430px;
    --hero-bell-size: 110px;
    top: var(--hero-copy-top);
  }

  body[data-page="home"] .hero-world--krystian .scene-foreground {
    object-position: center 54%;
    transform: none;
  }

  body[data-page="home"] .hero-message h1 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  body[data-page="home"] .hero-lede {
    margin-bottom: 14px;
    line-height: 1.38;
  }

  body[data-page="home"] .hero-concierge {
    margin-top: 4px;
  }

}

@media (min-width: 761px) and (max-height: 460px) {
  body[data-page="home"] .split-hero { --hero-stage-height: 960px; min-height: 960px; }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-message {
    text-align: center;
  }

  body[data-page="home"] .hero-label,
  body[data-page="home"] .hero-message h1,
  body[data-page="home"] .hero-lede {
    margin-inline: auto;
    text-align: center;
  }

  body[data-page="home"] .hero-label {
    padding-inline: 9px;
    font-size: 14px;
    letter-spacing: .04em;
  }

  body[data-page="home"] .hero-message h1 {
    font-size: clamp(35px, 9vw, 42px);
  }

  body[data-page="home"] .funnel-hero-actions {
    width: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
  }

  body[data-page="home"] .hero-concierge { margin: 25px auto 1px; }
  body[data-page="home"] .hero-concierge-bell { width: 106px; height: 106px; }
  body[data-page="home"] .hero-concierge-popover {
    position: fixed;
    z-index: 1300;
    inset: auto 16px 16px;
    width: auto;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    transform: none;
  }
  body[data-page="home"] .hero-concierge-popover::before { display: none; }

  body[data-page="home"] .hero-world--krystian .scene-background {
    object-position: center 48%;
  }

  body[data-page="home"] .hero-world--adam .scene-foreground {
    bottom: 0;
    left: -55%;
    width: 240%;
  }

  body[data-page="home"] .hero-world--krystian .scene-foreground {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center 57%;
  }

  body[data-page="home"] .hero-world--krystian .persona-entry--right {
    right: auto;
    bottom: 14px;
    left: 12px;
    justify-items: start;
    text-align: left;
  }

  body[data-page="home"] .hero-world .world-shade {
    background: linear-gradient(
      180deg,
      oklch(0 0 0 / .08) 0%,
      transparent 42%,
      oklch(0 0 0 / .08) 60%,
      oklch(0 0 0 / .72) 100%
    );
  }
}

/* Seneca is the punchline, not another oversized campaign headline. */
body[data-page="home"] .seneca-stage h2 {
  max-width: 32ch;
  color: var(--text-muted);
  font: 600 clamp(18px, 1.45vw, 24px)/1.38 var(--font-sans);
  letter-spacing: -.012em;
  text-wrap: pretty;
}

body[data-page="home"] .seneca-stage blockquote {
  margin-top: clamp(26px, 3vw, 44px);
}

body[data-page="home"] .seneca-stage blockquote p {
  max-width: 20ch;
  color: var(--text);
  font: 400 clamp(30px, 2.65vw, 44px)/1.14 var(--font-editorial);
  letter-spacing: -.025em;
  text-wrap: balance;
}

@media (max-width: 760px) {
  body[data-page="home"] .seneca-stage h2 {
    max-width: 30ch;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.4;
  }

  body[data-page="home"] .seneca-stage blockquote p {
    max-width: 18ch;
    font-size: clamp(29px, 8.5vw, 38px);
  }
}
