/* ==========================================================================
   2 · Hero — full-screen render, slogan, CTAs, glass meta strip;
   pinned cinematic exit (hero.js).
   ========================================================================== */
.s-hero { position: relative; }
.s-hero__stage {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 9rem 0 clamp(1.5rem, 4vh, 2.5rem);
  overflow: hidden;
}
.s-hero__frame {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  clip-path: inset(0% 0% 0% 0% round 0px);
  will-change: clip-path;
}
.s-hero__media { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.s-hero__picture { position: absolute; inset: 0; }
.s-hero__picture img { will-change: transform; }
/* One vertical shade in the live ground tone: the image dissolves into the page. */
.s-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(var(--page-bg-rgb), 0.96) 0%,
    rgba(var(--page-bg-rgb), 0.78) 22%,
    rgba(var(--page-bg-rgb), 0.42) 50%,
    rgba(var(--page-bg-rgb), 0.08) 76%,
    rgba(var(--page-bg-rgb), 0.34) 100%);
}

.s-hero__inner { position: relative; z-index: 2; color: var(--c-paper); }
.s-hero__eyebrow { color: rgba(247, 243, 236, 0.86); }
.s-hero__title { margin-top: 1.4rem; max-width: 14ch; }
.s-hero__line { display: block; }
.s-hero__line--alt { padding-left: 0; }   /* client 14.11.2026: second line aligned with the first */

