/* =========================================================
   Sofra Studios
   Plain CSS, mobile first. Colours and fonts live in :root.
   ========================================================= */

:root {
  /* Palette */
  --burgundy: #952133;
  --burgundy-deep: #6c1625;
  --cream: #f6f0e8;
  --paper: #efe6db;
  --sand: #dccbb8;
  --blush: #ead8cf;
  --ink: #1f1517;
  --ink-soft: #4b3c38;
  --muted: #6b5a51;
  --line: rgba(31, 21, 23, 0.14);
  --line-light: rgba(246, 240, 232, 0.22);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 14vw, 200px);
  --radius: 4px;
  --radius-lg: clamp(16px, 2.4vw, 28px);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body, h1, h2, h3, p, figure, ol, ul, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A whisper of paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--burgundy); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
  border-radius: 2px;
}
.cafe :focus-visible, .footer :focus-visible { outline-color: var(--cream); }

.sr-only, .sr-defs {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, .statement { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
/* Cormorant defaults to old-style numbers; lining ones read better for phone numbers and postcodes */
h1, h2, h3, .statement, .eyebrow__num, .contact__tel, .location__address, .step__num { font-variant-numeric: lining-nums; }
em { font-style: italic; }
h1 em, h2 em, .statement em { color: var(--burgundy); }

.h2 {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 1;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.statement {
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  max-width: 19ch;
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow__num { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; font-style: italic; text-transform: none; }
.eyebrow--light { color: var(--blush); }

/* Line masks used by SplitText (and the hero). The padding stops italic tails getting clipped. */
.split-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; padding-right: 0.08em; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }

/* ---------- Buttons and links ---------- */
.btn {
  --bg: var(--burgundy);
  --fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--burgundy-deep);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__arrow {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform .5s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--small { min-height: 42px; padding: 10px 20px; font-size: 0.72rem; }
.btn--large { min-height: 60px; padding: 18px 34px; }
.btn--light { --bg: var(--cream); --fg: var(--burgundy); }
.btn--light::before { background: var(--blush); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow::after { content: "\2192"; font-size: 1rem; letter-spacing: 0; transition: transform .5s var(--ease); }
.link-arrow:hover { background-size: 30% 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Image slots ----------
   Every image sits in a .media frame. Swap the file in /assets/images and keep the same name. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--radius);
}
.media img, .media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--soft { border-radius: var(--radius-lg); }
.media--arch { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.media--round { border-radius: 50%; }
/* Parallax frames get a little extra image to move within */
[data-parallax] img { transform: scale(1.12); }

/* ---------- Monogram ---------- */
.mono .mono__s { fill: var(--burgundy); }
.mono__ring { fill: none; stroke: var(--burgundy); stroke-width: 3; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: transform .7s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(246, 240, 232, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.nav__mono { width: 40px; height: 40px; }
.nav__name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav__links a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.nav__links a:hover { background-size: 100% 1px; }
.nav__book { display: none; }
.nav__menu-foot { display: none; }

/* Mobile menu */
.nav__toggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__toggle-lines { display: grid; gap: 6px; width: 22px; }
.nav__toggle-lines span { height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Without JS the menu is just a row of links under the logo */
html:not(.js) .nav { position: absolute; }
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__inner { flex-wrap: wrap; height: auto; padding-block: 18px; }
html:not(.js) .nav__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; }

@media (max-width: 959px) {
  .js .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: var(--cream);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease), visibility 0s linear .8s;
  }
  .js .nav.is-open .nav__menu {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path .8s var(--ease), visibility 0s;
  }
  .js .nav__links { display: grid; gap: 4px; }
  .js .nav__links a {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 11vw, 4rem);
    line-height: 1.15;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .8s var(--ease);
  }
  .js .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .js .nav.is-open .nav__links li:nth-child(2) a { transition-delay: .05s; }
  .js .nav.is-open .nav__links li:nth-child(3) a { transition-delay: .1s; }
  .js .nav.is-open .nav__links li:nth-child(4) a { transition-delay: .15s; }
  .js .nav.is-open .nav__links li:nth-child(5) a { transition-delay: .2s; }
  .js .nav__menu-foot {
    display: block;
    margin-top: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (min-width: 960px) {
  :root { --nav-h: 88px; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 0.875rem; }
  .nav__menu { margin-right: 24px; }
  .nav__book { display: inline-flex; }
  html:not(.js) .nav__inner { flex-wrap: nowrap; }
}

/* =========================================================
   Intro (only shown when html has .has-intro)
   ========================================================= */
.intro { display: none; }
.has-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.intro__curtain {
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform-origin: 50% 0;
}
.intro__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
}
.intro__mono { width: min(42vmin, 300px); height: auto; overflow: visible; }
.intro__mono .mono__ring { stroke-width: 4; }
.intro__word {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding-left: 0.42em;
}
/* Starting states while the intro runs. JS animates them in. */
.has-intro .intro__mono .mono__ring { stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-intro .intro__mono .mono__s { fill-opacity: 0; stroke: var(--burgundy); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.has-intro .intro__word { opacity: 0; }
.has-intro .nav__mono { opacity: 0; }
.has-intro .nav__name, .has-intro .nav__menu, .has-intro .nav__book, .has-intro .nav__toggle { opacity: 0; }
.has-intro .hero .line__inner { transform: translateY(110%); }
.has-intro [data-hero-fade] { opacity: 0; }
.has-intro [data-hero-media] { clip-path: inset(100% 0 0 0); }
.has-intro.intro-short .intro__stage { display: none; }

/* =========================================================
   Hero: full screen video with the welcome on top
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 24px);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Darken the footage enough for the text to read clearly */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(31, 21, 23, 0.85) 0%, rgba(31, 21, 23, 0.35) 45%, rgba(31, 21, 23, 0.25) 100%),
    linear-gradient(to right, rgba(31, 21, 23, 0.45) 0%, transparent 65%);
}
.hero__copy { position: relative; }
.hero__eyebrow { color: var(--blush); }
@media (max-width: 479px) { .hero__eyebrow::before { display: none; } }
.hero__title {
  font-size: clamp(4rem, 21vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero__title em { color: var(--blush); }
.hero__title .line:last-child { padding-left: 0.5em; }
.hero__intro {
  max-width: 34ch;
  text-wrap: pretty;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: rgba(246, 240, 232, 0.88);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero__foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 240, 232, 0.75);
}
.scroll-cue { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 48px; background: var(--line-light); overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero .video-toggle { top: auto; bottom: 88px; right: var(--gutter); }
.hero :focus-visible { outline-color: var(--cream); }

@media (min-width: 960px) {
  .hero__title { font-size: min(13vw, 12rem); white-space: nowrap; }
  .hero .video-toggle { bottom: 96px; }
}

/* While the nav sits over the hero video, it's light on dark */
.nav.is-over-hero:not(.is-open) { color: var(--cream); }
.nav.is-over-hero.is-scrolled:not(.is-open) { background: rgba(31, 21, 23, 0.35); box-shadow: none; }
.nav.is-over-hero:not(.is-open) .mono .mono__s { fill: var(--cream); }
.nav.is-over-hero:not(.is-open) .nav__book { --bg: var(--cream); --fg: var(--burgundy); }
.nav.is-over-hero:not(.is-open) .nav__book::before { background: var(--blush); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--section); position: relative; }

/* About */
.about__grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(56px, 8vw, 120px);
}
.about__media { aspect-ratio: 4 / 5; }
.about__text { display: grid; gap: 22px; align-content: start; max-width: 34rem; color: var(--ink-soft); }
.about__text .lead { color: var(--ink); }
.about__text .link-arrow { justify-self: start; margin-top: 8px; color: var(--burgundy); }

@media (min-width: 760px) {
  .about__grid { grid-template-columns: 5fr 6fr; align-items: end; gap: clamp(48px, 8vw, 140px); }
  .about__media { margin-left: 8%; }
  .about__text { padding-bottom: 6%; }
}

/* Wide band image that opens out on scroll */
.band {
  margin-top: var(--section);
  padding-inline: var(--gutter);
}
/* With motion on, the band runs edge to edge and JS insets it until you scroll */
.motion .band { padding-inline: 0; }
.motion .band__inner { border-radius: 0; }
.band__inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.band__inner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .band__inner { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .band__inner { aspect-ratio: 21 / 9; } }

/* Ribbon */
.ribbon {
  overflow: hidden;
  background: var(--cream);
  padding-block: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.ribbon__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  color: var(--burgundy);
  white-space: nowrap;
}
.ribbon__track i {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

/* =========================================================
   Film: classes, café, socials
   Each chapter sticks to the top of the screen and the next one slides up over it.
   ========================================================= */
.chapter {
  --tone: var(--ink);
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  background: var(--tone);
  color: var(--cream);
  overflow: hidden;
}
.chapter--cafe { --tone: #3b1a1f; }
.chapter--socials { --tone: var(--burgundy-deep); }
.chapter + .chapter { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.chapter__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 8px) var(--gutter) calc(96px + env(safe-area-inset-bottom));
  transform-origin: 50% 0;
}
.chapter__media {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.chapter__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter__inset { display: none; }
.chapter__text { padding-top: 24px; max-width: 36rem; }
.chapter__text .eyebrow { margin-bottom: 14px; }
.chapter__title {
  font-size: clamp(2.3rem, 9vw, 5.6rem);
  line-height: 1;
  margin-bottom: 14px;
}
.chapter__title em { color: var(--blush); }
.chapter__lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: rgba(246, 240, 232, 0.82);
  margin-bottom: 20px;
  max-width: 30rem;
}
/* Short phone screens: keep the text tight so the video still has room */
@media (max-width: 959px) and (max-height: 740px) {
  .chapter__lead { display: none; }
}

@media (min-width: 960px) {
  .chapter__inner { padding: 0; display: block; }
  .chapter__media { position: absolute; inset: 0; border-radius: 0; }
  .chapter__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to top, rgba(31, 21, 23, 0.9) 0%, transparent 55%),
      linear-gradient(to right, rgba(31, 21, 23, 0.5) 0%, transparent 60%);
    background:
      linear-gradient(to top, color-mix(in srgb, var(--tone) 92%, transparent) 0%, transparent 55%),
      linear-gradient(to right, color-mix(in srgb, var(--tone) 55%, transparent) 0%, transparent 60%);
  }
  .chapter__text {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(40px, 7vh, 88px);
    z-index: 2;
    padding: 0;
  }
  .chapter__inset {
    display: block;
    position: absolute;
    right: var(--gutter);
    bottom: clamp(40px, 7vh, 88px);
    z-index: 2;
    width: clamp(220px, 22vw, 340px);
    aspect-ratio: 544 / 352;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  }
  .chapter__inset video { width: 100%; height: 100%; object-fit: cover; }
}

/* Pause / play button for the videos: a small round icon, labelled for screen readers */
.video-toggle {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 21, 23, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  opacity: .8;
  transition: opacity .3s, background-color .3s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; background: rgba(31, 21, 23, 0.65); }
.video-toggle__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.video-toggle__icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.video-toggle[aria-pressed="true"] .video-toggle__icon {
  border: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  width: 0; height: 0;
  margin-left: 3px;
}
html:not(.js) .video-toggle { display: none; }
.chapter .video-toggle { top: calc(var(--nav-h) + 20px); right: calc(var(--gutter) + 12px); }
@media (min-width: 960px) {
  .chapter .video-toggle { right: var(--gutter); }
}

/* Booking: the Momence timetable */
.booking__head { max-width: 46rem; }
.booking__head .lead { margin-top: -8px; }
.timetable {
  margin-top: clamp(32px, 5vw, 64px);
  padding: clamp(8px, 2vw, 24px);
  background: #fbf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.timetable__widget { min-height: 420px; }
/* A quiet loading message until Momence fills the box */
.timetable__widget:empty {
  display: grid;
  place-items: center;
}
.timetable__widget:empty::before {
  content: "Loading the timetable\2026";
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Once Momence has drawn the timetable, the loading box steps aside */
.timetable.is-loaded .timetable__widget { min-height: 0; }
.timetable.is-loaded .timetable__widget::before { content: none; }
.timetable__fallback { padding: 24px; text-align: center; color: var(--ink-soft); }
.booking__note { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.booking__note a { color: var(--burgundy); text-underline-offset: 3px; }

/* Momence's own colour settings, set to the Sofra palette (values are RGB numbers) */
:root {
  --momenceColorBackground: #fbf8f3;
  --momenceColorPrimary: 149, 33, 51;
  --momenceColorBlack: 31, 21, 23;
}

/* Location */
.location { background: var(--paper); }
.location__grid { display: grid; gap: 56px; }
.location__address {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  margin-bottom: 28px;
}
.location__copy .link-arrow { color: var(--burgundy); }
.location__map {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
}
.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(.22) contrast(.92) brightness(1.03);
  transition: filter .8s var(--ease);
}
.location__map:hover iframe, .location__map:focus-within iframe { filter: none; }
@media (min-width: 760px) { .location__map { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) {
  .location__grid { grid-template-columns: 4fr 7fr; gap: clamp(56px, 8vw, 140px); align-items: center; }
  .location__map { aspect-ratio: 16 / 11; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--burgundy);
  color: var(--cream);
  padding-top: var(--section);
  overflow: hidden;
}
.footer h2 em { color: var(--blush); }
.footer__top {
  display: grid;
  gap: 36px;
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line-light);
}
.footer__title { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1; max-width: 14ch; }
.footer__top .btn { justify-self: start; }
.footer__contacts {
  display: grid;
  gap: 32px;
  padding-block: clamp(48px, 6vw, 80px);
}
.contact__name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 8px;
}
.contact__tel {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.contact__tel:hover { background-size: 100% 1px; }
.contact__addr { font-size: 1.05rem; line-height: 1.6; }
.footer__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 36vw, 34rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(246, 240, 232, 0.1);
  user-select: none;
  overflow: hidden;
  padding-top: 0.06em;
}
.footer__word span { display: block; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 240, 232, 0.82);
}
.footer__top-link { text-decoration: none; }
.footer__top-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__contacts { grid-template-columns: repeat(3, 1fr); }
}

/* Room at the bottom so the sticky button never covers the footer text */
@media (max-width: 959px) {
  .footer__bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Sticky "Book a class" on mobile
   ========================================================= */
.sticky-book {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(31, 21, 23, 0.45);
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.js .sticky-book { transform: translateY(160%); opacity: 0; }
.js .sticky-book.is-visible { transform: none; opacity: 1; }
@media (min-width: 960px) { .sticky-book { display: none; } }

/* =========================================================
   Reduced motion: no smooth scroll, no looping animation
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-parallax] img { transform: none; }
}

/* =========================================================
   404
   ========================================================= */
.notfound {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 48px var(--gutter);
  text-align: center;
}
.notfound .mono { width: 120px; height: 120px; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 1; }
.notfound p { max-width: 30ch; color: var(--ink-soft); font-size: 1.15rem; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-top: 8px; }
.notfound > * { animation: rise 1.2s var(--ease) both; }
.notfound > *:nth-child(2) { animation-delay: .1s; }
.notfound > *:nth-child(3) { animation-delay: .2s; }
.notfound > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
