/*
Theme Name: Befrou
Theme URI: https://befrou.com
Author: Befrou
Description: Bespoke multilingual theme for the Befrou book. Built from scratch without a page builder.
Version: 1.4.0
Text Domain: befrou
*/

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

/* WooCommerce order scene: shown only while the Befrou product is in stock. */
.commerce-order-scene {
  background: #f4ebdd;
  color: #102936;
}

.commerce-order-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 610px);
  gap: clamp(48px, 5.2vw, 76px);
  align-items: center;
  width: min(1392px, 100%);
  margin: 0 auto;
  padding: 86px 48px 34px;
  box-sizing: border-box;
}

.commerce-order-context {
  align-self: center;
  max-width: 610px;
}

.commerce-order-kicker {
  color: #b45f36;
  letter-spacing: 0.08em;
}

.commerce-order-context h2 {
  max-width: 610px;
  margin: 20px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 3.05vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}

.commerce-order-intro {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.commerce-order-steps {
  max-width: 610px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #de963b;
}

.commerce-order-steps > p {
  margin: 0 0 12px;
  color: #b45f36;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.commerce-order-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commerce-order-steps li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  min-height: 30px;
  font-size: 14px;
  line-height: 1.5;
}

.commerce-order-steps li span {
  color: #b45f36;
  font-size: 12px;
  font-weight: 700;
}

.commerce-order-steps small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.commerce-order-card {
  width: 100%;
  max-width: 610px;
  padding: 26px 36px 28px;
  border-radius: 30px;
  background: #fbf6eb;
  box-sizing: border-box;
}

.commerce-order-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  padding: 1px;
  border: 1px solid #d8c8b4;
  border-radius: 21px;
  background: #f3e8d8;
}

.commerce-order-tabs button {
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #0d2b38;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.03em;
  cursor: pointer;
}

.commerce-order-tabs button[aria-selected="true"] {
  background: #0d2b38;
  color: #fff9f0;
}

.commerce-personal-form,
.commerce-partner-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.commerce-personal-form[hidden],
.commerce-partner-form[hidden] {
  display: none;
}

.commerce-personal-form h3,
.commerce-partner-form h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.commerce-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.commerce-form-row--quantity {
  align-items: end;
}

.commerce-personal-form label,
.commerce-partner-form label,
.commerce-quantity,
.commerce-unit-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.commerce-personal-form label > span,
.commerce-partner-form label > span,
.commerce-quantity > span,
.commerce-unit-price > span {
  color: #66777a;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.commerce-personal-form input,
.commerce-partner-form input,
.commerce-partner-form textarea {
  width: 100%;
  min-height: 30px;
  padding: 2px 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(182, 170, 152, 0.7);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #102936;
  font: 400 14px/22px var(--font-sans);
  resize: vertical;
}

.commerce-personal-form input:focus,
.commerce-partner-form input:focus,
.commerce-partner-form textarea:focus {
  border-bottom-color: #b45f36;
}

.commerce-stepper {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  width: 134px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(182, 170, 152, 0.7);
  border-radius: 20px;
}

.commerce-stepper button,
.commerce-stepper input {
  width: 44px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102936;
  text-align: center;
}

.commerce-stepper input {
  appearance: textfield;
}

.commerce-stepper input::-webkit-inner-spin-button,
.commerce-stepper input::-webkit-outer-spin-button {
  appearance: none;
}

.commerce-unit-price strong {
  min-height: 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
}

.commerce-delivery {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.commerce-delivery strong {
  font-weight: 600;
}

.commerce-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.commerce-shipping-options[hidden] {
  display: none;
}

.commerce-shipping-options legend {
  margin-bottom: 5px;
  padding: 0;
  color: #66777a;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.commerce-shipping-options small {
  color: #66777a;
  font-size: 10px;
  line-height: 1.45;
}

[data-commerce-shipping-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.commerce-shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(182, 170, 152, 0.7);
  border-radius: 14px;
  cursor: pointer;
}

.commerce-shipping-option:has(input:checked) {
  border-color: #102936;
  background: rgba(16, 41, 54, 0.05);
}

.commerce-shipping-option input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  accent-color: #102936;
}

.commerce-shipping-option span,
.commerce-shipping-option strong {
  font-size: 11px;
  line-height: 1.35;
}

.commerce-shipping-option strong {
  font-weight: 600;
}

.commerce-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.commerce-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.commerce-summary strong {
  font-weight: 600;
}

.commerce-summary p {
  margin: 0;
  color: #66777a;
  font-size: 11px;
}

.commerce-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 24px;
  background: #102936;
  color: #fff;
  font: 600 12px/20px var(--font-sans);
  cursor: pointer;
}

.commerce-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.commerce-status,
.commerce-secure-note {
  margin: 0;
  color: #66777a;
  font-size: 11px;
  line-height: 1.55;
}

.commerce-status:not(:empty) {
  color: #b45f36;
}

.commerce-secure-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.commerce-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

@media (max-width: 920px) {
  .commerce-order-scene {
    min-height: auto;
  }

  .commerce-order-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 28px;
    padding: 92px 18px 42px;
  }

  .commerce-order-context,
  .commerce-order-card {
    max-width: none;
  }

  .commerce-order-context h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .commerce-order-card {
    padding: 20px 18px 22px;
    border-radius: 24px;
  }

  .commerce-order-tabs {
    height: auto;
    min-height: 48px;
  }

  .commerce-order-tabs button {
    min-height: 44px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .commerce-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .commerce-form-row--quantity {
    grid-template-columns: 1fr 1fr;
  }

  [data-commerce-shipping-list] {
    grid-template-columns: 1fr;
  }
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304, U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c4, U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02ba, U+02bd-02c5, U+02c7-02cc, U+02ce-02d7, U+02dd-02ff, U+0304, U+0308, U+0329, U+1d00-1dbf, U+1e00-1e9f, U+1ef2-1eff, U+2020, U+20a0-20ab, U+20ad-20c4, U+2113, U+2c60-2c7f, U+a720-a7ff;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

:root {
  --befrou-ink: #06151c;
  --befrou-ink-soft: #102936;
  --befrou-cream: #f4ebdd;
  --befrou-gold: #edad47;
  --befrou-copper: #b45f36;
  --befrou-white: #fffbf2;
  --header-height: 80px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--befrou-ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--befrou-ink);
  color: var(--befrou-white);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--befrou-white);
  color: var(--befrou-ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 16px 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: transparent;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: transparent;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
}

.site-brand {
  position: relative;
  z-index: 2;
  width: 150px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-navigation a {
  min-width: 92px;
  height: 48px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.language-switcher {
  position: relative;
  width: 68px;
  height: 44px;
}

.language-trigger,
.header-order-button,
.mobile-menu-trigger,
.mobile-order-button {
  border: 0;
  border-radius: 999px;
  font: 600 12px/1 "Manrope", sans-serif;
  text-decoration: none;
}

.language-trigger {
  width: 68px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fffdf8;
  backdrop-filter: blur(12px);
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger:hover,
.language-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.22);
}

.language-code {
  width: 20px;
  text-align: left;
}

.language-chevron {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  display: block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-trigger[aria-expanded="true"] .language-chevron,
.language-switcher[open] > .language-trigger .language-chevron {
  transform: translateY(1px) rotate(225deg);
}

.language-trigger[aria-expanded="true"],
.language-switcher[open] > .language-trigger {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.language-menu {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 68px;
  padding: 44px 0 0;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.language-switcher:not(details) .language-menu:not([hidden]),
.language-switcher[open] > .language-menu {
  display: grid;
}

.language-menu a {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.04);
}

.language-menu a:hover,
.language-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fffdf8;
}

.language-check {
  color: #c7baa1;
}

.header-order-button {
  width: 148px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--befrou-ink-soft);
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-order-button:hover,
.header-order-button:focus-visible {
  transform: translateY(-2px);
  background: var(--befrou-cream);
}

.mobile-menu-trigger,
.mobile-menu,
.mobile-menu-close {
  display: none;
}

.landing-scenes {
  position: relative;
}

.landing-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--befrou-ink);
}

.scene-poster,
.scene-poster img,
.scene-video,
.scene-wash,
.hero-safe-zone,
.map-safe-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-poster img,
.scene-video {
  max-width: none;
  object-fit: cover;
}

.scene-video {
  z-index: 1;
}

.scene-poster {
  z-index: 0;
}

