/* ==========================================================================
   Grounded Grocer & Cafe
   Built to match the existing brand: black / white / brass gold,
   condensed type with a script accent, full-bleed photography.

   BRAND COLOUR — sampled from the live site. If Lauren has the official
   hex from whoever made the logo, change --gold here and it updates
   everywhere, on every page.
   ========================================================================== */

:root {
  --black:      #000000;
  --off-black:  #111111;
  --ink:        #1C1C1C;
  --ink-soft:   #4A4A4A;
  --white:      #FFFFFF;
  --paper:      #F4F3F1;
  --line:       #E2E0DC;
  --line-dark:  rgba(255, 255, 255, 0.22);
  --gold:       #BFA46B;
  --gold-lift:  #D4BC88;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body:    "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --script:  "Yellowtail", cursive;

  --shell:  1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--black);
  padding: 0.75rem 1.25rem; font-family: var(--display);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* --- layout -------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3rem, 8vw, 6rem); }
.band--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.band--dark { background: var(--black); color: var(--white); }
.band--paper { background: var(--paper); }

/* --- type helpers -------------------------------------------------------- */
/* Their headline pattern: a light condensed line, then a heavy one,
   then a script line underneath. */
.stack-title { margin-bottom: 1.5rem; }
.stack-title__light {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stack-title__bold {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.stack-title__script {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.15em;
}

.section-title { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.section-sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.section-sub--stack {
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.16em;
  line-height: 1.9;
  opacity: 0.8;
}

.prose { max-width: 44ch; }

/* --- buttons: outlined boxes, as on the live site ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--white); }

.btn--ondark { border-color: var(--white); color: var(--white); }
.btn--ondark:hover { background: var(--white); color: var(--black); }

.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--black); }

.btn--solid { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.split__words--center .btn-row { justify-content: center; }
.split__words--right .btn-row { justify-content: flex-end; }
.btn-row--even { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* --- top information strip ---------------------------------------------- */
.topbar {
  background: var(--white);
  color: var(--ink);
  text-align: center;
  padding-block: 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: 0.4; margin-inline: 0.5rem; }
.topbar a[href^="tel:"],
.topbar a[href*="google.com/maps"],
.topbar a[href="index.html"] { white-space: nowrap; }

/* --- black nav bar ------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 200; background: var(--black); color: var(--white); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.9rem; }
.nav__list a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav__list a:hover { color: var(--gold); }
.nav__list a[aria-current="page"] { color: var(--gold); }

/* social icons drawn as inline SVG, so there are no image files to lose */
.socials { display: flex; align-items: center; gap: 0.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--white); color: var(--white); text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.socials svg { width: 17px; height: 17px; }

.order-now {
  display: inline-flex;
  align-items: center;
  height: 38px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding-inline: 1.1rem;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--white);
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.order-now:hover { background: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1.5px solid var(--white);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-toggle .icon-close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.nav-toggle.is-open .icon-burger { opacity: 0; transform: rotate(45deg) scale(0.6); }
.nav-toggle.is-open .icon-close { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .nav-toggle { display: block; order: 3; }
  .masthead__inner { flex-wrap: wrap; }
  .nav { order: 4; flex-basis: 100%; display: none; border-top: 1px solid var(--line-dark); margin-top: 0.9rem; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__list a { display: block; padding-block: 0.95rem; }
  .socials { margin-left: 0; }
  .socials a { width: 30px; height: 30px; }
  .socials svg { width: 15px; height: 15px; }
  .order-now { margin-left: auto; }
}
@media (max-width: 419px) {
  .order-now { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* --- brand band: the big centred logo on black -------------------------- */
.brandband { background: var(--black); text-align: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.brandband__logo { display: block; margin-inline: auto; width: min(440px, 62vw); height: auto; }

/* Text stand-in, shown only until the real logo file loads */
.brandband__fallback {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(2.5rem, 9vw, 5rem); letter-spacing: 0.06em; line-height: 1;
}
.brandband__fallback span {
  display: block; font-weight: 400; font-size: 0.22em;
  letter-spacing: 0.4em; margin-top: 0.6em;
}
.brandband.logo-ok .brandband__fallback { display: none; }
.brandband:not(.logo-ok) .brandband__logo { display: none; }

/* --- split: photo one side, words the other ----------------------------- */
.split { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}

.split__words {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.split__words--center { align-items: center; text-align: center; }
.split__words--right  { align-items: flex-end; text-align: right; }
.split__words--right .prose { margin-left: auto; }

.split__media {
  position: relative;
  min-height: clamp(280px, 52vw, 620px);
  background: var(--off-black);
  overflow: hidden;
}
.split__media img, .split__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.split__media video { z-index: 1; }

/* empty state, so a missing photo still looks deliberate */
.split__media.is-empty::after,
.tile.is-empty::after,
.feature-photo.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-content: center; padding: 1rem; text-align: center;
  font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.05) 10px 20px);
}
.split__media.is-empty img, .tile.is-empty img, .feature-photo.is-empty img { display: none; }

/* --- full width photo band ---------------------------------------------- */
.feature-photo {
  position: relative; min-height: clamp(220px, 34vw, 460px);
  background: var(--off-black); overflow: hidden;
}
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- sprig ornament ------------------------------------------------------ */
.sprig { display: block; width: clamp(90px, 12vw, 150px); height: auto; margin: 1.1rem 0; }
.split__words--center .sprig { margin-inline: auto; }
.split__words--right .sprig { margin-left: auto; }

/* --- instagram strip ----------------------------------------------------- */
.ig-head { text-align: center; }
.ig-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: 0.16em; }
.ig-head p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(0.95rem, 3vw, 2rem);
  letter-spacing: clamp(0.04em, 1.1vw, 0.18em);
  text-transform: uppercase; color: var(--gold); margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}
.ig-head a { text-decoration: none; }

/* two rows that scroll sideways, as the live feed does */
.ig-strip {
  margin-top: 2.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: clamp(112px, 15vw, 168px);
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ig-strip::-webkit-scrollbar { display: none; }
.ig-strip .tile { scroll-snap-align: start; }

.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--off-black); margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.tile:hover img { transform: scale(1.06); opacity: 0.85; }

/* --- menu ---------------------------------------------------------------- */
.menu-nav { position: sticky; top: 62px; z-index: 150; background: var(--black); border-top: 1px solid var(--line-dark); }
.menu-nav__list {
  list-style: none; margin: 0; padding-block: 0.75rem;
  display: flex; gap: 1.6rem; overflow-x: auto; justify-content: center;
  scrollbar-width: none; -ms-overflow-style: none;
}
.menu-nav__list::-webkit-scrollbar { display: none; }

@media (max-width: 599px) {
  .menu-nav__list {
    flex-wrap: wrap; overflow-x: visible; justify-content: center;
    row-gap: 0.6rem; column-gap: 1.2rem;
  }
}
.menu-nav__list a {
  font-family: var(--display); font-weight: 400;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,0.7); white-space: nowrap;
  padding-bottom: 0.2rem; border-bottom: 1.5px solid transparent;
}
.menu-nav__list a:hover, .menu-nav__list a.is-active { color: var(--white); border-bottom-color: var(--gold); }

.course + .course { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.course__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.85rem; margin-bottom: 1.5rem;
  border-bottom: 2px solid currentColor;
}
.course__head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: 0.05em; }
.course__meta {
  font-family: var(--display); font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; margin: 0;
}

.items {
  list-style: none; margin: 0; padding: 0;
  --item-rule: var(--line);
  --item-leader: rgba(28, 28, 28, 0.3);
  --item-note: var(--ink-soft);
  --item-note-strong: var(--ink);
  --item-price: var(--gold);
}
.band--dark .items {
  --item-rule: var(--line-dark);
  --item-leader: rgba(255, 255, 255, 0.35);
  --item-note: rgba(255, 255, 255, 0.72);
  --item-note-strong: var(--white);
}

.item {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 0 0.6rem;
  padding-block: 0.9rem; border-bottom: 1px solid var(--item-rule);
}
.item__name {
  font-family: var(--display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.item__name::after {
  content: ""; position: absolute; bottom: 0.3em;
  margin-left: 0.6rem; width: 100%; border-bottom: 2px dotted var(--item-leader);
}
.item__price {
  font-family: var(--display); font-weight: 500;
  font-size: 1.05rem; color: var(--item-price); white-space: nowrap;
}
.item__note {
  grid-column: 1 / -1; font-size: 1rem; line-height: 1.45;
  color: var(--item-note); margin: 0.25rem 0 0; max-width: 62ch;
}
.item__note b { display: block; margin-top: 0.35rem; font-weight: 600; color: var(--item-note-strong); }

@media (min-width: 900px) {
  .items--split {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 5vw, 4rem); align-items: start;
  }
}

.note-card {
  border-left: 3px solid var(--gold);
  background: rgba(191, 164, 107, 0.1);
  padding: 1.1rem 1.3rem; margin-top: 1.5rem; font-size: 1rem;
}

/* --- hours --------------------------------------------------------------- */
.hours { list-style: none; margin: 0; padding: 0; max-width: 26rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 300; font-size: 0.95rem; letter-spacing: 0.04em;
}
.band--dark .hours li, .footer .hours li { border-bottom-color: var(--line-dark); }
.hours li.is-today { color: var(--gold); font-weight: 500; }
.hours__day { text-transform: uppercase; letter-spacing: 0.1em; }

/* --- live open/closed indicator ------------------------------------------ */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 500; letter-spacing: 0.06em; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { color: var(--gold); }
.status.is-open .status__dot { background: #6FBF73; animation: pulse 2.4s infinite; }
.status.is-closed .status__dot { background: #B4544F; }
/* Overrides is-open/is-closed's colour with a more urgent amber in the
   30 minutes either side of opening or closing. */
.status.is-soon { color: #E0983B; }
.status.is-soon .status__dot { background: #E0983B; animation: pulse-amber 1.6s infinite; }
@keyframes pulse-amber {
  70%  { box-shadow: 0 0 0 7px rgba(224, 152, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 152, 59, 0); }
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(111, 191, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 115, 0); }
}

/* --- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--display); font-weight: 500;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.band--dark .field label { color: rgba(255, 255, 255, 0.7); }
.field:has(:required) label::after { content: " *"; color: var(--gold); }

.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1.0625rem; padding: 0.75rem 0.9rem;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 0; width: 100%;
}
.band--dark .field input, .band--dark .field select, .band--dark .field textarea {
  background: transparent; color: var(--white); border-color: var(--line-dark);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }

.form.was-validated .field input:invalid,
.form.was-validated .field select:invalid,
.form.was-validated .field textarea:invalid { border-color: #B4544F; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin: -0.5rem 0 0.25rem; }
.band--dark .form-hint { color: rgba(255, 255, 255, 0.55); }

.form__status {
  font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.85rem 1rem; border-left: 3px solid var(--gold);
  background: rgba(191, 164, 107, 0.12); display: none;
}
.form__status.is-shown { display: block; }
.form__status.is-error { border-left-color: #B4544F; background: rgba(180, 84, 79, 0.12); }
.gotcha { position: absolute; left: -9999px; opacity: 0; }

/* --- footer -------------------------------------------------------------- */
.footer { background: var(--black); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer h2 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer p, .footer address { font-style: normal; font-size: 1rem; line-height: 1.6; }
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer a:hover { color: var(--gold); }

.colophon {
  margin-top: 2.75rem; padding-top: 1.35rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-family: var(--display); font-weight: 300;
  font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6);
}
.colophon a { text-decoration: none; }

/* --- reveal (never hides content unless JS is actually running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- feature film --------------------------------------------------------
   Autoplays muted (the only way browsers allow autoplay), loops, and offers
   a sound toggle. The source is 640x352, so the player is capped at 960px —
   beyond that the upscaling starts to show.
   ------------------------------------------------------------------------- */
.filmband { background: var(--black); padding-block: 0 clamp(2rem, 4vw, 3rem); }

.film {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 640 / 352;
  background: var(--off-black);
  overflow: hidden;
}
.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--off-black);
}

/* sound toggle */
.film__sound {
  position: absolute;
  right: 0.9rem;
  bottom: 4.2rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.62);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.film__sound:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.film__sound-icon { display: inline-flex; }
.film__sound svg { width: 16px; height: 16px; }
/* when sound is on, the outgoing waves are hidden to read as "mute" */
.film__sound[aria-pressed="true"] svg path:nth-child(n+2) { opacity: 0.25; }

/* fallback play button, shown only if the browser refuses to autoplay */
.film__play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  color: var(--white);
  cursor: pointer;
}
.film__play[hidden] { display: none; }
.film__play svg {
  width: 64px; height: 64px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--white);
  border-radius: 50%;
  padding: 14px;
}
.film__play:hover svg { background: var(--gold); border-color: var(--gold); color: var(--black); }

.film__caption {
  margin: 1rem auto 0;
  max-width: 960px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.film__caption strong { font-weight: 600; color: var(--white); }

@media (max-width: 599px) {
  .film__sound { right: 0.6rem; bottom: 3.7rem; font-size: 0.66rem; padding: 0.42rem 0.7rem; }
  .film__play svg { width: 52px; height: 52px; padding: 11px; }
}

/* If the visitor has asked for reduced motion, don't autoplay at them —
   the script leaves the poster and the play button instead. */

/* If the video cannot be decoded or downloaded, the poster still carries the
   section on its own rather than leaving an empty black box. */
.film.is-fallback { background-size: cover; background-position: center; }
.film.is-fallback .film__video,
.film.is-fallback .film__sound,
.film.is-fallback .film__play { display: none; }

/* --- day / night hero ----------------------------------------------------
   Two photographs of the shopfront stacked on top of each other, crossfading
   between them. The night state also swaps the supporting line, because the
   evening venue hire is a different offer to the daytime cafe.
   ------------------------------------------------------------------------- */
.daynight {
  position: relative;
  isolation: isolate;
  min-height: clamp(340px, 52vw, 580px);
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  align-content: end;
  background: var(--black);
  overflow: hidden;
  cursor: pointer;
}

.daynight__frames { position: absolute; inset: 0; z-index: 0; }

.daynight__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(0% at 0% 50%); /* hidden by default; JS reveals it */
  transition: clip-path 2.1s var(--ease);
}
/* Whichever photo is arriving grows in from the left edge — a rounded sun-
   like edge rather than a straight wipe — and it always grows from that
   same point whether turning night on or off. JS resets it back to 0%
   before each reveal so the animation never plays in reverse. z-index just
   tracks which photo is on top. */
.daynight__img.is-day   { z-index: 1; }
.daynight__img.is-night { z-index: 0; }
[data-mode="night"] .daynight__img.is-night { z-index: 1; }
[data-mode="night"] .daynight__img.is-day   { z-index: 0; }

.daynight__body {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  padding-block: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white);
}
.daynight__body .section-title { color: var(--white); font-size: clamp(1.4rem, 3.2vw, 2.2rem); }

/* Both lines occupy the same grid cell so the banner does not jump height
   when the longer one swaps in. */
.daynight__copy { display: grid; margin-top: 0.75rem; max-width: 40ch; }
.daynight__line {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

/* Web: the mobile padding/type scale reads as too tall once the banner has
   this much horizontal room, so both shrink further above the phone
   breakpoint — mobile itself is untouched. */
@media (min-width: 600px) {
  .daynight__body { padding-block: clamp(0.6rem, 1.47vw, 0.98rem); }
  .daynight__body .section-title { font-size: clamp(1.1rem, 2.24vw, 1.54rem); }
  .daynight__copy { margin-top: 0.4rem; max-width: none; }
  .daynight__line { font-size: 0.82rem; }
}
[data-mode="day"]   .daynight__line.is-day,
[data-mode="night"] .daynight__line.is-night {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* --- the toggle ---------------------------------------------------------- */
.daynight__toggle {
  position: absolute;
  z-index: 3;
  top: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1rem, 3vw, 1.75rem);
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.daynight__toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.daynight__toggle-body {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
}

/* Static labels either side of the switch — neither ever changes text, only
   which one reads as active, so nothing shifts width or flickers on click. */
.daynight__toggle-label {
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), font-weight 0.25s var(--ease);
}
.daynight__toggle-label[data-side="day"] { font-weight: 600; opacity: 1; }
[data-mode="night"] .daynight__toggle-label[data-side="day"] { font-weight: 500; opacity: 0.55; }
[data-mode="night"] .daynight__toggle-label[data-side="night"] { font-weight: 600; opacity: 1; }

/* A real sliding switch instead of a crossfading icon, so it reads as a
   toggle at a glance rather than a static badge. */
.daynight__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 18px;
  flex: none;
  background: #c79a4b; /* warm daylight gold */
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: background 0.3s var(--ease);
}
[data-mode="night"] .daynight__switch { background: #232a4d; /* deep night indigo */ }
.daynight__switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}
.daynight__switch-thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.5px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.daynight__switch-thumb .icon-sun  { opacity: 1; transform: none; }
.daynight__switch-thumb .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-mode="night"] .daynight__switch-thumb { transform: translateX(15px); }
[data-mode="night"] .daynight__switch-thumb .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-mode="night"] .daynight__switch-thumb .icon-moon { opacity: 1; transform: none; }

@media (max-width: 599px) {
  .daynight__toggle { font-size: 0.68rem; }
  .daynight__toggle-body { padding: 0.5rem 0.8rem; gap: 0.45rem; }
}

/* Swapping a photograph is the whole point, so the toggle still works with
   reduced motion on — it just happens instantly instead of fading. */
@media (prefers-reduced-motion: reduce) {
  .daynight__img,
  .daynight__line,
  .daynight__switch-thumb,
  .daynight__switch-thumb svg { transition: none; }
  .daynight__line { transform: none; }
}

/* Phone: the banner needs more height or the headline sits on top of the
   building, and the letterspaced subtitle wraps into an awkward orphan. */
@media (max-width: 599px) {
  .daynight { min-height: clamp(430px, 112vw, 520px); }
  .daynight__img { object-position: center 42%; }
  .daynight .section-sub { letter-spacing: 0.12em; }
}
