/* ============ Sip hub — full-screen panel accordion ============ */
html, body { height: 100%; }
body { overflow: hidden; background: #1e211c; }

.hub {
  display: flex;
  height: 100dvh;
  width: 100vw;
}

.panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: flex 0.85s var(--ease-lux);
  display: flex;
  align-items: flex-end;
}
/* Hover accordion — pointer devices only, so a tap never leaves a panel stuck open */
@media (hover: hover) and (pointer: fine) {
  .hub:has(.panel:hover) .panel { flex: 0.65; }
  .hub .panel:hover { flex: 2.1; }
}

.panel-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease-lux), filter 0.8s var(--ease-lux);
  filter: saturate(1.05) contrast(1.04);
  animation: kenBurns 16s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.0); }
  to { transform: scale(1.07); }
}
@media (hover: hover) and (pointer: fine) {
  .panel:hover .panel-media { animation-play-state: paused; }
  .hub:has(.panel:hover) .panel:not(:hover) .panel-media { filter: saturate(0.4) brightness(0.55); }
}

.panel-scrim { position: absolute; inset: 0; transition: opacity 0.8s var(--ease-lux); }

/* Brass hairline between the two worlds */
.panel--stumble { border-right: 1px solid rgba(200, 169, 106, 0.55); }
@media (max-width: 720px) {
  .panel--stumble { border-right: 0; border-bottom: 1px solid rgba(200, 169, 106, 0.55); }
}

