/* Crown hero (1c home), title band (1e interior), 1a aurora fallback, glass, CTAs.
   Reads tokens.css. Loaded late so it wins over block styles. (was crown-hero-lock.css) */
/* LOCKED 1c / 1e / 1a numbers. Craft: glass only over photo. */


/* Glass nav sits ON the title band (export .site-nav).
   Header template-part is a sibling above the band — collapse it and
   pin .crown-header over the photo so backdrop-filter samples the image. */
header.wp-block-template-part {
  position: relative;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  z-index: 40;
}
.crown-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: rgba(6,26,51,.20) !important;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
@supports not (backdrop-filter: blur(1px)) {
  .crown-header { background: rgba(6,26,51,.85) !important; }
}

.crown-page-hero .crown-eyebrow,
.crown-hero .crown-eyebrow,
.title-band .crown-eyebrow,
.hero-glass-panel .crown-eyebrow {
  font-size: 12.5px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--crown-gold);
  text-transform: uppercase;
  margin: 0 0 1.15rem;
}

.crown-hero.hero--home,
.crown-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--crown-navy-title) !important;
  background-image: none !important;
  color: var(--crown-white);
}
.home .crown-hero.hero--home {
  min-height: max(620px, 100svh);
  display: flex;
  flex-direction: column;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.95);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--crown-scrim-home);
}

.hero__content,
.crown-hero .crown-hero__grid {
  position: relative;
  z-index: 1;
  padding: 48px 56px;
  align-items: stretch;
}
.home .crown-hero .crown-hero__grid,
.home .crown-hero .hero__content {
  padding-top: calc(78px + 48px);
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  align-items: start !important;
  align-content: start !important;
}

.home .crown-hero,
.crown-hero.hero--home,
.crown-hero,
.has-title-photo .crown-page-hero,
.has-title-photo .title-band {
  background: var(--crown-navy-title) !important;
  background-image: none !important;
}
.home .crown-hero::before,
.home .crown-hero::after,
.crown-hero.hero--home::before,
.crown-hero.hero--home::after,
.has-title-photo .crown-page-hero::before,
.has-title-photo .crown-page-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
.hero__photo { z-index: 0; }
.hero__scrim,
.title-band__wash { z-index: 1; }
.hero__bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 78% 18%, rgba(167,139,250,.22) 0%, rgba(167,139,250,0) 16%),
    radial-gradient(circle at 12% 88%, rgba(196,181,253,.18) 0%, rgba(196,181,253,0) 18%),
    radial-gradient(circle 11px at 24% 28%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(circle 7px at 63% 20%, rgba(216,202,255,.45), transparent 70%),
    radial-gradient(circle 13px at 86% 46%, rgba(255,255,255,.30), transparent 70%),
    radial-gradient(circle 6px at 41% 68%, rgba(196,181,253,.32), transparent 70%),
    radial-gradient(circle 8px at 72% 76%, rgba(255,255,255,.24), transparent 70%),
    radial-gradient(circle 7px at 16% 52%, rgba(216,202,255,.24), transparent 70%),
    radial-gradient(circle 9px at 60% 12%, rgba(255,255,255,.38), transparent 70%),
    radial-gradient(circle 8px at 64% 86%, rgba(196,181,253,.30), transparent 70%),
    radial-gradient(circle 6px at 6% 34%, rgba(255,255,255,.30), transparent 70%);
}
.hero__people,
.title-band__people {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  z-index: 3;
}
.hero__content,
.crown-hero .crown-hero__grid,
.hero-glass-panel { z-index: 4; }
.home .crown-hero .crown-shell {
  width: auto;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
}
.hero-glass-panel {
  width: var(--crown-pane-w);
  max-width: var(--crown-pane-max);
  height: auto;
  min-height: 0;
  align-self: start;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--crown-pane-radius);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  box-shadow: 0 30px 70px rgba(3,15,30,.5),
              inset 0 1px 0 rgba(255,255,255,.35);
  padding: var(--crown-pane-pad);
}

