:root {
  /* --- EasyBread Management --- */
  --eb-bg: #EAECC6;
  --eb-bg-deep: #E1E4B4;   
  --eb-accent: #2BC0E4;

  /* --- Midnight Merlot Services --- */
  --mm-bg: #8A0149;
  --mm-bg-deep: #6C013A;   
  --mm-fg: #F3F0E7;

  /* --- Shared neutrals --- */
  --ink: #17161F;          
  --divider-bg: #FAF9F5;   

  /* --- Type --- */
  --font-bread: 'Space Grotesk', sans-serif;
  --font-merlot: 'Cormorant Garamond', serif;
  --font-ui: 'Inter', sans-serif;

  --ease-pop: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  background: var(--ink);
}

/* ==========================================================================
   Stage — the full-height wrapper holding both panels + the centre seam
   ========================================================================== */

.stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   Panels
   ========================================================================== */

.panel {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
}

.panel--bread {
  background: linear-gradient(160deg, var(--eb-bg) 0%, var(--eb-bg-deep) 100%);
  color: var(--ink);
  animation: fadeUp .7s var(--ease-pop) both;
}

.panel--merlot {
  background: linear-gradient(160deg, var(--mm-bg) 0%, var(--mm-bg-deep) 100%);
  color: var(--mm-fg);
  animation: fadeUp .7s .12s var(--ease-pop) both;
}

/* faint vignette for depth, purely decorative */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.10) 100%);
}

.panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.1rem);
  max-width: 26rem;
}

.panel__logo img {
  width: clamp(60px, 9vw, 84px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.panel__name {
  margin: 0;
  font-weight: 700;
  line-height: 1.03;
  font-size: clamp(2.1rem, 6.5vw, 4rem);
}
.panel--bread .panel__name { font-family: var(--font-bread); }
.panel--merlot .panel__name {
  font-family: var(--font-merlot);
  font-weight: 600;
  font-style: italic;
}

.panel__tagline {
  margin: 0;
  font-size: 1.02rem;
  max-width: 24ch;
  opacity: .82;
}

.panel__date__opening { 
  font-size: 0.75rem;
  margin: 0;
}

.panel__links {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.panel__links a {
  display: block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .95rem;
  transition: background-color .3s ease, color .3s ease, transform .2s ease;
}
.panel__links a:hover,
.panel__links a:focus-visible {
  transform: translateY(-2px);
}
.panel--bread .panel__links a:hover,
.panel--bread .panel__links a:focus-visible {
  background: var(--eb-accent);
  border-color: var(--eb-accent);
}
.panel--merlot .panel__links a:hover,
.panel--merlot .panel__links a:focus-visible {
  background: var(--mm-fg);
  color: var(--mm-bg);
}
.panel__links a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ==========================================================================
   Centre seam
   ========================================================================== */

.seam {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.25rem 1rem;
  background: var(--divider-bg);
  animation: fadeUp .7s .24s var(--ease-pop) both;
}

.seam__name {
  margin: 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}
.seam__suffix { opacity: .6; }

.seam__year {
  margin: 0;
  font-size: .72rem;
  color: var(--ink);
  opacity: .5;
}

/* ==========================================================================
   Entrance animation
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-6%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(6%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Desktop layout
   ========================================================================== */

@media (min-width: 880px) {
  .stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "seam seam" "bread merlot";
    transition: grid-template-columns .55s var(--ease-pop);
  }

  .panel { min-height: 0; }
  .panel--bread  { grid-area: bread; animation: slideInLeft .8s var(--ease-pop) both; }
  .panel--merlot { grid-area: merlot; animation: slideInRight .8s var(--ease-pop) both; }

  .stage.expand-bread  { grid-template-columns: 1.35fr .8fr; }
  .stage.expand-merlot { grid-template-columns: .8fr 1.35fr; }

  .seam {
    grid-area: seam;
    position: relative;
    z-index: 5;
    background: var(--divider-bg);
    padding: .85rem 1rem;
    animation: fadeUp .6s .35s var(--ease-pop) both;
  }
  .seam__name { margin-top: 0; }
}

/* ==========================================================================
   Reduced-motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .panel, .seam, .panel__links a {
    animation: none !important;
    transition: none !important;
  }
  .panel__links a:hover, .panel__links a:focus-visible { transform: none; }
}