.scene-poster img {
  transition: transform 1.4s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .landing-scene:not(.is-active) .scene-poster img {
  transform: scale(1.035);
}

.scene-wash {
  z-index: 2;
  background: rgba(6, 21, 28, 0.16);
}

.hero-safe-zone {
  z-index: 3;
  width: min(52vw, 720px);
  background: linear-gradient(90deg, rgba(6, 21, 28, 0.9) 0%, rgba(6, 21, 28, 0.65) 47%, rgba(6, 21, 28, 0.2) 79%, transparent 100%);
}

.scene-content {
  position: absolute;
  z-index: 4;
}

.js .scene-content,
.js .story-route,
.js .story-progress {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .landing-scene.is-active .scene-content,
.js .landing-scene.is-active .story-route,
.js .landing-scene.is-active .story-progress {
  opacity: 1;
  transform: translateY(0);
}

.scene-kicker {
  margin: 0;
  color: var(--befrou-gold);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.hero-content {
  top: clamp(106px, calc(18.8vh - 40px), 122px);
  bottom: 0;
  left: clamp(32px, 3.6vw, 50px);
  width: min(760px, calc(100vw - 96px));
}

.hero-content h1,
.map-copy h2 {
  margin: 16px 0 0;
  color: var(--befrou-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(52px, 4.25vw, 62px);
  line-height: 0.99;
}

.hero-content h1 span {
  display: block;
}

.hero-intro {
  max-width: 540px;
  margin: 0;
  color: rgba(245, 242, 232, 0.96);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.24);
}

.hero-bottom {
  position: absolute;
  bottom: clamp(58px, 7.5vh, 84px);
  left: 0;
  width: min(540px, calc(100vw - 96px));
}

.hero-actions {
  width: 100%;
  display: flex;
  gap: 17px;
  margin-top: 22px;
}

.hero-actions .button {
  flex: 1 1 0;
}

.button {
  height: 48px;
  padding: 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button--copper {
  min-width: 234px;
  background: var(--befrou-copper);
  color: #fff;
}

.button--paper {
  min-width: 217px;
  background: #fff;
  color: var(--befrou-ink-soft);
}

.map-poster img {
  object-position: center center;
}

.map-wash {
  background: rgba(6, 21, 28, 0.08);
}

.map-safe-zone {
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(4, 13, 20, 0.72) 0%,
    rgba(4, 13, 20, 0.55) 28%,
    rgba(4, 13, 20, 0.26) 46%,
    rgba(4, 13, 20, 0.06) 60%,
    transparent 72%
  );
}

.map-copy {
  top: 118px;
  left: clamp(32px, 2.7vw, 38px);
  width: min(43vw, 600px);
}

.map-copy h2 {
  max-width: 600px;
  margin-top: 16px;
  font-size: clamp(46px, 3.72vw, 54px);
  line-height: 1.04;
}

.map-intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: rgba(255, 251, 242, 0.94);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.58;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.story-route {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  transition-delay: 140ms !important;
}

.story-route-canvas {
  position: absolute;
  inset: 0;
}

@media (min-width: 768px) {
  .story-route-canvas {
    top: 50%;
    left: 50%;
    width: max(100%, 177.777778svh);
    height: max(100%, 56.25vw);
    transform: translate(-50%, -50%);
  }
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-line--mobile {
  display: none;
}

.route-line path {
  fill: none;
  stroke-linecap: round;
}

.route-glow {
  stroke: rgba(247, 242, 232, 0.5);
  stroke-width: 2;
}

.route-stroke {
  stroke: #e2a84a;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(255, 208, 112, 0.9)) drop-shadow(0 0 10px rgba(226, 168, 74, 0.55));
  transition: none;
}

.is-active .route-stroke {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.65s cubic-bezier(0.22, 1, 0.36, 1) 360ms;
}

.route-point {
  position: absolute;
  width: 340px;
  height: 62px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.route-point-ring {
  transition: filter 180ms ease;
}

.route-point:hover .route-point-ring,
.route-point:focus-visible .route-point-ring {
  filter: drop-shadow(0 0 5px rgba(255, 221, 151, 0.95)) drop-shadow(0 0 12px rgba(226, 168, 74, 0.78));
}

.route-point:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(255, 221, 151, 0.9);
  outline-offset: 4px;
}

.js .story-map-scene .route-point {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 15px 30px;
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .story-map-scene.is-active .route-point {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js .story-map-scene.is-active .route-point--1 {
  transition-delay: 360ms;
}

.js .story-map-scene.is-active .route-point--2 {
  transition-delay: 820ms;
}

.js .story-map-scene.is-active .route-point--3 {
  transition-delay: 1280ms;
}

.route-point--1 {
  top: 34.2%;
  left: 65.66%;
}

.route-point--2 {
  top: 50.2%;
  left: 55.21%;
}

.route-point--3 {
  top: 66.5%;
  left: 45.05%;
}

.route-number {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: -5px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--befrou-white);
  font-size: 12px;
  line-height: 18px;
}

.route-point.is-current .route-number {
  color: var(--befrou-ink-soft);
}

.route-shading,
.route-point-ring,
.route-point-disc {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}

.route-shading {
  z-index: 0;
  top: -8px;
  left: 34px;
  height: 76px;
}

.route-shading--01 {
  width: 224px;
}

.route-shading--02 {
  width: 205px;
}

.route-shading--03 {
  width: 182px;
}

.route-point-ring {
  z-index: 1;
  top: 4px;
  left: -11px;
  width: 52px;
  height: 52px;
}

.route-point-disc {
  z-index: 2;
  top: 3px;
  left: -15px;
  width: 60px;
  height: 60px;
}

.route-label-rail {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-connector {
  width: 20px;
  height: 1px;
  flex: 0 0 20px;
  background: rgba(247, 242, 232, 0.65);
}

.route-label {
  color: var(--befrou-white);
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.route-point.is-current .route-connector {
  background-color: rgba(216, 163, 77, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .route-stroke {
    stroke-dashoffset: 0;
    transition: none;
  }

  .js .story-map-scene .route-point {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.story-progress {
  position: absolute;
  z-index: 6;
  right: 42px;
  bottom: 26px;
  width: 330px;
  color: rgba(255, 251, 242, 0.82);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: right;
  transition-delay: 260ms !important;
}

.story-progress-line {
  width: 100%;
  height: 1px;
  display: block;
  margin-top: 8px;
  background: rgba(255, 251, 242, 0.28);
}

.story-scene {
  background: #071523;
}

.story-poster,
.story-video {
  top: 0;
  right: 0;
  bottom: auto;
  left: 40.5%;
  width: 59.5%;
  height: 100%;
}

.story-poster img,
.story-video {
  object-fit: cover;
  object-position: 100% 50%;
}

.story-overlay {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.story-overlay--side {
  inset: 0 auto 0 0;
  width: 67%;
  background: linear-gradient(
    90deg,
    rgba(5, 10, 15, 0.98) 0%,
    rgba(5, 10, 15, 0.98) 57.692%,
    rgba(5, 13, 20, 0.8) 79.327%,
    rgba(5, 13, 20, 0) 100%
  );
}

@media (min-width: 768px) {
  .story-scene .story-poster,
  .story-scene .story-video {
    left: calc(40.5% - 4px);
    width: calc(59.5% + 4px);
  }

  .story-scene .story-overlay--side {
    inset: 0 auto 0 calc(40.5% - 5px);
    width: calc(40% + 5px);
    background: linear-gradient(
      90deg,
      #071523 0%,
      rgba(7, 21, 35, 0.98) 10%,
      rgba(7, 21, 35, 0.84) 32%,
      rgba(7, 21, 35, 0.56) 55%,
      rgba(7, 21, 35, 0.24) 78%,
      rgba(7, 21, 35, 0) 100%
    );
  }

  /*
   * Keep the poster, video and blend physically overlapped while the browser
   * composites scroll-snap scenes. This prevents a transient dark seam from
   * opening between the editorial panel and the media at fractional widths.
   */
  .js .story-scene:not(.is-active) .story-poster img {
    transform: none;
  }
}

.story-overlay--bottom {
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  opacity: 0.72;
  background: linear-gradient(180deg, rgba(5, 10, 15, 0) 0%, rgba(5, 10, 15, 0.96) 100%);
}

.story-editorial {
  top: 80px;
  left: 49px;
  width: 673px;
  height: 430px;
}

.story-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 113px;
  color: var(--befrou-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 95px;
  opacity: 0.55;
}

.story-spine {
  position: absolute;
  top: 94px;
  left: 23px;
  width: 2px;
  height: 322px;
  background: rgba(184, 138, 61, 0.65);
}

.story-spine span {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(250, 207, 122, 0.86);
  border-radius: 50%;
  background: #d8a34d;
  box-shadow: 0 0 0 5px rgba(216, 163, 77, 0.1);
  transform: translateX(-50%);
}

.story-scene--two .story-spine span {
  top: 122px;
}

.story-scene--three .story-spine span {
  top: 260px;
}

.story-heading-meta {
  position: absolute;
  top: 29px;
  left: 113px;
  width: 560px;
}

.story-chapter,
.story-source {
  margin: 0;
  color: var(--befrou-gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.07em;
}

.story-source {
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.story-editorial h2 {
  position: relative;
  top: auto;
  left: 63px;
  width: 610px;
  margin: 104px 0 0;
  color: var(--befrou-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 61px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.story-scene--two .story-editorial h2 {
  font-size: 53px;
  line-height: 57px;
}

.story-lead {
  position: relative;
  top: auto;
  left: 65px;
  width: 520px;
  margin: 23px 0 0;
  color: var(--befrou-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

.story-quote {
  position: relative;
  top: auto;
  left: 63px;
  width: 560px;
  margin: 30px 0 0;
  color: var(--befrou-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 33px;
}

.story-mini-map {
  position: absolute;
  z-index: 6;
  /* Keep the route card below the longest translated quote on short laptops. */
  top: clamp(568px, 68.02vh, 585px);
  left: 73px;
  width: 408px;
  height: 128px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 18px;
  background: rgba(6, 22, 30, 0.67);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.story-mini-map__visual {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 142px;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
}

.story-mini-map__image,
.story-mini-map__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-mini-map__image {
  max-width: none;
  object-fit: cover;
}

.story-mini-map__wash {
  background: rgba(6, 22, 30, 0.34);
}

.story-mini-map__route {
  position: absolute;
  top: 27px;
  left: 50px;
  width: 52px;
  height: 57px;
}

.story-mini-map__point {
  position: absolute;
  width: 10px;
  height: 10px;
}

.story-mini-map__point--one {
  top: 22px;
  left: 97px;
}

.story-mini-map__point--two {
  top: 50px;
  left: 71px;
}

.story-mini-map__point--three {
  top: 79px;
  left: 45px;
}

.story-mini-map__copy {
  position: absolute;
  inset: 0 20px 0 170px;
}

.story-mini-map__copy p {
  margin: 0;
  font-weight: 600;
}

.story-mini-map__eyebrow {
  position: absolute;
  top: 20px;
  left: 0;
  color: #e2a83f;
  font-size: 10px;
  line-height: 16px;
}

.story-mini-map__title {
  position: absolute;
  top: 48px;
  left: 0;
  color: #f9f4ea;
  font-size: 11px;
  line-height: 18px;
}

.story-mini-map__meta {
  position: absolute;
  top: 78px;
  left: 0;
  color: rgba(249, 244, 234, 0.6);
  font-size: 11px;
  line-height: 16px;
}

.story-mini-map__progress {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: rgba(255, 253, 248, 0.22);
}

.story-mini-map__progress span {
  width: 33.333%;
  height: 100%;
  display: block;
  background: #e2a84a;
}

.story-scene--two .story-mini-map__progress span {
  width: 66.666%;
}

.story-scene--three .story-mini-map__progress span {
  width: 100%;
}

.js .story-mini-map {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease 180ms, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1) 180ms;
}

.js .story-scene.is-active .story-mini-map {
  opacity: 1;
  transform: translateY(0);
}

/* Book preview */
.book-preview-scene {
  background: var(--befrou-cream);
  color: var(--befrou-ink-soft);
}

.book-preview-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.site-header--light .site-navigation a:hover,
.site-header--light .site-navigation a:focus-visible {
  background: rgba(16, 41, 54, 0.07);
}

.book-preview-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.1);
  color: var(--befrou-ink-soft);
}

.site-header--light .language-menu {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.1);
}

.site-header--light .language-menu a,
.site-header--light .language-menu a:hover,
.site-header--light .language-menu a:focus-visible {
  color: var(--befrou-ink-soft);
}

.site-header--light .language-menu a:hover,
.site-header--light .language-menu a:focus-visible {
  background: rgba(16, 41, 54, 0.08);
}

.site-header--light .header-order-button {
  background: var(--befrou-ink-soft);
  color: var(--befrou-white);
}

.book-preview-scene .site-navigation a[href="#book-preview"] {
  position: relative;
  opacity: 0.45;
}

.book-preview-scene .site-navigation a[href="#book-preview"]::after {
  position: absolute;
  right: 28px;
  bottom: 4px;
  left: 28px;
  height: 2px;
  content: "";
  background: #b88a3d;
}

.book-copy {
  top: clamp(110px, 14.2vh, 122px);
  left: clamp(34px, 3.55vw, 50px);
  width: min(27.15vw, 380px);
  color: var(--befrou-ink-soft);
}

.book-copy .scene-kicker {
  color: var(--befrou-copper);
}

.book-copy h2 {
  width: 410px;
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.book-intro {
  width: 370px;
  margin: 26px 0 0;
  color: #66777c;
  font-size: 14px;
  line-height: 1.55;
}

.book-counter {
  margin: 38px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.book-rule {
  width: 100%;
  height: 1px;
  margin-top: 20px;
  display: block;
  background: rgba(16, 41, 54, 0.2);
}

.book-finished {
  margin: 25px 0 0;
  color: #66777c;
  font-size: 13px;
  line-height: 1.55;
}

.book-order-button {
  position: absolute;
  top: 462px;
  left: -2px;
  width: 202px;
  height: 48px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--befrou-copper);
  color: var(--befrou-white);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.book-order-button--mobile {
  display: none;
}

.book-reader {
  position: absolute;
  z-index: 4;
  top: clamp(94px, 12.1vh, 104px);
  right: auto;
  left: 34vw;
  width: min(61.6vw, 862px);
  outline: none;
}

.book-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 862 / 650;
  overflow: visible;
  background: transparent;
}

.book-cover {
  position: absolute;
  top: 36px;
  left: 24.43%;
  width: 51.14%;
  height: auto;
  aspect-ratio: 441 / 574;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  perspective: 1100px;
  box-shadow: 0 18px 28px rgba(36, 26, 15, 0.2);
}

.book-cover img {
  position: absolute;
  top: -1.72%;
  left: -6.29%;
  width: 111.43%;
  max-width: none;
  height: 108.62%;
  object-fit: fill;
  filter: drop-shadow(0 18px 18px rgba(36, 26, 15, 0.2));
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(0.22, 0.75, 0.22, 1), opacity 280ms ease;
}

.book-cover:hover img,
.book-cover:focus-visible img {
  transform: rotateY(-7deg) translateX(5px);
}

.book-cover-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 1.5%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.book-cover-arrow img {
  display: none;
}

.book-cover-arrow,
.book-arrow {
  background: var(--befrou-ink-soft);
}

.book-cover-arrow::before,
.book-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}

.book-cover-arrow::before,
.book-arrow--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.book-arrow--previous::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.book-cover-arrow span {
  display: none;
}

.book-reader:not(.is-cover) .book-cover-arrow {
  display: none;
}

.book-open {
  position: absolute;
  inset: 0;
}

.book-support {
  position: absolute;
  top: 7.82%;
  left: 4.18%;
  width: 91.88%;
  height: 86.49%;
}

.book-paper {
  position: absolute;
  top: 10.6%;
  width: 41.77%;
  height: 72%;
  overflow: hidden;
  background: #f9f0e2;
}

.book-paper--left {
  left: 8.35%;
}

.book-paper--right {
  left: 50.12%;
}

.book-paper img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.book-paper.is-blank img {
  display: none;
}

.book-gutter {
  position: absolute;
  z-index: 2;
  top: 10.6%;
  width: 6.5%;
  height: 72%;
  pointer-events: none;
}

.book-gutter--left {
  left: 43.62%;
  background: linear-gradient(90deg, rgba(43, 33, 18, 0) 0%, rgba(43, 33, 18, 0.02) 30%, rgba(43, 33, 18, 0.13) 84%, rgba(43, 33, 18, 0.31) 100%);
}

.book-gutter--right {
  left: 50.12%;
  background: linear-gradient(90deg, rgba(43, 33, 18, 0.31) 0%, rgba(43, 33, 18, 0.13) 16%, rgba(43, 33, 18, 0.02) 70%, rgba(43, 33, 18, 0) 100%);
}

.book-arrow {
  position: absolute;
  z-index: 3;
  top: 44.8%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--befrou-ink-soft);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.book-arrow:hover,
.book-arrow:focus-visible {
  transform: scale(1.06);
}

.book-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.book-arrow--previous {
  left: 0.95%;
}

.book-arrow--next {
  right: 0.95%;
}

.book-arrow img {
  display: none;
}

.book-open-button,
.book-mobile-controls,
.book-zoom-button,
.book-language-note {
  display: none;
}

.js .book-reader {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease 120ms, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1) 120ms;
}

.js .book-preview-scene.is-active .book-reader {
  opacity: 1;
  transform: translateY(0);
}

.book-lightbox {
  width: min(92vw, 980px);
  height: min(92vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #f4ebdd;
  color: var(--befrou-ink-soft);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.book-lightbox::backdrop {
  background: rgba(2, 12, 18, 0.82);
  backdrop-filter: blur(8px);
}

.book-lightbox__toolbar {
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 41, 54, 0.13);
  font-size: 12px;
  font-weight: 600;
}

.book-lightbox__toolbar button,
.book-lightbox__controls button {
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 12px/1 "Manrope", sans-serif;
  cursor: pointer;
}

/* Audience */
.audience-scene {
  background: #fbf6eb;
  color: var(--befrou-ink-soft);
}

.audience-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.audience-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.1);
  color: var(--befrou-ink-soft);
}

.audience-background,
.audience-veil {
  position: absolute;
  inset: 0;
}

.audience-background {
  z-index: 0;
  overflow: hidden;
}

.audience-background img {
  position: absolute;
  top: -85.93%;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  transform: scaleX(-1);
  transform-origin: center;
}

.audience-veil {
  z-index: 1;
  background: rgba(244, 235, 221, 0.55);
}

.audience-content {
  top: clamp(112px, 15.8svh, 136px);
  left: 50%;
  width: min(calc(100% - 96px), 1304px);
  height: calc(100% - clamp(112px, 15.8svh, 136px) - 72px);
  transform: translateX(-50%);
}

.js .audience-content,
.js .audience-scene.is-active .audience-content {
  transform: translateX(-50%) translateY(28px);
}

.js .audience-scene.is-active .audience-content {
  transform: translateX(-50%) translateY(0);
}

.audience-kicker {
  color: var(--befrou-copper);
  line-height: 1.2;
}

.audience-content h2 {
  max-width: 650px;
  margin: 24px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 3.36vw, 47px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.audience-grid {
  width: min(100%, 1208px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 64px;
  margin-top: clamp(92px, 15svh, 128px);
}

.audience-card {
  min-width: 0;
}

.audience-number {
  margin: 0;
  color: var(--befrou-copper);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.audience-rule {
  width: 100%;
  height: 1px;
  display: block;
  margin: 12px 0 24px;
  background: #d8a34d;
}

.audience-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.audience-card > p:last-child {
  margin: 26px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.48;
}

.audience-note {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  color: #66777a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

/* Author and book origin */
.author-scene {
  background: #06151c;
  color: #fff;
}

.author-background,
.author-veil {
  position: absolute;
  inset: 0;
}

.author-background {
  z-index: 0;
  overflow: hidden;
}

.author-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 66.5%;
}

.author-veil {
  z-index: 1;
  background: rgba(6, 21, 28, 0.48);
}

.author-content {
  inset: 0;
  z-index: 2;
}

.author-copy {
  position: absolute;
  top: clamp(126px, 17svh, 146px);
  left: clamp(34px, 3.43vw, 48px);
  width: min(46.5vw, 650px);
}

.author-kicker {
  color: #a9d7e3;
  line-height: 1.64;
}

.author-copy h2 {
  max-width: 650px;
  margin: 20px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 3.79vw, 53px);
  font-weight: 600;
  line-height: 1.055;
  letter-spacing: -0.025em;
}

.author-intro {
  max-width: 590px;
  margin: clamp(34px, 5.2svh, 44px) 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.author-panel {
  position: absolute;
  top: clamp(126px, 17svh, 146px);
  right: clamp(34px, 3.57vw, 50px);
  width: min(38.57vw, 540px);
  height: 584px;
  padding: 37px;
  overflow: hidden;
  border: 1px solid rgba(169, 215, 227, 0.34);
  border-radius: 28px;
  background: rgba(6, 21, 28, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.author-panel__accent {
  position: absolute;
  top: 23px;
  left: 37px;
  width: 46px;
  height: 2px;
  border-radius: 1px;
  background: #de963b;
}

.author-panel__kicker,
.author-panel__credits-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
}

.author-panel__kicker {
  color: #de963b;
}

.author-panel h3 {
  margin: 22px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 43px;
  letter-spacing: -0.02em;
}

.author-panel__body {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0.86;
}

.author-panel__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 38px 0 17px;
  background: rgba(169, 215, 227, 0.32);
}

.author-panel__credits-label {
  color: #a9d7e3;
}

.author-panel__credits {
  margin-top: 14px;
  font-size: 13px;
  line-height: 22px;
  opacity: 0.9;
}

.author-panel__credits p {
  margin: 0;
}

.author-panel__note {
  margin: 22px 0 0;
  color: #a9d7e3;
  font-size: 12px;
  line-height: 19px;
}

.author-panel__button {
  width: 300px;
  height: 45px;
  margin-top: 20px;
  border-radius: 24px;
  background: #de963b;
  color: #102936;
  font-size: 12px;
  font-weight: 600;
}

.js .author-copy,
.js .author-panel {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .author-panel {
  transition-delay: 100ms;
}

.js .author-scene.is-active .author-copy,
.js .author-scene.is-active .author-panel {
  opacity: 1;
  transform: translateY(0);
}

.book-lightbox__toolbar [data-book-close] {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.book-lightbox__page {
  height: calc(100% - 64px);
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 24px;
}

.book-lightbox__image-button {
  width: min(650px, 100%);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transition: width 260ms ease;
}

.book-lightbox__image-button.is-zoomed {
  width: min(1400px, 180vw);
  cursor: zoom-out;
}

.book-lightbox__page img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 14px 32px rgba(40, 30, 20, 0.16);
}

.book-lightbox__controls {
  position: absolute;
  inset: auto 18px 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.book-lightbox__controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--befrou-ink-soft);
  color: var(--befrou-white);
  pointer-events: auto;
}

@media (min-width: 1600px) {
  .book-copy {
    top: clamp(120px, 14vh, 146px);
    left: max(72px, calc(50% - 800px));
    width: 430px;
  }

  .book-copy h2 {
    width: 430px;
    font-size: 44px;
    line-height: 1.06;
  }

  .book-intro {
    width: 410px;
    font-size: 16px;
    line-height: 1.55;
  }

  .book-counter {
    font-size: 13px;
  }

  .book-order-button {
    top: 500px;
    width: 220px;
    height: 52px;
    font-size: 13px;
  }

  .book-reader {
    top: clamp(96px, 10.5vh, 112px);
    left: calc(50% - 240px);
    width: min(52vw, 990px);
  }
}

.future-sections {
  width: 0;
  height: 0;
  overflow: hidden;
}

/* FAQ — Figma screens 17 / M19 */
.faq-scene {
  min-height: 100svh;
  height: auto;
  overflow: hidden;
  background: #fbf6eb;
  color: var(--befrou-ink-soft);
}

.faq-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.faq-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.1);
  color: var(--befrou-ink-soft);
}

.faq-content {
  position: relative;
  width: min(calc(100% - 96px), 1304px);
  min-height: 860px;
  margin: 0 auto;
  padding: 130px 0 72px;
}

.faq-kicker {
  margin: 0;
  color: var(--befrou-copper);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.faq-content h2 {
  width: min(1100px, 100%);
  margin: 16px 0 0;
  color: var(--befrou-ink-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(39px, 3.08vw, 43px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.faq-content h2 span {
  display: block;
}

@media (min-width: 1101px) {
  .faq-content h2 span {
    white-space: nowrap;
  }
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 82px;
  margin-top: 76px;
}

.faq-item {
  min-width: 0;
  min-height: 126px;
  padding: 0 0 26px;
  border-bottom: 1px solid rgba(182, 170, 152, 0.55);
}

.faq-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.faq-item:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.faq-item:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
}

.faq-item:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.faq-item:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}

@media (min-width: 768px) {
  .faq-item:nth-child(2),
  .faq-item:nth-child(3),
  .faq-item:nth-child(5),
  .faq-item:nth-child(6) {
    padding-top: 26px;
  }
}

.faq-item__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: start;
}

.faq-item h3 {
  min-width: 0;
  margin: 0;
  color: var(--befrou-ink-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 20.4px;
}

.faq-item__heading span {
  color: #be6336;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
}

.faq-item > p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #66777a;
  font-size: 12px;
  line-height: 17.4px;
}

@media (max-width: 920px) {
  .faq-item {
    min-height: 0;
  }

  .faq-item__heading[role="button"] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .faq-item__heading[role="button"]:focus-visible {
    outline: 2px solid var(--befrou-copper);
    outline-offset: 6px;
  }

  .faq-item__heading[role="button"] h3,
  .faq-item__heading[role="button"] span {
    transition: color 180ms ease;
  }

  .faq-item__heading[role="button"]:hover h3,
  .faq-item__heading[role="button"]:focus-visible h3,
  .faq-item.is-open .faq-item__heading h3 {
    color: var(--befrou-copper);
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .faq-content {
    width: calc(100% - 96px);
    min-height: 100svh;
  }

  .faq-grid {
    gap: 0 48px;
  }

  .faq-item {
    min-height: 150px;
  }
}

@media (min-width: 921px) {
  .faq-grid {
    width: min(1000px, 100%);
    display: block;
    margin-top: 64px;
  }

  .faq-item,
  .faq-item:nth-child(n) {
    min-height: 0;
    padding: 30px 0;
  }

  .faq-item:first-child {
    padding-top: 0;
  }

  .faq-item__heading[role="button"] {
    cursor: pointer;
  }

  .faq-item__heading[role="button"]:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--befrou-copper);
    outline-offset: 6px;
  }

  .faq-item__heading[role="button"] h3,
  .faq-item__heading[role="button"] span {
    transition: color 180ms ease;
  }

  .faq-item__heading[role="button"]:hover h3,
  .faq-item__heading[role="button"]:focus-visible h3,
  .faq-item.is-open .faq-item__heading h3 {
    color: var(--befrou-copper);
  }

  .faq-item h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .faq-item__heading span {
    font-size: 13px;
    line-height: 30px;
  }

  .faq-item > p {
    max-width: 860px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 25px;
  }
}

@media (max-width: 767px) {
  .faq-scene {
    min-height: 100svh;
    height: auto;
    overflow: visible;
  }

  .admin-bar .faq-scene {
    min-height: calc(100svh - 46px);
    height: auto;
  }

  .faq-scene .site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.07);
    color: var(--befrou-ink-soft);
  }

  .faq-content {
    width: auto;
    min-height: 0;
    margin: 0 24px;
    padding: 96px 0 32px;
  }

  .faq-kicker {
    width: 100%;
    font-size: 11px;
    line-height: 18px;
  }

  .faq-content h2 {
    width: 100%;
    margin-top: 6px;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.015em;
  }

  .faq-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
  }

  .faq-item,
  .faq-item:nth-child(n) {
    min-height: 0;
    padding: 0 0 12px;
  }

  .faq-item__heading {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 12px;
  }

  .faq-item h3 {
    font-size: 18px;
    line-height: 25px;
  }

  .faq-item__heading span {
    width: 26px;
    line-height: 25px;
  }

  .faq-item > p {
    max-width: none;
    margin-top: 12px;
    font-size: 15px;
    line-height: 23px;
  }
}

/* Final — Figma screens 18 / M20 */
.final-scene {
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: var(--befrou-ink);
  color: #fff9f0;
}

.final-background,
.final-background img,
.final-wash,
.final-bottom-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-background img {
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: none;
  transition: none;
}

.js .final-scene:not(.is-active) .final-background img {
  transform: none;
}

.final-wash {
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, rgba(7, 27, 36, 0.9) 0%, rgba(7, 27, 36, 0.58) 48%, rgba(7, 27, 36, 0.18) 100%);
  pointer-events: none;
}

.final-bottom-veil {
  z-index: 2;
  top: auto;
  height: 46%;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 35, 0) 0%,
    rgba(6, 26, 35, 0.16) 30%,
    rgba(6, 26, 35, 0.42) 62%,
    rgba(4, 20, 28, 0.78) 100%
  );
  pointer-events: none;
}

.final-content {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.final-main {
  position: absolute;
  top: 132px;
  left: 48px;
  width: min(690px, calc(100% - 96px));
}

.final-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--befrou-gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.final-kicker > span {
  width: 48px;
  height: 2px;
  flex: 0 0 48px;
  background: var(--befrou-gold);
}

.final-main h2 {
  max-width: 690px;
  margin: 18px 0 0;
  color: #fff9f0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 4vw, 56px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.final-intro {
  width: min(580px, 100%);
  margin: 28px 0 0 2px;
  color: rgba(255, 249, 240, 0.9);
  font-size: 16px;
  line-height: 1.45;
}

.final-meta {
  width: min(620px, 100%);
  margin: 22px 0 0 2px;
  color: #f2c56c;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.08em;
}

.final-actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.final-button {
  min-width: 0;
  height: 50px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.final-button:hover,
.final-button:focus-visible {
  transform: translateY(-2px);
}

.final-button--accent {
  width: 270px;
  background: #bf6337;
  color: #fff;
  box-shadow: 0 8px 20px rgba(4, 20, 28, 0.28);
}

.final-button--outline {
  width: 226px;
  border-color: rgba(255, 249, 240, 0.55);
  background: rgba(7, 27, 36, 0.42);
  color: #fff9f0;
}

.final-note {
  width: min(500px, 100%);
  margin: 16px 0 0 2px;
  color: rgba(255, 249, 240, 0.68);
  font-size: 12px;
  line-height: 18px;
}

.final-footer {
  position: absolute;
  right: 48px;
  bottom: 18px;
  left: 48px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 249, 240, 0.24);
}

.final-footer__top {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(220px, 260px);
  align-items: start;
  gap: 32px;
}

.final-footer__brand {
  width: auto;
  color: #fff9f0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.final-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
}

.final-footer__nav a {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 249, 240, 0.78);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.final-footer__contact-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.final-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.final-footer__social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 249, 240, 0.42);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 249, 240, 0.82);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.final-footer__social:hover,
.final-footer__social:focus-visible {
  border-color: rgba(255, 249, 240, 0.68);
  background: rgba(255, 249, 240, 0.12);
  color: #fff9f0;
  transform: translateY(-1px);
}

.final-footer__social:focus-visible {
  outline: 2px solid rgba(255, 249, 240, 0.9);
  outline-offset: 3px;
}

.final-footer__social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.final-footer__social path {
  fill: currentColor;
  stroke: none;
}

.final-footer__contact {
  color: rgba(255, 249, 240, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-align: right;
  text-decoration: none;
}

.final-footer__legal {
  position: relative;
  max-width: none;
  min-width: 0;
  margin: 14px -48px -18px;
  padding: 18px 48px 16px;
  display: grid;
  grid-template-columns: minmax(360px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  border-top: 0;
  background: transparent;
  color: rgba(255, 249, 240, 0.72);
  font-size: 11px;
  line-height: 16px;
}

.final-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}

.final-footer__legal-row + .final-footer__legal-row {
  margin-top: 0;
}

.final-footer__legal-row span,
.final-footer__legal-row a {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.final-footer__legal-row--credits {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 16px;
  justify-content: end;
  text-align: right;
}

.final-footer__legal-row--credits span:last-child {
  grid-column: auto;
  color: rgba(255, 249, 240, 0.64);
}

.final-footer__legal-row--links {
  gap: 6px 18px;
}

.final-footer__legal-row--links a {
  white-space: nowrap;
}

.final-footer__separator {
  display: none;
}

.final-footer__legal-row a:hover,
.final-footer__legal-row a:focus-visible {
  color: rgba(255, 249, 240, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1160px) and (min-width: 921px) {
  .final-main {
    width: min(640px, calc(100% - 96px));
  }

  .final-footer__top {
    grid-template-columns: 130px minmax(0, 1fr) 220px;
    gap: 20px;
  }

  .final-footer__brand {
    width: auto;
  }

  .final-footer__nav a {
    padding-inline: 10px;
  }

  .final-footer__legal {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final-footer__legal-row--credits {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    text-align: left;
  }
}

@media (max-width: 920px) {
  .final-scene,
  .admin-bar .final-scene {
    height: auto;
    min-height: 1129px;
    overflow: hidden;
  }

  .final-background,
  .final-background img,
  .final-wash {
    height: 718px;
  }

  .final-background img,
  .js .final-scene:not(.is-active) .final-background img {
    object-position: center center;
    transform: none;
    transition: none;
  }

  .final-wash {
    width: 100%;
    background: linear-gradient(180deg, rgba(6, 21, 28, 0.72) 0%, rgba(6, 21, 28, 0.8) 35%, rgba(6, 21, 28, 0.54) 64%, rgba(6, 21, 28, 0.85) 84%, #06151c 100%);
  }

  .final-bottom-veil {
    display: none;
  }

  .final-content {
    position: relative;
    inset: auto;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 112px 48px 48px;
  }

  .final-main {
    position: static;
    width: 100%;
  }

  .final-main h2 {
    max-width: 590px;
    font-size: 42px;
    line-height: 1.04;
  }

  .final-intro,
  .final-meta,
  .final-note {
    width: 100%;
    margin-left: 0;
  }

  .final-actions {
    width: min(100%, 520px);
    flex-direction: column;
    gap: 12px;
  }

  .final-button,
  .final-button--accent,
  .final-button--outline {
    width: 100%;
  }

  .final-footer {
    position: static;
    margin-top: 44px;
    padding-top: 24px;
  }

  .final-footer__top {
    display: block;
  }

  .final-footer__brand {
    width: auto;
    display: inline-block;
  }

  .final-footer__nav {
    width: 100%;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .final-footer__nav a {
    min-width: 0;
    min-height: 44px;
    padding: 0;
    white-space: normal;
  }

  .final-footer__contact-block {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .final-footer__contact {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 22px;
    text-align: left;
  }

  .final-footer__legal {
    max-width: none;
    margin: 20px 0 0;
    padding-top: 20px;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 249, 240, 0.16);
    background: transparent;
    color: rgba(255, 249, 240, 0.78);
    font-size: 13px;
  }

  .final-footer__legal-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .final-footer__legal-row--links a {
    white-space: normal;
  }

  .final-footer__legal-row + .final-footer__legal-row {
    margin-top: 0;
  }

  .final-footer__legal-row span,
  .final-footer__legal-row a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .final-footer__legal-row--credits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 249, 240, 0.12);
    justify-content: stretch;
    text-align: left;
  }

  .final-footer__legal-row--credits span {
    min-height: 34px;
  }

  .final-footer__legal-row--credits span:last-child {
    grid-column: auto;
  }

  .final-footer__legal-row--credits span:last-child {
    min-height: 32px;
    color: rgba(255, 249, 240, 0.62);
  }

  .final-footer__legal-row--credits > * + *::before,
  .final-footer__legal-row .final-footer__separator {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  .final-footer {
    margin-top: 30px;
    padding-top: 18px;
  }

  .final-footer__top {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .final-footer__contact-block {
    grid-column: 1 / -1;
    margin-top: 4px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .final-footer__brand {
    font-size: 20px;
    line-height: 26px;
  }

  .final-footer__nav {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .final-footer__nav a {
    min-height: 32px;
    line-height: 16px;
  }

  .final-footer__contact-block {
    margin-top: 14px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .final-footer__social {
    width: 34px;
    height: 34px;
  }

  .final-footer__contact {
    min-height: 34px;
    font-size: 13px;
    line-height: 20px;
  }

  .final-footer__legal {
    margin-top: 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .final-footer__legal-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 18px;
  }

  .final-footer__legal-row + .final-footer__legal-row {
    margin-top: 4px;
  }

  .final-footer__legal-row span,
  .final-footer__legal-row a,
  .final-footer__legal-row--credits span:last-child {
    min-height: 26px;
  }

  .final-footer__legal-row .final-footer__separator {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .final-content {
    width: 100%;
    padding: 96px 24px 32px;
  }

  .final-kicker {
    gap: 12px;
    font-size: 10px;
    line-height: 16px;
  }

  .final-kicker > span {
    width: 32px;
    flex-basis: 32px;
  }

  .final-main h2 {
    margin-top: 24px;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.012em;
    text-wrap: pretty;
  }

  .final-intro {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .final-meta {
    margin-top: 24px;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0;
  }

  .final-actions {
    margin-top: 24px;
  }

  .final-note {
    margin-top: 20px;
    font-size: 13px;
    line-height: 20px;
  }
}

@media (max-width: 359px) {
  .final-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .final-main h2 {
    font-size: 28px;
    line-height: 33px;
  }
}

/* Pre-order — Figma screens 13/14 */
.preorder-scene {
  min-height: max(860px, 100svh);
  overflow: hidden;
  background: var(--befrou-cream);
  color: var(--befrou-ink-soft);
}

.preorder-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.preorder-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.1);
  color: var(--befrou-ink-soft);
}

.preorder-background,
.preorder-veil {
  position: absolute;
  inset: 0 0 0 auto;
  width: 44.45%;
  height: 100%;
}

.preorder-background {
  opacity: 0.7;
}

.preorder-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.preorder-veil {
  width: calc(44.45% + 80px);
  background: linear-gradient(90deg, var(--befrou-cream) 0, rgba(244, 235, 221, 0.55) 54px, rgba(244, 235, 221, 0) 80px);
  pointer-events: none;
}

.preorder-content {
  position: relative;
  z-index: 2;
  inset: auto;
  width: min(682px, calc(100% - 96px));
  min-height: 860px;
  padding: 138px 0 72px;
  margin-left: 48px;
  color: var(--befrou-ink-soft);
}

.preorder-kicker {
  color: var(--befrou-copper);
  font-size: 12px;
  line-height: 18px;
}

.preorder-content h2 {
  width: 620px;
  max-width: 100%;
  margin: 20px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 3.58vw, 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.preorder-intro {
  width: 570px;
  max-width: 100%;
  margin: 26px 0 0 2px;
  font-size: 15px;
  line-height: 1.48;
}

.preorder-countdown {
  margin-top: 48px;
}

.preorder-countdown__label {
  margin: 0;
  color: #66777a;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.preorder-countdown__grid {
  width: 390px;
  max-width: 100%;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preorder-countdown__unit {
  min-width: 0;
  text-align: center;
}

.preorder-countdown__unit strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.preorder-countdown__unit span {
  display: block;
  margin-top: 5px;
  color: #66777a;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.preorder-countdown__unit:first-child span {
  color: var(--befrou-copper);
}

.preorder-form {
  margin-top: 38px;
}

.preorder-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.preorder-form__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #8f2f20;
  font-size: 0.85rem;
  font-weight: 600;
}

.preorder-form__status:empty {
  display: none;
}

.preorder-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.preorder-form__fields {
  display: grid;
  grid-template-columns: 204px 270px 160px;
  gap: 24px;
  align-items: end;
}

.preorder-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #66777a;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.preorder-field input {
  width: 100%;
  height: 42px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid rgba(186, 173, 153, 0.62);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--befrou-ink-soft);
  font: 400 16px/24px "Manrope", sans-serif;
}

.preorder-field input::placeholder {
  color: var(--befrou-ink-soft);
  opacity: 1;
}

.preorder-field input:focus {
  border-bottom-color: var(--befrou-copper);
}

.preorder-field input:-webkit-autofill,
.preorder-field input:-webkit-autofill:hover,
.preorder-field input:-webkit-autofill:focus,
.preorder-field input:-webkit-autofill:active,
.preorder-field input:autofill {
  -webkit-text-fill-color: var(--befrou-ink-soft);
  caret-color: var(--befrou-ink-soft);
  -webkit-box-shadow: 0 0 0 1000px var(--befrou-cream) inset;
  box-shadow: 0 0 0 1000px var(--befrou-cream) inset;
}

.preorder-quantity {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}

.preorder-quantity legend {
  margin-bottom: 12px;
  color: #66777a;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.preorder-stepper {
  width: 160px;
  height: 44px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 41, 54, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.preorder-stepper button {
  width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--befrou-ink-soft);
  font: 600 18px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.preorder-stepper button:first-child {
  color: #66777a;
}

.preorder-stepper input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--befrou-ink-soft);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}

.preorder-stepper input::-webkit-inner-spin-button,
.preorder-stepper input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.preorder-stepper:focus-within {
  border-color: var(--befrou-copper);
  box-shadow: 0 0 0 2px rgba(180, 95, 54, 0.12);
}

.preorder-consent {
  width: 590px;
  max-width: 100%;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #526a72;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.preorder-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--befrou-copper);
}

.preorder-consent a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.preorder-consent a:hover,
.preorder-consent a:focus-visible {
  color: var(--befrou-ink-soft);
}

.preorder-submit,
.preorder-modal__continue {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--befrou-copper);
  color: #fff;
  font: 600 12px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.preorder-submit {
  width: 252px;
  margin-top: 22px;
}

.preorder-submit span {
  margin-left: 5px;
}

.preorder-note {
  width: 570px;
  max-width: 100%;
  margin: 12px 0 0;
  color: #66777a;
  font-size: 12px;
  line-height: 18px;
}

.preorder-complete {
  width: min(570px, 100%);
  min-height: 92px;
  margin-top: 38px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(180, 95, 54, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.preorder-complete > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 173, 71, 0.62);
  border-radius: 50%;
  color: var(--befrou-copper);
}

.preorder-complete p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.preorder-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  inset: 0;
  padding: 24px;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--befrou-ink-soft);
}

.preorder-modal[open] {
  display: grid;
  place-items: center;
}

.preorder-modal::backdrop {
  background: rgba(7, 21, 35, 0.54);
}

.preorder-modal__card {
  width: min(520px, 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--befrou-cream);
}

.preorder-modal__topline {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preorder-modal__topline > img {
  width: 44px;
  height: 44px;
}

.preorder-modal__topline button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.preorder-modal__topline button img {
  width: 20px;
  height: 20px;
}

.preorder-modal h3,
.preorder-modal p {
  margin: 0;
}

.preorder-modal h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
}

.preorder-modal p {
  font-size: 16px;
  line-height: 24px;
}

.preorder-modal__email {
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
}

.preorder-modal__email strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.05em;
}

.preorder-modal__continue {
  width: 100%;
}

@media (max-width: 1320px) and (min-width: 921px) {
  .preorder-background {
    width: 37.5%;
  }

  .preorder-veil {
    width: calc(37.5% + 64px);
    background: linear-gradient(90deg, var(--befrou-cream) 0, rgba(244, 235, 221, 0.55) 42px, rgba(244, 235, 221, 0) 64px);
  }

  .preorder-content {
    width: min(682px, calc(62.5% - 48px));
  }

  .preorder-form__fields {
    grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1.2fr) 140px;
    gap: 18px;
  }

  .preorder-stepper {
    width: 140px;
    grid-template-columns: 42px 1fr 42px;
  }

  .preorder-stepper button {
    width: 42px;
  }
}

@media (max-width: 920px) {
  .preorder-scene {
    min-height: max(1001px, 100svh);
    overflow: hidden;
    scroll-snap-align: start;
  }

  .preorder-background,
  .preorder-veil {
    inset: 0 0 auto;
    width: 100%;
    height: 507px;
  }

  .preorder-background img {
    object-position: 50% 44%;
  }

  .preorder-veil {
    background: linear-gradient(180deg, rgba(244, 235, 221, 0.58) 18.75%, rgba(244, 235, 221, 0.78) 45.2%, rgba(244, 235, 221, 0.82) 68%, rgba(244, 235, 221, 0.65) 83%, var(--befrou-cream) 100%);
  }

  .preorder-scene .site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.07);
    color: var(--befrou-ink-soft);
  }

  .preorder-content {
    width: auto;
    min-height: 1001px;
    padding: 96px 24px 32px;
    margin: 0;
  }

  .preorder-kicker {
    font-size: 11px;
  }

  .preorder-content h2 {
    margin-top: 24px;
    font-size: 28px;
    line-height: 34px;
  }

  .preorder-intro {
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 24px;
  }

  .preorder-countdown {
    margin-top: 24px;
  }

  .preorder-countdown__label {
    font-size: 11px;
    line-height: 17px;
  }

  .preorder-countdown__grid {
    width: 100%;
    margin-top: 14px;
    gap: 10px;
  }

  .preorder-countdown__unit strong {
    font-size: 40px;
    line-height: 48px;
  }

  .preorder-form {
    margin-top: 24px;
  }

  .preorder-form__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .preorder-field {
    width: 100%;
  }

  .preorder-field input {
    height: 46px;
  }

  .preorder-quantity legend {
    margin-bottom: 12px;
  }

  .preorder-consent {
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    gap: 12px;
    font-size: 13px;
    line-height: 20px;
  }

  .preorder-consent input {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .preorder-submit {
    width: 100%;
    margin-top: 20px;
  }

  .preorder-note {
    width: 100%;
    margin-top: 24px;
    font-size: 13px;
    line-height: 20px;
  }

  .preorder-complete {
    width: 100%;
    margin-top: 28px;
  }

  .preorder-modal {
    padding: 24px;
  }

  .preorder-modal__card {
    padding: 32px 20px;
  }

  .preorder-modal h3 {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 359px) {
  .preorder-content {
    padding-inline: 20px;
  }

  .preorder-countdown__grid {
    gap: 4px;
  }

  .preorder-countdown__unit strong {
    font-size: 36px;
  }

  .preorder-modal {
    padding: 16px;
  }
}

.home .site-footer {
  display: none;
}

@media (max-width: 920px) {
  :root {
    --header-height: 80px;
  }

  html {
    /* `mandatory` is unreliable in iOS Safari when full-screen scenes and
     * taller content coexist: it can skip the bottom or bounce backwards.
     * Proximity keeps the cinematic section boundaries without trapping the
     * reader inside long scenes. */
    scroll-snap-type: y proximity;
    overscroll-behavior-y: none;
  }

  body {
    scroll-snap-type: y mandatory;
  }

  .site-header {
    height: var(--header-height);
    padding: 8px 24px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-header::after {
    background: transparent;
  }

  .site-brand {
    width: auto;
    font-size: 20px;
  }

  .site-navigation,
  .site-header > .language-switcher,
  .header-order-button {
    display: none;
  }

  .mobile-menu-trigger {
    position: relative;
    z-index: 102;
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 253, 248, 0.12);
    color: #fffdf8;
    cursor: pointer;
  }

  .mobile-menu-icon {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobile-menu-icon span {
    width: 20px;
    height: 1.6px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

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

  .mobile-menu:not([hidden]) {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: block;
    background: rgba(1, 9, 15, 0);
    color: #fffdf8;
    transition: background-color 360ms ease;
  }

  .admin-bar .mobile-menu:not([hidden]) {
    top: 46px;
  }

  .mobile-menu.is-open {
    background: rgba(1, 9, 15, 0.5);
  }

  .mobile-menu-panel {
    position: relative;
    width: 90%;
    max-width: 360px;
    height: 100%;
    padding: 84px 24px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #071523;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.24);
    transform: translateX(-102%);
    transition: transform 380ms cubic-bezier(0.22, 0.75, 0.2, 1);
  }

  .mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .site-header:has(.mobile-menu:not([hidden])) > .site-brand,
  .site-header:has(.mobile-menu:not([hidden])) > .mobile-menu-trigger {
    visibility: hidden;
  }

  .mobile-menu-title {
    width: 100%;
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 8.5vw, 36px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .mobile-language-switcher {
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 24px;
    display: block;
  }

  /* The drawer stays dark even when it is opened over a light scene. */
  .mobile-menu .mobile-language-switcher .language-trigger {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fffdf8;
  }

  .mobile-menu .mobile-language-switcher[open] > .language-trigger {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .mobile-menu .mobile-language-switcher .language-menu {
    border-color: rgba(255, 255, 255, 0.28);
    background: #102330;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
  }

  .mobile-menu .mobile-language-switcher .language-menu a,
  .mobile-menu .mobile-language-switcher .language-menu a:hover,
  .mobile-menu .mobile-language-switcher .language-menu a:focus-visible {
    color: #fffdf8;
  }

  .mobile-menu .mobile-language-switcher .language-menu a:hover,
  .mobile-menu .mobile-language-switcher .language-menu a:focus-visible,
  .mobile-menu .mobile-language-switcher .language-menu a[aria-current="true"] {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu nav {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }

  .mobile-menu nav a {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #a9bbc4;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }

  .mobile-menu nav a > :last-child {
    color: var(--befrou-gold);
    font-size: 18px;
  }

  .mobile-order-button {
    width: 100%;
    height: 52px;
    margin-top: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--befrou-ink-soft);
  }

  .mobile-menu-close {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fffdf8;
    cursor: pointer;
  }

  .mobile-menu:not([hidden]) .mobile-menu-close {
    display: inline-flex;
  }

  .mobile-menu-close-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: block;
  }

  .mobile-menu-close-icon span {
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-close-icon span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-close-icon span:last-child {
    transform: rotate(-45deg);
  }

  @media (max-height: 760px) {
    .mobile-menu:not([hidden]) {
      padding: 0;
    }

    .mobile-menu-panel {
      padding-top: 78px;
      padding-bottom: 20px;
    }

    .mobile-menu-title {
      margin-top: 0;
      font-size: 32px;
    }

    .mobile-menu nav {
      gap: 8px;
      margin-top: 8px;
    }

    .mobile-menu nav a {
      height: 52px;
    }

    .mobile-order-button {
      margin-top: 28px;
    }
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .audience-scene {
    height: auto;
    min-height: 100svh;
  }

  .audience-background img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
  }

  .audience-veil {
    background: rgba(244, 235, 221, 0.64);
  }

  .audience-content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 120px 48px 72px;
    transform: none;
  }

  .js .audience-content,
  .js .audience-scene.is-active .audience-content {
    transform: translateY(28px);
  }

  .js .audience-scene.is-active .audience-content {
    transform: translateY(0);
  }

  .audience-content h2 {
    max-width: 620px;
    font-size: clamp(36px, 5vw, 46px);
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
    margin-top: 76px;
  }

  .audience-note {
    position: static;
    margin-top: 56px;
  }

  .story-scene--two .story-poster img,
  .story-scene--two .story-video,
  .story-scene--three .story-poster img,
  .story-scene--three .story-video {
    object-position: center center;
  }

  .book-preview-scene {
    height: auto;
    min-height: max(1080px, 100svh);
    overflow: hidden;
  }

  .book-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 610px;
    margin: 0 56px;
    padding-top: 112px;
  }

  .book-copy h2 {
    width: auto;
    max-width: 560px;
  }

  .book-intro {
    width: auto;
    max-width: 560px;
  }

  .book-rule {
    max-width: 440px;
  }

  .book-order-button {
    position: static;
    margin-top: 34px;
  }

  .book-reader {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(calc(100% - 64px), 862px);
    margin: 28px auto 56px;
  }
}

@media (max-width: 767px) {
  .landing-scene {
    height: 100dvh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .admin-bar .landing-scene {
    height: calc(100dvh - 46px);
    min-height: calc(100dvh - 46px);
  }

  .audience-scene {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
  }

  .admin-bar .audience-scene {
    height: auto;
    min-height: calc(100svh - 46px);
  }

  .audience-scene .site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.07);
    color: var(--befrou-ink-soft);
  }

  .audience-background img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 33% center;
  }

  .audience-veil {
    background: linear-gradient(
      180deg,
      rgba(244, 235, 221, 0.38) 0%,
      rgba(244, 235, 221, 0.68) 8%,
      rgba(244, 235, 221, 0.74) 20%,
      rgba(244, 235, 221, 0.74) 73.707%,
      rgba(244, 235, 221, 0.38) 89.483%,
      rgba(244, 235, 221, 0.38) 100%
    );
  }

  .audience-content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 96px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: none;
  }

  .js .audience-content,
  .js .audience-scene.is-active .audience-content {
    transform: translateY(28px);
  }

  .js .audience-scene.is-active .audience-content {
    transform: translateY(0);
  }

  .audience-kicker {
    width: 100%;
    line-height: 16px;
  }

  .audience-content h2 {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.02em;
  }

  .audience-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
  }

  .audience-number {
    line-height: 20px;
  }

  .audience-rule {
    margin: 12px 0;
  }

  .audience-card h3 {
    line-height: 18px;
  }

  .audience-card > p:last-child {
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .audience-note {
    position: static;
    margin: 0;
    color: var(--befrou-ink-soft);
    font-size: 14px;
    line-height: 22px;
  }

  .hero-video,
  .hero-scene .scene-poster img {
    object-position: calc(50% + 100px) center;
  }

  .hero-scene .scene-wash {
    background: rgba(6, 21, 28, 0.06);
  }

  .hero-safe-zone {
    width: 100%;
    background: linear-gradient(90deg, rgba(6, 21, 28, 0.62) 0%, rgba(6, 21, 28, 0.22) 68%, transparent 100%);
  }

  .hero-content {
    top: 96px;
    bottom: max(32px, env(safe-area-inset-bottom));
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .scene-kicker {
    max-width: 270px;
    font-size: 10px;
    line-height: 15px;
  }

  .hero-content h1 {
    max-width: 100%;
    margin-top: 18px;
    font-size: clamp(25px, 7.6vw, 30px);
    line-height: 1.05;
  }

  .hero-intro {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 15px;
    line-height: 22px;
  }

  .hero-actions {
    position: static;
    width: 100%;
    min-width: 342px;
    display: grid;
    gap: 16px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding-inline: 20px;
  }

  .map-poster img {
    object-position: center center;
  }

  .map-wash {
    background: rgba(6, 21, 28, 0.08);
  }

  .map-safe-zone {
    width: 100%;
    height: clamp(470px, 62%, 560px);
    background: linear-gradient(
      180deg,
      rgba(4, 13, 20, 0.48) 0%,
      rgba(4, 13, 20, 0.38) 34%,
      rgba(4, 13, 20, 0.18) 68%,
      rgba(4, 13, 20, 0.06) 88%,
      rgba(4, 13, 20, 0) 100%
    );
  }

  .map-copy {
    top: clamp(92px, 11.5dvh, 104px);
    left: 24px;
    width: calc(100% - 48px);
  }

  .map-copy .scene-kicker {
    max-width: 342px;
  }

  .map-copy h2 {
    max-width: 342px;
    margin-top: 16px;
    font-size: 30px;
    line-height: 32px;
  }

  .map-intro {
    max-width: 342px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 23px;
  }

  .route-line--desktop {
    display: none;
  }

  .route-line--mobile {
    display: block;
  }

  .story-route {
    top: 360px;
    bottom: auto;
    height: 400px;
  }

  .story-route-canvas {
    inset: 0;
  }

  .route-point {
    width: 190px;
    height: 48px;
  }

  .route-point--1 {
    top: 0;
    left: calc(78.7% - 15px);
  }

  .route-point--2 {
    top: 170px;
    left: calc(53.8% - 15px);
  }

  .route-point--3 {
    top: 340px;
    left: calc(26.4% - 15px);
  }

  .route-shading {
    display: none;
  }

  .route-point-ring {
    top: 8px;
    left: -7px;
    width: 44px;
    height: 44px;
  }

  .route-point-disc {
    top: 10px;
    left: -8px;
    width: 45px;
    height: 45px;
  }

  .route-number {
    top: 15px;
    left: 0;
    width: 30px;
    height: 30px;
    font-size: 10px;
    line-height: 14px;
  }

  .route-label-rail {
    top: 18px;
    left: 35px;
    gap: 8px;
  }

  .route-connector {
    width: 14px;
    flex-basis: 14px;
  }

  .route-point--1 .route-label-rail {
    right: auto;
    left: -180px;
    width: 168px;
    flex-direction: row-reverse;
  }

  .route-point--1 .route-label {
    width: 145px;
    text-align: right;
  }

  .route-label {
    font-size: 12px;
    line-height: 18px;
  }

  .story-progress {
    right: 24px;
    bottom: 32px;
    width: 174px;
    font-size: 11px;
  }

  .story-scene {
    height: max(100dvh, 844px);
    min-height: max(100dvh, 844px);
  }

  .admin-bar .story-scene {
    height: max(calc(100dvh - 46px), 844px);
    min-height: max(calc(100dvh - 46px), 844px);
  }

  .story-poster,
  .story-video {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .story-poster img,
  .story-video {
    object-fit: cover;
    object-position: 86% center;
  }

  .story-scene--two .story-poster img,
  .story-scene--two .story-video {
    object-position: center center;
  }

  .story-scene--three .story-poster img,
  .story-scene--three .story-video {
    object-position: 58% center;
  }

  .story-overlay--side {
    inset: 0;
    width: 100%;
    height: 420px;
    background: linear-gradient(180deg, rgba(5, 10, 15, 0.84) 0%, rgba(5, 10, 15, 0.81) 70%, rgba(5, 10, 15, 0) 100%);
  }

  .story-overlay--bottom {
    height: 270px;
    opacity: 0.72;
  }

  .story-editorial {
    top: 74px;
    bottom: 146px;
    left: 24px;
    width: calc(100% - 48px);
    height: auto;
  }

  .story-number {
    top: 0;
    left: 0;
    width: 60px;
    font-size: 48px;
    line-height: 58px;
  }

  .story-spine {
    top: 78px;
    left: 0;
    width: 1px;
    height: 194px;
    opacity: 0.92;
  }

  .story-spine span {
    display: none;
  }

  .story-heading-meta {
    top: 14px;
    left: 68px;
    width: calc(100% - 68px);
  }

  .story-chapter {
    font-size: 10px;
    line-height: 14px;
  }

  .story-source {
    max-width: 260px;
    margin-top: 5px;
    font-size: 9px;
    line-height: 13px;
    letter-spacing: 0.08em;
  }

  .story-editorial h2 {
    position: relative;
    top: auto;
    left: 18px;
    width: calc(100% - 18px);
    margin: 78px 0 0;
    font-size: 34px;
    line-height: 38px;
  }

  .story-scene--two .story-editorial h2 {
    font-size: 34px;
    line-height: 38px;
  }

  .story-lead {
    position: relative;
    top: auto;
    left: 18px;
    width: calc(100% - 18px);
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 22px;
  }

  .story-quote {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 22px;
    line-height: 27px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62);
  }

  .story-mini-map {
    top: auto;
    right: 24px;
    bottom: 32px;
    left: 24px;
    width: auto;
    height: 108px;
    border-radius: 18px;
  }

  .story-mini-map__visual {
    width: 126px;
    height: 92px;
  }

  .story-mini-map__route {
    top: 27px;
    left: 50px;
  }

  .story-mini-map__point--one {
    top: 22px;
    left: 97px;
  }

  .story-mini-map__point--two {
    top: 50px;
    left: 71px;
  }

  .story-mini-map__point--three {
    top: 79px;
    left: 45px;
  }

  .story-mini-map__copy {
    right: 16px;
    left: 150px;
  }

  .story-mini-map__eyebrow {
    top: 17px;
    font-size: 9px;
    line-height: 13px;
  }

  .story-mini-map__title {
    top: 40px;
    font-size: 11px;
    line-height: 16px;
  }

  .story-mini-map__meta {
    top: 65px;
    font-size: 10px;
    line-height: 14px;
  }

  .story-mini-map__progress {
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .hero-content h1 {
    font-size: clamp(24px, 7.6vw, 29px);
    line-height: 1.05;
  }

  .hero-intro,
  .map-intro {
    font-size: 14px;
    line-height: 21px;
  }

  .hero-actions {
    min-width: 0;
  }

  .story-editorial h2 {
    font-size: 31px;
    line-height: 34px;
  }

  .story-scene--two .story-editorial h2 {
    font-size: 31px;
    line-height: 34px;
  }

  .story-lead {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .book-preview-scene {
    height: auto;
    min-height: max(100svh, 910px);
    overflow: visible;
  }

  .book-preview-scene .site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.07);
    color: var(--befrou-ink-soft);
  }

  .book-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 24px;
    padding-top: 90px;
  }

  .book-copy h2 {
    width: auto;
    max-width: 335px;
    margin-top: 10px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.02;
  }

  .book-intro {
    width: auto;
    max-width: 340px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.48;
  }

  .book-counter,
  .book-rule,
  .book-finished,
  .book-copy > .book-order-button {
    display: none;
  }

  .book-reader {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 22px 24px 0;
  }

  .book-stage {
    width: 100%;
    height: min(375px, calc((100vw - 48px) * 1.302083));
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .book-cover {
    inset: auto;
    top: 0;
    left: 50%;
    width: min(288px, 100%);
    height: auto;
    aspect-ratio: 288 / 375;
    transform: translateX(-50%);
  }

  .book-cover img {
    top: -1.72%;
    left: -6.29%;
    width: 111.43%;
    height: 108.62%;
    object-fit: fill;
  }

  .book-support,
  .book-gutter,
  .book-arrow,
  .book-cover-arrow {
    display: none;
  }

  .book-paper {
    top: 0;
    left: 50%;
    width: min(285px, 100%);
    height: auto;
    aspect-ratio: 360 / 468;
    transform: translateX(-50%);
    box-shadow: 0 12px 28px rgba(47, 39, 28, 0.14);
  }

  .book-paper--left {
    display: none;
  }

  .book-paper--right {
    left: 50%;
  }

  .book-open-button {
    width: 100%;
    max-width: 420px;
    height: 48px;
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--befrou-ink-soft);
    color: var(--befrou-white);
    font: 600 11px/1 "Manrope", sans-serif;
    cursor: pointer;
  }

  .book-mobile-controls {
    width: 100%;
    max-width: 420px;
    height: 48px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
  }

  .book-mobile-controls button {
    width: 64px;
    height: 48px;
    border: 1px solid rgba(16, 41, 54, 0.28);
    border-radius: 999px;
    background: transparent;
    color: var(--befrou-ink-soft);
    font-size: 18px;
    cursor: pointer;
  }

  .book-mobile-controls button:last-child {
    border-color: var(--befrou-ink-soft);
    background: var(--befrou-ink-soft);
    color: var(--befrou-white);
  }

  .book-mobile-controls button:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .book-zoom-button {
    width: 100%;
    max-width: 420px;
    height: 42px;
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 41, 54, 0.25);
    border-radius: 999px;
    background: transparent;
    color: var(--befrou-ink-soft);
    font: 600 10px/1 "Manrope", sans-serif;
    cursor: pointer;
  }

  .book-language-note {
    margin: 12px 0 0;
    display: block;
    color: #66777c;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
  }

  .book-order-button--mobile {
    position: static;
    width: 100%;
    max-width: 420px;
    height: 48px;
    margin: 14px auto 0;
    display: flex;
  }

  .book-reader:not(.is-cover) .book-open-button,
  .book-reader:not(.is-cover) .book-language-note,
  .book-reader:not(.is-cover) .book-order-button--mobile {
    display: none;
  }

  .book-reader.is-cover .book-mobile-controls,
  .book-reader.is-cover .book-zoom-button {
    display: none;
  }

  .book-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .book-lightbox__toolbar {
    height: 54px;
    padding-inline: 16px;
  }

  .book-lightbox__page {
    height: calc(100% - 54px);
    padding: 16px 14px 84px;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
  }

  .book-lightbox__image-button {
    width: 100%;
  }

  .book-lightbox__image-button.is-zoomed {
    width: 200vw;
  }
}

@media (max-width: 480px) {
  .book-reader {
    margin-right: 16px;
    margin-left: 16px;
  }

  .book-stage {
    height: min(520px, calc((100vw - 32px) * 1.302083));
  }

  .book-cover {
    width: min(400px, 100%);
    aspect-ratio: 441 / 574;
  }

  .book-paper {
    width: min(400px, 100%);
    aspect-ratio: 360 / 468;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .author-scene {
    height: auto;
    min-height: max(1120px, 100svh);
  }

  .author-background img {
    object-position: 48% 68%;
  }

  .author-content {
    position: relative;
    inset: auto;
    min-height: 1120px;
    padding: 124px 48px 64px;
  }

  .author-copy,
  .author-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .author-copy {
    width: min(100%, 650px);
  }

  .author-panel {
    width: min(100%, 540px);
    height: auto;
    min-height: 584px;
    margin: 72px 0 0 auto;
  }
}

@media (max-width: 767px) {
  .author-scene {
    height: auto;
    min-height: max(100svh, 1129px);
    overflow: hidden;
  }

  .admin-bar .author-scene {
    height: auto;
    min-height: max(calc(100svh - 46px), 1129px);
  }

  .author-background,
  .author-veil {
    right: auto;
    bottom: auto;
    width: 100%;
    height: 760px;
  }

  .author-background img {
    top: -21.36%;
    left: -36.36%;
    width: 181.82%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .author-veil {
    background: linear-gradient(
      180deg,
      rgba(6, 21, 28, 0.65) 0%,
      rgba(6, 21, 28, 0.72) 50%,
      rgba(6, 21, 28, 0.36) 66%,
      #06151c 100%
    );
  }

  .author-content {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 1129px;
    padding: 96px 24px 32px;
  }

  .author-copy,
  .author-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  .author-kicker {
    font-size: 11px;
    line-height: 18px;
  }

  .author-copy h2 {
    width: 100%;
    margin-top: 20px;
    font-size: 28px;
    line-height: 34px;
  }

  .author-intro {
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .author-panel {
    height: auto;
    min-height: 0;
    margin-top: 170px;
    padding: 24px 22px;
    border-radius: 28px;
  }

  .author-panel__accent {
    position: static;
    display: block;
    margin-bottom: 16px;
  }

  .author-panel h3 {
    margin-top: 16px;
    font-size: 26px;
    line-height: 31px;
  }

  .author-panel__body {
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .author-panel__divider {
    margin: 16px 0;
  }

  .author-panel__credits-label {
    font-size: 10px;
    line-height: 16px;
  }

  .author-panel__credits {
    margin-top: 12px;
    font-size: 14px;
    line-height: 22px;
  }

  .author-panel__note {
    margin-top: 16px;
    font-size: 14px;
    line-height: 22px;
  }

  .author-panel__button {
    width: 100%;
    height: 48px;
    margin-top: 16px;
  }
}

/* Compact tablet portrait: let the author section end with its real content
 * instead of preserving the taller phone canvas. */
@media (min-width: 600px) and (max-width: 767px) {
  .author-scene,
  .admin-bar .author-scene {
    min-height: 0;
  }

  .author-content {
    min-height: 0;
    padding-bottom: 40px;
  }
}

/* Long mobile/tablet sections must remain fully scrollable. */
@media (max-width: 920px) {
  html,
  body {
    scroll-snap-type: y proximity;
    overscroll-behavior-y: auto;
  }

  .preorder-scene,
  .faq-scene,
  .final-scene,
  .admin-bar .preorder-scene,
  .admin-bar .faq-scene,
  .admin-bar .final-scene {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .preorder-content,
  .faq-content,
  .final-content {
    min-height: 0;
  }
}

/* Mobile browsers can keep the video layer constrained to the portrait safe
 * area after rotating to landscape. Centre the hero media on the full visual
 * viewport so it always reaches both edges while `cover` keeps its aspect
 * ratio intact. */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  /* A phone in landscape is wider than the portrait mobile breakpoint but
   * still has a very short viewport. Keep every scene's content visible
   * instead of relying on the entrance observer while the user scrolls. */
  .js .home .scene-content,
  .js .home .story-route,
  .js .home .story-progress,
  .js .home .story-mini-map,
  .js .home .book-reader,
  .js .home .audience-content,
  .js .home .author-copy,
  .js .home .author-panel,
  .js .home .story-map-scene .route-point {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home .route-stroke {
    stroke-dashoffset: 0;
    transition: none;
  }

  .home .hero-scene {
    background-color: var(--befrou-ink);
    background-image: url("assets/media/hero-desktop-poster-optimized.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home .hero-scene .scene-poster,
  .home .hero-scene .scene-video {
    right: auto;
    left: 50%;
    width: 100vw;
    min-width: 100%;
    max-width: none;
    transform: translateX(-50%);
  }

  .home .hero-scene .scene-poster img,
  .home .hero-scene .scene-video {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .home .hero-scene .scene-video {
    width: auto;
    min-width: 100%;
    max-width: none;
  }
}

/* Tablets use the same single sticky header as phones, while their scenes
 * continue to scroll with the document. Desktop keeps its scene headers. */
@media (min-width: 768px) and (max-width: 920px) {
  .js .home .landing-scene .site-header {
    display: none;
  }

  .js .home .mobile-sticky-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    height: 68px;
    padding: 8px 24px;
    display: flex;
    transition: color 180ms ease;
  }

  .home .mobile-sticky-header::after {
    background: transparent;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background 180ms ease, backdrop-filter 180ms ease;
  }

  .home .mobile-sticky-header.is-mobile-stuck::after {
    background: linear-gradient(
      180deg,
      rgba(6, 21, 28, 0.58) 0%,
      rgba(6, 21, 28, 0.28) 62%,
      rgba(6, 21, 28, 0) 100%
    );
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .home .mobile-sticky-header.site-header--light {
    color: var(--befrou-ink-soft);
  }

  .home .mobile-sticky-header.is-mobile-stuck.site-header--light::after {
    background: linear-gradient(
      180deg,
      rgba(244, 235, 221, 0.78) 0%,
      rgba(244, 235, 221, 0.38) 62%,
      rgba(244, 235, 221, 0) 100%
    );
  }

  .home .mobile-sticky-header.site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.08);
    color: var(--befrou-ink-soft);
  }
}

/* On desktop, scene navigation appears only after the next scene has settled
 * into place. It then scrolls away naturally with that scene. */
@media (min-width: 921px) {
  .site-brand {
    font-size: 24px;
  }

  .home .commerce-order-content {
    right: 0;
    left: 0;
    grid-template-columns: minmax(0, 570px) minmax(520px, 610px);
    justify-content: center;
    width: min(1320px, calc(100% - 96px));
    padding-right: 0;
    padding-left: 0;
  }

  .home .commerce-order-card {
    justify-self: center;
  }

  /* Once the desktop order form has entered the viewport, keep it visible.
   * A taller form can briefly lose the generic active-scene state while the
   * next section enters; hiding it again makes the form look empty when the
   * visitor scrolls back. */
  .js .home .commerce-order-scene.has-entered .commerce-order-content {
    opacity: 1;
    transform: translateY(0);
  }

  .js .home .landing-scene .site-header {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 420ms;
  }

  .js .home .landing-scene.is-header-visible .site-header {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 160ms, 160ms, 0s;
  }

}

/* Preserve the approved desktop logo scale on ultra-wide screens. */
@media (min-width: 1801px) {
  .site-brand {
    width: clamp(150px, 7.5vw, 375px);
    font-size: clamp(24px, 1.2vw, 60px);
  }
}

/* Mobile uses natural scrolling inside one stable viewport. Forced section
 * snapping is deliberately disabled: iOS Safari cannot reliably combine
 * full-screen scenes, long content and its collapsing browser chrome. */
@media (max-width: 767px) {
  html,
  body {
    background: var(--mobile-chrome-color, #06151c);
    scroll-behavior: auto;
    scroll-snap-type: none;
    overscroll-behavior-y: auto;
  }

  body.home {
    height: var(--mobile-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
  }

  .home .landing-scenes {
    width: 100%;
    height: var(--mobile-viewport-height, 100dvh);
    overflow-x: hidden;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scroll-padding-block: 0;
    -webkit-overflow-scrolling: touch;
  }

  .home .landing-scene:not(.final-scene)::after,
  .home .landing-scene:not(.hero-scene)::before {
    position: absolute;
    z-index: 3;
    right: 0;
    left: 0;
    content: "";
    pointer-events: none;
  }

  .home .landing-scene:not(.final-scene)::after {
    bottom: -1px;
    height: var(--mobile-transition-out-height, 112px);
    background: var(--mobile-transition-out);
  }

  .home .landing-scene:not(.hero-scene)::before {
    top: -1px;
    height: var(--mobile-transition-in-height, 96px);
    background: var(--mobile-transition-in);
  }

  .home .hero-scene {
    --mobile-transition-out-height: 128px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(6, 21, 28, 0.28) 42%, #06151c 100%);
  }

  .home .story-map-scene {
    --mobile-transition-in-height: 104px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.5) 44%, rgba(6, 21, 28, 0) 100%);
    --mobile-transition-out-height: 120px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(6, 21, 28, 0.42) 48%, #06151c 100%);
  }

  .home .story-scene--one {
    --mobile-transition-in-height: 96px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.46) 46%, rgba(6, 21, 28, 0) 100%);
    --mobile-transition-out-height: 116px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(6, 21, 28, 0.5) 52%, #06151c 100%);
  }

  .home .story-scene--two {
    --mobile-transition-in-height: 108px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.52) 48%, rgba(6, 21, 28, 0) 100%);
    --mobile-transition-out-height: 132px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(4, 18, 28, 0.58) 54%, #06151c 100%);
  }

  .home .story-scene--three {
    --mobile-transition-in-height: 112px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.56) 48%, rgba(6, 21, 28, 0) 100%);
    --mobile-transition-out-height: 148px;
    --mobile-transition-out: linear-gradient(180deg, rgba(244, 235, 221, 0) 0%, rgba(244, 235, 221, 0.38) 46%, #f4ebdd 100%);
  }

  .home .book-preview-scene {
    --mobile-transition-in-height: 124px;
    --mobile-transition-in: linear-gradient(180deg, #f4ebdd 0%, rgba(244, 235, 221, 0.72) 48%, rgba(244, 235, 221, 0) 100%);
    --mobile-transition-out-height: 128px;
    --mobile-transition-out: linear-gradient(180deg, rgba(244, 235, 221, 0) 0%, rgba(244, 235, 221, 0.58) 52%, #f4ebdd 100%);
  }

  .home .audience-scene {
    --mobile-transition-in-height: 112px;
    --mobile-transition-in: linear-gradient(180deg, #f4ebdd 0%, rgba(244, 235, 221, 0.65) 46%, rgba(244, 235, 221, 0) 100%);
    --mobile-transition-out-height: 152px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(6, 21, 28, 0.38) 48%, #06151c 100%);
  }

  .home .author-scene {
    --mobile-transition-in-height: 136px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.62) 50%, rgba(6, 21, 28, 0) 100%);
    --mobile-transition-out-height: 148px;
    --mobile-transition-out: linear-gradient(180deg, rgba(244, 235, 221, 0) 0%, rgba(244, 235, 221, 0.34) 44%, #f4ebdd 100%);
  }

  .home .preorder-scene {
    --mobile-transition-in-height: 128px;
    --mobile-transition-in: linear-gradient(180deg, #f4ebdd 0%, rgba(244, 235, 221, 0.7) 52%, rgba(244, 235, 221, 0) 100%);
    --mobile-transition-out-height: 112px;
    --mobile-transition-out: linear-gradient(180deg, rgba(244, 235, 221, 0) 0%, rgba(244, 235, 221, 0.68) 54%, #f4ebdd 100%);
  }

  .home .faq-scene {
    --mobile-transition-in-height: 96px;
    --mobile-transition-in: linear-gradient(180deg, #f4ebdd 0%, rgba(244, 235, 221, 0.74) 56%, rgba(244, 235, 221, 0) 100%);
    --mobile-transition-out-height: 156px;
    --mobile-transition-out: linear-gradient(180deg, rgba(6, 21, 28, 0) 0%, rgba(6, 21, 28, 0.44) 46%, #06151c 100%);
  }

  .home .final-scene {
    --mobile-transition-in-height: 140px;
    --mobile-transition-in: linear-gradient(180deg, #06151c 0%, rgba(6, 21, 28, 0.62) 52%, rgba(6, 21, 28, 0) 100%);
  }

  /* Transitions live between scenes, never over their text or controls. */
  .home .landing-scene:not(.hero-scene)::before,
  .home .landing-scene:not(.final-scene)::after {
    content: none !important;
  }

  .home .mobile-scene-transition {
    display: none !important;
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 0 0 auto;
    pointer-events: none;
  }

  .home .mobile-scene-transition--hero {
    height: clamp(40px, 7dvh, 56px);
    --bridge-from-image: url("assets/media/hero-mobile-poster-optimized.jpg");
    --bridge-to-image: url("assets/media/map-mobile-poster-optimized.jpg");
    --bridge-from-position: center bottom;
    --bridge-to-position: center top;
  }

  .home .mobile-scene-transition--story-map,
  .home .mobile-scene-transition--story-1,
  .home .mobile-scene-transition--story-2 {
    height: clamp(32px, 5dvh, 44px);
  }

  .home .mobile-scene-transition--story-map {
    --bridge-from-image: url("assets/media/map-mobile-poster-optimized.jpg");
    --bridge-to-image: url("assets/media/story-1-poster-optimized.jpg");
    --bridge-from-position: center bottom;
    --bridge-to-position: 86% top;
  }

  .home .mobile-scene-transition--story-1 {
    --bridge-from-image: url("assets/media/story-1-poster-optimized.jpg");
    --bridge-to-image: url("assets/media/story-2-poster-optimized.jpg");
    --bridge-from-position: 86% bottom;
    --bridge-to-position: center top;
  }

  .home .mobile-scene-transition--story-2 {
    --bridge-from-image: url("assets/media/story-2-poster-optimized.jpg");
    --bridge-to-image: url("assets/media/story-3-poster-optimized.jpg");
    --bridge-from-position: center bottom;
    --bridge-to-position: 74% top;
  }

  .home .mobile-scene-transition--hero,
  .home .mobile-scene-transition--story-map,
  .home .mobile-scene-transition--story-1,
  .home .mobile-scene-transition--story-2 {
    overflow: hidden;
    background: #06151c;
  }

  .home .mobile-scene-transition--hero::before,
  .home .mobile-scene-transition--hero::after,
  .home .mobile-scene-transition--story-map::before,
  .home .mobile-scene-transition--story-map::after,
  .home .mobile-scene-transition--story-1::before,
  .home .mobile-scene-transition--story-1::after,
  .home .mobile-scene-transition--story-2::before,
  .home .mobile-scene-transition--story-2::after {
    position: absolute;
    inset: -1px;
    content: "";
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home .mobile-scene-transition--hero::before,
  .home .mobile-scene-transition--story-map::before,
  .home .mobile-scene-transition--story-1::before,
  .home .mobile-scene-transition--story-2::before {
    background-image: linear-gradient(rgba(6, 21, 28, 0.18), rgba(6, 21, 28, 0.5)), var(--bridge-from-image);
    background-position: center, var(--bridge-from-position);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
  }

  .home .mobile-scene-transition--hero::after,
  .home .mobile-scene-transition--story-map::after,
  .home .mobile-scene-transition--story-1::after,
  .home .mobile-scene-transition--story-2::after {
    background-image: linear-gradient(rgba(6, 21, 28, 0.5), rgba(6, 21, 28, 0.14)), var(--bridge-to-image);
    background-position: center, var(--bridge-to-position);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 52%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 52%, #000 100%);
  }

  .home .mobile-scene-transition--story-3 {
    height: clamp(40px, 6dvh, 52px);
    --bridge-from-image: url("assets/media/story-3-poster-optimized.jpg");
    --bridge-to-image: linear-gradient(#f4ebdd, #f4ebdd);
    --bridge-from-position: 74% bottom;
    --bridge-to-position: center;
  }

  .home .mobile-scene-transition--book-preview {
    height: clamp(36px, 5dvh, 46px);
    --bridge-from-image: linear-gradient(#f4ebdd, #f4ebdd);
    --bridge-to-image: url("assets/media/audience-background-optimized.jpg");
    --bridge-from-position: center;
    --bridge-to-position: center top;
  }

  .home .mobile-scene-transition--audience {
    height: clamp(40px, 6dvh, 52px);
    --bridge-from-image: url("assets/media/audience-background-optimized.jpg");
    --bridge-to-image: url("assets/media/author-background-optimized.jpg");
    --bridge-from-position: center bottom;
    --bridge-to-position: center top;
  }

  .home .mobile-scene-transition--author {
    height: clamp(40px, 6dvh, 52px);
    --bridge-from-image: url("assets/media/author-background-optimized.jpg");
    --bridge-to-image: url("assets/media/preorder-background-optimized.jpg");
    --bridge-from-position: center bottom;
    --bridge-to-position: center top;
  }

  .home .mobile-scene-transition--order {
    display: none;
  }

  .home .preorder-note {
    color: #102936;
    font-weight: 500;
  }

  .home .mobile-scene-transition--faq {
    height: clamp(40px, 6dvh, 52px);
    --bridge-from-image: linear-gradient(#f4ebdd, #f4ebdd);
    --bridge-to-image: url("assets/media/final-background-optimized.jpg");
    --bridge-from-position: center;
    --bridge-to-position: center top;
  }

  .home :is(
    .mobile-scene-transition--story-3,
    .mobile-scene-transition--book-preview,
    .mobile-scene-transition--audience,
    .mobile-scene-transition--author,
    .mobile-scene-transition--faq
  ) {
    overflow: hidden;
    background: #06151c;
  }

  .home :is(
    .mobile-scene-transition--story-3,
    .mobile-scene-transition--book-preview,
    .mobile-scene-transition--audience,
    .mobile-scene-transition--author,
    .mobile-scene-transition--faq
  )::before,
  .home :is(
    .mobile-scene-transition--story-3,
    .mobile-scene-transition--book-preview,
    .mobile-scene-transition--audience,
    .mobile-scene-transition--author,
    .mobile-scene-transition--faq
  )::after {
    position: absolute;
    inset: -1px;
    content: "";
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home :is(
    .mobile-scene-transition--story-3,
    .mobile-scene-transition--book-preview,
    .mobile-scene-transition--audience,
    .mobile-scene-transition--author,
    .mobile-scene-transition--faq
  )::before {
    background-image: linear-gradient(rgba(6, 21, 28, 0.04), rgba(6, 21, 28, 0.28)), var(--bridge-from-image);
    background-position: center, var(--bridge-from-position);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 100%);
  }

  .home :is(
    .mobile-scene-transition--story-3,
    .mobile-scene-transition--book-preview,
    .mobile-scene-transition--audience,
    .mobile-scene-transition--author,
    .mobile-scene-transition--faq
  )::after {
    background-image: linear-gradient(rgba(6, 21, 28, 0.24), rgba(6, 21, 28, 0.03)), var(--bridge-to-image);
    background-position: center, var(--bridge-to-position);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 52%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 52%, #000 100%);
  }

  .home .book-preview-scene {
    display: flow-root;
  }

  /* Mobile scenes replay their entrance when the reader returns. JavaScript
   * keeps the outgoing scene active until only 10–15% remains visible, so
   * content never disappears while it is still meaningfully on screen. */
  .js .home .scene-content,
  .js .home .story-route,
  .js .home .story-progress,
  .js .home .story-mini-map,
  .js .home .book-reader,
  .js .home .author-copy,
  .js .home .author-panel {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 850ms ease, transform 1050ms cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .js .home .landing-scene.is-active .scene-content,
  .js .home .landing-scene.is-active .story-route,
  .js .home .landing-scene.is-active .story-progress,
  .js .home .story-scene.is-active .story-mini-map,
  .js .home .book-preview-scene.is-active .book-reader,
  .js .home .author-scene.is-active .author-copy,
  .js .home .author-scene.is-active .author-panel {
    opacity: 1;
    transform: none;
  }

  .home .landing-scene,
  .home .admin-bar .landing-scene {
    height: auto;
    min-height: 100%;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .js .home .landing-scene .site-header {
    display: none;
  }

  .js .home .mobile-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(68px + env(safe-area-inset-top));
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-left: max(24px, env(safe-area-inset-left));
    display: flex;
    transition: color 180ms ease;
  }

  .home .mobile-sticky-header::after {
    background: transparent;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background 180ms ease, backdrop-filter 180ms ease;
  }

  .home .mobile-sticky-header.is-mobile-stuck::after {
    background: linear-gradient(
      180deg,
      rgba(6, 21, 28, 0.58) 0%,
      rgba(6, 21, 28, 0.28) 62%,
      rgba(6, 21, 28, 0) 100%
    );
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .home .mobile-sticky-header.site-header--light {
    color: var(--befrou-ink-soft);
  }

  .home .mobile-sticky-header.is-mobile-stuck.site-header--light::after {
    background: linear-gradient(
      180deg,
      rgba(244, 235, 221, 0.78) 0%,
      rgba(244, 235, 221, 0.38) 62%,
      rgba(244, 235, 221, 0) 100%
    );
  }

  .home .mobile-sticky-header.site-header--light .mobile-menu-trigger {
    background: rgba(21, 33, 43, 0.08);
    color: var(--befrou-ink-soft);
  }

  .home .hero-scene,
  .home .story-map-scene,
  .home .story-scene,
  .home .admin-bar .hero-scene,
  .home .admin-bar .story-map-scene,
  .home .admin-bar .story-scene {
    height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /* The cinematic opening scenes need more vertical room than the visible
   * mobile viewport. The viewport-based term scales on taller phones, while
   * the pixel value is the visual floor for compact screens. */
  .home .hero-scene,
  .home .admin-bar .hero-scene {
    min-height: max(calc(100dvh + 96px), 810px);
  }

  .home .story-map-scene,
  .home .admin-bar .story-map-scene {
    min-height: max(calc(100dvh + 72px), 790px);
  }

  .home .story-scene,
  .home .admin-bar .story-scene {
    min-height: max(calc(100dvh + 64px), 800px);
  }

  /* Long sections remain fully readable and never hand a swipe to the next
   * section before their real bottom has passed through the viewport. */
  .home .book-reader,
  .home .audience-content,
  .home .author-content,
  .home .preorder-content,
  .home .faq-content,
  .home .final-content {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .home .book-copy,
  .home .audience-content,
  .home .author-content,
  .home .preorder-content,
  .home .faq-content,
  .home .final-content {
    padding-top: max(80px, calc(68px + env(safe-area-inset-top) + 12px));
    /* The inner mobile scroller already ends above the browser toolbar.
     * Adding the iOS bottom safe-area here reserves the same space twice and
     * exposes it as a coloured strip at the bottom of every section. */
    padding-bottom: 32px;
  }

  .home .hero-content {
    top: max(84px, calc(68px + env(safe-area-inset-top) + 16px));
  }

  .home .map-copy {
    top: max(76px, calc(68px + env(safe-area-inset-top) + 8px));
  }

  .home .story-editorial {
    top: max(24px, calc(env(safe-area-inset-top) + 24px));
  }

  .home .story-editorial h2 {
    margin-top: 68px;
  }

  .home .story-spine {
    top: var(--mobile-story-spine-top, 58px);
    height: var(--mobile-story-spine-height, 180px);
  }

  .home .story-overlay--side {
    height: 360px;
    background: linear-gradient(
      180deg,
      rgba(5, 10, 15, 0.84) 0%,
      rgba(5, 10, 15, 0.78) 62%,
      rgba(5, 10, 15, 0) 100%
    );
  }

  .home .landing-scene {
    isolation: auto;
  }

  .home .mobile-dark-scene-seam {
    --seam-from: 6, 21, 28;
    --seam-to: 6, 21, 28;
    position: relative;
    z-index: 4;
    display: block;
    width: 100%;
    height: 112px;
    margin: -54px 0;
    flex: 0 0 auto;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(var(--seam-from), 0) 0%,
      rgba(var(--seam-from), 0.14) 10%,
      rgba(var(--seam-from), 0.34) 20%,
      rgba(var(--seam-from), 0.58) 30%,
      rgba(var(--seam-from), 0.82) 40%,
      rgba(var(--seam-to), 0.98) 50%,
      rgba(var(--seam-to), 0.84) 60%,
      rgba(var(--seam-to), 0.6) 70%,
      rgba(var(--seam-to), 0.36) 80%,
      rgba(var(--seam-to), 0.15) 90%,
      rgba(var(--seam-to), 0) 100%
    );
    -webkit-backdrop-filter: blur(10px) saturate(0.88);
    backdrop-filter: blur(10px) saturate(0.88);
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.42) 14%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.42) 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.42) 14%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.42) 86%,
      transparent 100%
    );
  }

  .home .scene-content,
  .home .story-route,
  .home .story-progress,
  .home .story-mini-map,
  .home .book-reader,
  .home .audience-content {
    z-index: 10;
  }

  .home .mobile-dark-scene-seam--hero {
    --seam-from: 20, 39, 43;
    --seam-to: 7, 31, 46;
  }

  .home .mobile-dark-scene-seam--story-map {
    --seam-from: 7, 28, 42;
    --seam-to: 5, 16, 23;
  }

  .home .mobile-dark-scene-seam--story-1 {
    --seam-from: 5, 16, 23;
    --seam-to: 24, 30, 35;
  }

  .home .mobile-dark-scene-seam--story-2 {
    --seam-from: 24, 30, 35;
    --seam-to: 6, 23, 32;
  }

  .home .book-preview-scene {
    padding-bottom: 0;
  }

  .home .mobile-book-audience-seam {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 190px;
    margin: -30px 0 -160px;
    flex: 0 0 auto;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      #f4ebdd 0%,
      #f4ebdd 18%,
      rgba(244, 235, 221, 0.94) 36%,
      rgba(244, 235, 221, 0.78) 52%,
      rgba(244, 235, 221, 0.52) 68%,
      rgba(244, 235, 221, 0.24) 84%,
      rgba(244, 235, 221, 0) 100%
    );
  }

  .home .audience-content {
    z-index: 5;
  }
}

/* The 600–767px layout uses the mobile FAQ accordion, whose collapsed items
 * need only their real content height rather than a full viewport canvas. */
@media (min-width: 600px) and (max-width: 767px) {
  .home .faq-scene,
  .home .admin-bar .faq-scene {
    min-height: 0;
  }

  .home .faq-content {
    min-height: 0;
    padding-bottom: 40px;
  }
}

/* Safari gets the same dynamic viewport as other mobile browsers. Backgrounds
 * fill the full visible screen; safe-area spacing belongs to content only. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .home .landing-scenes {
      height: var(--mobile-viewport-height, 100dvh);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scene-video {
    display: none;
  }
}

/* Keep the stock-aware order scene on the light commerce canvas. These
 * overrides live after the generic scene rules so the surrounding story
 * sections cannot recolour or constrain the checkout block. */
.home .commerce-order-scene {
  display: grid;
  align-items: center;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: #f4ebdd;
}

.home .commerce-order-content {
  position: relative;
  inset: auto;
}

.commerce-order-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.commerce-order-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.08);
  color: var(--befrou-ink-soft);
}

@media (max-width: 920px) {
  .home .commerce-order-scene,
  .home.admin-bar .commerce-order-scene {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .home .commerce-order-content {
    min-height: 0;
  }
}

.commerce-success {
  position: absolute;
  z-index: 7;
  top: 88px;
  left: 50%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: min(560px, calc(100% - 36px));
  padding: 18px 58px 18px 20px;
  border: 1px solid rgba(18, 94, 69, 0.24);
  border-radius: 18px;
  background: #edf5ee;
  color: #123f32;
  transform: translateX(-50%);
  box-shadow: 0 14px 40px rgba(16, 41, 54, 0.12);
  transition: opacity 220ms ease, transform 220ms ease;
}

.commerce-success.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
}

.commerce-success > span {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #2b7259;
  color: #fff;
}

.commerce-success strong,
.commerce-success p {
  margin: 0;
}

.commerce-success p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.commerce-success__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #123f32;
  font: 400 26px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.commerce-success__close:hover,
.commerce-success__close:focus-visible {
  background: rgba(18, 63, 50, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .commerce-success {
    transition: none;
  }
}

body.woocommerce-checkout,
body.befrou-checkout-active {
  min-height: 100vh;
  background: #f4ebdd;
  color: #102936;
}

.woocommerce-checkout .site-shell,
.woocommerce-checkout #main-content,
.befrou-checkout-active .site-shell,
.befrou-checkout-active #main-content {
  min-height: calc(100vh - 42px);
  background: #f4ebdd;
  color: #102936;
}

.befrou-checkout-page {
  width: min(1440px, 100%);
  min-height: calc(100vh - 42px);
  margin: 0 auto;
  padding: 0 40px 80px;
  background: #f4ebdd;
  color: #102936;
}

.befrou-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid rgba(16, 41, 54, 0.15);
}

.befrou-checkout-brand {
  color: #102936;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.befrou-checkout-back {
  color: #102936;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.befrou-checkout-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 48px;
}

.befrou-checkout-intro {
  margin-bottom: 38px;
}

.befrou-checkout-intro > p {
  margin: 0 0 12px;
  color: #b45f36;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.befrou-checkout-intro h1 {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.befrou-checkout-intro span {
  display: block;
  max-width: 680px;
  margin-top: 16px;
  color: #435861;
  font-size: 15px;
  line-height: 1.6;
}

.befrou-checkout-content {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.befrou-checkout-content .wp-block-woocommerce-checkout {
  margin: 0;
}

.befrou-checkout-content .woocommerce {
  color: #102936;
  font-size: 14px;
}

.befrou-checkout-content :is(
  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields,
  #order_review_heading,
  #order_review,
  #payment
) {
  color: #102936;
}

.befrou-checkout-content :is(h2, h3, h4, p, label, th, td, li, strong, small),
.befrou-checkout-content .woocommerce-checkout-review-order-table,
.befrou-checkout-content .woocommerce-checkout-review-order-table :is(th, td),
.befrou-checkout-content #payment :is(label, p, li),
.befrou-checkout-content .woocommerce-privacy-policy-text {
  color: #102936;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle,
.befrou-checkout-content .woocommerce-info {
  margin: 0 0 20px;
  padding: 13px 18px;
  border: 1px solid rgba(182, 170, 152, 0.62);
  border-radius: 16px;
  background: #fbf6eb;
}

.befrou-checkout-content .woocommerce-info::before {
  display: none;
}

.befrou-checkout-content .woocommerce-info a {
  color: #102936;
  font-weight: 700;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle {
  padding: 0;
  border: 0;
  background: transparent;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle .showcoupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle .showcoupon-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle .showcoupon::after {
  content: "⌄";
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease;
}

.befrou-checkout-content .woocommerce-form-coupon-toggle .showcoupon[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.befrou-checkout-content form.checkout_coupon {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 13px 0 0;
  padding: 16px 0 2px;
  border: 0;
  border-top: 1px solid rgba(182, 170, 152, 0.48);
  border-radius: 0;
  background: transparent;
}

.befrou-checkout-content form.checkout_coupon > p:first-child:not(.form-row) {
  grid-column: 1 / -1;
  margin: 0;
}

.befrou-checkout-content form.checkout_coupon .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.befrou-checkout-content form.checkout_coupon input.input-text {
  min-height: 48px;
  margin: 0;
}

.befrou-checkout-content form.checkout_coupon button.button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #102936;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.befrou-checkout-content form.checkout_coupon .clear {
  display: none;
}

.befrou-checkout-content form.checkout_coupon.has-applied-coupon > .form-row,
.befrou-checkout-content form.checkout_coupon.has-applied-coupon > p:first-child:not(.form-row) {
  display: none;
}

.befrou-checkout-content .befrou-applied-coupon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(16, 41, 54, 0.4);
  border-radius: 12px;
  background: #fffdf7;
  color: #102936;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.befrou-checkout-content .befrou-applied-coupon__remove {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 41, 54, 0.08);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.befrou-checkout-content .befrou-applied-coupon:hover .befrou-applied-coupon__remove,
.befrou-checkout-content .befrou-applied-coupon:focus-visible .befrou-applied-coupon__remove {
  background: #102936;
  color: #fff;
}

.befrou-checkout-content form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  grid-template-rows: auto auto auto 1fr;
  gap: 0 24px;
  align-items: start;
}

.befrou-checkout-content #wc-stripe-express-checkout-element {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 760px);
  margin: 0 auto 12px !important;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: #fbf6eb;
  box-shadow: 0 12px 34px rgba(16, 41, 54, 0.045);
}

.befrou-checkout-content #wc-stripe-express-checkout-button-separator {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 24px !important;
  color: #718087;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.befrou-checkout-content .woocommerce-NoticeGroup-checkout {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin: 0 0 20px;
}

.befrou-checkout-content form.checkout:has(.woocommerce-NoticeGroup-checkout) #customer_details {
  grid-row: 4 / span 2;
}

.befrou-checkout-content form.checkout:has(.woocommerce-NoticeGroup-checkout) #order_review_heading {
  grid-row: 4;
}

.befrou-checkout-content form.checkout:has(.woocommerce-NoticeGroup-checkout) #order_review {
  grid-row: 5;
}

.befrou-checkout-content .woocommerce-error,
.befrou-checkout-content .woocommerce-message {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 14px 18px 14px 52px;
  border: 0;
  border-top: 4px solid #b8202a;
  border-radius: 0 0 14px 14px;
  background: #fff8f5;
  color: #4a3537;
  line-height: 1.5;
  list-style: none;
}

.befrou-checkout-content .woocommerce-message {
  border-top-color: #2b7259;
  background: #f1f7f2;
  color: #214c3d;
}

.befrou-checkout-content .woocommerce-error::before,
.befrou-checkout-content .woocommerce-message::before {
  top: 50%;
  left: 18px;
  color: #b8202a;
  transform: translateY(-50%);
}

.befrou-checkout-content .woocommerce-message::before {
  color: #2b7259;
}

.befrou-checkout-content .woocommerce-error,
.befrou-checkout-content .woocommerce-message {
  transition: opacity 240ms ease, transform 240ms ease;
}

.befrou-checkout-content .woocommerce-error.is-leaving,
.befrou-checkout-content .woocommerce-message.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}

.befrou-checkout-content form.checkout_coupon .befrou-coupon-notice {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  margin: 2px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(184, 32, 42, 0.24);
  border-radius: 10px;
  outline: 0;
  background: #fff0ed;
  color: #74343a;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 240ms ease, transform 240ms ease;
}

.befrou-checkout-content form.checkout_coupon .befrou-coupon-notice.woocommerce-message {
  background: #edf6ef;
  color: #214c3d;
}

.befrou-checkout-content form.checkout_coupon .befrou-coupon-notice::before {
  display: none;
}

.befrou-checkout-content form.checkout_coupon .befrou-coupon-notice.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}

.befrou-checkout-content #customer_details {
  grid-column: 1;
  grid-row: 3 / span 2;
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(182, 170, 152, 0.38);
  border-radius: 26px;
  background: #fbf6eb;
  box-shadow: 0 18px 50px rgba(16, 41, 54, 0.055);
}

.befrou-checkout-content #customer_details::after {
  display: block;
  clear: both;
  content: "";
}

.befrou-checkout-content #customer_details .col-1,
.befrou-checkout-content #customer_details .col-2 {
  float: none;
  width: 100%;
}

.befrou-checkout-content #ship-to-different-address {
  color: #102936;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.35;
}

.befrou-checkout-content #ship-to-different-address label {
  color: #102936;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.befrou-checkout-content #ship-to-different-address label::after {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.befrou-checkout-content #ship-to-different-address:has(input:checked) label::after {
  transform: translateY(2px) rotate(225deg);
}

.befrou-checkout-content #customer_details .col-2 {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 41, 54, 0.12);
}

.befrou-checkout-content .woocommerce-billing-fields h3,
.befrou-checkout-content .woocommerce-shipping-fields h3,
.befrou-checkout-content #order_review_heading {
  color: #102936;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.befrou-checkout-content #order_review_heading {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  padding: 28px 28px 14px;
  border: 1px solid rgba(182, 170, 152, 0.38);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #fbf6eb;
}

.befrou-checkout-content #order_review {
  grid-column: 2;
  grid-row: 4;
  min-width: 0;
  padding: 0 28px 28px;
  border: 1px solid rgba(182, 170, 152, 0.38);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background: #fbf6eb;
  box-shadow: 0 18px 50px rgba(16, 41, 54, 0.055);
}

.befrou-checkout-content .form-row {
  margin: 0 0 15px;
}

.befrou-checkout-content .form-row label {
  display: block;
  margin-bottom: 7px;
  color: #334a53;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.befrou-checkout-content .form-row .required {
  color: #b45f36;
}

.befrou-checkout-content .form-row-wide {
  clear: both;
}

.befrou-checkout-content .form-row-first,
.befrou-checkout-content .form-row-last {
  width: calc(50% - 8px);
}

.befrou-checkout-content .form-row-first {
  float: left;
}

.befrou-checkout-content .form-row-last {
  float: right;
}

.befrou-checkout-content .select2-container .select2-selection--single {
  height: 50px;
  border-color: rgba(182, 170, 152, 0.75);
  border-radius: 12px;
  background: #fffdf8;
}

.befrou-checkout-content .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 9px 14px;
  color: #102936;
  line-height: 28px;
}

.befrou-checkout-content .select2-container .select2-selection--single .select2-selection__arrow {
  top: 10px;
  right: 10px;
}

.befrou-checkout-content .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 20px;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  color: #102936;
}

.befrou-checkout-content .woocommerce-checkout-review-order-table th,
.befrou-checkout-content .woocommerce-checkout-review-order-table td {
  padding: 14px 4px;
  border: 0 !important;
  text-align: left;
}

.befrou-checkout-content .woocommerce-checkout-review-order-table :is(
  thead,
  tbody,
  tfoot,
  tr,
  th,
  td
) {
  border: 0 !important;
  box-shadow: none !important;
}

.befrou-checkout-content .woocommerce-checkout-review-order-table td:last-child,
.befrou-checkout-content .woocommerce-checkout-review-order-table th:last-child {
  text-align: right;
}

/* Keep Colissimo choices compact and readable inside the order summary. */
.befrou-checkout-content tr.woocommerce-shipping-totals.shipping,
.befrou-checkout-content tr.woocommerce-shipping-totals.shipping th,
.befrou-checkout-content tr.woocommerce-shipping-totals.shipping td {
  display: block !important;
  width: 100%;
}

.befrou-checkout-content tr.woocommerce-shipping-totals.shipping th {
  padding-bottom: 6px;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.befrou-checkout-content tr.woocommerce-shipping-totals.shipping td {
  padding-top: 6px;
  border-top: 0 !important;
  border-bottom: 0 !important;
  text-align: left;
}

/* Let the shipping heading breathe instead of boxing it between table rules. */
.befrou-checkout-content .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.befrou-checkout-content .woocommerce-checkout-review-order-table tr.cart-subtotal td {
  border-bottom: 0 !important;
}

.befrou-checkout-content #shipping_method {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.befrou-checkout-content #shipping_method li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none !important;
  outline: 0;
}

.befrou-checkout-content #shipping_method li label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 0;
  color: #102936;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

.befrou-checkout-content #shipping_method .woocommerce-Price-amount {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
}

