/* ==========================================================
   HOMEPAGE — #scene-03 (light mode only; theme-ready tokens)
   ========================================================== */

#scene-03 {
  position: relative;

  min-height: 0;

  padding: 0;

  overflow: hidden;

  background: var(--home-surface);
  color: var(--home-text);
}

#scene-03.home {
  display: block;

  align-items: stretch;

  justify-content: flex-start;
}

body:not(.homepage-entered) #scene-03 {
  display: none;
}

body.homepage-entered #scene-03 {
  display: block;

  z-index: 2;

  max-height: none;

  overflow: visible;

  scroll-margin-top: 0;
}

.home-world {
  position: relative;

  width: 100%;

  min-height: 0;
}

body.homepage-entered #scene-03 .home-world {
  min-height: 100vh;
}

/* --- Header ------------------------------------------------ */

.home-header {
  position: sticky;

  top: 0;

  z-index: 20;

  display: flex;

  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 4vw, 3rem);

  background: var(--home-surface);

  border-bottom: 1px solid var(--home-border);
}

.home-header__brand {
  flex-shrink: 0;

  margin: 0;
  padding: 0;

  border: none;

  background: transparent;

  color: var(--home-text);

  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;
}

.home-header__brand:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

.home-header__desktop {
  display: flex;

  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.home-header__menu {
  display: none;
}

.home-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.5vw, 1.1rem);
}

.home-header__link {
  min-height: 2.75rem;

  display: inline-flex;
  align-items: center;

  margin: 0;
  padding: 0.35rem 0.15rem;

  border: none;

  background: transparent;

  color: var(--home-text-muted);

  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;

  cursor: pointer;
}

.home-header__link:hover,
.home-header__link:focus-visible {
  color: var(--home-text);
}

a.home-header__link {
  text-decoration: none;
}

.home-header__link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.home-header__membership {
  min-height: 2.75rem;

  margin: 0;
  padding: 0.35rem 0.15rem;

  border: none;

  background: transparent;

  color: var(--home-text-muted);

  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;

  cursor: pointer;
}

.home-header__membership:hover,
.home-header__membership:focus-visible {
  color: var(--home-text);
}

.home-header__membership:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* --- Hero ---------------------------------------------------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);

  max-width: var(--home-max-width);
  margin: 0 auto;

  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem)
    clamp(2rem, 5vw, 4rem);
}

.home-hero__title {
  margin: 0 0 1.25rem;

  color: var(--home-text);

  font-family: var(--heading-font);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-hero__lead {
  max-width: 22rem;
  margin: 0;

  color: var(--home-text-muted);

  font-family: var(--body-font);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
}

.home-hero__art {
  display: flex;
  justify-content: center;
  align-items: center;

  overflow: visible;
}

.home-hero__graphic {
  position: relative;

  width: min(100%, 72rem);

  overflow: visible;
}

.home-hero__paint {
  display: block;

  width: 100%;
  height: auto;
}

.home-hero__monogram {
  position: absolute;

  left: 53%;
  top: 47%;

  width: min(82%, 44rem);
  height: auto;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

/* --- Two doors ----------------------------------------------- */

.home-doors {
  max-width: var(--home-max-width);
  margin: 0 auto;

  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.home-doors__heading {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);

  color: var(--home-text);

  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.home-doors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.home-door {
  scroll-margin-top: calc(var(--home-header-height, 5rem) + 1rem);
}

.home-door__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;

  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);

  border-radius: 1rem;
}

.home-door--mail-room .home-door__body {
  background: var(--purple);
  color: var(--white);
}

.home-door--ps .home-door__body {
  background: var(--pink);
  color: var(--white);
}

.home-door__title {
  margin: 0;

  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-door__copy {
  max-width: 26rem;
  margin: 0;

  font-family: var(--body-font);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
}

.home-door__art {
  display: block;

  width: min(100%, 18rem);
  height: auto;
  margin-top: auto;

  object-fit: contain;
}

.home-door--mail-room .home-door__art {
  align-self: center;

  width: min(100%, 36rem);

  transform: translateX(2.3%);

  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.34))
    drop-shadow(4px 12px 18px rgba(0, 0, 0, 0.2));
}

