/* =========================================================================================
   Blitz & Bliss
   Palette: the five brand colours plus the logo's cream. Type: Instrument Serif (display,
   italics) with Archivo (text; its expanded width echoes the logo's tagline).
   ========================================================================================= */

:root {
  --ink: #241a0b;
  --rust: #63210d;
  --ox: #700202;
  --orange: #f16e00;
  --apricot: #ff9458;
  --cream: #fddfb6;
  --paper: #f9eee1; /* a tint of the logo cream */
  --burgundy: #5f1818; /* from the cream-on-burgundy logo colourway; the About pages */
  --black: #0a0a0a; /* the primary logo's black; the Community page and the About headline */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-string: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(20px, 5vw, 84px);
  --section: clamp(110px, 14vw, 230px);
  --gap: clamp(12px, 1.6vw, 28px);

  --bg: var(--burgundy);
  --nav-fg: var(--cream);
  --blend: var(--section); /* how far a page's colour reaches into its neighbours, each side of the seam */
}
@property --blend { syntax: "<length>"; inherits: true; initial-value: 0px; } /* so scripts can read it in px */
/* the page colour shows past the ends of the page (overscroll) */
html[data-page="paper"] { --bg: var(--paper); }
html[data-page="burgundy"] { --bg: var(--burgundy); }
html[data-page="black"] { --bg: var(--black); }
html[data-page="ink"], html[data-page="lava"] { --bg: var(--ink); }
html[data-page="oxblood"] { --bg: var(--ox); }
html[data-page="sun"] { --bg: var(--orange); }
/* the nav turns ink over light colours (chosen by the colour beneath it in js/scroll-fx.js) */
html[data-nav-tone="light"] { --nav-fg: var(--ink); }

[data-theme="paper"] { --tone: var(--paper); --fg: var(--ink); --muted: rgba(36, 26, 11, 0.68); --line: rgba(36, 26, 11, 0.2); --accent: var(--orange); color: var(--fg); }
[data-theme="burgundy"] { --tone: var(--burgundy); --fg: var(--cream); --muted: rgba(253, 223, 182, 0.72); --line: rgba(253, 223, 182, 0.2); --accent: var(--apricot); color: var(--fg); }
[data-theme="black"] { --tone: var(--black); --fg: var(--cream); --muted: rgba(253, 223, 182, 0.68); --line: rgba(253, 223, 182, 0.18); --accent: var(--ox); color: var(--fg); }
[data-theme="ink"], [data-theme="lava"] { --tone: var(--ink); --fg: var(--cream); --muted: rgba(253, 223, 182, 0.68); --line: rgba(253, 223, 182, 0.18); --accent: var(--apricot); color: var(--fg); }
[data-theme="oxblood"] { --tone: var(--ox); --fg: var(--cream); --muted: rgba(253, 223, 182, 0.74); --line: rgba(253, 223, 182, 0.24); --accent: var(--apricot); color: var(--fg); }
[data-theme="sun"] { --tone: var(--orange); --fg: var(--ink); --muted: rgba(36, 26, 11, 0.74); --line: rgba(36, 26, 11, 0.26); --accent: var(--ox); color: var(--fg); }

/* Each page paints its own colour and melts into its neighbours' across every seam: over its last
   --blend it turns towards the next page's colour, the next page turns back from it over its first
   --blend, and the two meet halfway exactly at the seam, so the colour flows as you scroll. The
   ease-in-out steps keep the ends of the fade from showing. The neighbours' colours (--tone-prev,
   --tone-next) are filled in by js/scroll-fx.js, in page order. */
[data-theme] {
  --tone-prev: var(--tone);
  --tone-next: var(--tone);
  background-color: var(--tone);
  background-image: linear-gradient(to bottom,
    color-mix(in oklab, var(--tone-prev) 50%, var(--tone)) 0,
    color-mix(in oklab, var(--tone-prev) 16%, var(--tone)) calc(var(--blend) * 0.5),
    var(--tone) var(--blend),
    var(--tone) calc(100% - var(--blend)),
    color-mix(in oklab, var(--tone-next) 16%, var(--tone)) calc(100% - var(--blend) * 0.5),
    color-mix(in oklab, var(--tone-next) 50%, var(--tone)) 100%);
}