/*
 * Colissimo appends the selected pickup-point details as an extra element.
 * Keep that element below the radio label and let it use the full row instead
 * of falling into the narrow radio column of the grid.
 */
.befrou-checkout-content #shipping_method li > :not(input):not(label) {
  grid-column: 1 / -1;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: normal;
}

.befrou-checkout-content #shipping_method li > :not(input):not(label) * {
  max-width: 100%;
  background: transparent !important;
  white-space: normal;
}

.befrou-checkout-content #payment {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(16, 41, 54, 0.08);
  border-radius: 18px;
  background: #f3ede2;
}

.befrou-checkout-content #payment ul.payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.befrou-checkout-content #payment ul.payment_methods > li > label,
.befrou-checkout-content #payment .payment_method_stripe > label {
  color: #102936;
  font-weight: 700;
}

.befrou-checkout-content #payment div.payment_box {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #eee8df;
  color: #334a53;
}

.befrou-checkout-content #payment div.payment_box::before {
  border-bottom-color: #eee8df;
}

.befrou-checkout-content #payment .wc-stripe-payment-method-instructions {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
}

.befrou-checkout-content #payment .wc-stripe-upe-element,
.befrou-checkout-content #payment #wc-stripe-upe-element,
.befrou-checkout-content #payment .StripeElement,
.befrou-checkout-content #payment iframe {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.befrou-checkout-content #payment .place-order {
  margin: 18px 0 0;
  color: #102936;
}

