/* Hero patterns. One skeleton (assets/hero.html), thirteen looks, selected by
   [data-hero]. This is a layout layer, not a brand layer — it reuses the preset
   sheet's --accent/--ink/--surface/--font-* variables, so it needs no
   substitution and is copied as-is with no placeholders. */

#hero{position:relative;isolation:isolate;overflow:hidden;
  min-height:clamp(28rem,62vh,44rem);display:flex;padding:clamp(2rem,6vw,5rem)}
#hero .hero-img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:-2;border-radius:0}
/* The scrim. Every pattern re-declares this; none may omit it without checking
   contrast — light text on an unscrimmed photo is a WCAG failure. */
#hero::before{content:"";position:absolute;inset:0;z-index:-1}
#hero .hero-copy{position:relative;max-width:46rem;display:flex;
  flex-direction:column;gap:.9rem;justify-content:center}
#hero .hero-eyebrow{margin:0;font-size:.82rem;letter-spacing:.16em;
  text-transform:uppercase;opacity:.9}
#hero h1{margin:0}
#hero .hero-sub{margin:0;font-size:clamp(1rem,1.5vw,1.2rem);max-width:38rem;opacity:.92}
#hero .hero-ctas{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:.6rem}
#hero .hero-trust{margin:.4rem 0 0;font-size:.82rem;opacity:.8}
#hero .hero-stats,#hero .hero-shelf{display:none}

/* Light-on-dark is the default; patterns that invert say so explicitly. */
#hero{color:var(--surface)}
#hero h1{color:inherit}
#hero .btn{border-color:currentColor}

/* 1. Dark vignette, italic accent. */
#hero[data-hero="full-bleed-dark"]::before{
  background:radial-gradient(120% 90% at 50% 40%,
    color-mix(in srgb,var(--ink) 35%,transparent) 0%,
    color-mix(in srgb,var(--ink) 82%,transparent) 100%)}
#hero[data-hero="full-bleed-dark"] em{font-style:italic;color:var(--accent-2)}

/* 2. High-key photo, dark text. */
#hero[data-hero="full-bleed-light"]{color:var(--ink)}
#hero[data-hero="full-bleed-light"]::before{
  background:color-mix(in srgb,var(--surface) 58%,transparent)}

/* 3. Diagonal scrim, left rail, dual CTA — the general default. */
#hero[data-hero="full-bleed-editorial-left"]{align-items:center}
#hero[data-hero="full-bleed-editorial-left"]::before{
  background:linear-gradient(100deg,
    color-mix(in srgb,var(--ink) 88%,transparent) 0%,
    color-mix(in srgb,var(--ink) 55%,transparent) 48%,
    transparent 78%)}
#hero[data-hero="full-bleed-editorial-left"] .hero-copy{max-width:34rem}

/* 4. Flat scrim, centered stack, single pill CTA. */
#hero[data-hero="full-bleed-centered-marquee"]{align-items:center;justify-content:center;
  text-align:center}
#hero[data-hero="full-bleed-centered-marquee"]::before{
  background:color-mix(in srgb,var(--ink) 52%,transparent)}
#hero[data-hero="full-bleed-centered-marquee"] .hero-copy{align-items:center}
#hero[data-hero="full-bleed-centered-marquee"] .btn{border-radius:999px;
  background:var(--surface);color:var(--ink);border-color:var(--surface)}

/* 5. Bottom gradient, copy pinned to the floor. */
#hero[data-hero="full-bleed-bottom-anchored"]{align-items:flex-end;
  min-height:clamp(24rem,54vh,38rem)}
#hero[data-hero="full-bleed-bottom-anchored"]::before{
  background:linear-gradient(to top,
    color-mix(in srgb,var(--ink) 90%,transparent) 0%,
    color-mix(in srgb,var(--ink) 40%,transparent) 45%, transparent 75%)}

/* 6. No scrim — an elevated plate carries the copy instead. */
#hero[data-hero="full-bleed-floating-plate"]{align-items:center;color:var(--ink)}
#hero[data-hero="full-bleed-floating-plate"]::before{background:transparent}
#hero[data-hero="full-bleed-floating-plate"] .hero-copy{background:var(--surface);
  padding:clamp(1.5rem,3vw,2.75rem);border-radius:16px;max-width:38rem;
  box-shadow:0 18px 50px -12px color-mix(in srgb,var(--ink) 45%,transparent)}

/* 7. Side scrim with an inline capture field. */
#hero[data-hero="full-bleed-capture-form"]{align-items:center}
#hero[data-hero="full-bleed-capture-form"]::before{
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--ink) 86%,transparent) 0%,
    color-mix(in srgb,var(--ink) 50%,transparent) 55%, transparent 85%)}
#hero[data-hero="full-bleed-capture-form"] .hero-ctas{align-items:stretch}
#hero[data-hero="full-bleed-capture-form"] .hero-ctas input{padding:.8rem 1rem;
  border:0;border-radius:6px;min-width:15rem;font:inherit}