/* The full-bleed pictures (the Community glass, the showreels, the closing lava) melt into the page
   colour at their ends in the same eased way, over --fade-top and --fade-bottom. */
.glass, .reel__canvas, .finale .stage {
  --fade-top: 0px;
  --fade-bottom: 0px;
  --fade-mask: linear-gradient(to bottom,
    transparent 0, rgba(0, 0, 0, 0.16) calc(var(--fade-top) * 0.25), rgba(0, 0, 0, 0.5) calc(var(--fade-top) * 0.5), rgba(0, 0, 0, 0.84) calc(var(--fade-top) * 0.75), #000 var(--fade-top),
    #000 calc(100% - var(--fade-bottom)), rgba(0, 0, 0, 0.84) calc(100% - var(--fade-bottom) * 0.75), rgba(0, 0, 0, 0.5) calc(100% - var(--fade-bottom) * 0.5), rgba(0, 0, 0, 0.16) calc(100% - var(--fade-bottom) * 0.25), transparent 100%);
  -webkit-mask-image: var(--fade-mask);
  mask-image: var(--fade-mask);
}

/* ------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.35vw + 14.5px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-intro, body.is-entering, body.is-leaving, body.modal-open, body.menu-open { overflow: hidden; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  font-stretch: 125%;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.small { margin-top: 14px; font-size: 13px; color: var(--muted); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 10.5vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.02em;
}
.skip {
  position: fixed; z-index: 100; left: 16px; top: 16px;
  padding: 10px 14px; background: var(--cream); color: var(--ink);
  transform: translateY(-200%); transition: transform 0.3s;
}
.skip:focus { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (hover: none) { .only-hover { display: none !important; } }
@media (hover: hover) { .only-touch { display: none !important; } }

/* ------------------------------------------------------------------------------ stage (lava + logo) */
.stage {
  position: absolute; inset: 0; overflow: hidden;
  background: #140c05 url("../assets/video/lava-poster.jpg") center / cover no-repeat;
}
.stage::after {
  /* until WebGL takes over: deepen the still so the cream logo reads, close to the live grade */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, rgba(20, 8, 2, 0.15) 20%, rgba(20, 12, 5, 0.8) 100%), rgba(112, 2, 2, 0.35);
  transition: opacity 0.9s;
}
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage video { object-fit: cover; opacity: 0; }
.stage canvas { z-index: 2; opacity: 0; transition: opacity 1s ease; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live::after { opacity: 0; }
.stage__logo {
  position: absolute; z-index: 3; left: 50%; top: 48%;
  width: min(74vw, 1320px, 104svh); aspect-ratio: 1506 / 641;
  translate: -50% -50%;
  background: var(--cream);
  -webkit-mask: url("../assets/logo/blitz-bliss-lockup.svg") center / contain no-repeat;
  mask: url("../assets/logo/blitz-bliss-lockup.svg") center / contain no-repeat;
  transition: opacity 0.8s ease;
}
.stage.is-live .stage__logo { opacity: 0; }
.stage__small { position: absolute; z-index: 3; left: 0; right: 0; bottom: 17%; text-align: center; color: var(--cream); opacity: 0; transition: opacity 0.6s; }
.stage.is-live.stage--small-type .stage__small { opacity: 0.85; }
.is-fallback .stage video, .stage.is-fallback video { opacity: 1; filter: saturate(1.15) contrast(1.05) brightness(0.72); }
/* the phone layout stacks the letters; the flat fallback logo would jump, so wait for WebGL there */
@media (max-width: 719px) and (max-aspect-ratio: 9/10) {
  .stage:not(.is-fallback) .stage__logo { opacity: 0; }
  .intro.is-fallback .stage__logo, .stage.is-fallback .stage__logo { width: 88vw; }
}

/* ------------------------------------------------------------------------------ opening */
.intro {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--cream);
  touch-action: none; overscroll-behavior: none;
  transition: opacity 0.5s ease;
}
.intro[hidden] { display: none; }
.intro.is-fading { opacity: 0; }
.is-entering .intro, .is-leaving .intro,
.is-entering .intro .stage, .is-leaving .intro .stage { background: transparent; }
.is-entering .intro .stage__logo, .is-leaving .intro .stage__logo { opacity: 0; }