.s-hero__actions { margin-top: clamp(1.75rem, 4vh, 2.75rem); }
.s-hero__actions-inner { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.s-hero .btn--primary { --btn-bg: var(--c-paper); --btn-fg: var(--c-ink); --btn-fill: var(--c-gold); --btn-fill-fg: var(--c-ink); }
.s-hero .btn--ghost { --glass-line: rgba(247, 243, 236, 0.4); color: var(--c-paper); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.s-hero .btn--ghost::before { background: var(--c-paper); }
.s-hero .btn--ghost:hover, .s-hero .btn--ghost:focus-visible, .s-hero .btn--ghost:hover .btn__arrow { color: var(--c-ink); }

/* Glass strip with the meta numbers, separated by thin vertical lines. */
.s-hero__glass {
  display: flex; align-items: stretch; margin-top: clamp(2rem, 5vh, 3.5rem);
  border-radius: var(--radius);
  background: rgba(18, 26, 20, 0.34);
  border: var(--hairline) solid rgba(247, 243, 236, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
.s-hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; }
.s-hero__meta-item { position: relative; padding: clamp(1rem, 2.2vh, 1.5rem) clamp(1.1rem, 2vw, 2rem); }
.s-hero__meta-item + .s-hero__meta-item { border-left: var(--hairline) solid rgba(247, 243, 236, 0.16); }
.s-hero__meta-item dt { color: rgba(247, 243, 236, 0.7); }
.s-hero__meta-value {
  margin-top: 0.5rem; display: flex; align-items: baseline; gap: 0.3em;
  font-family: var(--font-display); font-weight: var(--w-light);
  font-size: var(--fs-num-meta); line-height: 1; letter-spacing: -0.02em; color: var(--c-gold);
}
.s-hero__unit { font-family: var(--font-body); font-size: 0.4em; letter-spacing: 0.04em; color: rgba(247, 243, 236, 0.75); }
/* Gold hairline grows along the bottom of each cell as it counts. */
.s-hero__meta-item::after {
  content: ''; position: absolute; left: clamp(1.1rem, 2vw, 2rem); right: clamp(1.1rem, 2vw, 2rem); bottom: 0; height: 1px;
  background: var(--c-gold); opacity: 0.7; transform: scaleX(var(--line, 1)); transform-origin: left;
}

/* Scroll cue (own addition): label + a line that keeps "dropping". */
.s-hero__cue {
  flex: none; display: grid; justify-items: center; align-content: center; gap: 0.6rem;
  padding: 0 clamp(1.25rem, 2.4vw, 2.25rem); border-left: var(--hairline) solid rgba(247, 243, 236, 0.16);
  color: rgba(247, 243, 236, 0.8);
}
.s-hero__cue-line { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(247, 243, 236, 0.2); }
.s-hero__cue-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--c-gold);
  animation: hero-cue 2.2s var(--ease-expo) infinite;
}
@keyframes hero-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
html.reduced-motion .s-hero__cue-line::after { animation: none; }

/* Initial states: opacity only (transforms belong to GSAP). */
html.motion .s-hero .w__i,
html.motion .s-hero [data-hero-fade],
html.motion .s-hero__meta-item { opacity: 0; }
html.motion .s-hero__meta-item { --line: 0; }
html.reveal-fallback .s-hero .w__i,
html.reveal-fallback .s-hero [data-hero-fade],
html.reveal-fallback .s-hero__meta-item { opacity: 1 !important; --line: 1; }

/* ---- Window variant (allow_full_bleed off — İncek): typography left, render in a framed window
   on the right, contour lines on the ground. The window never exceeds the render's own pixels:
   cover scale = max(w / 1578, h / 791) stays <= 1 because both sides are capped. ---- */
.s-hero--window .s-hero__contours { z-index: 0; }
/* Hidden until hero.js draws them (pathLength="1"); the fallback shows them fully drawn. */
html.motion .s-hero__contours path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html.reveal-fallback .s-hero__contours path { stroke-dasharray: none; stroke-dashoffset: 0; }
.s-hero--window .s-hero__contours path { opacity: 0.22; }
.s-hero--window .s-hero__contours path.is-major { opacity: 0.38; }
@media (min-width: 960px) {
  .s-hero--window { --hero-top: 7.5rem; --hero-bottom: clamp(9.5rem, 21vh, 12rem); }
  .s-hero--window .s-hero__frame {
    inset: var(--hero-top) var(--pad) auto auto;
    width: min(50%, calc(100% - 2 * var(--pad)), var(--hero-img-w, 1578px));
    height: min(calc(100svh - var(--hero-top) - var(--hero-bottom)), var(--hero-img-h, 791px));
    border-radius: var(--radius);
    clip-path: inset(0% 0% 0% 0% round var(--radius));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
  }
  /* The ground shows through the left edge so the title can overlap the window without losing contrast. */
  .s-hero--window .s-hero__shade {
    background: linear-gradient(to right, rgba(var(--page-bg-rgb), 0.55) 0%, rgba(var(--page-bg-rgb), 0) 38%),
                linear-gradient(to top, rgba(var(--page-bg-rgb), 0.35) 0%, rgba(var(--page-bg-rgb), 0) 30%);
  }
  .s-hero--window .s-hero__title { font-size: clamp(3rem, 5.6vw, 6.4rem); max-width: none; }
  .s-hero--window .s-hero__line { white-space: nowrap; }
  .s-hero--window .s-hero__inner { width: 100%; }
}

/* Film dialog */
.film { width: min(1200px, 92vw); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius); background: #000; color: var(--c-paper); overflow: visible; }
.film::backdrop { background: rgba(10, 14, 11, 0.86); backdrop-filter: blur(6px); }
.film__video { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.film__close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(247, 243, 236, 0.4); }
.film__close svg { width: 18px; height: 18px; }

@media (max-width: 767.98px) {
  .s-hero__stage { padding: 7rem 0 calc(1rem + 56px + env(safe-area-inset-bottom)); }
  .s-hero__picture img { object-position: 64% 50%; }
  .s-hero__line--alt { padding-left: 0; }
  .s-hero__actions-inner .btn { flex: 1 1 auto; justify-content: space-between; }
  .s-hero__meta-item { padding: 0.9rem 0.75rem; }
  .s-hero__meta-item dt { font-size: 0.68rem; letter-spacing: 0.1em; }
  .s-hero__meta-item::after { left: 0.75rem; right: 0.75rem; }
  .s-hero__cue { display: none; }
}
