/* v1.0.9 — corrected header seal and loading-screen branding */
.public-header {
  min-height: 104px;
  height: auto;
  padding: 10px clamp(24px, 5vw, 90px);
  gap: clamp(18px, 2vw, 36px);
}

.header-wordmark {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 7px 12px rgba(17, 26, 55, .08));
  text-decoration: none;
}

.header-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.public-header nav {
  min-width: 0;
}

.header-access {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-access .header-relief {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.portal-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(179, 82, 67, .35);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(17, 26, 55, .06);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.portal-top > span:first-child {
  color: var(--rose);
  font-size: 18px;
}

.owner-top {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(207, 167, 87, .55);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(17, 26, 55, .11);
  opacity: .72;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.owner-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .portal-top:hover,
  .owner-top:hover {
    transform: translateY(-2px);
  }

  .portal-top:hover {
    border-color: var(--rose);
    box-shadow: 0 10px 28px rgba(179, 82, 67, .18);
  }

  .owner-top:hover {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(207, 167, 87, .13), 0 11px 28px rgba(17, 26, 55, .24);
  }
}

.scene .hero-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 4%;
  width: min(72%, 560px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  opacity: .14;
  filter: saturate(.75) sepia(.12);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, rgba(0, 0, 0, .75) 61%, transparent 84%);
  mask-image: radial-gradient(circle, #000 35%, rgba(0, 0, 0, .75) 61%, transparent 84%);
}

.scene .window {
  z-index: 1;
}

.scene .flower,
.scene .vase,
.scene .towels,
.scene .candle,
.scene .mug {
  z-index: 2;
}

body > header.page-public-header {
  min-height: 104px;
  height: auto;
  padding: 10px clamp(24px, 5vw, 90px);
  gap: clamp(18px, 2vw, 34px);
}

body > header.page-public-header .header-wordmark {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
}

body > header.page-public-header .header-access a {
  text-decoration: none;
}

body > header.page-public-header .header-relief {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--rose);
  box-shadow: 0 12px 28px rgba(179, 82, 67, .24);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .public-header,
  body > header.page-public-header {
    gap: 14px;
    padding-inline: 24px;
  }

  .header-wordmark,
  body > header.page-public-header .header-wordmark {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
  }

  .portal-top > span:last-child {
    display: none;
  }

  .portal-top {
    width: 44px;
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 1040px) {
  .public-header,
  body > header.page-public-header {
    display: grid;
    grid-template-columns: minmax(78px, 1fr) auto;
  }

  .public-header nav,
  body > header.page-public-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-header nav::-webkit-scrollbar,
  body > header.page-public-header nav::-webkit-scrollbar {
    display: none;
  }

  .header-access {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .public-header,
  body > header.page-public-header {
    grid-template-columns: 1fr;
    padding: 8px 16px 12px;
  }

  .header-wordmark,
  body > header.page-public-header .header-wordmark {
    grid-column: 1;
    grid-row: 1;
    width: 82px;
    height: 82px;
    justify-self: center;
  }

  .header-access {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
  }

  .public-header nav,
  body > header.page-public-header nav {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    padding-inline: 4px;
  }

  .header-access .header-relief,
  body > header.page-public-header .header-relief {
    display: inline-flex;
    min-height: 44px;
    padding-inline: 16px;
    font-size: 12px;
  }

  .scene .hero-watermark {
    right: 6%;
    width: 88%;
    opacity: .11;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-top,
  .owner-top {
    transition: none;
  }
}