.intro__enter {
  position: absolute; z-index: 3; left: 50%; top: 48%;
  width: min(64vw, 1150px); aspect-ratio: 1309 / 384; transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 18px; background: transparent; cursor: pointer;
}
.intro__enter:focus-visible { outline: 1px solid var(--cream); outline-offset: 22px; }
.intro__ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity 0.5s; }
.is-entering .intro__ui, .is-leaving .intro__ui { opacity: 0; }
.intro__corner { position: absolute; top: calc(24px + env(safe-area-inset-top)); opacity: 0.72; animation: fade-in 1.2s 0.6s both; }
.intro__corner--tl { left: var(--gutter); }
.intro__corner--tr { right: var(--gutter); }
.intro__hint {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(30px + env(safe-area-inset-bottom));
  text-align: center; opacity: 0; animation: fade-in 1.4s 2.2s both;
}
.intro__hint::before {
  content: ""; display: block; width: 1px; height: 34px; margin: 0 auto 14px;
  background: currentColor; opacity: 0.55; transform-origin: top; animation: sway 3.2s ease-in-out infinite;
}
.intro .sound-toggle { position: absolute; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom)); pointer-events: auto; }
@media (max-width: 719px) {
  .intro__corner--tr { display: none; }
  .intro__hint { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .intro .sound-toggle { left: 50%; right: auto; translate: -50% 0; }
}

.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 0; border: 0; background: none; cursor: pointer;
}
.sound-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-toggle__bars i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; transition: height 0.3s; }
.sound-on .sound-toggle__bars i { animation: bars 1.1s ease-in-out infinite; }
.sound-on .sound-toggle__bars i:nth-child(2) { animation-delay: -0.35s; }
.sound-on .sound-toggle__bars i:nth-child(3) { animation-delay: -0.7s; }
.sound-on .sound-toggle__bars i:nth-child(4) { animation-delay: -0.2s; }

/* when the scripts can't load (see bbStatic in index.html): the plain, readable site */
.is-static .intro { display: none; }
.is-static .about__word, .is-static [data-reveal] { opacity: 1; transform: none; }
.is-static .reel, .is-static .progress, .is-static .sound-toggle, .is-static [data-booking] { display: none; }
.link.talk__direct { display: none; }
.is-static .link.talk__direct { display: inline-flex; }

/* ------------------------------------------------------------------------------ site shell */
.site { position: relative; }
.is-intro:not(.is-entering) .site { visibility: hidden; }

