/* ============================================================
   INTEBO v2 — Chrome (header, nav, footer)
   White, professional, photo-first.
   ============================================================ */

/* === Top utility bar ===
   Always solid dark, including over the hero photo — only the logo/nav/icons
   bar below it goes transparent on the front page. */
.topbar {
  background: var(--ink-900);
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  /* padding-block only — a shorthand here would wipe out .container's side padding */
  padding-block: 0.5rem;
}
.topbar a { color: inherit; transition: color var(--dur); }
.topbar a:hover { color: var(--ember); }
.topbar__left, .topbar__right { display: flex; gap: 1.5rem; align-items: center; }
.topbar__claim { color: rgba(255,255,255,0.55); font-style: italic; }
@media (max-width: 760px) { .topbar__right { display: none; } }

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-100);
  position: sticky; top: 0; z-index: 50;
}
/* Single row: logo | nav | icons. The nav used to sit on its own row below,
   which cost a whole extra band of chrome height. */
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-block: 0.75rem;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; }

/* Icon-only actions — search opens the full-page overlay, so there is no
   inline search field in the header at any breakpoint. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto; /* pins the group to the right of the nav */
  flex-shrink: 0;
}
.header-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  color: var(--ink-900);
  font-size: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur), background var(--dur);
  position: relative;
}
.header-action:hover { color: var(--ember); }
.header-action--cart {
  background: var(--ink-900);
  color: #fff;
  width: auto;
  gap: 0.5rem;
  padding: 0 0.85rem;
  margin-left: 0.35rem;
}
.header-action--cart:hover { background: var(--ember); color: #fff; }
.header-action__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--ember);
  color: #fff;
  padding: 0 5px;
}
.header-action--cart .header-action__count { background: #fff; color: var(--ink-900); }

/* === Full-page search overlay ===
   Opened by [data-search-open]; same component on mobile and desktop.
   `hidden` is removed by JS before the .open class lands, so the fade runs. */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* block, not grid: an auto-sized grid column takes its width from the
     panel's content and would overflow a narrow viewport. */
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.search-overlay[hidden] { display: none; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(16,16,15,0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.search-overlay__panel {
  position: relative;
  width: 100%;
  background: #fff;
  padding: var(--s-7) var(--s-5) var(--s-6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(-14px);
  transition: transform var(--dur) var(--ease);
}
.search-overlay.open .search-overlay__panel { transform: translateY(0); }
.search-overlay__close {
  position: absolute; top: 0.9rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  color: var(--ink-900);
  background: none; border: 0; cursor: pointer;
}
.search-overlay__close:hover { color: var(--ember); }
.search-overlay__form {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink-900);
}
.search-overlay__icon { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }
.search-overlay__input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink-900);
}
.search-overlay__input::placeholder { color: var(--ink-400); }
.search-overlay__submit {
  flex-shrink: 0;
  padding: 0.65rem 1.3rem;
  background: var(--ember);
  color: #fff;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--dur);
}
.search-overlay__submit:hover { background: var(--ink-900); }
.search-overlay__hints {
  width: 100%;
  max-width: 780px;
  margin: var(--s-5) auto 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.search-overlay__hints-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.search-overlay__hints a {
  font-size: 0.82rem;
  color: var(--ink-800);
  background: var(--bg-alt);
  padding: 0.4rem 0.75rem;
  transition: background var(--dur), color var(--dur);
}
.search-overlay__hints a:hover { background: var(--ink-900); color: #fff; }

/* (Mobile hamburger + drawer handled by responsive-v2.css + mobile-v2.js) */

/* === Primary nav — inline in the header row === */
.nav-primary {
  min-width: 0; /* lets the row shrink instead of overflowing the container */
}
.nav-primary__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* position:static so .megamenu resolves against .site-header and drops below
   the whole bar — anchoring it to the item would open it mid-row. */
.nav-primary__item { position: static; }
.nav-primary__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-800);
  position: relative;
  transition: color var(--dur);
}
.nav-primary__link::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.45rem;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-primary__link:hover,
.nav-primary__item--active .nav-primary__link { color: var(--ember); }
.nav-primary__link:hover::after,
.nav-primary__item--active .nav-primary__link::after { transform: scaleX(1); }
.nav-primary__chevron { font-size: 0.55rem; opacity: 0.6; }
.nav-primary__item--accent .nav-primary__link {
  color: var(--ember);
  font-weight: 600;
}

/* Mega menu — anchored to .site-header (the nearest positioned ancestor now
   that the items are static), so it drops below the full bar and centres. */
.megamenu {
  position: absolute;
  top: 100%; left: 50%;
  width: min(1180px, 94vw);
  background: #fff;
  border: 1px solid var(--line-100);
  border-top: 2px solid var(--ember);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  padding: var(--s-6);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.3fr;
  gap: var(--s-6);
}
.nav-primary__item:hover .megamenu,
.nav-primary__item:focus-within .megamenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.megamenu__col-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.45rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-100);
}
.megamenu__col-title i { color: var(--ember); font-size: 0.8rem; }
.megamenu__links { display: flex; flex-direction: column; gap: 0.05rem; margin-bottom: 0.6rem; }
.megamenu__links a {
  font-size: 0.84rem;
  color: var(--text);
  padding: 0.32rem 0;
  transition: color var(--dur);
}
.megamenu__links a:hover { color: var(--ember); }
.megamenu__all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: auto;
}
.megamenu__all:hover { color: var(--ember); }
.megamenu__featured {
  background: var(--bg-alt);
  display: flex; flex-direction: column;
}
.megamenu__featured-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2b2a28 0%, #1c1c1b 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.megamenu__featured-body { padding: 0.9rem 1rem 1rem; }
.megamenu__featured-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 0.3rem;
}
.megamenu__featured h4 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.megamenu__featured p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.7rem; line-height: 1.5; }

