/* Shared hero geometry. Load after both theme styles and light-hero.css.
   Theme changes paint and artwork only; every layout rule below is shared. */
.hero.hero-frame {
  /* Keep one outer inset; reserve the released bottom space in the stage
     so lowering the panel does not move the central heading. */
  --hero-proof-inset:var(--gutter);
  --hero-proof-old-bottom:clamp(60px,12svh,172px);
  --hero-proof-shift:calc(var(--hero-proof-old-bottom) - var(--hero-proof-inset));
  --hero-surface:#000;
  --hero-proof-surface:#161616;
  --hero-proof-border:rgb(255 255 255 / .18);
  --hero-proof-divider:rgb(255 255 255 / .18);
  --hero-proof-text:#e0e0e0;
  --hero-proof-muted:#b8b8b8;
  --hero-proof-shadow:0 8px 32px rgb(0 0 0 / .14);
}
html[data-theme="light"] .hero.hero-frame {
  --hero-surface:#fff;
  --hero-proof-surface:#fff;
  --hero-proof-border:rgb(255 255 255 / .9);
  --hero-proof-divider:rgb(0 0 0 / .12);
  --hero-proof-text:#333;
  --hero-proof-muted:#666;
  --hero-proof-shadow:0 8px 32px rgb(46 28 20 / .07);
}
html .page .hero.hero-frame {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  height:auto;
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  max-height:none;
  padding:0 0 var(--hero-proof-inset);
  overflow:clip;
  border-radius:0 0 clamp(24px,3vw,44px) clamp(24px,3vw,44px);
  background:var(--hero-surface);
}
html .page .hero.hero-frame::after,
html .hero.hero-frame .hero-frame-stage::after {
  content:none;
  background:none;
}
html .hero.hero-frame .hero-frame-stage {
  position:static;
  isolation:auto;
  overflow:visible;
  display:flex;
  flex:1 0 auto;
  align-items:center;
  justify-content:center;
  height:auto;
  min-height:0;
  max-height:none;
  padding:calc(var(--header-height,86px) + 34px) 24px calc(clamp(52px,8svh,96px) + var(--hero-proof-shift));
  background:transparent;
}
html .hero.hero-frame .hero-frame-art {
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:50% 100%;
  transform:none;
  filter:saturate(1.05) contrast(1.015);
  mask-image:none;
  -webkit-mask-image:none;
  pointer-events:none;
}
html .hero.hero-frame .hero-content {
  width:min(900px,58%);
  max-width:900px;
  margin:0;
}
html .hero.hero-frame .hero-proof {
  position:relative;
  inset:auto;
  z-index:1;
  flex:0 0 auto;
  display:grid;
  align-items:center;
  width:calc(100% - 2*var(--hero-proof-inset));
  max-width:none;
  margin:0 auto;
  padding:24px 28px;
  gap:28px;
  grid-template-columns:minmax(0,1fr) 218px;
  border:1px solid var(--hero-proof-border);
  border-radius:24px;
  color:var(--hero-proof-text);
  background:var(--hero-proof-surface);
  box-shadow:var(--hero-proof-shadow);
  /* A single opaque surface avoids blur/compositor seams at fractional zoom. */
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
html .hero.hero-frame .hero-proof>.benefits {
  position:static;
  inset:auto;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:center;
  background:transparent;
}
html .hero.hero-frame .hero-proof .benefit { min-width:0; gap:12px; }
html .hero.hero-frame .hero-proof .benefit img.benefit-icon { flex-shrink:0; }
html .hero.hero-frame .hero-proof .benefit h2 {
  font-size:14px;
  line-height:19px;
  font-weight:400;
  color:var(--hero-proof-text);
  overflow-wrap:anywhere;
  text-shadow:none;
}
html .hero.hero-frame .hero-proof .hero-ratings {
  min-width:0;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0 0 0 24px;
  border:0;
  border-left:1px solid var(--hero-proof-divider);
}
html .hero.hero-frame .hero-proof .ratings-caption {
  font-size:9px;
  line-height:14px;
  letter-spacing:1.2px;
  margin:0 0 8px;
  color:var(--hero-proof-muted);
}
html .hero.hero-frame .hero-proof .rating-items { gap:14px; }
html .hero.hero-frame .hero-proof .map-service {
  font-size:12px;
  white-space:nowrap;
  color:var(--hero-proof-text);
}
@container storefront (max-width:1100px) {
  html .hero.hero-frame .hero-content { width:66%; }
  html .hero.hero-frame .hero-proof>.benefits {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 24px;
  }
}
@container storefront (max-width:760px) {
  html .page .hero.hero-frame { --hero-proof-old-bottom:32px; }
  html .hero.hero-frame .hero-frame-stage {
    align-items:center;
    min-height:calc(440px + var(--hero-proof-shift));
    padding:calc(var(--header-height,125px) + 34px) 22px calc(64px + var(--hero-proof-shift));
  }
  html .hero.hero-frame .hero-frame-art {
    inset:auto auto 0 50%;
    width:max(145%,760px);
    height:auto;
    transform:translateX(-50%);
    object-fit:contain;
    mask-image:linear-gradient(transparent,#000 12%);
    -webkit-mask-image:linear-gradient(transparent,#000 12%);
  }
  html .hero.hero-frame .hero-content { width:100%; max-width:510px; }
  html .hero.hero-frame .hero-proof {
    grid-template-columns:minmax(0,1fr);
    padding:22px;
    gap:20px;
    border-radius:22px;
  }
  html .hero.hero-frame .hero-proof>.benefits { gap:20px 16px; }
  html .hero.hero-frame .hero-proof .benefit { gap:10px; }
  html .hero.hero-frame .hero-proof .benefit h2 { font-size:13px; line-height:18px; }
  html .hero.hero-frame .hero-proof .hero-ratings {
    padding:16px 0 0;
    border-left:0;
    border-top:1px solid var(--hero-proof-divider);
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px 16px;
  }
  html .hero.hero-frame .hero-proof .ratings-caption { margin:0; }
}
@container storefront (max-width:400px) {
  html .hero.hero-frame .hero-proof { padding:20px 16px; }
  html .hero.hero-frame .hero-proof>.benefits { gap:18px 12px; }
  html .hero.hero-frame .hero-proof .benefit { gap:8px; }
  html .hero.hero-frame .hero-proof .benefit h2 { font-size:12px; line-height:17px; }
  html .hero.hero-frame .hero-proof .hero-ratings { flex-wrap:wrap; }
}
@container storefront (max-width:360px) {
  html .hero.hero-frame .hero-frame-stage {
    padding-inline:17px;
    padding-top:calc(var(--header-height,123px) + 28px);
  }
}
@container storefront (max-width:300px) {
  html .hero.hero-frame .hero-proof>.benefits { grid-template-columns:minmax(0,1fr); }
}
