/* v6n20: light cream Liquid Glass card over Shah's walk-through.
   Scoped to #step.hero-full so older arch CSS stays untouched elsewhere. */

#step.hero-full{
  --hero-glass-blur: 20px;
  --hero-glass-saturate: 160%;
  --hero-glass-fill: linear-gradient(120deg, rgb(255 255 255 / .68), color-mix(in srgb, var(--ivory, #faf6ef) 62%, transparent));
  --hero-glass-solid: var(--ivory, #faf6ef);
  --hero-glass-radius: 24px;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  height: auto;
  margin: 0;
  padding: 0 0 calc(var(--dock, 70px) + 16px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: var(--night, #0e1536);
  color: var(--ink, #1b1a2a);
}
@media (min-width: 64em){
  #step.hero-full{ --hero-glass-blur: 24px; }
}

#step.hero-full .hero-arch-shim{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  pointer-events: none;
}

/* Desktop only: blurred copy of the same clip fills space around the 9:16 panel */
#step.hero-full .hero-full-ambient{
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#step.hero-full .hero-full-ambient img,
#step.hero-full .hero-full-ambient video{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(36px) brightness(.78) saturate(1.08);
  transform: scale(1.18);
}
#step.hero-full .hero-full-ambient::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 40%, rgba(14,21,54,.06), rgba(14,21,54,.28) 70%),
    linear-gradient(180deg, rgba(14,21,54,.16) 0%, rgba(14,21,54,.1) 45%, rgba(14,21,54,.28) 100%);
}
[dir=rtl] #step.hero-full .hero-full-ambient::after{
  background:
    radial-gradient(ellipse at 22% 40%, rgba(14,21,54,.06), rgba(14,21,54,.28) 70%),
    linear-gradient(180deg, rgba(14,21,54,.16) 0%, rgba(14,21,54,.1) 45%, rgba(14,21,54,.28) 100%);
}

/* Sharp video. Phone: fills the hero, including behind the card. */
#step.hero-full .hero-full-media{
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--night, #0e1536);
}
#step.hero-full .hero-full-media picture,
#step.hero-full .hero-full-poster,
#step.hero-full .hero-full-video{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
#step.hero-full .hero-full-poster,
#step.hero-full .hero-full-video{
  object-fit: cover;
  object-position: center 28%;
}
#step.hero-full .hero-full-video{
  z-index: 1;
  background: transparent;
}
#step.hero-full .hero-full-scrim{ display: none; }

/* Light cream Liquid Glass card */
#step.hero-full .hero-full-copy{
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  margin: 48vh 16px 0;
  max-width: none;
  padding: 22px 18px 22px;
  border-radius: var(--hero-glass-radius);
  background: var(--hero-glass-fill);
  color: var(--ink, #1b1a2a);
  border: 1px solid rgb(255 255 255 / .65);
  box-shadow:
    0 8px 30px color-mix(in srgb, var(--night, #0e1536) 14%, transparent),
    0 1px 2px color-mix(in srgb, var(--night, #0e1536) 8%, transparent),
    inset 0 1px 0 rgb(255 255 255 / .65),
    inset 0 0 0 1px rgb(255 255 255 / .30),
    inset 0 -1px 0 rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(var(--hero-glass-blur)) saturate(var(--hero-glass-saturate));
          backdrop-filter: blur(var(--hero-glass-blur)) saturate(var(--hero-glass-saturate));
  box-sizing: border-box;
  text-shadow: none;
}
#step.hero-full .hero-full-copy::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgb(255 255 255 / .70) 0%, rgb(255 255 255 / .15) 30%, transparent 60%),
    radial-gradient(120% 70% at 18% 0%, rgb(255 255 255 / .42), rgb(255 255 255 / 0) 55%),
    radial-gradient(90% 60% at 100% 100%, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 60%);
  opacity: .7;
}
[dir=rtl] #step.hero-full .hero-full-copy::before{
  background:
    linear-gradient(225deg, rgb(255 255 255 / .70) 0%, rgb(255 255 255 / .15) 30%, transparent 60%),
    radial-gradient(120% 70% at 82% 0%, rgb(255 255 255 / .42), rgb(255 255 255 / 0) 55%),
    radial-gradient(90% 60% at 0% 100%, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 60%);
}

#step.hero-full .sell{
  margin: 0;
  font: 400 1rem/1.4 var(--sans, system-ui);
  color: var(--blue, #17264e);
  letter-spacing: 0;
}
#step.hero-full .door-hours{ margin: 0; }
#step.hero-full .door-hours p{ margin: 0; }
#step.hero-full .status{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: #fff9ee;
  color: var(--blue, #17264e);
  font: 600 14px/1.3 var(--sans, system-ui);
  border: 1px solid rgba(224,211,190,.7);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
#step.hero-full .status .dot{
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--gold, #c0a06a);
  box-shadow: none;
}
#step.hero-full .status[data-state="open"] .dot{
  background: #4ccf8a;
  box-shadow: 0 0 0 3px rgba(76,207,138,.18);
}
#step.hero-full .status[data-state="after"] .dot,
#step.hero-full .status[data-state="before"] .dot{
  background: var(--earth, #8a7a62);
  box-shadow: none;
}
#step.hero-full h1{
  margin: 0;
  color: var(--ink, #1b1a2a);
  font: 450 clamp(2rem, 8vw, 3.1rem)/1.08 var(--serif, Georgia, serif);
  text-wrap: balance;
  text-shadow: none;
}
#step.hero-full h1 em{ font-style: italic; color: var(--gold, #c0a06a); }
#step.hero-full .hero-full-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: .35rem;
}
#step.hero-full .hero-full-actions .btn{ min-height: 48px; }
#step.hero-full .hero-full-actions .btn-line{
  color: var(--blue, #17264e);
  border-color: var(--blue, #17264e);
  background: transparent;
}

#step.hero-full .motion-btn{
  position: absolute;
  z-index: 4;
  top: calc(var(--hdr, 64px) + 8px);
  right: var(--g, 20px);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--ivory, #faf6ef);
  background: rgba(5,8,26,.42);
  border: 1px solid rgba(250,246,239,.28);
  border-radius: 999px;
  cursor: pointer;
}
#step.hero-full .motion-btn[hidden]{ display: none; }
#step.hero-full .motion-btn:hover,
#step.hero-full .motion-btn:focus-visible{
  background: rgba(5,8,26,.62);
  color: var(--gold-hi, #e6c27e);
}
#step.hero-full .motion-btn:focus-visible{
  outline: 2px solid var(--gold-hi, #e6c27e);
  outline-offset: 3px;
}
#step.hero-full .motion-btn svg{ width: 20px; height: 20px; fill: currentColor; }
html:not(.still) #step.hero-full .motion-btn .i-play{ display: none; }
html.still #step.hero-full .motion-btn .i-pause{ display: none; }
html.still #step.hero-full .hero-full-video,
html.still #step.hero-full .hero-full-ambient video,
html.motion-suspended #step.hero-full .hero-full-video,
html.motion-suspended #step.hero-full .hero-full-ambient video{
  visibility: hidden;
}