.befrou-checkout-content #payment .woocommerce-privacy-policy-text,
.befrou-checkout-content #payment .woocommerce-terms-and-conditions-wrapper {
  color: #435861;
  font-size: 12px;
  line-height: 1.55;
}

.befrou-checkout-content #payment a {
  color: #102936;
  text-underline-offset: 3px;
}

.befrou-checkout-content #place_order {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 26px;
  background: #102936;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.befrou-checkout-content .befrou-cgv-acceptance {
  margin: 24px 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.befrou-checkout-content .befrou-cgv-acceptance label {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.befrou-checkout-content .befrou-cgv-acceptance input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0d2b38;
}

.befrou-checkout-content .befrou-cgv-acceptance a {
  color: #0d2b38;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.befrou-checkout-content :is(input, select, textarea) {
  min-height: 50px;
  padding: 11px 14px !important;
  border-color: rgba(182, 170, 152, 0.75) !important;
  border-radius: 12px !important;
  background: #fffdf8 !important;
  color: #102936 !important;
}

.befrou-checkout-content :is(input, textarea)::placeholder {
  color: #718087;
  opacity: 1;
}

.befrou-checkout-content input[type="checkbox"],
.befrou-checkout-content input[type="radio"] {
  min-height: 0;
  accent-color: #102936;
}