.home-door--ps .home-door__art {
  align-self: center;

  width: min(100%, 32rem);

  transform: translateX(-1.4%);

  filter: drop-shadow(2px 4px 5px rgba(0, 0, 0, 0.32))
    drop-shadow(3px 11px 16px rgba(0, 0, 0, 0.18));
}

.home-door__enter,
.home-destination__enter {
  min-height: 2.75rem;

  margin-top: 0.5rem;
  padding: 0.65rem 0;

  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);

  background: transparent;
  color: inherit;

  font-family: var(--heading-font);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;
}

.home-door__enter:focus-visible,
.home-destination__enter:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.home-destination__enter {
  border-top-color: var(--home-border);
  color: var(--home-text);
}

/* --- Supporting destinations --------------------------------- */

.home-destinations {
  max-width: var(--home-max-width);
  margin: 0 auto;

  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.home-destinations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.home-destination {
  scroll-margin-top: calc(var(--home-header-height, 5rem) + 1rem);

  padding: clamp(1rem, 2.5vw, 1.5rem) 0;

  border-top: 1px solid var(--home-border);
}

.home-destination__title {
  margin: 0 0 0.5rem;

  color: var(--home-text);

  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.home-destination__copy {
  margin: 0 0 0.75rem;

  color: var(--home-text-muted);

  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
}

/* --- Footer -------------------------------------------------- */

.home-footer {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem)
    clamp(1.5rem, 3vw, 2rem);

  background: var(--black);
  color: var(--white);
}

.home-footer__main {
  max-width: var(--home-max-width);
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}

.home-footer__brand {
  margin: 0 0 0.5rem;

  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.home-footer__tagline {
  margin: 0;

  color: rgba(255, 255, 255, 0.72);

  font-family: var(--body-font);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
}

.home-footer__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;

  max-width: var(--home-max-width);
  margin: 0 auto clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-footer__utility-item {
  color: rgba(255, 255, 255, 0.55);

  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

a.home-footer__utility-item {
  text-decoration: none;
}

a.home-footer__utility-item:hover,
a.home-footer__utility-item:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.home-footer__copyright {
  max-width: var(--home-max-width);
  margin: 0 auto;

  color: rgba(255, 255, 255, 0.42);

  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

/* --- Homepage visibility / landing nav handoff --------------- */

body.homepage-entered .site-nav {
  opacity: 0;

  pointer-events: none;
}

/* Intentional landing → Homepage boundary: white surface meets cinematic landing */

body.homepage-entered #scene-03 .home-header {
  margin-top: 0;
}

/* --- Responsive ---------------------------------------------- */

@media (max-width: 56rem) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    order: 1;
  }

  .home-hero__art {
    order: 2;
  }

  .home-hero__graphic {
    width: min(100%, 52rem);
  }

  .home-hero__monogram {
    left: 52%;
    top: 48%;

    width: min(80%, 36rem);
  }

  .home-door--mail-room .home-door__art {
    width: min(100%, 28rem);
  }

  .home-door--ps .home-door__art {
    width: min(100%, 26rem);
  }

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

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

@media (max-width: 40rem) {
  .home-header__desktop {
    display: none;
  }

  .home-header__menu {
    display: block;

    position: relative;

    margin-left: auto;
  }

  .home-header__menu-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.5rem 0.85rem;

    border: 1px solid var(--home-border);
    border-radius: 999px;

    background: var(--home-surface);
    color: var(--home-text);

    font-family: var(--heading-font);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;

    cursor: pointer;
  }

  .home-header__menu-toggle::-webkit-details-marker {
    display: none;
  }

  .home-header__menu-toggle:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
  }

  .home-header__panel {
    position: absolute;

    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;

    width: min(18rem, calc(100vw - 2rem));

    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 0.85rem;

    border: 1px solid var(--home-border);
    border-radius: 0.75rem;

    background: var(--home-surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }

  .home-header__menu[open] .home-header__menu-toggle {
    border-color: var(--purple);
  }

  .home-header__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .home-header__link {
    min-height: 2.75rem;
  }

  .home-header__membership {
    align-self: flex-start;

    width: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-header__membership {
    transition: none;
  }
}
