:root {
  --navy: #161f40;
  --navy-deep: #0d1329;
  --mist: #b3b4c4;
  --silver: #d8dae6;
  --ink: #1a1d2b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #0d1329;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fold 1: hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: #b9c4d2;
}

/* scene + billboard share this layer so parallax moves them as one, keeping
   the ads aligned to the board. Slightly scaled up to give parallax headroom. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
  transform: scale(1.08);
  will-change: transform;
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Billboard panel: box positioned over the dark panel; the perspective clip
   lives here so ads can scale (Ken Burns) without breaking the alignment.
   Corner %s were measured against the hero image (1536x1024). */
.billboard {
  position: absolute;
  left: 40.6%;
  top: 18.6%;
  width: 34%;
  height: 36.5%;
  clip-path: polygon(0% 17%, 100% 0%, 100% 91%, 0% 100%);
}

.billboard__ad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  transform-origin: center;
  /* pure centred breathe (scale only, no pan) so nothing drifts up/down */
  animation: billboard-drift 26s ease-in-out infinite;
}

.billboard__ad.is-active { opacity: 1; }

@keyframes billboard-drift {
  0%,
  100% { transform: scale(1.005); }
  50% { transform: scale(1.03); }
}

/* dissolve the street into solid navy well before the hero's foot, so the
   band below meets navy-on-navy with no visible seam */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 31, 64, 0) 0%,
    rgba(22, 31, 64, 0.5) 55%,
    var(--navy) 88%,
    var(--navy) 100%
  );
}

.hero__brand {
  position: absolute;
  left: 6%;
  bottom: 4%;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 18px rgba(9, 13, 30, 0.55);
}

.hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.85;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.82;
  font-size: clamp(2.4rem, 7vw, 6rem);
  letter-spacing: 0.01em;
}
.hero__title span { font-style: italic; opacity: 0.8; padding: 0 0.1em; }

.hero__tag {
  margin: 0.6rem 0 0;
  font-weight: 300;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  letter-spacing: 0.06em;
}

/* ---------- Interstitial gradient band ---------- */
.band {
  /* solid navy; the neighbouring images fade to/from this exact colour at the
     shared edges, so there is no seam to hide */
  background: var(--navy);
  color: var(--mist);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.5rem clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
}

.band__inner { max-width: 720px; margin: 0 auto; }

.band__logo {
  display: block;
  width: clamp(130px, 18vw, 190px);
  height: auto;
  margin: 0 auto 1.2rem;
  transform-origin: center;
  will-change: transform, opacity;
}

.band__event {
  margin: 2.4rem auto 0;
  padding-top: 1.7rem;
  max-width: 620px;
  border-top: 1px solid rgba(179, 180, 196, 0.28);
}

.band__event-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  color: var(--silver);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.band__event-title span { font-style: italic; opacity: 0.75; }

.band__event-detail {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.72rem, 1.3vw, 0.92rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0;
}

.band__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.1rem;
  color: var(--silver);
  letter-spacing: 0.01em;
}

.band__copy {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* ---------- Fold 2: visit, framed ---------- */
.visit {
  position: relative;
  width: 100%;
  aspect-ratio: 1264 / 842;
  overflow: hidden;
  background: #cdd3e0;
}

.visit__frame {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* the frame emerges out of solid navy at the top so it meets the band cleanly */
.visit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--navy) 0%,
    var(--navy) 12%,
    rgba(22, 31, 64, 0.5) 48%,
    rgba(22, 31, 64, 0) 100%
  );
}

/* scroll-linked navy veil over the frame: opaque as the section enters,
   clearing to fully transparent as it rises into view (set via script.js) */
.visit__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--navy);
  opacity: 0.9;
  pointer-events: none;
}

.visit__content {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(64%, 620px);
  text-align: center;
  color: var(--navy);
}

.visit__eyebrow {
  margin: 0 0 0.5rem;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #3b4468;
}

.visit__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  margin: 0 0 1rem;
  line-height: 1;
}

.visit__address {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: #2b3252;
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}

.visit__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2b3252;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 50, 82, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.visit__directions:hover {
  color: #000;
  border-color: #000;
}
.visit__pin {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Live open/closed hint, filled in by script.js from IST shop hours. Kept quiet
   so it reads as a small aside next to "Get directions", not a badge. */
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #6b7194;
}
.hours-status__dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9aa0bd;
}
.hours-status.is-open .hours-status__dot { background: #1f7a4d; }
.hours-status.is-soon .hours-status__dot { background: #b8860b; }

.visit__hours {
  margin: 1.4rem 0 1.6rem;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  letter-spacing: 0.04em;
  color: #4a5378;
}

/* ---------- Email signup ---------- */
.signup { margin: 0 auto; max-width: 440px; }

.signup__label {
  display: block;
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  color: #2b3252;
}

.signup__row {
  position: relative;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 31, 64, 0.25);
  backdrop-filter: blur(2px);
}

/* success/error message wipes in from the right (over the button + input) */
.signup__flash-fill {
  position: absolute;
  inset: 0.35rem;
  border-radius: 999px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.signup__flash-text {
  position: absolute;
  inset: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eef0f8;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}
.signup__row.is-flashing .signup__flash-fill { transform: scaleX(1); }
.signup__row.is-flashing .signup__flash-text {
  opacity: 1;
  transition: opacity 0.25s ease 0.22s;
}
.signup__row.is-error .signup__flash-fill { background: #7c2b2b; }

.signup__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.6rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
}
.signup__input::placeholder { color: #808aad; }

.signup__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #eef0f8;
  padding: 0.6rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.signup__btn {
  position: relative;
  overflow: hidden;
}
/* silver glint sweeps across on hover */
.signup__btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}
.signup__btn:hover::after { animation: btn-shine 0.75s ease; }
@keyframes btn-shine {
  to { left: 130%; }
}
.signup__btn:hover { background: #223066; }
.signup__btn:active { transform: scale(0.97); }

.social-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.whatsapp-btn,
.insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 31, 64, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.whatsapp-btn:hover {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}
.insta-btn:hover {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-color: transparent;
  color: #fff;
}
.whatsapp-btn__icon,
.insta-btn__icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

/* messages now render inside the row overlay; keep note for screen readers */
.signup__note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll fade-up reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.band__copy.reveal { transition-delay: 0.08s; }
.band__event.reveal { transition-delay: 0.16s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .billboard__ad { animation: none; }
  .signup__btn:hover::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .visit { aspect-ratio: auto; min-height: 88vh; }
  .visit__content { width: 82%; top: 52%; }
  .signup__row { flex-direction: column; border-radius: 18px; }
  .signup__btn { border-radius: 12px; padding: 0.7rem; }

  .hero__eyebrow { display: none; }

  /* push the brand low so line 1 sits on the image and line 2 lands on the
     navy-faded foot of the hero, which reads as the blue band below */
  .hero__brand {
    left: 50%;
    top: 84%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  .hero__tag { display: none; }

  .band__heading { display: none; }

  /* the busy ornate frame shows through translucent buttons; make them solid */
  .whatsapp-btn,
  .insta-btn {
    background: #fff;
    border-color: rgba(22, 31, 64, 0.5);
  }

  .visit__eyebrow { display: none; }

  /* white plate lifts the title off the busy frame background */
  .visit__title {
    display: inline-block;
    background: #fff;
    padding: 0.25em 0.7em;
    border-radius: 14px;
  }
}
