/* Mr. Brightside — mrbrightside.world
   Brand: Direction 02, production kit v2.1. Two faces, five colours, nothing else. */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --butter: #F5EEDC;
  --espresso: #28231F;
  --vermilion: #D84B32;
  --periwinkle: #C6C9E8;
  --action: #C9432D;
  --white: #FFFFFF;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1440px;
  --section: clamp(96px, 14vw, 200px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@view-transition { navigation: auto; }

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

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

body {
  margin: 0;
  background: var(--butter);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper grain across the whole page — the print feel of the artwork, carried into the layout. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 1.4 -0.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: normal; }

::selection { background: var(--espresso); color: var(--butter); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--espresso);
  color: var(--butter);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.005em;
  font-size: clamp(3.5rem, min(11.5vw, 19svh), 10.5rem);
}
.display--section { font-size: clamp(3.25rem, 8.4vw, 7.75rem); }
.display--chapter { font-size: clamp(3rem, 6.2vw, 5.75rem); }
.display em { color: var(--vermilion); }

/* The 82% rule: each hand-broken line is scaled on its own, never the container. */
.dl {
  display: block;
  width: 121.95122%;
  transform: scaleX(0.82);
  transform-origin: left center;
  overflow: hidden;
  padding-block: 0.04em 0.14em;
  margin-block: -0.04em -0.14em;
}
.dl > span { display: inline-block; }

.lede {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.45;
  max-width: 40ch;
}
.subhead {
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.15;
}
.body { max-width: 52ch; }
.small { font-size: 0.875rem; }
.note { font-size: 0.9375rem; max-width: 46ch; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: transparent; }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--action);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.25rem;
  min-height: 52px;
  padding: 14px 20px 14px 22px;
  border: 0;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn__arrow { display: inline-block; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: #B73C28; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn--small { min-height: 44px; padding: 10px 14px 10px 16px; gap: 1.25rem; font-size: 0.9375rem; }
.btn--large { min-height: 64px; padding: 18px 24px 18px 28px; gap: 3.5rem; font-size: 1.125rem; }
.btn--dark { --btn-bg: var(--espresso); --btn-fg: var(--butter); }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { --btn-bg: #3a332d; }
}
.btn:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */

.site-header .btn--small { position: relative; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: clamp(16px, 2.4vw, 28px) var(--gutter);
  transition: padding 420ms var(--ease-out), background-color 420ms ease, box-shadow 420ms ease;
}
/* Once the page moves, the header becomes a quiet frosted bar that keeps the brand and the booking in reach. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--butter) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--espresso) 12%, transparent);
  opacity: 0;
  transition: opacity 420ms ease;
}
.site-header.is-stuck { padding-block: 10px; }
.site-header.is-stuck::before { opacity: 1; }
.wordmark img { width: clamp(150px, 15vw, 210px); height: auto; transition: width 420ms var(--ease-out); }
.site-header.is-stuck .wordmark img { width: clamp(130px, 11vw, 160px); }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
  margin-right: -2rem;
  min-height: 44px;
  padding: 0 calc(2rem + 22px) 0 22px;
  background: color-mix(in srgb, var(--butter) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  font-size: 0.9375rem;
}
.site-nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 280ms var(--ease-out);
  padding-block: 4px;
}
.site-nav { transition: background-color 420ms ease; }
.site-header.is-stuck .site-nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background-size: 100% 1px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--butter);
  overflow: hidden;
}
/* Where the copy sits, the wall catches a little more light so type stays crisp over the moving scene. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 72% at 16% 58%, color-mix(in srgb, var(--butter) 62%, transparent) 0%, transparent 72%);
  pointer-events: none;
}
.hero__img, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}
.hero__img { animation: hero-settle 2400ms var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
.hero__video { opacity: 0; transition: opacity 1600ms ease; }
.hero__video.is-playing { opacity: 1; }

.hero__copy {
  width: 100%;
  padding: 140px var(--gutter) clamp(110px, 13vw, 200px);
}
.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 36px); }
.hero__title { max-width: 12ch; }
.hero__title .dl > span { overflow-wrap: anywhere; }
.hero__lede { margin-top: clamp(24px, 3vw, 40px); max-width: 29ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* ---------- Hero call to action ---------- */

.cta {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
  min-height: 76px;
  padding: 12px 12px 12px 28px;
  background: var(--action);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* A deeper vermilion rises from the sun on hover, like the light in the artwork. */
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 38px;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px -26px 0 0;
  border-radius: 50%;
  background: #B03A26;
  transform: scale(0);
  transition: transform 700ms var(--ease-out);
}
.cta:active { transform: scale(0.98); }
.cta__text { display: grid; gap: 3px; }
.cta__label { font: 500 1.1875rem/1.15 var(--sans); }
.cta__meta { font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--white); }
.cta__sun {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--espresso);
  overflow: hidden;
}
.cta__sun svg { width: 20px; height: 20px; transition: transform 520ms var(--ease-out); }
.cta__sun svg + svg { position: absolute; transform: translate(-150%, 150%); }
@media (hover: hover) and (pointer: fine) {
  .cta:hover::before { transform: scale(16); }
  .cta:hover .cta__sun svg:first-child { transform: translate(150%, -150%); }
  .cta:hover .cta__sun svg + svg { transform: none; }
}
.cta:focus-visible { outline: 2px solid var(--espresso); outline-offset: 4px; }

