:root {
  --accent: #fff;
  --text: #fff;
  --ease-panel: cubic-bezier(.22, .78, .22, 1);
}
.showcase {margin: auto;
  display: flex;
  width: min(2560px, 100%);
  height: clamp(440px, 41vw, 760px);
  overflow: hidden;
  background: #08243a;
  gap: 2px;
}
.panel {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  outline: none;
  cursor: default;
  /* Default: two panels remain equal-width and neither is expanded. */
  transition: flex 760ms var(--ease-panel);
}
.panel.is-active {
  flex: 1.85 1 0;
  cursor: pointer;
}
.panel:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.panel__image,
.panel__shade {
  position: absolute;
  inset: 0;
}
.panel__image {
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  transition: transform 950ms var(--ease-panel), filter 700ms ease;
}
.panel--edge .panel__image {
  background-position: 48% center;
}
.panel--park .panel__image {
  background-position: 55% center;
}
.panel__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,15,28,.06) 5%, rgba(2,15,28,.2) 35%, rgba(2,15,28,.82) 100%);
  transition: background 600ms ease;
}
.panel.is-active .panel__image { transform: scale(1.055); }
.panel__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  width: 100%;
  padding: clamp(22px, 3.2vw, 58px);
  transition: padding 450ms ease;
}
.eyebrow {display: none;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms ease, transform 350ms ease;
}
html[lang="en"] .eyebrow {display:block;}
h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(21px, 2.35vw, 42px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.panel__details {
  max-width: 740px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition:
    max-height 680ms var(--ease-panel),
    opacity 420ms ease,
    transform 520ms var(--ease-panel);
}
.panel__details h3 {
  margin: 20px 0 12px;
  max-width: 680px;
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.25;
  font-weight: 800;
}
.panel__details p {
  max-width: 690px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.88);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
}
.panel__link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.9);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 220ms ease, border-color 220ms ease;
}
.panel__link:hover { background: var(--accent); border-color: var(--accent); }
.panel__link span { font-size: 18px; }
.panel.is-active .eyebrow {
  opacity: .85;
  transform: translateY(0);
  transition-delay: 120ms;
}
.panel.is-active .panel__details {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms, 130ms, 130ms;
}

/* Mobile: restore normal document flow — image first, text below. */
@media (max-width: 700px) {
  .showcase {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 14px;
    background: transparent;
  }
  .panel,
  .panel.is-active {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #08243a;
    cursor: default;
    transition: none;
  }
  .panel__image {
    position: relative;
    inset: auto;
    display: block;
    z-index: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    transform: none;
    background-position: center;
  }
  .panel.is-active .panel__image { transform: none; }
  .panel__shade { display: none; }
  .panel__content {
    position: relative;
    inset: auto;
    z-index: 1;
    padding: 22px;
    background: #08243a;
  }
  .eyebrow {
    margin-bottom: 9px;
    opacity: .75;
    transform: none;
  }
  h2 { font-size: clamp(21px, 5vw, 30px); }
  .panel__details {
    max-width: none;
    max-height: none;
    margin-top: 12px;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel__details h3 { margin: 0 0 10px; font-size: 13px; }
  .panel__details p { margin-bottom: 14px; font-size: 13px; }
  .panel__link { padding: 9px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
