/* ---------- Hero (centered gold serif over night render, per reference) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding-bottom: clamp(3rem, 10vh, 7rem);
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--color-paper);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(12, 10, 7, 0.38) 0%,
      rgba(12, 10, 7, 0.08) 26%,
      rgba(12, 10, 7, 0.10) 52%,
      rgba(12, 10, 7, 0.88) 100%),
    radial-gradient(ellipse at center 45%, rgba(12, 10, 7, 0) 45%, rgba(12, 10, 7, 0.28) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--space-md);
  max-width: 900px; margin: 0 auto; width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__badge { margin-bottom: var(--space-sm); }
.hero__badge:not(.reveal),
.hero__badge.reveal--visible { opacity: 0.95; }
.hero__content h1 {
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  margin: var(--space-xs) 0 var(--space-sm);
  text-shadow: none;
}
.hero__tagline {
  color: var(--color-ink);
  opacity: 0.9;
  max-width: 52ch;
  margin: 0 auto var(--space-md);
}
.hero__tagline:not(.reveal),
.hero__tagline.reveal--visible { opacity: 0.9; }

/* ---------- Vision ---------- */
.vision__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: stretch; }
@media (min-width: 769px) { .vision__grid { grid-template-columns: 1.1fr 0.9fr; } }
.vision__text .link-accent { margin-top: var(--space-sm); display: inline-block; }
.vision__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--glass-line);
}
.vision__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 769px) { .vision__media { aspect-ratio: auto; } }

/* ---------- Floors (expanding interactive panels) ---------- */
.floors__slider {
  display: flex;
  gap: 12px;
  height: clamp(440px, 62vh, 640px);
}

/* Each floor is a photographic panel that expands on hover / focus */
.floor-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), 0 24px 60px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--color-ink);
  transition: flex-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.7s ease,
              box-shadow 0.5s ease;
}

/* Interior render fills the panel and gently zooms out as the panel opens */
.floor-panel__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transform: scale(1.12);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Flat scrim dims the collapsed snippet; clears when the panel opens */
.floor-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: rgba(8, 7, 5, 0.62);
  transition: background-color 0.7s ease;
}
/* Bottom gradient keeps the label legible over any image */
.floor-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 7, 5, 0.92) 0%, rgba(8, 7, 5, 0.45) 30%, rgba(8, 7, 5, 0) 62%);
}

/* Open state: default-open panel, or the one being hovered / focused */
.floor-panel.is-open,
.floor-panel:hover,
.floor-panel:focus-visible {
  flex-grow: 6;
  border-color: var(--color-accent);
  box-shadow: var(--glass-highlight), 0 30px 70px rgba(0, 0, 0, 0.5);
}
.floor-panel.is-open::before,
.floor-panel:hover::before,
.floor-panel:focus-visible::before { background-color: rgba(8, 7, 5, 0.12); }
.floor-panel.is-open .floor-panel__img,
.floor-panel:hover .floor-panel__img,
.floor-panel:focus-visible .floor-panel__img { transform: scale(1); }