/* Light variant, for the booking panel. */
.cta--light { background: var(--butter); color: var(--espresso); width: 100%; }
.cta--light::before { background: #EDE3CB; }
.cta--light .cta__meta { color: var(--espresso); }
.cta--light .cta__sun { background: var(--espresso); color: var(--butter); }
.cta--light:focus-visible { outline-color: var(--white); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  text-decoration: none;
  font-weight: 500;
}
.link-quiet span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 320ms var(--ease-out);
}
.link-quiet svg { width: 16px; height: 16px; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-quiet:hover span:first-child { background-size: 0 1px; background-position: 100% 100%; }
  .link-quiet:hover svg { transform: translateY(3px); }
}

/* ---------- Help (espresso): sunset stage, then three stacking scenes ---------- */

.help {
  position: relative;
  background: var(--espresso);
  color: var(--butter);
}
.horizon {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(48px, 8vw, 140px);
  fill: var(--espresso);
  transform-origin: 50% 100%;
  will-change: transform;
}

.help { overflow-x: clip; }

/* The sunset stage: pinned for a moment as you leave the hero.
   A horizon draws itself, the headline lights word by word, the sun sets on the right. */
.stage { position: relative; height: 240vh; }
.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.stage__copy { position: relative; z-index: 2; padding-top: clamp(110px, 19vh, 200px); }
.stage__label { margin-bottom: 28px; opacity: 0.8; }
.stage__title { max-width: 14ch; }
.stage__title .w {
  opacity: var(--wo, 1);
  transition: opacity 240ms linear;
}
.js .stage .stage__title .dl > span { transform: none; }

.stage__horizon {
  position: absolute;
  left: 0;
  top: 72%;
  width: 100%;
  height: 7%;
  overflow: visible;
  z-index: 1;
}
.stage__horizon path {
  fill: none;
  stroke: color-mix(in srgb, var(--butter) 55%, transparent);
  stroke-width: 1.2;
  stroke-dasharray: 100 100;
  stroke-dashoffset: var(--draw, 0);
}
/* The sky box ends exactly where the horizon crosses it, so the sun sinks behind the land. */
.stage__sky {
  position: absolute;
  right: 5vw;
  bottom: calc(100% - 72% - 5%);
  width: min(22vw, 36vh);
  height: min(22vw, 36vh);
  z-index: 0;
}
.stage__sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vermilion);
  transform: translate3d(0, var(--sun, 12%), 0);
  will-change: transform;
}
.stage__lede {
  position: absolute;
  z-index: 2;
  left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  bottom: clamp(32px, 7vh, 72px);
  max-width: 40ch;
  color: color-mix(in srgb, var(--butter) 88%, transparent);
  opacity: var(--lede, 1);
  transform: translate3d(0, calc((1 - var(--lede, 1)) * 16px), 0);
}

