/* =============================================
   HERO SECTION
   Loaded as part of style.css via @import,
   or copy into style.css if preferred
============================================= */

.kd-hero {
  position: relative;
  height: 95vh;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
  overflow: hidden;
  background: var(--color-bg);
  margin-top: 0;
}

/* Subtle grid overlay */
.kd-hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,236,228,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,236,228,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Radial gold haze */
.kd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 30%, rgba(201,169,110,0.07) 0%, transparent 55%),
    linear-gradient(135deg, rgba(201,169,110,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Large watermark letters */
.kd-hero-watermark {
  position: absolute;
  right: 45%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 220px;
  color: rgba(201,169,110,0.04);
  line-height: 1;
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -8px;
}

/* Split image panels on the right */
.kd-hero-images {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
  z-index: 2;
}

.kd-hero-img-panel {
  position: relative;
  overflow: hidden;
}

.kd-hero-img-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 30%, rgba(14,14,12,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.kd-hero-img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero content */
.kd-hero-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.kd-hero-title {
  font-family: var(--font-serif);
  font-size: 78px;
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--color-text);
}

.kd-hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.kd-hero-sub {
  font-size: 14px;
  color: rgba(240,236,228,0.45);
  line-height: 1.85;
  max-width: 380px;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Scroll indicator */
.kd-hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: 45%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(240,236,228,0.25);
  z-index: 3;
  transition: opacity 0.4s;
  font-weight: 400;
}

.kd-hero-scroll-line {
  width: 0.5px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.6), transparent);
  animation: kd-scroll-line 2.5s ease-in-out infinite;
}

@keyframes kd-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Surface color helpers */
.kd-surface-1 { background: linear-gradient(135deg, #1e1c17, #2a2820); }
.kd-surface-2 { background: linear-gradient(135deg, #171a1e, #202428); }
.kd-surface-3 { background: linear-gradient(135deg, #1a1718, #241e20); }

/* Section title shared */
.kd-section-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 16px;
}

.kd-section-title em {
  font-style: italic;
  color: var(--color-gold);
}

/* ── Responsive Hero ────────────────────────── */
@media (max-width: 1100px) {
  .kd-hero { padding: 60px 40px; }
  .kd-hero-title { font-size: 60px; }
  .kd-hero-images { width: 44%; }
  .kd-hero-watermark { font-size: 160px; right: 40%; }
}

@media (max-width: 860px) {
  .kd-hero {
    height: auto;
    min-height: auto;
    padding: 140px 40px 60px;
    align-items: flex-start;
  }
  .kd-hero-images {
    position: absolute;
    inset: 0;
    width: 100%;
    grid-template-rows: 1fr;
    opacity: 0.2;
  }
  .kd-hero-images .kd-hero-img-panel:last-child { display: none; }
  .kd-hero-title { font-size: 48px; }
  .kd-hero-watermark { display: none; }
  .kd-hero-scroll-indicator { display: none; }
  .kd-section-title { font-size: 40px; }
}

@media (max-width: 580px) {
  .kd-hero { padding: 120px 24px 48px; }
  .kd-hero-title { font-size: 38px; }
  .kd-section-title { font-size: 32px; }
}