/* Welcome + lede, parked just under the hero (not in the card). */
.hero-follow{
  background: var(--ivory, #faf6ef);
  color: var(--ink, #1b1a2a);
  padding: 28px var(--g, 20px) 8px;
}
.hero-follow .wrap{
  width: min(var(--max, 1240px), calc(100% - 2 * var(--g, 20px)));
  margin-inline: auto;
}
.hero-follow .welcome{
  margin: 0 0 8px;
  font: 500 1.05rem/1.35 var(--serif, Georgia, serif);
  color: var(--blue, #17264e);
}
.hero-follow .lede{
  margin: 0;
  max-width: 46rem;
  font: 400 1rem/1.55 var(--sans, system-ui);
  color: var(--ink, #1b1a2a);
}

@media (min-width: 900px){
  #step.hero-full{
    min-height: 100vh;
    height: 100vh;
    padding: 0;
  }
  #step.hero-full .hero-full-ambient{ display: block; }
  #step.hero-full .hero-full-media{
    inset: auto;
    top: var(--hdr, 64px);
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--hdr, 64px));
    width: calc((100vh - var(--hdr, 64px)) * 9 / 16);
    max-width: 42vw;
  }
  #step.hero-full .hero-full-poster,
  #step.hero-full .hero-full-video{
    object-fit: cover;
    object-position: center center;
  }
  #step.hero-full .hero-full-copy{
    position: absolute;
    margin: 0;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: min(28rem, calc(100% - (100vh - var(--hdr, 64px)) * 9 / 16 - 96px));
    max-width: 28rem;
    padding: 32px 32px 34px;
  }
  #step.hero-full h1{ font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
  #step.hero-full .sell{ font-size: 1.05rem; }
  .hero-follow{ padding: 36px var(--g, 20px) 12px; }
  .hero-follow .lede{ font-size: 1.05rem; }

  /* RTL: card on the start edge (right), video flush to the end edge (left). */
  [dir=rtl] #step.hero-full .hero-full-media{
    right: auto;
    left: 0;
  }
  [dir=rtl] #step.hero-full .hero-full-copy{
    left: auto;
    right: 48px;
  }
}

[dir=rtl] #step.hero-full .motion-btn{
  right: auto;
  left: var(--g, 20px);
}
[dir=rtl] #step.hero-full .hero-full-copy{ align-items: flex-start; }

/* Fallback 1: no backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  #step.hero-full .hero-full-copy{ background: var(--hero-glass-solid); }
  #step.hero-full .hero-full-copy::before{ display: none; }
}
/* Fallback 2: reduced transparency / more contrast */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more){
  #step.hero-full .hero-full-copy{
    background: var(--hero-glass-solid);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border-color: var(--rule, #e0d3be);
  }
  #step.hero-full .hero-full-copy::before{ display: none; }
}
/* Fallback 3: low-end hook used on byshah.com */
html.glass-lite #step.hero-full .hero-full-copy{
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: var(--hero-glass-solid);
}
html.glass-lite #step.hero-full .hero-full-copy::before{ display: none; }

@media (prefers-reduced-motion: reduce){
  #step.hero-full .hero-full-video,
  #step.hero-full .hero-full-ambient video{ display: none; }
}