/* Three scenes that stack: each takes the screen, the next slides up over it. */
.scenes { position: relative; }
.scenes::after { content: ""; display: block; height: 30vh; }

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  background: var(--espresso);
}
.scene__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  transform: scale(calc(1 - var(--out, 0) * 0.06));
  transform-origin: 50% 0%;
  will-change: transform;
}
/* As the next scene covers this one, it settles back into shadow. */
.scene__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--espresso);
  opacity: calc(var(--out, 0) * 0.7);
  pointer-events: none;
}

.scene__art {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: circle(var(--r, 150%) at 50% 52%);
}
.scene--flip .scene__art { order: 2; }
.scene__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}

.scene__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 12vh, 140px) clamp(32px, 5vw, 96px) clamp(40px, 7vh, 80px);
}
.scene__count {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--butter) 55%, transparent);
  margin-bottom: clamp(24px, 3.5vh, 44px);
}
.scene__count span { color: var(--vermilion); }
.scene__title { font-size: clamp(3.5rem, min(6.4vw, 11vh), 8.5rem); }
.scene__body {
  margin-top: clamp(24px, 3.5vh, 40px);
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--butter) 86%, transparent);
}
.scene__takes { margin-top: clamp(28px, 4.5vh, 56px); max-width: 560px; }
.scene__head { margin-bottom: 8px; opacity: 0.6; }
.scene__note {
  margin-top: 18px;
  font-size: 0.875rem;
  max-width: 44ch;
  color: color-mix(in srgb, var(--butter) 70%, transparent);
}
.takes li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 13px 0;
  border-top: 1px solid color-mix(in srgb, var(--butter) 16%, transparent);
  font-size: 0.9375rem;
}
.takes li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--butter) 16%, transparent); }
.takes__key {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 0.35em;
  color: color-mix(in srgb, var(--butter) 70%, transparent);
}
/* ---------- About (periwinkle) ---------- */

.about {
  background: var(--periwinkle);
  color: var(--espresso);
  padding-block: var(--section) clamp(48px, 6vw, 96px);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.about__text { grid-column: 1 / span 6; }
.about__text .label { margin-bottom: 28px; }
.about__text .subhead { margin-top: 40px; }
.about__text .body { margin-top: 20px; }

.stack {
  grid-column: 8 / span 5;
  margin-top: clamp(56px, 10vw, 140px);
  counter-reset: none;
}
.card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
  background: var(--butter);
  color: var(--espresso);
}
.card + .card { margin-top: 16px; }
.card__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__line { font-weight: 700; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.2; }
.card--last { background: var(--espresso); color: var(--butter); }

/* ---------- Let's talk (booking + form) ---------- */

.talk {
  position: relative;
  background: var(--espresso);
  color: var(--butter);
  padding-bottom: var(--section);
}
.talk__art {
  position: relative;
  height: clamp(460px, 60vw, 860px);
  overflow: hidden;
  color: var(--espresso);
  /* The sky is carried down from the section above in the painting's own colours, so there is no seam to see. */
  background: linear-gradient(to bottom, var(--periwinkle) 0%, #C9C6DE 18%, #D2C9D2 34%, #DDD0CB 48%, #E6D6C6 62%);
}
/* Grain on the painted-in sky, matched to the print texture of the illustration below it. */
.talk__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.32  0 0 0 0 0.42  0 0 0 0.55 -0.12'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 55%, transparent 70%);
}
.talk__art img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 70% 55%;
}
/* The painting itself dissolves at its top edge into the periwinkle behind it, grain and all. */
.talk__sky {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 26%, rgba(0,0,0,.12) 32%, rgba(0,0,0,.36) 38%, rgba(0,0,0,.66) 44%, rgba(0,0,0,.9) 50%, #000 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 26%, rgba(0,0,0,.12) 32%, rgba(0,0,0,.36) 38%, rgba(0,0,0,.66) 44%, rgba(0,0,0,.9) 50%, #000 55%);
}
/* The dark land runs straight into the section: no seam. */
.talk__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--espresso));
}
.talk__head {
  position: relative;
  z-index: 2;
  color: var(--espresso);
  margin-top: calc(-1 * clamp(460px, 60vw, 860px));
  padding-top: calc(clamp(460px, 60vw, 860px) * 0.29);
  min-height: clamp(460px, 60vw, 860px);
}
.talk__head .label { margin-bottom: 28px; }

