/* Homepage shared sections: bar, story teaser */

/* ── The Bar: cinematic lounge ─────────────────────────────── */

.home-bar {
  --bar-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --bar-inset: clamp(1rem, 3vw, 2.5rem);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(90vh, 40rem);
  overflow: hidden;
  background-color: var(--color-black);
}

.home-bar__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  clip-path: inset(0);
  transition: clip-path 1.6s var(--bar-ease);
}

.home-bar.is-ready:not(.is-inview) .home-bar__stage {
  clip-path: inset(7% 5% round 1.5rem);
}

.home-bar__media {
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, calc((var(--bar-progress, 0.5) - 0.5) * -10%), 0);
  will-change: transform;
}

.home-bar__image {
  position: absolute;
  inset: 0;
  background-image: var(--home-bar-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(1.08);
  animation: home-bar-drift 28s ease-in-out infinite alternate;
}

@keyframes home-bar-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}

.home-bar__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 34rem at var(--bar-x, 68%) var(--bar-y, 38%), rgba(255, 196, 110, 0.22), rgba(255, 196, 110, 0.06) 40%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.home-bar.is-inview .home-bar__spotlight {
  opacity: 1;
}

.home-bar__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--color-black) 0%, rgba(5, 5, 5, 0) 22%),
    linear-gradient(to top, var(--color-black) 0%, rgba(5, 5, 5, 0.6) 18%, rgba(5, 5, 5, 0) 45%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.55) 32%, rgba(5, 5, 5, 0) 62%);
}

.home-bar__bokeh span {
  position: absolute;
  bottom: -2rem;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.9), rgba(212, 175, 55, 0.35) 45%, transparent 70%);
  filter: blur(1px);
  opacity: 0;
  animation: home-bar-rise var(--d) linear var(--delay) infinite;
}

@keyframes home-bar-rise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  15%  { opacity: 0.75; }
  60%  { opacity: 0.45; transform: translate3d(1.5rem, -45vh, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-1rem, -85vh, 0) scale(0.8); }
}

/* Gold corner frame */
.home-bar__frame {
  position: absolute;
  inset: var(--bar-inset);
  z-index: 1;
  pointer-events: none;
}

.home-bar__corner {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: rgba(212, 175, 55, 0.7);
  border-style: solid;
  border-width: 0;
  transition: transform 1.4s var(--bar-ease) 0.4s, opacity 1.4s ease 0.4s;
}

.home-bar__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; transform-origin: top left; }
.home-bar__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; transform-origin: top right; }
.home-bar__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; transform-origin: bottom left; }
.home-bar__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; transform-origin: bottom right; }

.home-bar.is-ready:not(.is-inview) .home-bar__corner {
  opacity: 0;
  transform: scale(0.3);
}

.home-bar__side {
  position: absolute;
  top: 50%;
  right: calc(var(--bar-inset) + 1.25rem);
  z-index: 1;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

.home-bar__side::before,
.home-bar__side::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 3rem;
  margin: 1.25rem 0;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.6));
  vertical-align: middle;
}

.home-bar__side::after {
  background: linear-gradient(to top, transparent, rgba(212, 175, 55, 0.6));
}

/* Content */
.home-bar__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 38rem;
  padding: 6rem calc(var(--bar-inset) + 1.5rem) calc(var(--bar-inset) + 2.5rem);
}

@media (min-width: 1024px) {
  .home-bar__content {
    padding-left: calc(var(--bar-inset) + 4rem);
    padding-bottom: calc(var(--bar-inset) + 4rem);
  }
}

.home-bar__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.home-bar__eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--color-gold);
  transform-origin: left;
  transition: transform 1.2s var(--bar-ease) 0.3s;
}

.home-bar.is-ready:not(.is-inview) .home-bar__eyebrow::before {
  transform: scaleX(0);
}

.home-bar__title {
  overflow: hidden;
  padding: 0 0.1em 0.12em 0;
  font-size: clamp(3.75rem, 10vw, 8.5rem);
  line-height: 0.95;
  color: #fff;
}

.home-bar__title-text {
  display: inline-block;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #f3d98b 48%, var(--color-gold) 52%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 1.3s var(--bar-ease) 0.15s;
}

.home-bar.is-inview .home-bar__title-text {
  animation: home-bar-shimmer 9s ease-in-out 1.4s infinite;
}

.home-bar.is-ready:not(.is-inview) .home-bar__title-text {
  transform: translateY(105%);
}

@keyframes home-bar-shimmer {
  0%, 100% { background-position: 100% 0; }
  22%      { background-position: 0 0; }
  23%      { background-position: 0 0; }
}

.home-bar__text {
  max-width: 30rem;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.home-bar__menu {
  list-style: none;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.home-bar__menu-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.home-bar__menu-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.home-bar__menu-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.45);
  transform: translateY(-0.3em);
}

.home-bar__menu-note {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.home-bar__menu-item:hover .home-bar__menu-name {
  color: var(--color-gold);
}

.home-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

.home-bar__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  padding: 1rem 2rem;
  backdrop-filter: blur(6px);
  background: rgba(5, 5, 5, 0.25);
}

