/* ki_hero — full-viewport cinematic hero.
   All selectors scoped under `.ki-scope .ki-hero` so nothing leaks. */

.ki-scope .ki-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  --ki-hero-bg-top: #0e3047;
  --ki-hero-bg-bottom: #060f17;
  --ki-hero-h-size: clamp(56px, 8vw, 116px);
  --ki-hero-overlay-opacity: 0.15;
  --ki-hero-overlay-color: #0a1420;
}

/* Background layer — source `.hero-bg` (Ki Home.html lines 99–104).
   Layered: top dim wash + slate gradient. */
.ki-scope .ki-hero .ki-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,18,28,0.55) 0%, rgba(10,18,28,0.10) 38%, rgba(10,18,28,0.70) 100%),
    linear-gradient(180deg, var(--ki-hero-bg-top), #0a1a26 55%, var(--ki-hero-bg-bottom));
}
.ki-scope .ki-hero.has-image .ki-hero-bg {
  background:
    var(--ki-hero-bg-image, none) center / cover no-repeat,
    #000;
}

/* Single dark wash on top of whatever background is shown.
   Only visible when an image is set — without an image the gradient already
   includes its own darkening, so we skip this layer to avoid double-darken. */
.ki-scope .ki-hero .ki-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ki-hero-overlay-color, #0a1420);
  opacity: 0;
}
.ki-scope .ki-hero.has-image .ki-hero-overlay {
  opacity: var(--ki-hero-overlay-opacity, 0.15);
}
.ki-scope .ki-hero .ki-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.95;
}
.ki-scope .ki-hero .ki-hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ki-scope .ki-hero .ki-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.3;
}
.ki-scope .ki-hero .ki-hero-eyebrow-bar {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-family: var(--ki-sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.ki-scope .ki-hero .ki-hero-content {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}
.ki-scope .ki-hero .ki-hero-tagline {
  font-family: var(--ki-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ki-scope .ki-hero .ki-hero-tagline::before {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}
.ki-scope .ki-hero h1 {
  font-family: var(--ki-serif);
  font-weight: 400;
  font-size: var(--ki-hero-h-size);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
  color: #fff;
}
.ki-scope .ki-hero h1 em {
  font-style: italic;
  color: #A8E5F2;
}
.ki-scope .ki-hero .ki-hero-sub {
  font-family: var(--ki-sans);
  font-style: normal;
  font-size: clamp(18px, 1.6vw, 20px);
  color: rgba(255,255,255,0.78);
  margin: 24px 0 0;
  max-width: 46ch;
  line-height: 1.5;
  font-weight: 400;
}
.ki-scope .ki-hero .ki-hero-foot {
  margin-top: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: end;
}
.ki-scope .ki-hero .ki-hero-meta {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  padding-bottom: 6px;
}
.ki-scope .ki-hero .ki-hero-meta .item .k {
  font-family: var(--ki-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  font-weight: 500;
}
.ki-scope .ki-hero .ki-hero-meta .item .v {
  font-family: var(--ki-serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.ki-scope .ki-hero .ki-hero-meta .item .v small {
  font-family: var(--ki-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: 0;
  font-style: normal;
  display: block;
  margin-top: 6px;
}
.ki-scope .ki-hero .ki-hero-scroll {
  color: rgba(255,255,255,0.65);
  font-family: var(--ki-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  font-weight: 500;
}
.ki-scope .ki-hero .ki-hero-scroll .line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  margin-left: auto;
  animation: ki-hero-pulseLine 2.4s ease-in-out infinite;
}
@keyframes ki-hero-pulseLine {
  50% { opacity: 0.4; height: 60px; }
}

/* Hero CTA — Source `.btn-paper` (Ki Home.html lines 132–143).
   White pill with serif arrow accent. Inverts to ghost-on-hover. */
.ki-scope .ki-hero .btn-paper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 30px;
  background: #fff;
  color: #000;
  font-family: var(--ki-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid #fff;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.ki-scope .ki-hero .btn-paper:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
}
.ki-scope .ki-hero .btn-paper .ar {
  font-family: var(--ki-serif);
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  transition: transform 220ms ease;
}
.ki-scope .ki-hero .btn-paper:hover .ar { transform: translateX(4px); }

@media (max-width: 900px) {
  .ki-scope .ki-hero { padding-bottom: 56px; }
  .ki-scope .ki-hero .ki-hero-content { padding: 0 24px; }
  .ki-scope .ki-hero .ki-hero-foot {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ki-scope .ki-hero .ki-hero-meta {
    flex-wrap: wrap;
    gap: 24px;
  }
  .ki-scope .ki-hero .ki-hero-scroll { display: none; }
}