.talk__panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: calc(-1 * clamp(72px, 10vw, 170px));
}

.panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 52px);
}
.panel--book { grid-column: 1 / span 5; background: var(--action); color: var(--white); }
.panel--write { grid-column: 6 / span 7; background: var(--butter); color: var(--espresso); }

.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.panel__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.panel__title {
  margin-top: clamp(40px, 5vw, 72px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 4.4vw, 4.25rem);
  line-height: 0.9;
}
.panel__intro { margin-top: 20px; max-width: 46ch; }

.steps { margin-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); }
.steps li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.steps__n { font-family: var(--serif); font-size: 1.875rem; line-height: 0.8; }
.panel--book .cta { margin-top: auto; }

/* Form: editorial underlines rather than boxes. */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
}
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.optional { font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.7; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--espresso) 38%, transparent);
  border-radius: 0;
  background: linear-gradient(var(--espresso), var(--espresso)) 0 100% / 0 2px no-repeat;
  color: var(--espresso);
  font: 400 1.1875rem/1.35 var(--sans);
  transition: background-size 420ms var(--ease-out), border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: #A3321F; background-image: linear-gradient(#A3321F, #A3321F); background-size: 100% 2px; }
.field__error { font-size: 0.875rem; color: #A3321F; font-weight: 500; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; left: -9999px; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.form__privacy { opacity: 0.85; }
.form__status { font-size: 0.9375rem; max-width: 52ch; }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #A3321F; font-weight: 500; }
.form__status a { color: inherit; }

.send {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
  padding: 8px 8px 8px 24px;
  border: 0;
  background: var(--espresso);
  color: var(--butter);
  font: 500 1.0625rem/1 var(--sans);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.send__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--espresso);
}
.send__arrow svg { width: 18px; height: 18px; transition: transform 320ms var(--ease-out); }
.send:active { transform: scale(0.97); }
.send:focus-visible { outline: 2px solid var(--espresso); outline-offset: 4px; }
.send[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .send:hover { background: #3a332d; }
  .send:hover .send__arrow svg { transform: translateX(3px); }
}

.form-success {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 32px;
  background: var(--espresso);
  color: var(--butter);
}
.form-success .subhead { margin-bottom: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: var(--butter);
  padding-block: clamp(64px, 8vw, 112px) clamp(32px, 4vw, 48px);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.footer__mark { width: clamp(88px, 9vw, 128px); height: auto; }
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--butter) 22%, transparent);
}
.footer__line { grid-column: 1 / span 8; }
.footer__nav { grid-column: 9 / span 4; display: grid; gap: 10px; justify-items: end; font-size: 1.0625rem; }
.footer__nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size 320ms var(--ease-out);
  padding-block: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover { background-size: 100% 1px; background-position: 0 100%; }
}
@media (max-width: 899px) {
  .footer__line, .footer__nav { grid-column: 1 / -1; }
  .footer__nav { justify-items: start; margin-top: 40px; }
}
.footer__meta { display: grid; gap: 8px; font-size: 0.9375rem; justify-items: end; text-align: right; }

/* ---------- Motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 800ms var(--ease-soft), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Display lines rise out of their own baseline. */
.js .display[data-reveal] { opacity: 1; transform: none; }
.js .display .dl > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 1100ms var(--ease-out);
}
.js .display .dl:nth-child(2) > span { transition-delay: 90ms; }
.js .display .dl:nth-child(3) > span { transition-delay: 180ms; }
.js .display.is-in .dl > span { transform: none; }

.js [data-reveal-list] li {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 600ms var(--ease-soft), transform 700ms var(--ease-out);
}
.js [data-reveal-list] li:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal-list] li:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal-list].is-in li { opacity: 1; transform: none; }