.nav {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px;
  color: var(--nav-fg);
  transition: transform 0.7s var(--ease-out), color 0.5s, opacity 0.8s;
}
.is-intro .nav, .is-entering .nav, .is-leaving .nav { opacity: 0; pointer-events: none; }
.nav.is-hidden { transform: translateY(-130%); }
.menu-open .nav { color: var(--cream); transform: none; }
.nav__home { display: block; padding: 6px 0; }
.nav__mark {
  display: block; width: clamp(96px, 8.4vw, 128px); aspect-ratio: 1317 / 392;
  background: currentColor;
  -webkit-mask: url("../assets/logo/blitz-bliss-mark.svg") center / contain no-repeat;
  mask: url("../assets/logo/blitz-bliss-mark.svg") center / contain no-repeat;
  transition: transform 0.7s var(--ease-string);
}
.nav__home:hover .nav__mark { transform: scaleY(1.12) skewX(-3deg); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a, .finale__nav a, .finale__book {
  position: relative; padding: 6px 0;
  font-size: 11px; font-weight: 500; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__links a::after, .finale__nav a::after, .finale__book::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .finale__nav a:hover::after, .finale__book:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__tools { display: flex; align-items: center; gap: 22px; }
.nav__menu { display: none; padding: 8px 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .sound-toggle--nav .label { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 29;
  display: flex; align-items: center; padding: 110px var(--gutter) 60px;
  background: var(--ink); color: var(--cream);
  opacity: 0; transition: opacity 0.4s;
}
.menu.is-open { opacity: 1; }
.menu nav { display: grid; gap: 4px; }
.menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: clamp(46px, 12.5vw, 96px); line-height: 1.04;
  transform: translateY(20px); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.5s;
}
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open a:nth-child(4) { transition-delay: 0.15s; }
.menu a .label { color: var(--apricot); }

.progress {
  position: fixed; z-index: 20; right: 10px; top: 22vh; width: 24px; height: 56vh;
  color: var(--nav-fg); opacity: 0.42; pointer-events: none; transition: color 0.5s, opacity 0.6s;
}
.is-intro .progress, .is-entering .progress, .is-leaving .progress { opacity: 0; }
.progress svg { width: 100%; height: 100%; overflow: visible; }
.progress path { fill: none; stroke: currentColor; stroke-width: 1; }
.progress circle { fill: currentColor; }
@media (max-width: 899px) { .progress { display: none; } }

/* words that swell under the pointer (js/lens.js); each grows from near its baseline */
bb-w { display: inline-block; transform-origin: 50% 80%; }
.has-lens .w, .has-lens .about__word { transform-origin: 50% 80%; }

/* ------------------------------------------------------------------------------ reveals */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-string); }
[data-reveal].is-in { opacity: 1; transform: none; }
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.14em; margin: 0 -0.08em -0.14em; }
.is-split .w__i {
  display: inline-block; transform: translateY(108%) skewY(6deg); transform-origin: 0 0;
  transition: transform 1.15s var(--ease-out) calc(var(--line, 0) * 85ms + 40ms);
}
.is-split.is-in .w__i { transform: none; }