/* Stumble panel */
.panel--stumble .panel-media {
  background-image:
    linear-gradient(180deg, rgba(27,39,31,0.42) 0%, rgba(27,39,31,0.12) 45%, rgba(27,39,31,0.85) 100%),
    url("../img/hub-bar-hero.jpg");
}
.panel--stumble { color: #f4f1e8; }
.panel--stumble .panel-cta { background: #c8a96a; color: #1e211c; }

/* Nibble panel */
.panel--nibble .panel-media {
  background-image:
    linear-gradient(180deg, rgba(246,239,227,0.30) 0%, rgba(51,41,31,0.05) 45%, rgba(51,41,31,0.72) 100%),
    url("../img/hub-cafe-hero.jpg");
}
.panel--nibble { color: #f6efe3; }
.panel--nibble .panel-cta { background: #8c5a33; color: #f6efe3; }

.panel-content {
  position: relative; z-index: 2;
  padding: clamp(2rem, 5vw, 4.5rem);
  width: 100%;
}
.panel-eyebrow {
  text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.7rem; font-weight: 700;
  opacity: 0.85; margin-bottom: 1rem;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.015em;
}
.panel-title em { display: block; font-style: italic; font-weight: 400; }

.panel-more {
  max-width: 42ch;
  opacity: 0; max-height: 0; overflow: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-lux) 0.15s, transform 0.6s var(--ease-lux) 0.15s, max-height 0.6s var(--ease-lux);
}
@media (hover: hover) and (pointer: fine) {
  .panel:hover .panel-more { opacity: 1; max-height: 240px; transform: none; }
}
.panel-more p { margin: 1.1rem 0 1.5rem; font-size: 0.98rem; opacity: 0.92; }
/* Short mobile-only line; the full .panel-blurb is what desktop reveals on hover */
.panel-lede { display: none; }
.panel-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* Center wordmark */
.hub-mark {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10; pointer-events: none;
  text-align: center;
  padding-top: clamp(1.4rem, 4vh, 3rem);
  color: #f4f1e8;
  mix-blend-mode: difference;
}
.hub-mark h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; line-height: 1;
}
.hub-mark p {
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.62rem; font-weight: 600; margin-top: 0.5rem;
}

/* Footer strip */
.hub-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center; gap: 1.6rem;
  padding: 0.9rem;
  pointer-events: none;
  color: #f4f1e8; mix-blend-mode: difference;
  font-size: 0.72rem; letter-spacing: 0.08em;
}
.hub-foot a { color: inherit; pointer-events: auto; text-decoration: none; }
.hub-foot a:hover { text-decoration: underline; }

/* Click-to-expand takeover */
.panel.expanding {
  flex: 30 !important;
  z-index: 20;
}
.hub.locked .panel { pointer-events: none; }
.panel.expanding .panel-content, .hub.locked .hub-mark, .hub.locked ~ .hub-mark {
  opacity: 0; transition: opacity 0.4s;
}
.panel.collapsing { flex: 0.001 !important; }
.panel.collapsing .panel-content { opacity: 0; transition: opacity 0.3s; }

/* Colour-fade overlay: bridges the zoom into the destination page */
.hub-overlay {
  position: fixed; inset: 0; z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease-in;
}
.hub-overlay.active { opacity: 1; pointer-events: auto; }

/* ---------- Cinematic intro (once per visit) ---------- */
.intro .hub-mark {
  animation: markIn 1.3s var(--ease-lux) both;
}
.intro .hub-mark p {
  animation: taglineIn 1.4s var(--ease-lux) 0.45s both;
}
@keyframes markIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(28vh) scale(1.9); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes taglineIn {
  from { opacity: 0; letter-spacing: 0.55em; }
  to { opacity: 1; letter-spacing: 0.3em; }
}
.intro .panel--stumble { animation: panelInLeft 1.1s var(--ease-lux) 0.85s both; }
.intro .panel--nibble { animation: panelInRight 1.1s var(--ease-lux) 1.0s both; }
@keyframes panelInLeft {
  from { opacity: 0; transform: translateX(-6%); }
  to { opacity: 1; transform: none; }
}
@keyframes panelInRight {
  from { opacity: 0; transform: translateX(6%); }
  to { opacity: 1; transform: none; }
}
.intro .panel .panel-content { animation: panelContentIn 0.9s var(--ease-lux) 1.55s both; }
@keyframes panelContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.intro .hub-foot { animation: footIn 0.8s ease 1.9s both; }
@keyframes footIn { from { opacity: 0; } to { opacity: 1; } }

/* Return visit: quick appearance */
.intro-skip .hub-mark, .intro-skip .panel, .intro-skip .hub-foot {
  animation: quickIn 0.4s ease both;
}
@keyframes quickIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ Mobile: full-bleed photo, minimal copy over a scrim ============
   The photos are the draw, so they stay edge to edge and the type sits on top.
   What made the old version cluttered was the VOLUME of copy — eyebrow, two-line
   title, a 25-word paragraph and a big pill, over photos that already carry their
   own signage. Cutting that back to a short line plus a CTA fixes the noise
   without costing the imagery. */
@media (max-width: 720px) {
  /* Page shell: wordmark band / panels / footer band. Still no scroll. */
  body { display: flex; flex-direction: column; height: 100dvh; }

  /* Wordmark leaves fixed positioning and becomes a real header band */
  .hub-mark {
    position: static; transform: none; mix-blend-mode: normal;
    flex: none; width: 100%;
    padding: 0.7rem 1rem 0.6rem;
    background: #1e211c;
  }
  .hub-mark h1 { font-size: 1.6rem; }
  .hub-mark p { font-size: 0.52rem; letter-spacing: 0.28em; margin-top: 0.3rem; }
  /* markIn ends on translateX(-50%) with fill-mode both, which would drag the now
     full-width band half off screen. Fade it in instead. */
  .intro .hub-mark { animation-name: quickIn; animation-duration: 0.9s; }

  /* Panels take whatever height is left. .panel keeps its base
     `align-items: flex-end`, so the copy sits at the foot of a full-bleed photo. */
  .hub { flex: 1; min-height: 0; height: auto; flex-direction: column; }

  /* The stacked-card layout has no accordion, so neutralise the hover treatment
     for narrow windows on pointer devices */
  .hub:has(.panel:hover) .panel { flex: 1; }
  .hub .panel:hover { flex: 1; }
  .hub:has(.panel:hover) .panel:not(:hover) .panel-media { filter: saturate(1.05) contrast(1.04); }

  /* Scrim clears the top two-thirds so the vehicle reads, then ramps hard enough
     under the copy to carry light type. Weighted to the lower half rather than a
     flat wash, so the photo never looks veiled. */
  .panel--stumble .panel-media {
    background-image:
      linear-gradient(180deg,
        rgba(27, 39, 31, 0.32) 0%,
        rgba(27, 39, 31, 0.10) 22%,
        rgba(27, 39, 31, 0.26) 42%,
        rgba(27, 39, 31, 0.56) 58%,
        rgba(27, 39, 31, 0.79) 72%,
        rgba(27, 39, 31, 0.92) 86%,
        rgba(27, 39, 31, 0.96) 100%),
      url("../img/hub-bar-hero.jpg");
  }
  .panel--nibble .panel-media {
    background-image:
      linear-gradient(180deg,
        rgba(51, 41, 31, 0.24) 0%,
        rgba(51, 41, 31, 0.08) 22%,
        rgba(51, 41, 31, 0.34) 42%,
        rgba(51, 41, 31, 0.68) 56%,
        rgba(51, 41, 31, 0.88) 70%,
        rgba(51, 41, 31, 0.96) 84%,
        rgba(51, 41, 31, 0.98) 100%),
      url("../img/hub-cafe-hero.jpg");
  }

  /* Copy sits over the photo — light type on both panels */
  .panel-content { padding: 1rem 1.3rem 1.3rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
  .panel-eyebrow { font-size: 0.6rem; margin-bottom: 0.35rem; opacity: 0.9; }
  .panel-title { font-size: clamp(1.6rem, 7vw, 2rem); line-height: 0.95; }
  .panel-more { opacity: 1; max-height: none; transform: none; overflow: visible; }
  .panel-lede { display: block; margin: 0.4rem 0 0.75rem; font-size: 0.8rem; line-height: 1.35; }
  .panel-cta { padding: 0.6rem 1.35rem; font-size: 0.7rem; text-shadow: none; }

  /* Long desktop copy and secondary footer links stand down on mobile */
  .eyebrow-rest, .panel-blurb, .foot-extra { display: none; }

  /* Footer restored — it was display:none before, so phone/blog/privacy were unreachable */
  .hub-foot {
    position: static; flex: none;
    mix-blend-mode: normal; background: #1e211c;
    gap: 0.85rem; padding: 0.6rem; font-size: 0.6rem;
  }
}

/* Very short viewports (iPhone SE and similar): drop the supporting copy.
   The eyebrow and the CTA label still name the door, so nothing is lost. */
@media (max-width: 720px) and (max-height: 680px) {
  .hub-mark p { display: none; }
  .panel-lede { display: none; }
  .panel-title { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .panel-media, .panel-more { transition: none !important; }
}