.home-bar__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 230, 160, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--bar-ease);
}

.home-bar__cta:hover::before {
  transform: translateX(120%);
}

.home-bar__cta-arrow {
  transition: transform 0.4s var(--bar-ease);
}

.home-bar__cta:hover .home-bar__cta-arrow {
  transform: translateX(4px);
}

.home-bar__hours {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.home-bar__hours-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  animation: home-bar-pulse 2.4s ease-out infinite;
}

@keyframes home-bar-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Staggered reveal (only once JS has marked the section ready) */
.home-bar [data-bar-reveal] {
  transition: opacity 1s ease, transform 1s var(--bar-ease);
  transition-delay: calc(0.35s + var(--i, 0) * 0.12s);
}

.home-bar.is-ready:not(.is-inview) [data-bar-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
}

@media (max-width: 767px) {
  .home-bar {
    min-height: 100svh;
  }

  .home-bar__side {
    display: none;
  }

  .home-bar__shade {
    background:
      linear-gradient(to bottom, var(--color-black) 0%, rgba(5, 5, 5, 0) 20%),
      linear-gradient(to top, var(--color-black) 0%, rgba(5, 5, 5, 0.82) 45%, rgba(5, 5, 5, 0.2) 75%);
  }

  .home-bar__menu-name {
    font-size: 1.2rem;
  }

  .home-bar__menu-note {
    display: none;
  }

  .home-bar__bokeh span:nth-child(n + 5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-bar__image,
  .home-bar__bokeh span,
  .home-bar__hours-dot,
  .home-bar.is-inview .home-bar__title-text {
    animation: none;
  }

  .home-bar__media {
    transform: none;
  }

  .home-bar__stage,
  .home-bar__corner,
  .home-bar__title-text,
  .home-bar [data-bar-reveal],
  .home-bar__eyebrow::before {
    transition: none;
  }
}

/* ── Story teaser: cinematic editorial composition ─────────── */

.qc-story {
  --qc-story-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qc-story-gutter: 1.5rem;
  --qc-story-ink: #050505;
  position: relative;
  display: grid;
  grid-template-columns: var(--qc-story-gutter) minmax(0, 1fr) var(--qc-story-gutter);
  padding: clamp(5rem, 14vw, 7rem) 0 clamp(4.5rem, 12vw, 6rem);
  background:
    radial-gradient(ellipse 60% 50% at 12% 45%, rgba(255, 255, 255, 0.025), transparent 70%),
    var(--qc-story-ink);
  overflow: hidden;
}

.qc-story > * {
  grid-column: 2;
}

/* Micro label */
.qc-story__meta {
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.qc-story__meta-index {
  color: var(--color-gold);
  letter-spacing: 0.2em;
}

.qc-story__meta-rule {
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

/* Q brand mark */
.qc-story__mark {
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qc-story__mark-img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  opacity: 0.85;
}

.qc-story__mark-rule {
  display: none;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0));
}

/* Headline */
.qc-story__title {
  grid-row: 2;
  position: relative;
  z-index: 2;
  max-width: 12ch;
  margin-top: 2.75rem;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(2.4rem, 9.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: #f7f4ee;
  text-wrap: balance;
}

/* Media */
.qc-story__media {
  grid-row: 3;
  grid-column: 2 / 4;
  position: relative;
  margin-top: 2.5rem;
  aspect-ratio: 6 / 5;
}

.qc-story__mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px 0 0 2px;
  background: #0c0c0c;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--qc-story-ease);
}

.qc-story__parallax {
  position: absolute;
  inset: -6% 0;
  transform: translate3d(0, var(--qc-story-shift, 0px), 0);
  will-change: transform;
}

.qc-story__zoom {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transition: transform 1.8s var(--qc-story-ease);
}

.qc-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) contrast(1.04);
}

.qc-story.is-inview .qc-story__img {
  animation: qc-story-breathe 14s ease-in-out 1.8s infinite alternate;
}

@keyframes qc-story-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.018) translate3d(-0.4%, -0.3%, 0); }
}

.qc-story__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0) 38%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0) 25%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.qc-story__frame {
  position: absolute;
  left: -0.75rem;
  bottom: -0.75rem;
  width: 42%;
  height: 55%;
  border-left: 1px solid rgba(212, 175, 55, 0.28);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  transform-origin: bottom left;
  transition: transform 1.4s var(--qc-story-ease) 0.6s, opacity 1.4s ease 0.6s;
  pointer-events: none;
}

.qc-story__caption {
  position: absolute;
  right: calc(var(--qc-story-gutter) + 0.25rem);
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.575rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.qc-story__caption-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Body */
.qc-story__body {
  grid-row: 4;
  margin-top: 2.5rem;
}

.qc-story__copy {
  max-width: 34rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}

/* Editorial CTA */
.qc-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7f4ee;
}

.qc-story__cta-label {
  position: relative;
  padding-bottom: 0.35rem;
}

.qc-story__cta-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.32em;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.qc-story__cta-label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0.32em;
  bottom: 0;
  z-index: 1;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--qc-story-ease);
}