/* 8. Top + bottom scrim with a three-column stat rail. */
#hero[data-hero="full-bleed-stat-rail"]{align-items:center;flex-direction:column;
  justify-content:center}
#hero[data-hero="full-bleed-stat-rail"]::before{
  background:linear-gradient(to bottom,
    color-mix(in srgb,var(--ink) 75%,transparent) 0%,
    color-mix(in srgb,var(--ink) 45%,transparent) 50%,
    color-mix(in srgb,var(--ink) 80%,transparent) 100%)}
#hero[data-hero="full-bleed-stat-rail"] .hero-stats{display:grid;
  grid-template-columns:repeat(3,1fr);gap:1.5rem;width:100%;max-width:56rem;
  margin-top:2.5rem;padding-top:1.5rem;
  border-top:1px solid color-mix(in srgb,var(--surface) 45%,transparent);
  text-align:center;position:relative}

/* 9. Aurora gradient over a dark scrim, centered italic subhead. */
#hero[data-hero="full-bleed-aurora-wash"]{align-items:center;justify-content:center;
  text-align:center;min-height:clamp(24rem,54vh,38rem)}
#hero[data-hero="full-bleed-aurora-wash"]::before{
  background:linear-gradient(135deg,
      color-mix(in srgb,var(--accent) 55%,transparent) 0%,
      color-mix(in srgb,var(--accent-2) 45%,transparent) 100%),
    color-mix(in srgb,var(--ink) 62%,transparent)}
#hero[data-hero="full-bleed-aurora-wash"] .hero-copy{align-items:center}
#hero[data-hero="full-bleed-aurora-wash"] .hero-sub{font-family:var(--font-display);
  font-style:italic}

/* 10. Brand wash, copy bottom-right. */
#hero[data-hero="full-bleed-teal-wash-right"]{align-items:flex-end;
  justify-content:flex-end;text-align:right}
#hero[data-hero="full-bleed-teal-wash-right"]::before{
  background:color-mix(in srgb,var(--accent) 72%,transparent);
  mix-blend-mode:multiply}
#hero[data-hero="full-bleed-teal-wash-right"] .hero-copy{align-items:flex-end}
#hero[data-hero="full-bleed-teal-wash-right"] .hero-ctas{justify-content:flex-end}

/* 11. Inset rounded frame — the photo does not bleed to the edge. */
#hero[data-hero="full-bleed-inset-frame"]{padding:24px;align-items:center}
#hero[data-hero="full-bleed-inset-frame"] .hero-img{inset:24px;width:auto;height:auto;
  border-radius:20px}
#hero[data-hero="full-bleed-inset-frame"]::before{inset:24px;border-radius:20px;
  background:linear-gradient(95deg,
    color-mix(in srgb,var(--ink) 80%,transparent) 0%,
    color-mix(in srgb,var(--ink) 35%,transparent) 65%, transparent 90%)}
#hero[data-hero="full-bleed-inset-frame"] .hero-copy{padding:clamp(1rem,3vw,2.5rem)}

/* 12. Light scrim, top-left sans headline, eyebrow only — no CTA. */
#hero[data-hero="full-bleed-sans-minimal-scrim"]{align-items:flex-start;
  color:var(--ink);min-height:clamp(24rem,54vh,38rem)}
#hero[data-hero="full-bleed-sans-minimal-scrim"]::before{
  background:linear-gradient(160deg,
    color-mix(in srgb,var(--surface) 60%,transparent) 0%,
    color-mix(in srgb,var(--surface) 20%,transparent) 70%, transparent 100%)}
#hero[data-hero="full-bleed-sans-minimal-scrim"] h1{font-family:var(--font-body);
  font-weight:700;letter-spacing:-0.02em}
#hero[data-hero="full-bleed-sans-minimal-scrim"] .hero-ctas{display:none}

/* 13. Unobscured photo above, solid shelf beneath. */
#hero[data-hero="full-bleed-shelf"]{flex-direction:column;padding:0;
  justify-content:flex-end}
#hero[data-hero="full-bleed-shelf"]::before{background:transparent}
#hero[data-hero="full-bleed-shelf"] .hero-img{position:relative;height:clamp(16rem,40vh,26rem)}
#hero[data-hero="full-bleed-shelf"] .hero-copy{display:none}
#hero[data-hero="full-bleed-shelf"] .hero-shelf{display:block;background:var(--surface);
  color:var(--ink);padding:clamp(1.5rem,4vw,3rem);width:100%}

@media (max-width:640px){
  #hero{min-height:auto;padding:2.5rem 1.25rem}
  #hero[data-hero="full-bleed-stat-rail"] .hero-stats{grid-template-columns:1fr;gap:1rem}
  #hero[data-hero="full-bleed-teal-wash-right"]{text-align:left;justify-content:flex-start}
  #hero[data-hero="full-bleed-teal-wash-right"] .hero-copy{align-items:flex-start}
  #hero[data-hero="full-bleed-inset-frame"]{padding:12px}
  #hero[data-hero="full-bleed-inset-frame"] .hero-img,
  #hero[data-hero="full-bleed-inset-frame"]::before{inset:12px}
}