.wave-frame { position: relative; overflow: hidden; width: 100%; height: 100%; }
.wave-frame--v { clip-path: url(#wave-v); }
.wave-frame--h { clip-path: url(#wave-h); }
.wave-frame picture, .wave-frame img { width: 100%; height: 100%; }
.wave-frame img { object-fit: cover; }

/* ------------------------------------------------------------------------------ about */
.about { position: relative; padding: 0 var(--gutter) var(--section); }
.about__open {
  position: relative; isolation: isolate; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto 1fr;
  column-gap: var(--gap); padding: 118px 0 84px;
}
/* the opening sits on the same lit fluted glass as Community, edge to edge; it runs on past the
   fold and melts into the burgundy there */
.about__open > .glass { z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: -30vh; --fade-top: 0px; --fade-bottom: 45vh; }
.about__meta { position: absolute; top: 96px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.about__photo { position: relative; margin: 0; }
.about__photo--a { grid-column: 1 / span 3; grid-row: 1 / span 2; align-self: start; aspect-ratio: 640 / 1032; margin-top: 18px; }
/* low enough that "builds." clears her face (a margin in % of the photo's width, so it scales) */
.about__photo--b { grid-column: 8 / span 5; grid-row: 2 / span 2; align-self: end; aspect-ratio: 900 / 662; margin-bottom: -8%; }
.about__title {
  position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 2; align-self: center;
  font-family: var(--serif); font-weight: 400; font-size: clamp(58px, 11.4vw, 214px); line-height: 0.86; letter-spacing: -0.025em;
  color: var(--black);
}
.about__line { display: block; }
.about__line--2 { text-align: right; }
.about__line--2 em { color: var(--accent); }
.about__word { display: inline-block; transform: translateY(0.5em) rotate(2deg); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 1s ease; }
.about-open .about__word { transform: none; opacity: 1; }
.about__word:nth-child(2) { transition-delay: 0.06s; }
.about__word:nth-child(3) { transition-delay: 0.12s; }
.about__word:nth-child(4) { transition-delay: 0.18s; }
.about__line--2 .about__word { transition-delay: 0.26s; }
.about__line--2 .about__word:nth-child(2) { transition-delay: 0.32s; }
.about__line--2 .about__word:nth-child(3) { transition-delay: 0.38s; }
.about__line--2 .about__word:nth-child(4) { transition-delay: 0.44s; }
.about__line--2 .about__word:nth-child(5) { transition-delay: 0.5s; }
.about__open .wave-frame img { transform: scale(1.18); transition: transform 2.4s var(--ease-out); }
.about-open .about__open .wave-frame img { transform: scale(1.02); }
.about__lede { grid-column: 4 / span 4; grid-row: 3; align-self: end; max-width: 36ch; font-size: clamp(15px, 1.05vw, 17px); color: var(--muted); }
.about__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.about__scroll::after { content: ""; width: 1px; height: 40px; background: currentColor; transform-origin: top; animation: sway 3s ease-in-out infinite; }

.about__story {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding: clamp(120px, 14vw, 230px) 0 clamp(40px, 6vw, 90px);
}
.drift-type {
  position: absolute; top: clamp(10px, 3vw, 50px); left: 0; z-index: 0;
  white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: clamp(96px, 15vw, 280px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 148, 88, 0.45);
}
.about__text { position: relative; z-index: 1; grid-column: 6 / span 6; display: grid; gap: 28px; padding-top: clamp(60px, 9vw, 150px); }
.about__p { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 40px); line-height: 1.16; }
.about__p--lead { font-size: clamp(32px, 3.4vw, 60px); line-height: 1.04; letter-spacing: -0.01em; }
.about__p:not(.about__p--lead) { max-width: 46ch; font-family: var(--sans); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.65; color: var(--muted); }
.about__motion { position: relative; z-index: 1; grid-column: 2 / span 3; grid-row: 1; margin-top: clamp(160px, 22vw, 380px); aspect-ratio: 480 / 800; }
.about__motion figcaption { margin-top: 12px; color: var(--muted); }
.about__quote {
  grid-column: 2 / span 10; margin-top: clamp(90px, 11vw, 180px); text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4.4vw, 78px); line-height: 1.02; color: var(--accent);
}

.world { padding: clamp(80px, 10vw, 160px) 0 0; }
.world__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; gap: 18px var(--gap); margin-bottom: clamp(36px, 5vw, 70px); }
.world__head .label { grid-column: 1 / -1; color: var(--muted); }
.world__title { grid-column: 1 / span 8; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 112px); line-height: 0.94; letter-spacing: -0.015em; }
.world__title em { color: var(--accent); }
.world__hint { grid-column: 10 / span 3; justify-self: end; color: var(--muted); }
.world__list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.world__item {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 6fr) minmax(0, 4fr); gap: 20px;
  align-items: baseline; padding: clamp(22px, 2.4vw, 34px) 0 clamp(26px, 2.8vw, 40px); cursor: default;
}
.world__num { color: var(--muted); }
.world__name { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 62px); line-height: 1; transition: transform 0.7s var(--ease-string), color 0.4s; }
.world__item:hover .world__name { transform: translateX(16px); color: var(--accent); }
.world__text { max-width: 40ch; color: var(--muted); }
.string-line { position: absolute; left: 0; right: 0; bottom: -20px; width: 100%; height: 40px; overflow: visible; pointer-events: none; }
.string-line path { fill: none; stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; transition: stroke 0.4s; }
.world__item:hover .string-line path { stroke: var(--accent); }

.note { max-width: 1000px; margin: clamp(110px, 13vw, 200px) auto 0; text-align: center; }
.note__text p { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 64px); line-height: 1.08; }
.note__sign { display: grid; justify-items: center; gap: 8px; margin-top: 40px; }
.note__name { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2vw, 32px); color: var(--accent); }
.note__sign .label { color: var(--muted); }