.befrou-checkout-content .wc-block-components-button {
  min-height: 52px;
  border-radius: 26px;
  background: #102936;
  color: #fff;
  font-weight: 700;
}

.woocommerce-checkout .site-footer,
.befrou-checkout-active .site-footer {
  padding: 12px 24px;
  background: #f4ebdd;
  color: #66777a;
  text-align: center;
}

@media (max-width: 1120px) {
  .befrou-checkout-content form.checkout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 0 18px;
  }

  .befrou-checkout-content #customer_details,
  .befrou-checkout-content #order_review_heading {
    padding-right: 22px;
    padding-left: 22px;
  }

  .befrou-checkout-content #order_review {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 860px) {
  .befrou-checkout-page {
    padding: 0 16px 40px;
  }

  .befrou-checkout-header {
    min-height: 64px;
  }

  .befrou-checkout-layout {
    padding-top: 34px;
  }

  .befrou-checkout-intro {
    display: block;
    margin-bottom: 26px;
  }

  .befrou-checkout-intro h1 {
    font-size: 38px;
  }

  .befrou-checkout-content {
    padding: 0;
  }

  .befrou-checkout-content form.checkout_coupon {
    grid-template-columns: 1fr;
  }

  .befrou-checkout-content form.checkout_coupon button.button {
    width: 100%;
  }

  .befrou-checkout-content form.checkout {
    display: block;
  }

  .befrou-checkout-content #wc-stripe-express-checkout-element {
    width: 100%;
    padding: 10px;
    border-radius: 16px;
  }

  .befrou-checkout-content #wc-stripe-express-checkout-button-separator {
    margin-bottom: 18px !important;
  }

  .befrou-checkout-content .woocommerce-NoticeGroup-checkout {
    margin-bottom: 16px;
  }

  .befrou-checkout-content .woocommerce-error,
  .befrou-checkout-content .woocommerce-message {
    min-height: 54px;
    padding: 12px 14px 12px 44px;
    font-size: 13px;
  }

  .befrou-checkout-content .woocommerce-error::before,
  .befrou-checkout-content .woocommerce-message::before {
    left: 14px;
  }

  .befrou-checkout-content #customer_details,
  .befrou-checkout-content #order_review_heading,
  .befrou-checkout-content #order_review {
    padding-right: 18px;
    padding-left: 18px;
  }

  .befrou-checkout-content #customer_details {
    padding-top: 22px;
    padding-bottom: 22px;
    border-radius: 22px;
  }

  .befrou-checkout-content #order_review_heading {
    margin-top: 18px;
    padding-top: 22px;
    border-radius: 22px 22px 0 0;
  }

  .befrou-checkout-content #order_review {
    padding-bottom: 18px;
    border-radius: 0 0 22px 22px;
  }

  .befrou-checkout-content .form-row-first,
  .befrou-checkout-content .form-row-last {
    float: none;
    width: 100%;
  }

  .befrou-checkout-content #shipping_method li label {
    gap: 10px;
    font-size: 14px;
  }
}