.hero-glass-panel h1 {
  font-family: var(--crown-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--crown-white);
  text-shadow: 0 2px 24px rgba(3,15,30,.4);
  margin: 0 0 1.1rem;
  max-width: none;
}

.hero-glass-panel .crown-hero__lead {
  color: rgba(255,255,255,.85);
  letter-spacing: .01em;
  max-width: 38rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 1.6rem;
}

.btn--gold,
.crown-hero .crown-button,
.crown-header .crown-button {
  background: var(--crown-gold);
  color: var(--crown-gold-ink);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--crown-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
  white-space: nowrap;
}
.btn--gold:hover,
.crown-header .crown-button:hover {
  background: var(--crown-gold-deep);
  border-color: var(--crown-gold-deep);
  color: var(--crown-gold-ink);
}

.btn--glass {
  color: var(--crown-white);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
  white-space: nowrap;
}

.hero-glass-panel .crown-hero__signals,
.hero__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 1.5rem;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.85);
  background: none;
}
.hero-glass-panel .crown-hero__signals span {
  background: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
  border-radius: 0;
  color: rgba(255,255,255,.85);
}
.hero-glass-panel .crown-hero__signals b,
.hero__proofs b { color: var(--crown-gold); }

.glass-form-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(3,15,30,.45), inset 0 1px 0 rgba(255,255,255,.3);
  padding: 32px 30px;
}
.glass-form-card input,
.glass-form-card select {
  height: 42px;
  border-radius: 10px;
  background: rgba(6,26,51,.35);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--crown-white);
}


/* Consult form lives below care-areas, not in the hero. */
#consult-form.crown-section .crown-consult-card {
  background: #0e3b6b;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 64px rgba(14,59,107,.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 720px;
}