@media (max-width: 899px) {
  .about__open { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; padding-top: 104px; row-gap: 22px; }
  .about__meta { top: 78px; }
  .about__meta .label:last-child { display: none; }
  .about__photo--a { grid-column: 1 / span 4; grid-row: 1; margin-top: 18px; }
  .about__title { grid-row: 2; margin-top: -26%; font-size: clamp(52px, 15vw, 120px); }
  .about__photo--b { grid-column: 2 / span 5; grid-row: 3; margin: 0; }
  .about__lede { grid-column: 1 / span 6; grid-row: 4; max-width: none; }
  .about__scroll { display: none; }
  .about__story { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about__text { grid-column: 1 / -1; padding-top: 70px; }
  .about__motion { grid-column: 4 / span 3; grid-row: 2; margin-top: 50px; }
  .about__quote { grid-column: 1 / -1; grid-row: 3; }
  .world__head { grid-template-columns: 1fr; }
  .world__title, .world__hint { grid-column: 1 / -1; justify-self: start; }
  .world__item { grid-template-columns: 40px 1fr; }
  .world__text { grid-column: 2; }
}

/* ------------------------------------------------------------------------------ community */
.community { position: relative; padding: var(--section) var(--gutter); overflow: hidden; overflow: clip; } /* clip, not hidden, so the glass can stay pinned */
.community > :not(.glass) { position: relative; z-index: 1; }
/* light behind fluted glass (js/glass.js); the still picture shows until WebGL is ready */
.glass { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #0a0a0a url("../assets/img/community-glass.jpg") center / cover no-repeat; }
.glass { --fade-top: clamp(180px, 42vh, 460px); --fade-bottom: clamp(180px, 42vh, 460px); }
.glass__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.glass canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.glass.is-live canvas { opacity: 1; }
.community__head { display: grid; gap: 22px; max-width: 1180px; }
.community__head .label, .community__lede { color: var(--muted); }
.community__head .display em { color: var(--accent); }
.community__lede { font-size: clamp(18px, 1.4vw, 23px); }
.community__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 120px); margin-top: clamp(64px, 8vw, 130px); }
.letters, .talk { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.letters > .label, .talk .label { color: var(--muted); }
.letters__title, .talk__title { margin: 16px 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.6vw, 80px); line-height: 0.94; }
.letters__title em, .talk__title em { color: var(--accent); }
.letters__text, .talk__text { max-width: 44ch; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.tags li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; font-weight: 500; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; }