/* Store locator */
.store-locator-scene {
  height: auto;
  min-height: 860px;
  overflow: hidden;
  background: var(--befrou-cream);
  color: var(--befrou-ink-soft);
}

.store-locator-scene .site-header--light {
  color: var(--befrou-ink-soft);
}

.store-locator-scene .site-header--light .language-trigger {
  border-color: rgba(16, 41, 54, 0.2);
  background: rgba(16, 41, 54, 0.06);
  color: var(--befrou-ink-soft);
}

.store-locator-content {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 860px;
  padding: 140px 48px 64px;
}

.store-locator-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 48px;
  width: min(1304px, 100%);
  margin: 0 auto;
}

.store-locator-intro h2 {
  max-width: 330px;
  margin: 18px 0 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(42px, 3.45vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.store-locator-intro > p:last-child {
  max-width: 320px;
  margin: 0;
  color: rgba(16, 41, 54, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.store-search {
  position: relative;
  margin-top: 28px;
}

.store-search .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.store-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(16, 41, 54, 0.7);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.store-search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: rgba(16, 41, 54, 0.7);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.store-search input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 42px;
  border: 1px solid rgba(16, 41, 54, 0.2);
  border-radius: 24px;
  outline: none;
  background: rgba(255, 251, 242, 0.7);
  color: var(--befrou-ink-soft);
  font: 500 11px/1.2 "Manrope", sans-serif;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.store-search input::placeholder {
  color: rgba(16, 41, 54, 0.56);
  opacity: 1;
}

.store-search input:focus {
  border-color: rgba(180, 95, 54, 0.72);
  background: var(--befrou-white);
  box-shadow: 0 0 0 3px rgba(237, 173, 71, 0.15);
}

.store-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 41, 54, 0.07);
  color: var(--befrou-ink-soft);
  font: 400 20px/1 "Manrope", sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
}

.store-search button:hover,
.store-search button:focus-visible {
  background: rgba(16, 41, 54, 0.13);
}

.store-list {
  display: grid;
  gap: 0;
  margin-top: 38px;
}

.store-search + .store-list {
  max-height: 344px;
  margin-top: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(16, 41, 54, 0.32) transparent;
  scrollbar-width: thin;
}

.store-search + .store-list::-webkit-scrollbar {
  width: 4px;
}

.store-search + .store-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16, 41, 54, 0.3);
}

