/* Hero section (block bedri/hero, bedri-core; a theme pattern until 2 Nov): .hero*, .hk*, .hw.
   Carved from design/style.css (concept approved 23 Oct 2026) in source order; see build/carve/LEDGER.md. */

/* ---------- Hero (contained, no photos) ---------- */
.hero { padding: calc(76px + clamp(2rem, 5vh, 3.5rem)) 0 clamp(2.5rem, 5vw, 4rem); background: radial-gradient(55% 45% at 50% 0%, var(--glow), transparent 70%), var(--bg); }
.hero-head { text-align: center; margin-bottom: clamp(1.75rem, 4vh, 3rem); }
.hero-title {
  font-size: clamp(2.2rem, 1rem + 3.6vw, 4.4rem);
  line-height: 1.02;
  max-width: 21ch; margin-inline: auto;
  text-wrap: balance;
}
.hw { display: inline-block; }

/* ---------- Motion initial states (only with JS, only with motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hw { opacity: 0; transform: translateY(.35em); filter: blur(8px); }
  /* The headline is a plain core/heading; hero.js splits its words into .hw spans. Until then it stays hidden, so
     it never flashes in before its reveal. Without JS, without GSAP or with reduced motion there is no .js: visible. */
  .js .hero-title:not(:has(.hw)) { opacity: 0; }
}

/* No ambient glows */
.hero { background: var(--bg); }

/* =====================================================
   Revision 7 Oct: centred hero
   ===================================================== */
.hero-head { display: block; text-align: center; margin-bottom: clamp(2.25rem, 4.5vh, 3.25rem); }
.hero-title { margin: 0 auto; max-width: 20ch; font-size: clamp(2.4rem, 1rem + 4vw, 5rem); line-height: .98; }

/* Display headings: one shared line-height with room for the ascenders and descenders */
.hero-title { line-height: 1.05; }
.hero-title { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.3rem); }

/* Hero spacing: more air under the nav */
.hero { padding-top: calc(76px + clamp(3.25rem, 9vh, 6rem)); }
.hero-head { margin-bottom: clamp(3rem, 7vh, 4.5rem); }
@media (max-width: 899px) { .hero { padding-top: calc(76px + 2.5rem); } .hero-head { margin-bottom: 2.25rem; } }

/* SEO: the real H1 is a small line above the big headline (which is an H2) */
.hero-kicker {
  margin: 0 auto 1.25rem; font-family: var(--font-text); font-weight: 500; letter-spacing: 0;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.4; color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) { .js .hero-kicker { opacity: 0; } }
.hero-kicker .hk-brand { color: var(--ink); font-weight: 600; }
.hero-kicker .hk-sep { margin: 0 .3em; }

/* --- Hero (20 Oct, Jannik): the headline, the two CTAs from the header and the client logos as a row of tiles
   (after the client's Framer v2) --- */
.hero { padding-top: calc(76px + clamp(2.5rem, 9vh, 6rem)); padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.hero-kicker { margin-bottom: .6rem; }
.hero-title { font-size: clamp(2.5rem, 1rem + 4vw, 4.9rem); }
.hero-head { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: clamp(1.75rem, 4.5vh, 2.75rem); }

/* --- Hero: the rating shares the kicker line, so it costs no height above the fold --- */
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 1.1rem; margin: 0 auto .6rem; }
.hero-meta .hero-kicker { margin: 0; }

/* with the cards gone the headline is bigger, so the kicker line gets more air above it */
.hero-meta { margin-bottom: clamp(.9rem, 2.2vh, 1.5rem); }

/* --- The marked phrase in the headline (bedri/hero's 'mark', 10 Nov: "broen"): the subpage hero's accent underline,
   .page-hero-mark (its stroke is in sections/page-hero.css). Hidden at the start of the intro, hero.js draws it in;
   without .js or with reduced motion it is simply there. --- */
@media (prefers-reduced-motion: no-preference) { .js .hero .page-hero-mark { --mark-draw: 0; } }