.talk { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "dial head" "body body"; gap: 30px clamp(24px, 2.6vw, 40px); align-items: center; }
.talk__dial { grid-area: dial; }
.talk__head { grid-area: head; position: relative; z-index: 1; }
.talk__head .talk__title { margin-bottom: 0; }
.talk__dial { position: relative; z-index: 1; width: clamp(170px, 15vw, 250px); aspect-ratio: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.talk__photo img { position: absolute; inset: 15%; width: 70%; height: 70%; border-radius: 50%; object-fit: cover; }
.talk__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 48s linear infinite; }
.talk__ring text { font-family: var(--sans); font-size: 9.2px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.26em; fill: var(--accent); }
.talk__body { grid-area: body; position: relative; z-index: 1; }
.talk__body .button { margin-top: 32px; } /* same breathing room as the newsletter button */
.talk__num {
  position: absolute; right: -0.04em; bottom: -0.32em; z-index: 0; pointer-events: none;
  font-family: var(--serif); font-size: clamp(160px, 19vw, 340px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(253, 223, 182, 0.14);
}
@media (max-width: 520px) { .talk { grid-template-columns: 1fr; grid-template-areas: "dial" "head" "body"; } }
@media (max-width: 899px) { .community__grid { grid-template-columns: 1fr; } }

/* forms */
.form { margin-top: 30px; }
.form__fields { display: grid; gap: 6px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 28px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--fg); font: 400 clamp(18px, 1.35vw, 22px) / 1.3 var(--sans); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; }
.field label { position: absolute; left: 0; top: 28px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform 0.45s var(--ease-out); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(0.68); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.field:focus-within::after, .field.is-invalid::after { transform: scaleX(1); }
.field.is-invalid::after { background: var(--apricot); }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .button { justify-self: start; margin-top: 26px; }
.form__status { min-height: 1.6em; margin-top: 12px; font-size: 14px; color: var(--apricot); }
.form__done { display: none; }
.form.is-done .form__fields, .form.is-done .form__status { display: none; }
.form.is-done .form__done { display: block; animation: rise-in 1s var(--ease-out) both; }
.form__done-title { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 56px); line-height: 1; margin-bottom: 12px; }
.form__done p:not(.form__done-title) { color: var(--muted); }
.form.is-sending .button { opacity: 0.6; }
.form__intro { color: var(--muted); max-width: 52ch; }
/* Community: burgundy accents on black; form feedback stays cream so it can be read */
.community .button--solid { background: var(--ox); border-color: var(--ox); color: var(--cream); transition: background-color 0.45s, border-color 0.45s, color 0.45s, box-shadow 0.45s, scale 0.6s var(--ease-string); }
/* "Book your free call": on hover it grows a little and turns to clear glass over the water */
.community .button--solid:hover, .community .button--solid:focus-visible {
  scale: 1.08;
  background: rgba(253, 223, 182, 0.08); border-color: rgba(253, 223, 182, 0.6); color: var(--cream);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(253, 223, 182, 0.28), 0 12px 40px rgba(0, 0, 0, 0.3);
}
.community .field::after, .community .field.is-invalid::after { background: var(--cream); }
.community .form__status { color: var(--cream); }

.button {
  display: inline-flex; align-items: center; gap: 16px; white-space: nowrap;
  padding: 18px 26px; border: 1px solid currentColor; border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 11.5px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.button__arrow { display: inline-block; transition: transform 0.6s var(--ease-string); }
.button:hover .button__arrow { transform: translateX(6px); }
.button:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.button--solid { background: var(--apricot); border-color: var(--apricot); color: var(--ink); }
.button--solid:hover { background: var(--cream); border-color: var(--cream); }
.button:disabled { cursor: progress; }
.link { display: inline-flex; gap: 10px; margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 11.5px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.18em; text-transform: uppercase; }
.link span { transition: transform 0.6s var(--ease-string); }
.link:hover span { transform: translateX(6px); }

/* ------------------------------------------------------------------------------ teasers */
.teaser { position: relative; padding: var(--section) var(--gutter) 0; overflow: hidden; }
.teaser > .label { color: var(--muted); }
.teaser__title { margin: 22px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(84px, 17.5vw, 330px); line-height: 0.8; letter-spacing: -0.025em; white-space: nowrap; }
.teaser__word { display: inline-block; will-change: transform; }
.teaser--merch .teaser__title em { color: var(--apricot); }
.teaser--retreats .teaser__title em { color: var(--ox); }
.teaser__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 40px; align-items: start; margin-top: clamp(30px, 4.5vw, 64px); }
.teaser__soon { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; }
.teaser__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
.teaser__text { color: var(--muted); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.6; }
/* The showreels fill the screen. Scrolling in, each opens from an inset card to edge to edge. */
.reel {
  position: relative; width: 100vw; height: 100svh; min-height: 540px;
  margin: clamp(52px, 7vw, 100px) calc(50% - 50vw) 0;
  clip-path: inset(calc(var(--rise, 0) * 10%) calc(var(--rise, 0) * 9vw) round calc(var(--rise, 0) * 28px));
  touch-action: pan-y;
}
/* the soft ends sit inside the card's inset (crisp as a card, soft once open) and short of the corner labels */
.reel__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; --fade-top: min(10%, 84px); --fade-bottom: min(10%, 84px); }
.reel__bar {
  position: absolute; z-index: 2; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 20px; padding: 10px 18px; white-space: nowrap;
  color: var(--cream); background: rgba(10, 10, 10, 0.42); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.reel__time { font-variant-numeric: tabular-nums; }
.reel__toggle { padding: 2px 0; border: 0; background: none; cursor: pointer; border-bottom: 1px solid currentColor; }
@media (max-width: 899px) { .teaser__row { grid-template-columns: 1fr; } }
@media (max-width: 719px) {
  .reel__bar > .label:first-child { display: none; }
  .teaser__title { white-space: normal; font-size: clamp(64px, 21vw, 150px); line-height: 0.86; }
  .teaser__word { transform: none !important; }
}

/* ------------------------------------------------------------------------------ finale */
.finale { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--cream); }
.finale .stage { touch-action: pan-y; --fade-top: min(34%, 320px); }
.finale .stage__logo { top: 46%; width: min(64vw, 1150px, 94svh); }
@media (max-width: 719px) and (max-aspect-ratio: 9/10) { .finale .stage__logo { width: 80vw; } }
.finale__line { position: absolute; z-index: 4; top: 13%; left: var(--gutter); right: var(--gutter); text-align: center; pointer-events: none; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 60px); line-height: 1; }
.finale__line { text-shadow: 0 2px 34px rgba(20, 12, 5, 0.55); }
.finale__bottom {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding: 70px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(20, 12, 5, 0.78), rgba(20, 12, 5, 0));
}
.finale__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.finale__book { border: 0; background: none; cursor: pointer; }
.finale__social { display: flex; gap: 22px; font-size: 11px; font-weight: 500; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase; }
.finale__social[hidden] { display: none; }