.qc-story__cta-line {
  width: 2.25rem;
  height: 1px;
  background: rgba(212, 175, 55, 0.55);
  transform-origin: left;
  transition: transform 0.7s var(--qc-story-ease);
}

.qc-story__cta-arrow {
  margin-left: -0.6rem;
  color: var(--color-gold);
  transition: transform 0.7s var(--qc-story-ease);
}

.qc-story__cta:hover .qc-story__cta-label::before,
.qc-story__cta:focus-visible .qc-story__cta-label::before {
  transform: scaleX(1);
  transform-origin: left;
}

.qc-story__cta:hover .qc-story__cta-line,
.qc-story__cta:focus-visible .qc-story__cta-line {
  transform: scaleX(1.45);
}

.qc-story__cta:hover .qc-story__cta-arrow,
.qc-story__cta:focus-visible .qc-story__cta-arrow {
  transform: translateX(1.1rem);
}

.qc-story__cta:focus-visible {
  outline: 1px solid rgba(212, 175, 55, 0.6);
  outline-offset: 6px;
}

/* Reveal states (applied only after JS marks the section ready) */
.qc-story [data-qc-story-reveal] {
  transition: opacity 1.1s ease, transform 1.1s var(--qc-story-ease);
  transition-delay: calc(0.45s + var(--i, 0) * 0.12s);
}

.qc-story.is-ready:not(.is-inview) [data-qc-story-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
}

.qc-story.is-ready:not(.is-inview) .qc-story__mask {
  clip-path: inset(100% 0 0 0);
}

.qc-story.is-ready:not(.is-inview) .qc-story__zoom {
  transform: scale(1.08);
}

.qc-story.is-ready:not(.is-inview) .qc-story__frame {
  opacity: 0;
  transform: scale(0.6);
}

/* Tablet & desktop: asymmetric 12-column composition */
@media (min-width: 768px) {
  .qc-story {
    --qc-story-gutter: clamp(2rem, 5vw, 4rem);
    grid-template-columns:
      [full-start] minmax(var(--qc-story-gutter), 1fr)
      [content-start] repeat(12, minmax(0, 6.25rem))
      [content-end] minmax(var(--qc-story-gutter), 1fr) [full-end];
    grid-template-rows: auto minmax(4rem, 1fr) auto auto minmax(4rem, 1fr);
    column-gap: clamp(1rem, 2vw, 1.75rem);
    padding: clamp(7rem, 12vw, 11rem) 0;
  }

  .qc-story > * {
    grid-column: auto;
  }

  .qc-story__meta {
    grid-column: 2 / span 4;
    grid-row: 1;
    align-self: start;
    padding-top: 0.5rem;
  }

  .qc-story__mark {
    grid-column: 2 / span 5;
    grid-row: 2;
    justify-self: start;
    align-self: end;
  }

  .qc-story__mark-rule {
    display: block;
  }

  .qc-story__title {
    grid-column: 2 / 11;
    grid-row: 3;
    max-width: 13.5ch;
    margin-top: 2rem;
    font-size: clamp(3rem, 5.4vw, 4.4rem);
  }

  .qc-story__media {
    grid-column: 8 / full-end;
    grid-row: 1 / -1;
    margin-top: 0;
    aspect-ratio: auto;
    min-height: clamp(34rem, 62vw, 48rem);
  }

  .qc-story__mask {
    border-radius: 3px 0 0 3px;
  }

  .qc-story__shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0.35) 22%, rgba(5, 5, 5, 0) 45%),
      linear-gradient(to top, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 30%),
      linear-gradient(to bottom, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0) 20%);
  }

  .qc-story__frame {
    left: -1.75rem;
    bottom: -1.75rem;
    height: 24%;
  }

  .qc-story__caption {
    right: var(--qc-story-gutter);
    bottom: 1.75rem;
  }

  .qc-story__body {
    grid-column: 2 / 8;
    grid-row: 4;
    margin-top: 2.25rem;
    padding-right: clamp(1.5rem, 3vw, 3.5rem);
  }

  .qc-story__copy {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .qc-story__mark {
    grid-column: 3 / span 4;
  }

  .qc-story__title {
    grid-column: 3 / 10;
  }

  .qc-story__media {
    grid-column: 7 / full-end;
    min-height: clamp(44rem, 66vw, 60rem);
  }

  .qc-story__body {
    grid-column: 3 / 7;
    margin-top: 2.75rem;
  }

  .qc-story__frame {
    left: -2.5rem;
    bottom: -2.5rem;
  }
}

@media (min-width: 1440px) {
  .qc-story__media {
    grid-column: 7 / 14;
  }

  .qc-story__mask {
    border-radius: 3px;
  }

  .qc-story__frame {
    width: 36%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qc-story.is-inview .qc-story__img {
    animation: none;
  }

  .qc-story__parallax {
    transform: none;
  }

  .qc-story__mask,
  .qc-story__zoom,
  .qc-story__frame,
  .qc-story [data-qc-story-reveal] {
    transition: none;
  }
}