.store-search-empty {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 2px solid var(--befrou-gold);
  background: rgba(255, 251, 242, 0.5);
  color: rgba(16, 41, 54, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.store-card {
  position: relative;
  padding: 22px 34px 22px 22px;
  border-left: 1px solid rgba(16, 41, 54, 0.22);
  outline: none;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease;
}

.store-card:focus-visible {
  background: rgba(255, 251, 242, 0.7);
  box-shadow: inset 0 0 0 2px rgba(237, 173, 71, 0.7);
}

.store-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 22px;
  height: 1px;
  background: rgba(16, 41, 54, 0.12);
  content: "";
}

.store-card.is-selected {
  border-left: 3px solid var(--befrou-gold);
  background: rgba(255, 251, 242, 0.48);
}

.store-card__number {
  position: absolute;
  top: 23px;
  right: 12px;
  color: var(--befrou-copper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.store-card h3 {
  margin: 0 30px 7px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.store-card p {
  margin: 0;
}

.store-card__address,
.store-card__hours {
  color: rgba(16, 41, 54, 0.74);
  font-size: 12px;
  line-height: 1.55;
}

.store-card__hours {
  margin-top: 6px !important;
}

.store-card__availability {
  margin-top: 9px !important;
  color: var(--befrou-copper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.store-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.store-card__actions :is(button, a) {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--befrou-ink-soft);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(16, 41, 54, 0.34);
  text-underline-offset: 4px;
  cursor: pointer;
}

.store-card__actions :is(button, a):hover,
.store-card__actions :is(button, a):focus-visible {
  text-decoration-color: var(--befrou-gold);
}

.store-map-shell {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 8px;
  background: #d7d0c3;
  box-shadow: 0 18px 48px rgba(16, 41, 54, 0.1);
}

.store-map {
  width: 100%;
  height: 100%;
  font-family: "Manrope", sans-serif;
}

.store-map .leaflet-tile-pane {
  filter: grayscale(0.72) sepia(0.22) saturate(0.68) contrast(0.92) brightness(1.03);
}

.store-map::after {
  position: absolute;
  z-index: 250;
  inset: 0;
  background: rgba(244, 235, 221, 0.13);
  pointer-events: none;
  content: "";
}

.store-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(16, 41, 54, 0.16);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(16, 41, 54, 0.12);
}

.store-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 251, 242, 0.94);
  color: var(--befrou-ink-soft);
  font: 400 20px/34px "Manrope", sans-serif;
}

.befrou-map-marker-wrap {
  overflow: visible !important;
  background: transparent;
}

.befrou-map-marker {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate(-15px, -15px);
  filter: drop-shadow(0 6px 12px rgba(16, 41, 54, 0.2));
}

.befrou-map-marker__dot {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--befrou-white);
  border-radius: 50%;
  background: var(--befrou-copper);
  color: var(--befrou-white);
  font-size: 10px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.befrou-map-marker__label {
  max-width: 210px;
  margin-left: -7px;
  overflow: hidden;
  padding: 8px 13px 8px 16px;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 251, 242, 0.94);
  color: var(--befrou-ink-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.befrou-map-marker.is-selected .befrou-map-marker__dot {
  background: var(--befrou-ink-soft);
  transform: scale(1.08);
}

.befrou-map-marker.is-selected .befrou-map-marker__label {
  opacity: 1;
  transform: translateX(0);
}

.store-map-attribution {
  position: absolute;
  z-index: 700;
  right: 8px;
  bottom: 7px;
  margin: 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 251, 242, 0.88);
  color: rgba(16, 41, 54, 0.72);
  font-size: 8px;
  line-height: 1.2;
}

.store-map-attribution a {
  text-decoration: none;
}

@media (max-width: 1080px) {
  .store-locator-content {
    padding-right: 32px;
    padding-left: 32px;
  }

  .store-locator-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 920px) {
  .store-locator-scene,
  .home.admin-bar .store-locator-scene {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .store-locator-content {
    min-height: 0;
    padding: 108px 24px 52px;
  }

  .store-locator-layout {
    display: block;
    width: 100%;
  }

  .store-locator-intro h2 {
    max-width: 560px;
    margin-top: 14px;
    font-size: clamp(38px, 10vw, 48px);
    line-height: 0.98;
  }

  .store-locator-intro > p:last-child {
    max-width: 540px;
  }

  .store-list {
    margin-top: 28px;
  }

  .store-search {
    max-width: 560px;
    margin-top: 24px;
  }

  .store-search + .store-list {
    max-height: 380px;
    margin-top: 16px;
  }

  .store-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .store-map-shell {
    height: min(68vh, 420px);
    min-height: 340px;
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .store-locator-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .store-map-shell {
    height: 360px;
    min-height: 0;
  }

  .store-card__actions {
    gap: 10px 16px;
  }
}