/* ------------------------------------------------------------------------------ booking */
.booking { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.booking[hidden] { display: none; }
.booking__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 5, 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.45s; }
.booking__panel {
  --fg: var(--cream); --muted: rgba(253, 223, 182, 0.68); --line: rgba(253, 223, 182, 0.18); --accent: var(--apricot);
  position: relative; display: flex; flex-direction: column; width: min(1000px, 100%); height: min(780px, 100%);
  background: var(--ink); color: var(--cream); border: 1px solid var(--line);
  opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.45s, transform 0.7s var(--ease-out);
}
.booking.is-open .booking__backdrop, .booking.is-open .booking__panel { opacity: 1; }
.booking.is-open .booking__panel { transform: none; }
.booking__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 3vw, 36px) 18px; border-bottom: 1px solid var(--line); }
.booking__head .label { color: var(--muted); }
.booking__title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 60px); line-height: 0.95; }
.booking__title em { color: var(--apricot); }
.booking__close { padding: 8px 0; border: 0; background: none; cursor: pointer; }
.booking__body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.booking__body iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--ink); opacity: 0; transition: opacity 0.6s; }
.booking.is-loaded .booking__body iframe { opacity: 1; }
.booking__body::before { content: "Loading the calendar…"; position: absolute; left: 50%; top: 45%; translate: -50% -50%; color: var(--muted); font-size: 14px; transition: opacity 0.4s; }
.booking.is-loaded .booking__body::before { opacity: 0; }
.booking__fallback { padding: 12px clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.booking__fallback a { border-bottom: 1px solid currentColor; }
.booking .form--call { margin: 0; padding: 28px clamp(20px, 3vw, 36px) 36px; }
.booking .form--call .form__fields { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.booking .form--call .field--wide, .booking .form--call .button { grid-column: 1 / -1; }
@media (max-width: 599px) { .booking .form--call .form__fields { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------ keyframes */
@keyframes fade-in { from { opacity: 0; } }
@keyframes sway { 0%, 100% { transform: skewX(0deg) scaleY(1); } 30% { transform: skewX(10deg) scaleY(0.96); } 60% { transform: skewX(-6deg) scaleY(1.02); } }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 148, 88, 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 148, 88, 0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }

/* ------------------------------------------------------------------------------ reduced motion */
@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; transition-delay: 0s !important; }
  [data-reveal], .is-split .w__i, .about__word { opacity: 1 !important; transform: none !important; }
  .about__open .wave-frame img { transform: none; }
  .reel { clip-path: none; }
}