/* === Footer === */
/* === Footer ===
   Zones stacked top to bottom: statement CTA → main grid → bottom bar →
   oversized wordmark. Hairlines separate the zones; there are no boxes. */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden; /* clips the wordmark bleeding off the bottom edge */
}

/* --- Statement / CTA --- */
.footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  /* This element is also a .container — the padding shorthand would zero out
     its side padding and the CTA would sit flush to the viewport edges while
     the rest of the footer stayed inset. */
  padding-block: var(--s-9);
}
.footer-cta .eyebrow { color: var(--ember); }
.footer-cta__title {
  margin-top: var(--s-3);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
}
.footer-cta__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.footer-cta__action i { transition: transform var(--dur) var(--ease); }
.footer-cta__action:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.footer-cta__action:hover i { transform: translateX(5px); }

/* --- Main grid --- */
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: var(--s-7);
  padding: var(--s-9) 0 var(--s-8);
}

.footer-brand img {
  height: 52px; width: auto;
  filter: brightness(0) invert(1) opacity(0.95);
}
.footer-brand__desc {
  margin-top: 1.3rem;
  font-size: 0.95rem;
  max-width: 36ch;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.footer-contact {
  margin-top: 1.6rem;
  display: flex; flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.footer-contact a { color: #fff; display: inline-flex; align-items: center; gap: 0.7rem; transition: color var(--dur); }
.footer-contact a:hover { color: var(--ember); }
.footer-contact i { color: var(--ember); width: 16px; font-size: 0.85rem; }

.footer-col h4,
.footer-salon h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  transition: color var(--dur), transform var(--dur) var(--ease);
  width: fit-content;
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }

/* --- Showroom --- */
.footer-salon__address {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  transition: color var(--dur);
}
.footer-salon__address:hover { color: var(--ember); }
.footer-salon__address i { color: var(--ember); font-size: 0.85rem; margin-top: 0.25rem; }
.footer-hours {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  font-size: 0.88rem;
}
.footer-hours dt { color: rgba(255,255,255,0.55); }
.footer-hours dd { color: #fff; font-variant-numeric: tabular-nums; text-align: right; margin: 0; }

/* --- Bottom bar --- */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom__legal { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-bottom__legal a { transition: color var(--dur); }
.footer-bottom__legal a:hover { color: var(--ember); }
/* „Ustawienia cookies" musi być <button> (otwiera panel zgód, nie prowadzi
   pod adres), ale w stopce ma wyglądać jak sąsiednie linki. */
.footer-bottom__consent {
  border: 0; background: none; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  transition: color var(--dur);
}
.footer-bottom__consent:hover { color: var(--ember); }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  transition: all var(--dur);
  color: rgba(255,255,255,0.7);
}
.footer-socials a:hover { background: var(--ember); color: #fff; border-color: var(--ember); }

/* --- Oversized wordmark ---
   Sits below the bottom bar and is clipped by the footer's overflow, so only
   the upper part of the letterforms shows. Decorative only. */
.footer-wordmark {
  line-height: 0.74;
  text-align: center;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.22em;
  overflow: hidden;
}
.footer-wordmark span {
  display: block;
  font-size: clamp(5rem, 19vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.045);
  white-space: nowrap;
}

/* ============================================================
   SHARED PAGE COMPONENTS — single source of truth.
   Loaded on every page (chrome-v2.css). Do NOT redefine these
   in content-v2.css / listing-v2.css / page <style> blocks.
   ============================================================ */

/* === Breadcrumbs ===
   Markup contract (full-width bar, separator line under it):
   <div class="breadcrumbs"><div class="container">
     <ol class="breadcrumbs__list">
       <li><a href="…">Strona główna</a></li>
       <li class="breadcrumbs__sep"><i class="fa-solid fa-chevron-right"></i></li>
       <li class="breadcrumbs__current">Bieżąca</li>
     </ol>
   </div></div>                                                            */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-100);
}
.breadcrumbs__list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: 0; padding: 0; list-style: none;
}
.breadcrumbs__list a { color: var(--text-muted); transition: color var(--dur); }
.breadcrumbs__list a:hover { color: var(--ember); }
.breadcrumbs__sep { color: var(--ink-300); font-size: 0.7rem; display: inline-flex; align-items: center; }
.breadcrumbs__current { color: var(--ink-900); font-weight: 500; }

/* === Page hero ===
   Markup contract:
   <section class="page-hero [--light|--photo]"><div class="container">
     <div class="page-hero__inner">
       <span class="eyebrow">Eyebrow</span>
       <h1>Tytuł.</h1>
       <p class="page-hero__sub">Lead.</p>
     </div>
   </div></section>                                                        */
.page-hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.page-hero--photo { background: linear-gradient(135deg, #2b2a28 0%, #1c1c1b 100%); }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,27,0.5) 0%, rgba(28,28,27,0.85) 100%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 {
  font-size: var(--t-h1);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #fff;
  margin-top: var(--s-3);
  line-height: 1.08;
}
.page-hero__sub {
  margin-top: var(--s-4);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  max-width: 60ch;
}
.page-hero .eyebrow { color: var(--ember); }

/* Light variant — sits on paper background, dark text. For index/content
   pages (Marki, Realizacje, Usługi) that follow a breadcrumb bar. */
.page-hero--light {
  background: transparent;
  color: var(--text);
  padding: var(--s-6) 0 var(--s-5);
  overflow: visible;
}
.page-hero--light h1 { color: var(--ink-900); }
.page-hero--light .page-hero__sub { color: var(--text-muted); font-size: 1rem; max-width: 680px; }

/* === Pre-footer CTA band === one component, two looks:
   .cta-band (default ink) and .cta-band--photo (dark photo splash). */
.cta-band { background: var(--ink-900); color: #fff; }
.cta-band__inner {
  padding: var(--s-8) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
}
.cta-band__text { max-width: 62ch; }
.cta-band h2 { color: #fff; font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.018em; }
.cta-band h3 { color: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.012em; }
.cta-band p { color: rgba(255,255,255,0.72); margin-top: var(--s-3); font-size: 1.02rem; line-height: 1.55; }
.cta-band .eyebrow { color: var(--ember); }
.cta-band__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 760px) { .cta-band__actions { width: 100%; } .cta-band__actions .btn { flex: 1; justify-content: center; } }

/* ============================================================
   HERO ENTRANCE — "ignition"
   The page opens as an unlit room and lights up: the photo rises out of
   black while settling from a slow push-in, the ember glow blooms, then the
   headline lifts line by line and the rest staggers in behind it.

   .intebo-intro       — pre-state, set on <html> in the head (hero-intro.js)
   .intebo-intro--run  — added once the DOM is ready; starts everything.
   Reduced-motion users never get the class, so they see the finished hero.
   ============================================================ */

/* Shared easing: a long, decelerating settle rather than a bouncy pop. */
:root { --intro-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* --- Pre-state, scoped to "not running yet" ---
   Scoping with :not(--run) lets every animation below use fill-mode
   `backwards` instead of `both`: the from-state covers the delay, and once
   the animation ends the element simply returns to its natural styles. With
   `both` the final keyframe stays pinned forever, which locked the header's
   transform and broke its scroll-state transition. Only the photo keeps
   `forwards`, because its end state (the pushed-in scale) is not natural. */
.intebo-intro:not(.intebo-intro--run) .hero__photo { opacity: 0; }
.intebo-intro:not(.intebo-intro--run) .hero__photo::before { opacity: 0; }
.intebo-intro:not(.intebo-intro--run) .hero .eyebrow,
.intebo-intro:not(.intebo-intro--run) .hero__sub,
.intebo-intro:not(.intebo-intro--run) .hero__actions,
.intebo-intro:not(.intebo-intro--run) .hero__cue { opacity: 0; }
.intebo-intro:not(.intebo-intro--run) .hero__title { visibility: hidden; }
.intebo-intro:not(.intebo-intro--run) .topbar,
.intebo-intro:not(.intebo-intro--run) .site-header { opacity: 0; }

/* --- Run --- */
/* Two separate curves on purpose.
   The shared --intro-ease (easeOutQuint) is heavily front-loaded — on opacity
   it pushed the photo to ~55% within 300ms, which reads as the image popping
   in rather than emerging. The dissolve therefore gets a symmetric S-curve so
   it builds evenly, while the motion keeps a long decelerating push that runs
   on past the fade, so the frame is still drifting toward the viewer once the
   copy has landed. */
.intebo-intro--run .hero__photo {
  animation:
    intro-photo-fade 2600ms cubic-bezier(0.37, 0, 0.63, 1) forwards,
    intro-photo-push 3600ms cubic-bezier(0.16, 0.6, 0.28, 1) forwards;
}
/* Ember glow blooms just after the photo starts resolving. */
.intebo-intro--run .hero__photo::before {
  animation: intro-glow 2000ms cubic-bezier(0.37, 0, 0.63, 1) 500ms backwards;
}
.intebo-intro--run .hero__title-line__inner {
  /* --line is set per line by hero-intro.js, so each line trails the one above. */
  animation: intro-line 1000ms var(--intro-ease) calc(560ms + var(--line) * 110ms) backwards;
}
.intebo-intro--run .hero .eyebrow {
  animation: intro-rise 900ms var(--intro-ease) 480ms backwards;
}
.intebo-intro--run .hero__sub {
  animation: intro-rise 900ms var(--intro-ease) 980ms backwards;
}
.intebo-intro--run .hero__actions {
  animation: intro-rise 900ms var(--intro-ease) 1120ms backwards;
}
.intebo-intro--run .topbar {
  animation: intro-fade 800ms ease-out 220ms backwards;
}
.intebo-intro--run .site-header {
  animation: intro-drop 900ms var(--intro-ease) 260ms backwards;
}
.intebo-intro--run .hero__cue {
  animation: intro-rise 900ms var(--intro-ease) 1500ms backwards;
}
/* Stats panel (desktop only — mobile-v2.js parks it in the hero above 1100px).
   The frame dissolves first, then the tiles come up one after another, so the
   panel assembles instead of appearing whole. No :not(--run) pre-state needed:
   the class arrives after the intro has started, and `backwards` fill holds the
   from-state through each delay. */
.intebo-intro--run .stats-band--in-hero {
  animation: intro-fade 900ms var(--intro-ease) 1180ms backwards;
}
.intebo-intro--run .stats-band--in-hero .stat-tile {
  animation: intro-rise 800ms var(--intro-ease) backwards;
}
.intebo-intro--run .stats-band--in-hero .stat-tile:nth-child(1) { animation-delay: 1280ms; }
.intebo-intro--run .stats-band--in-hero .stat-tile:nth-child(2) { animation-delay: 1390ms; }
.intebo-intro--run .stats-band--in-hero .stat-tile:nth-child(3) { animation-delay: 1500ms; }
.intebo-intro--run .stats-band--in-hero .stat-tile:nth-child(4) { animation-delay: 1610ms; }

@keyframes intro-photo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Push in, not pull back: the frame draws toward the viewer. */
@keyframes intro-photo-push {
  from { transform: scale(1); }
  to   { transform: scale(1.055); }
}
@keyframes intro-glow {
  from { opacity: 0; transform: scale(0.65); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes intro-line {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes intro-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes intro-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Headline line masks (spans injected by hero-intro.js).
   The mask needs vertical slack or Polish diacritics and descenders get
   clipped — padding adds it, the negative margin takes the space back. */
.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero__title-line__inner { display: block; }

/* --- Scroll cue --- */
.hero__cue {
  position: absolute;
  right: var(--s-5);
  bottom: var(--s-6);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur);
}
.hero__cue-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
  transition: color var(--dur);
}
.hero__cue:hover .hero__cue-label,
.hero__cue:focus-visible .hero__cue-label { color: #fff; }
.hero__cue:hover .hero__cue-rail,
.hero__cue:focus-visible .hero__cue-rail { background: rgba(255,255,255,0.4); }
.hero__cue-rail {
  position: relative;
  width: 1px;
  height: 54px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
}
.hero__cue-dot {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 18px;
  background: var(--ember);
  animation: cue-run 2100ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-run {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue-dot { animation: none; }
}

/* ============================================================
   HOME page sections
   ============================================================ */

/* === HERO — full-bleed photo with overlay === */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  background: var(--ink-900);
  overflow: hidden;
  color: #fff;
  display: flex; align-items: flex-end;
}
.hero__photo {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3a3633 0%, #1c1c1b 60%, #0a0908 100%);
  z-index: 1;
}
.hero__photo::before {
  /* warm ember glow simulating fire light */
  content: "";
  position: absolute;
  left: 12%; bottom: 0;
  width: 55%; height: 60%;
  background: radial-gradient(ellipse at 30% 100%, rgba(192,57,43,0.45) 0%, rgba(192,57,43,0.18) 30%, rgba(192,57,43,0) 60%);
  filter: blur(20px);
}
.hero__photo::after {
  /* darken bottom for legibility */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%);
}
.hero__photo-hint {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 3;
}
.hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: var(--s-9) 0 var(--s-8);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: end;
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__title {
  font-size: var(--t-display);
  font-weight: 700;
  text-transform: uppercase;
  /* Uppercase needs the tight display tracking opened back up, or the caps
     jam together at this size. */
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 16ch;
}
.hero__title .accent { color: var(--ember); }
.hero__sub {
  margin-top: var(--s-5);
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}
.hero__actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* .hero__meta / .hero-meta__* removed — the stats moved out of the hero into
   the standalone .stats-band section (home-v2.css). */
.hero__caption {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 4;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero__caption b { color: rgba(255,255,255,0.9); font-weight: 600; }

/* === Service strip === */
.service-strip {
  background: var(--ink-900);
  color: rgba(255,255,255,0.85);
}
.service-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1rem 0;
}
@media (max-width: 760px) { .service-strip__inner { grid-template-columns: repeat(2, 1fr); } }
.service-strip__item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem var(--s-4);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.service-strip__item:last-child { border-right: 0; }
.service-strip__item i { color: var(--ember); font-size: 1.1rem; flex-shrink: 0; }
.service-strip__item .lbl { font-weight: 600; font-size: 0.88rem; color: #fff; display: block; }
.service-strip__item .sub { font-size: 0.76rem; color: rgba(255,255,255,0.55); display: block; }
