.hero {
  padding-top: 74px;
  background: var(--bg);
}

/* ---- Full-bleed photo hero (main homepage) ----
   Background photo slider fills the whole section; text sits directly
   on top of it, protected by a dark gradient overlay for legibility. */
.hero--photo {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 168px 0 104px;
}
.hero--photo .container { position: relative; z-index: 2; }
.hero-photo-body { max-width: 640px; }

/* Anchor crops to the top of the source photo instead of the center,
   so ceilings/window heads never get cut off. */
.hero--photo .hero-bg-slide { background-position: top center; }

/* Stronger scrim: heavier on the left where the text sits, easing off
   toward the right so more of the photo still reads through. */
.hero--photo .hero-bg-overlay {
  background:
    linear-gradient(100deg, rgba(9,15,20,0.59) 0%, rgba(9,15,20,0.47) 34%, rgba(9,15,20,0.21) 58%, rgba(9,15,20,0.03) 78%),
    linear-gradient(180deg, rgba(9,15,20,0.27) 0%, rgba(9,15,20,0.05) 28%, rgba(9,15,20,0.37) 100%);
}

.hero--photo .hero-badge,
.hero--photo .hero-title,
.hero--photo .hero-desc {
  text-shadow: 0 2px 4px rgba(0,0,0,0.75), 0 6px 24px rgba(0,0,0,0.55);
}
.hero--photo .hero-desc { color: #EDF2F3; }
.hero--photo .hero-chips { border-top-color: rgba(255, 255, 255, 0.3); }
.hero--photo .hero-chips li {
  color: #EDF2F3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

@media (max-width: 900px) {
  .hero--photo { padding: 132px 0 72px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 74px);
}

/* ---- Left pane: ink panel with wire-mesh glass texture (망입유리 motif) ---- */
.hero-pane-text {
  background: var(--bg-ink);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 26px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(28px, 5vw, 72px);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #BFE3E6;
  background: rgba(14, 124, 134, 0.22);
  border: 1px solid rgba(14, 124, 134, 0.5);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-title span { color: var(--accent); }
.hero-title .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(14,124,134,0.55) 62%);
}

.hero-desc {
  font-size: 16.5px;
  color: #B9C8CE;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-actions .btn { font-size: 15.5px; padding: 15px 24px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
}
.hero-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #9FB4BB;
}
.hero-chips li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Right pane: signature photo behind a drawn-in window crossbar ---- */
.hero-pane-photo {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(1.1) contrast(1.06);
  transition: opacity 1.8s ease;
}
.hero-bg-slide.is-active { opacity: 1; }

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.45) 0%, rgba(16, 26, 34, 0.16) 40%, rgba(16, 26, 34, 0.6) 100%);
}

.hero-crossbar {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-crossbar .bar-h,
.hero-crossbar .bar-v {
  position: absolute;
  background: rgba(244,247,248,0.92);
  box-shadow: 0 0 0 1px rgba(16,26,34,0.15);
}
.hero-crossbar .bar-h {
  top: 50%; left: 0;
  height: 6px;
  width: 0%;
  transform: translateY(-50%);
  animation: draw-h 0.9s 0.3s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-crossbar .bar-v {
  left: 50%; top: 0;
  width: 6px;
  height: 0%;
  transform: translateX(-50%);
  animation: draw-v 0.9s 0.3s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes draw-h { to { width: 100%; } }
@keyframes draw-v { to { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-crossbar .bar-h { width: 100%; animation: none; }
  .hero-crossbar .bar-v { height: 100%; animation: none; }
}

.hero-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 16px 10px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  font-size: 13px;
  line-height: 1.4;
}
.hero-tag strong { display: block; font-size: 14px; }
.hero-tag span { font-family: var(--font-mono); color: var(--ink-muted); font-size: 11.5px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pane-photo { min-height: 280px; order: -1; }
  .hero-pane-text { padding: 48px 22px 56px; }
}