/* 1e interior */
.crown-page-hero,
.wp-block-group.crown-page-hero,
.wp-block-group.alignfull.crown-page-hero,
.title-band {
  --photo-w: var(--crown-1e-photo-w);
  position: relative;
  overflow: hidden;
  background: var(--crown-navy-title) !important;
  background-image: none !important;
  border-bottom: 0;
  box-sizing: border-box;
  color: var(--crown-white);
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.crown-page-hero.title-band {
  min-height: 380px;
}
/* Beat WP featured-image block: position:relative; img height:auto; width:100% */
.crown-page-hero .wp-block-post-featured-image.title-band__photo,
.crown-page-hero .wp-block-post-featured-image {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: var(--photo-w) !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.crown-page-hero > .title-band__wash,
.crown-page-hero > .wp-block-post-featured-image,
.crown-page-hero > .title-band__photo {
  max-width: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
}

.crown-page-hero .wp-block-post-featured-image img,
.crown-page-hero .title-band__photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 78% top;
  filter: saturate(.9);
  /* Spec fallback: seam still showed at 35%. Deepen mask. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}

.title-band__wash {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  background: var(--crown-wash-1e);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}

.title-band__content,
.crown-page-hero .title-band__content {
  position: relative;
  padding: 56px 56px 60px;
  padding-top: calc(78px + 36px);
  max-width: 720px;
  z-index: 2;
  margin: 0;
}

.crown-page-hero h1,
.crown-page-hero .wp-block-post-title,
.title-band h1 {
  font-family: var(--crown-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--crown-white);
  text-shadow: 0 2px 24px rgba(3,15,30,.4);
  margin: .2rem 0 1.25rem;
}

.glass-cta-pill {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  isolation: isolate;
  padding: 10px 12px 10px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 10px 28px rgba(3,15,30,.22);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .01em;
}

.btn--sm,
.glass-cta-pill .btn--gold,
.glass-cta-pill a {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--crown-gold);
  color: var(--crown-gold-ink);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crown-page-card a.crown-button {
  padding: 14px 26px;
  font-weight: 700;
  color: var(--crown-gold-ink);
  line-height: 1.2;
  min-height: 44px;
  white-space: nowrap;
}

body:not(.has-title-photo) .crown-page-hero {
  background: #08233f !important;
}
body:not(.has-title-photo) .crown-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 18% 30%, #155a9e 0%, rgba(21,90,158,0) 60%),
    radial-gradient(700px 500px at 85% 85%, rgba(24,74,88,.9) 0%, rgba(8,35,63,0) 65%),
    #08233f;
  z-index: 0;
}
body:not(.has-title-photo) .title-band__wash,
body:not(.has-title-photo) .title-band__photo,
body:not(.has-title-photo) .wp-block-post-featured-image {
  display: none;
}

@media (max-width: 799px) {
  .hero-glass-panel {
    width: auto;
    max-width: none;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hero__content,
  .crown-hero .crown-hero__grid {
    padding: 32px 20px;
  }
  .home .crown-hero .crown-hero__grid,
  .home .crown-hero .hero__content {
    padding-top: calc(78px + 28px);
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .hero-glass-panel { padding: 28px 22px; }
  .title-band__content,
  .crown-page-hero .title-band__content {
    padding: 36px 20px 40px;
    max-width: none;
  }
  .crown-page-hero .wp-block-post-featured-image,
  .title-band__photo {
    position: relative;
    right: auto;
    width: 100%;
    height: 240px;
  }
  .title-band__wash {
    background: linear-gradient(180deg, rgba(10,45,82,.15) 0%, rgba(10,45,82,.72) 70%, #0a2d52 100%);
  }
  .glass-cta-pill {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 14px 12px 18px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass-panel,
  .glass-form-card,
  .glass-cta-pill,
  .crown-header {
    transition: none;
  }
}

/* 2026-08-26 — Chris: /peptides/ title photo had too much space above the subjects'
   heads; the top-anchored crop cut their chins. Center the vertical crop on this
   page only. Other title-band pages keep the locked top anchor (DESIGN-LOCK). */
body.page-id-2606 .crown-page-hero .wp-block-post-featured-image img,
body.page-id-2606 .crown-page-hero .title-band__photo img {
  object-position: 78% center !important;
}

/* 2026-08-26 — Chris: hero copy pane + consult form card float as one centered pair
   (pane left, form right, both vertically centered in the viewport). The form returns
   to the hero from the old #consult-form section; its id moves with it so anchor
   links still land. Pane narrows from the old 60vw lock so the pair can center.
   Form-card frost matches the pane (.14 fill, blur 40). */
.home .crown-hero .hero__content {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
  min-height: 100vh;
}
.home .crown-hero .hero-glass-panel {
  width: auto;
  flex: 0 1 600px;
  max-width: 600px;
  align-self: center;
}
.home .crown-hero .glass-form-card {
  flex: 0 1 400px;
  max-width: 400px;
  align-self: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  padding: 22px 18px 16px;
  overflow: visible;
}
.home .crown-hero .glass-form-card h2 {
  color: var(--crown-white);
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  max-width: none;
}
.home .crown-hero .glass-form-card .crown-jotform {
  margin-top: 0.35rem;
}
.home .crown-hero .glass-form-card .crown-form-note {
  color: rgba(255,255,255,.78);
  margin: 0.7rem 0 0;
}

/* Mobile: pair stacks, children shrink below min-content so nothing overflows. */
body.page-template-page-thank-you .title-band--slim,
.crown-page--thankyou .title-band--slim {
  min-height: 88px;
  height: 88px;
  background: #0a2d52;
}
body.page-template-page-thank-you .crown-header {
  background: rgba(10, 45, 82, 0.55) !important;
}
@media (max-width: 700px) {
  body.page-template-page-thank-you .title-band--slim,
  .crown-page--thankyou .title-band--slim {
    height: 148px;
    min-height: 148px;
  }
}

/* Impeccable 2026-10-21: mobile header is absolute and ~131px tall (two rows); clear it so the H1 is not hidden. */
@media (max-width: 720px) {
  .title-band__content,
  .crown-page-hero .title-band__content {
    padding-top: calc(132px + 24px);
  }
}

/* 2026-10-21 approved: home form label contrast, colour only. Light glass behind it on desktop takes ink; mobile sits on the darker photo. */
.glass-form-card > .crown-eyebrow { color: var(--crown-gold-ink); }
@media (max-width: 799px) { .glass-form-card > .crown-eyebrow { color: var(--crown-white); } }