/* Hero intro, on load. */
.js .hero__eyebrow, .js .hero__lede, .js .hero__actions {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 900ms var(--ease-soft), transform 1000ms var(--ease-out);
}
.js .hero__title .dl > span { transform: translate3d(0, 105%, 0); transition: transform 1300ms var(--ease-out); }
.js .hero__title .dl:nth-child(2) > span { transition-delay: 110ms; }
.js.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: 100ms; }
.js.is-ready .hero__title .dl > span { transform: none; }
.js.is-ready .hero__lede { opacity: 1; transform: none; transition-delay: 520ms; }
.js.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 660ms; }

/* The card stack assembles one card at a time. */
.js [data-stack] .card {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 700ms var(--ease-soft), transform 900ms var(--ease-out);
}
.js [data-stack].is-in .card { opacity: 1; transform: none; }
.js [data-stack].is-in .card:nth-child(2) { transition-delay: 140ms; }
.js [data-stack].is-in .card:nth-child(3) { transition-delay: 280ms; }
.js [data-stack].is-in .card:nth-child(4) { transition-delay: 420ms; }

/* Page transition between home and privacy: the new page rises over the old along a soft edge. */
::view-transition-old(root) { animation: 500ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 800ms var(--ease-in-out) both vt-in; }
@keyframes vt-out { to { opacity: 0.4; transform: translateY(-3%); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@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: 0ms !important;
  }
  .js [data-reveal], .js [data-reveal-list] li, .js [data-stack] .card,
  .js .hero__eyebrow, .js .hero__lede, .js .hero__actions { opacity: 1; transform: none; }
  .js .display .dl > span, .js .hero__title .dl > span { transform: none; }
  .hero__video { display: none; }
  .scene { position: relative; height: auto; min-height: 100svh; }
  .scene__inner { transform: none; }
  .scene__inner::after { display: none; }
  .scene__art { clip-path: none; }
  .scene__art img, .talk__art img { transform: none; }
  .hero__img { animation: none; }
  .horizon { transform: none !important; }
  .stage { height: auto; }
  .stage__sticky { position: relative; height: 100svh; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .site-nav { display: none; }
  .site-header .btn--small { margin-left: auto; }
}

@media (max-width: 1100px) {
  /* The scene sits directly under the navbar; the copy follows on the page. */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
  .hero__media::after { display: none; }
  .hero__img, .hero__video { object-position: 90% 55%; }
  .hero__copy { padding-top: 36px; padding-bottom: calc(clamp(48px, 8vw, 140px) + 24px); }
  .hero__title { max-width: none; }
  .site-nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__img, .hero__video { object-position: 60% 60%; }
}

@media (max-width: 899px) {

  .about__grid { grid-template-columns: 1fr; }
  .stage { height: auto; }
  .stage__sticky { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; padding-bottom: 24px; }
  .stage__copy { padding-top: 56px; }
  .stage__sky { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: 48px var(--gutter) 0 0; width: min(46vw, 220px); height: min(46vw, 220px); }
  .stage__horizon { position: relative; top: auto; height: 36px; margin-top: -30px; }
  .stage__lede { position: relative; left: auto; bottom: auto; margin: 28px var(--gutter) 0; }
  .scene { position: relative; height: auto; }
  .scene__inner { grid-template-columns: 1fr; transform: none; }
  .scene__inner::after { display: none; }
  .scene__art, .scene--flip .scene__art { order: 0; aspect-ratio: 4 / 5; clip-path: none; }
  .scene__art img { object-position: 50% 45%; }
  .scene__text { padding: 40px var(--gutter) 88px; }
  .scene__title { font-size: clamp(3rem, 15vw, 4.5rem); }
  .scenes::after { display: none; }
  .talk__panels { grid-template-columns: 1fr; margin-top: calc(-1 * clamp(96px, 22vw, 180px)); }
  .panel--book, .panel--write { grid-column: 1; }
  .about__text, .stack { grid-column: 1; }
  .stack { margin-top: 64px; max-width: 520px; }
  .talk__art { height: clamp(420px, 110vw, 640px); }
  .talk__head { margin-top: calc(-1 * clamp(420px, 110vw, 640px)); min-height: clamp(420px, 110vw, 640px); padding-top: calc(clamp(420px, 110vw, 640px) * 0.2); }
  .talk__art img { object-position: 80% 55%; }
  .footer__meta { justify-items: start; text-align: left; }
  .footer__grid { align-items: start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .display { font-size: clamp(3.25rem, 18vw, 4.75rem); line-height: 0.9; }
  .hero__eyebrow > span { display: none; }
  .display--section { font-size: clamp(2.75rem, 13vw, 4rem); }
  .display--chapter { font-size: clamp(2.625rem, 12.4vw, 3.75rem); }
  .form { grid-template-columns: 1fr; }
  .takes li { grid-template-columns: 5.75rem 1fr; gap: 0.75rem; }
  .hero__actions .cta, .panel .cta { width: 100%; gap: 1rem; padding-left: 20px; }
  .send { width: 100%; justify-content: space-between; }
  .panel__title { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .panel { padding: 28px 22px; }
  .panel__tag { display: none; }
  .cta { min-height: 68px; padding-right: 8px; }
  .cta__label { font-size: 1.0625rem; }
  .cta__sun { width: 46px; height: 46px; }
  .form { grid-template-columns: 1fr; gap: 22px; }
  .wordmark img { width: 140px; }
  .site-header { gap: 1rem; }
}

/* Short screens: the wall label simply scrolls with its plate. */
@media (min-width: 900px) and (max-height: 700px) {
  .scene { position: relative; height: auto; min-height: 100vh; }
  .scene__inner { transform: none; }
  .scene__inner::after { display: none; }
}

/* The smallest phones: keep the header on one line. */
@media (max-width: 374px) {
  .wordmark img { width: 118px; }
  .site-header .btn--small { gap: 0.625rem; padding-inline: 12px 10px; font-size: 0.875rem; white-space: nowrap; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .scene__art, .scene--flip .scene__art { aspect-ratio: 4 / 3; }
  .scene__text { padding-inline: clamp(32px, 6vw, 56px); }
}

/* ---------- Language switcher ---------- */

.lang { position: relative; margin-left: auto; }
.site-nav + .lang { margin-left: 0; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--espresso) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--butter) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--espresso);
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.lang__btn svg { width: 16px; height: 16px; }
.lang__btn:active { transform: scale(0.97); }
.lang__btn:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .lang__btn:hover { border-color: var(--espresso); }
}
.site-header.is-stuck .lang__btn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--butter);
  border: 1px solid color-mix(in srgb, var(--espresso) 14%, transparent);
  box-shadow: 0 18px 40px -18px rgba(40, 35, 31, 0.35);
  transform-origin: top right;
  animation: lang-in 180ms var(--ease-out);
}
@keyframes lang-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.lang__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--espresso);
  font: 400 0.9375rem/1 var(--sans);
  text-align: left;
  cursor: pointer;
}
.lang__menu button[aria-current="true"] { font-weight: 700; }
.lang__menu button[aria-current="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vermilion);
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: color-mix(in srgb, var(--espresso) 7%, transparent); outline: none; }

@media (max-width: 1040px) {
  .lang { margin-left: auto; }
  .site-header .lang + .btn--small { margin-left: 0; }
}
@media (max-width: 560px) {
  .site-header { gap: 10px; }
  .lang__btn { padding: 0 10px; gap: 5px; }
}
@media (max-width: 374px) {
  .lang__btn svg { display: none; }
}

/* ---------- Social ---------- */

.social { display: flex; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--butter) 30%, transparent);
  border-radius: 50%;
  color: var(--butter);
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, transform 160ms var(--ease-out);
}
.social svg { width: 19px; height: 19px; }
.social a:active { transform: scale(0.95); }
.social a:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .social a:hover { background: var(--butter); color: var(--espresso); border-color: var(--butter); }
}

/* Header booking button: short label on phones so the wordmark keeps its size in every language. */
.btn__short { display: none; }
.wordmark { flex-shrink: 0; }
@media (max-width: 560px) {
  .site-header .btn--small .btn__full { display: none; }
  .site-header .btn--small .btn__short { display: inline; }
}