/* Hovering / focusing another panel hands the spotlight over from the default-open one */
.floors__slider:hover .floor-panel.is-open:not(:hover),
.floors__slider:focus-within .floor-panel.is-open:not(:focus-visible) {
  flex-grow: 1;
  border-color: var(--glass-line);
  box-shadow: var(--glass-highlight), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.floors__slider:hover .floor-panel.is-open:not(:hover)::before,
.floors__slider:focus-within .floor-panel.is-open:not(:focus-visible)::before { background-color: rgba(8, 7, 5, 0.62); }
.floors__slider:hover .floor-panel.is-open:not(:hover) .floor-panel__img,
.floors__slider:focus-within .floor-panel.is-open:not(:focus-visible) .floor-panel__img { transform: scale(1.12); }

/* Upright numeral, top-left */
.floor-panel__index {
  position: absolute; top: var(--space-md); left: var(--space-md);
  z-index: 2; display: block;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  opacity: 0.85;
  text-shadow: 0 2px 18px rgba(8, 7, 5, 0.7);
}

/* Label: icon shares the title's line (so it centres on the title, not the whole
   block); the subtitle sits beneath, indented to align under the title. */
.floor-panel__label {
  position: absolute; left: 0; right: 0; bottom: var(--space-md);
  z-index: 2;
  padding: 0 var(--space-md);
  pointer-events: none;
}
.floor-panel__head {
  display: flex; align-items: center; gap: var(--space-sm);
}
.floor-panel__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(20, 17, 12, 0.72);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--color-accent);
}
.floor-panel__icon svg { width: 22px; height: 22px; display: block; }
.floor-panel__title {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  white-space: nowrap;
}
.floor-panel__sub {
  /* Fixed width + no reflow: indented under the title, aligned past the icon. */
  margin: 0.1rem 0 0;
  margin-left: calc(46px + var(--space-sm));
  width: 15rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink-muted);
}
/* Title + subtitle slide in when the panel opens; the icon stays put */
.floor-panel__title,
.floor-panel__sub {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease 0.1s,
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.floor-panel.is-open .floor-panel__title,
.floor-panel.is-open .floor-panel__sub,
.floor-panel:hover .floor-panel__title,
.floor-panel:hover .floor-panel__sub,
.floor-panel:focus-visible .floor-panel__title,
.floor-panel:focus-visible .floor-panel__sub { opacity: 1; transform: translateX(0); }
.floors__slider:hover .floor-panel.is-open:not(:hover) .floor-panel__title,
.floors__slider:hover .floor-panel.is-open:not(:hover) .floor-panel__sub,
.floors__slider:focus-within .floor-panel.is-open:not(:focus-visible) .floor-panel__title,
.floors__slider:focus-within .floor-panel.is-open:not(:focus-visible) .floor-panel__sub { opacity: 0; transform: translateX(20px); }

/* Staggered slide-in when the slider scrolls into view */
.floors__slider.reveal--visible .floor-panel {
  animation: floorPanelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.floors__slider.reveal--visible .floor-panel:nth-child(1) { animation-delay: 0.05s; }
.floors__slider.reveal--visible .floor-panel:nth-child(2) { animation-delay: 0.20s; }
.floors__slider.reveal--visible .floor-panel:nth-child(3) { animation-delay: 0.35s; }
.floors__slider.reveal--visible .floor-panel:nth-child(4) { animation-delay: 0.50s; }
@keyframes floorPanelIn {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* On touch / narrow screens, stack panels open as cards */
@media (max-width: 768px) {
  .floors__slider { flex-direction: column; height: auto; gap: var(--space-sm); }
  .floor-panel { flex: none; min-height: 320px; }
  .floor-panel,
  .floor-panel.is-open,
  .floors__slider:hover .floor-panel.is-open { flex-grow: 0; }
  .floor-panel__img,
  .floor-panel.is-open .floor-panel__img { transform: scale(1); }
  .floor-panel::before { background-color: rgba(8, 7, 5, 0.28); }
  .floor-panel__title,
  .floor-panel__sub { opacity: 1; transform: none; }
  /* Tighten the label so long EN titles (e.g. "K-Beauty & Wellness Zone") fit on one line
     next to the icon instead of wrapping. Narrower padding + smaller type buys the room. */
  .floor-panel__label { padding: 0 var(--space-sm); }
  .floor-panel__title { white-space: normal; font-size: 1rem; line-height: 1.2; }
  .floor-panel__sub { margin-left: calc(46px + var(--space-sm)); width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .floor-panel,
  .floor-panel__img,
  .floor-panel__title,
  .floor-panel__sub { transition: none; }
  .floor-panel__img { transform: scale(1); }
  .floors__slider.reveal--visible .floor-panel { animation: none; }
}

/* ---------- Fork ---------- */
.fork h2 { max-width: 20ch; margin-bottom: var(--space-lg); }
.fork__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
/* HIDDEN(investing): single centered card while Investing is hidden.
   To restore the two-column layout, swap the rule below back to: grid-template-columns: 1fr 1fr; (drop max-width/margin). */
@media (min-width: 769px) { .fork__grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
.fork__card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight), 0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-lg);
}
.fork__card h3 { margin: 0 0 var(--space-sm); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #EBD49B; }
.fork__card .link-accent { margin-top: var(--space-sm); display: inline-block; }

/* ---------- Location ---------- */
.location__map {
  margin-top: var(--space-md);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.location__map iframe { display: block; width: 100%; filter: grayscale(0.35) contrast(0.95); }
