/* Cinderella: crystal blue, cyan light, butterfly gold.
   Each section has its own bold gradient (html[data-section]). Panels drift with the cursor. */

:root {
  --sky: #0B34B0;
  --deep: #03104A;
  --ink-dark: #02103F;
  --pearl: #F2F6FF;
  --pearl-muted: rgba(242, 246, 255, 0.82);
  --ice: #BFF3FF;
  --cyan: #19C2FF;
  --gilt: #E7B54F;
  --gilt-bright: #F6D27E;
  --glass: rgba(242, 246, 255, 0.08);
  --glass-strong: rgba(4, 18, 80, 0.58);
  --glass-edge: rgba(191, 243, 255, 0.28);
  --error: #FFC2B8;
  --accent: var(--cyan);
  --accent-2: #1D4DFF;
  --px: 0;
  --py: 0;

  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-body: "Jost", Futura, "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 4.75rem;
  --radius-card: 22px;
  --radius-field: 12px;
  --ring: 0 0 0 2px var(--deep), 0 0 0 4px var(--gilt);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--gilt);
}

html[data-section="samples"] { --accent: #00E1FF; --accent-2: #8A2CFF; --deep: #07034F; }
html[data-section="upgrade"] { --accent: #2EE6FF; --accent-2: #FF4F7B; --deep: #000A3D; }
html[data-section="fitting"] { --accent: #C08BFF; --accent-2: #FF2FB9; --deep: #170060; }
html[data-section="craft"] { --accent: #6FA0FF; --accent-2: #E7B54F; --deep: #01061F; }
html[data-section="contact"] { --accent: #00FFC8; --accent-2: #009DFF; --deep: #00164A; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-padding-bottom: 5rem;
  scrollbar-color: color-mix(in srgb, var(--accent) 60%, transparent) var(--deep);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--deep);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gilt);
  color: var(--ink-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a,
button,
input,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea {
  caret-color: var(--gilt);
}

:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--gilt);
  color: var(--ink-dark);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- WebGL backdrop ---------- */
.scene-canvas,
.scene-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scene-fallback {
  display: none;
  background:
    radial-gradient(55% 45% at 60% 40%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(45% 40% at 15% 85%, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--sky), var(--deep));
}

.no-webgl .scene-canvas {
  display: none;
}

.no-webgl .scene-fallback {
  display: block;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cursor-glow.is-on {
  opacity: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.5rem;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 88%, transparent) 0%, color-mix(in srgb, var(--deep) 55%, transparent) 55%, transparent);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--gilt-bright);
}

.nav-pill {
  --thumb-x: 0px;
  --thumb-w: 0px;
  position: relative;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Sliding highlight behind the active section's link. */
.nav-pill::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: var(--thumb-w);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: translateX(var(--thumb-x));
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}

.nav-pill.has-active::before {
  opacity: 0.95;
}

.nav-pill li {
  position: relative;
}

.nav-pill a {
  display: block;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-decoration: none;
  color: var(--pearl-muted);
}

.nav-pill a:hover {
  color: var(--pearl);
  background: rgba(242, 246, 255, 0.1);
}

.nav-pill a[aria-current="true"] {
  color: var(--ink-dark);
  font-weight: 500;
  background: none;
}

/* ---------- Shared ---------- */
main {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

h2 {
  font-size: clamp(2.25rem, 3vw + 1.25rem, 3.75rem);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s ease;
}

.btn-primary {
  background: var(--gilt);
  color: var(--ink-dark);
}

.btn-primary:hover {
  background: var(--gilt-bright);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Links whose underline draws on hover. */
.text-link {
  position: relative;
  color: var(--ice);
  font-size: 1rem;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0.35);
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover {
  color: var(--pearl);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Floating glass panels: each drifts with the cursor at its own depth. */
/* Pointer drift is applied by js/main.js (one smoothed loop); the float below is separate. */
.panel {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: float 7s ease-in-out infinite alternate;
    animation-delay: var(--float, 0s);
  }

  .motion-paused .panel {
    animation-play-state: paused;
  }
}

@keyframes float {
  from { translate: 0 -5px; }
  to { translate: 0 5px; }
}

/* ---------- Home ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  padding-bottom: 4.5rem;
}

.hero-title {
  max-width: 11.5em;
  font-size: clamp(2.75rem, 5.2vw + 1rem, 6rem);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(3, 16, 74, 0.55);
}

.hero-title .word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .word {
    animation: word-in 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i) * 70ms + 150ms);
  }
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.45em) rotate(3deg); }
  to { opacity: 1; transform: none; }
}

.lede {
  max-width: 32rem;
  color: var(--pearl);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  text-shadow: 0 1px 18px rgba(3, 16, 74, 0.6);
}

.ask {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(100%, 34rem);
  padding: 0.35rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ask:focus-within {
  border-color: var(--gilt);
}

.ask input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: none;
  color: var(--pearl);
  font: inherit;
  font-size: 1rem;
}

.ask input::placeholder {
  color: rgba(242, 246, 255, 0.62);
}

.ask input:focus-visible {
  outline: none;
}

.hero-hint {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: 5.5rem;
  color: var(--pearl-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
}

.no-webgl .hero-hint {
  display: none;
}

/* ---------- Where the studio is ---------- */
.local {
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.local-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 44rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.local-pin {
  flex: none;
  margin-top: 0.3rem;
  color: var(--gilt);
}

.local h2 {
  font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.75rem);
  font-style: italic;
  text-wrap: balance;
}

.local p {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--pearl-muted);
}

/* ---------- Samples: a 3D carousel of floating panels ---------- */
.samples {
  padding-inline: 0;
  min-height: 100vh;
}

.samples-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  height: 100svh;
  padding-top: calc(var(--header-h) + 0.5rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.samples-intro {
  display: grid;
  gap: 0.5rem;
  max-width: 64rem;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) var(--gutter);
}

.samples-intro h2 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
}

.samples-intro p {
  max-width: 60rem;
  color: var(--pearl-muted);
  font-size: 1rem;
}

.samples-filter {
  position: absolute;
  left: max(var(--gutter), env(safe-area-inset-left));
  bottom: 5.5rem;
  z-index: 200;
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.25rem 0.8rem;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background: color-mix(in srgb, var(--deep) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.samples-filter-title {
  color: var(--pearl);
  font-size: 0.9375rem;
  font-weight: 500;
}

.samples-filter ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.samples-filter button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--pearl-muted);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.samples-filter button::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0.6);
  transition: transform 0.3s var(--ease-out);
}

.samples-filter button:hover,
.samples-filter button[aria-current="true"] {
  color: var(--accent);
}

.samples-filter button:hover::before,
.samples-filter button[aria-current="true"]::before {
  transform: scaleX(1.6);
}

.samples-track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1600px;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vw, 760px, calc((100svh - 340px) * 1.5));
  min-width: 0;
  translate: -50% -50%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.card-inner {
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: rgba(3, 12, 60, 0.6);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 50px 90px -40px rgba(1, 4, 30, 0.9);
}

@media (prefers-reduced-motion: no-preference) {
  .card-inner {
    animation: float 6s ease-in-out infinite alternate;
  }

  .card:nth-child(2n) .card-inner { animation-delay: -2s; }
  .card:nth-child(3n) .card-inner { animation-delay: -4s; }

  .motion-paused .card-inner {
    animation-play-state: paused;
  }
}

.card.is-active .card-inner {
  border-color: color-mix(in srgb, var(--card-accent) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px color-mix(in srgb, var(--card-accent) 30%, transparent), 0 40px 90px -30px color-mix(in srgb, var(--card-accent) 40%, rgba(1, 4, 30, 0.9));
}

.card-stage {
  --mx: 0.5;
  --my: 0.45;
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  container-type: inline-size;
  cursor: pointer;
}

.mini {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

.mini span {
  display: block;
}

/* Keyboard users reach each sample through this button; mouse clicks land on the stage. */
.stage-hit {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
}

.stage-hit:focus-visible {
  opacity: 1;
  outline: 3px solid var(--gilt);
  outline-offset: -3px;
}

.card-meta {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem 1rem;
}

.card-meta h3 {
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

/* Parts that move while the pointer is over a sample (or it has keyboard focus, or it plays). */
.mini :is(.ml-rosette svg, .mlnd-tree, .mlnd-stamp) {
  animation-play-state: paused;
}

.card-stage:is(:hover, :focus-within) .mini :is(.ml-rosette svg, .mlnd-tree, .mlnd-stamp),
.card.is-playing .mini :is(.ml-rosette svg, .mlnd-tree, .mlnd-stamp) {
  animation-play-state: running;
}

/* Panning photographs shared by the photo samples: three stills cross-fade while the camera drifts.
   A Higgsfield clip (SAMPLE_VIDEOS in js/main.js) replaces them when one is set. */
.frames {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.frame,
.slot-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame {
  opacity: 0;
  animation: frames 18s linear infinite;
}

.frame-2 { animation-delay: 6s; }
.frame-3 { animation-delay: 12s; }

.mini img[hidden] {
  display: none;
}

/* ===== 2. Law office: panning photographs under a dark gold vignette, classical serif, gold ===== */
.mini-law {
  background: #141311;
  color: #E9D3A5;
}

/* Warm the photographs toward the gold palette. */
.ml-media {
  filter: sepia(0.35) saturate(0.8) brightness(0.72);
}

.ml-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 50% at 50% 42%, rgba(255, 200, 120, 0.12), transparent 60%),
    radial-gradient(120% 90% at 50% 45%, rgba(20, 19, 17, 0.35) 30%, rgba(0, 0, 0, 0.88));
}

.ml-nav {
  position: absolute;
  top: 3cqw;
  left: 4cqw;
  right: 4cqw;
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
}

.ml-logo {
  font: 500 2.1cqw "Cinzel", serif;
  letter-spacing: 0.08em;
}

.ml-links {
  display: flex !important;
  gap: 2.4cqw;
  color: #BFA77C;
  font: italic 500 1.8cqw "Cormorant Garamond", serif;
}

.ml-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
  width: 70cqw;
  text-align: center;
  transform: translate(-50%, -48%);
}

.ml-rosette {
  position: relative;
  width: 9cqw;
  height: 9cqw;
}

.ml-rosette svg {
  width: 100%;
  height: 100%;
  animation: spin 24s linear infinite;
}

.ml-count {
  position: absolute;
  inset: 0;
  display: grid !important;
  place-items: center;
  font: 500 1.9cqw "Cinzel", serif;
  font-variant-numeric: tabular-nums;
}

.ml-title {
  font: 500 5.6cqw/1.05 "Cinzel", serif;
  letter-spacing: 0.06em;
  color: #F0DDB4;
  text-shadow: 0 0 3cqw rgba(0, 0, 0, 0.9);
}

.ml-sub {
  color: #CDB68A;
  font: italic 500 2cqw "Cormorant Garamond", serif;
}

.ml-cta {
  margin-top: 0.6cqw;
  padding: 0.8cqw 2cqw;
  border: 0.15cqw solid #C8A46A;
  font: 500 1.3cqw "Cinzel", serif;
  letter-spacing: 0.12em;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.card-stage:hover .ml-cta {
  background: #C8A46A;
  color: #141311;
}

/* Click: walk into the office while the rosette turns and the count runs. */
.card.is-playing .ml-media { animation: ml-walk 2.8s var(--ease-out); }
.card.is-playing .ml-rosette svg { animation: spin 2.8s var(--ease-out); }

@keyframes ml-walk { 0%, 100% { scale: 1; } 55% { scale: 1.22; } }

/* ===== 3. Landscaping: panning crew photographs under a lavender sky wash, folded paper hills, a paper plane on the cursor ===== */
.mini-land {
  background: linear-gradient(#8F98DA, #C3C8F3);
  color: #FFFFFF;
  font-family: "Fredoka", "Jost", sans-serif;
}

/* Lavender at the top keeps the paper palette and keeps the title readable. */
.mlnd-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(143, 152, 218, 0.85), rgba(143, 152, 218, 0.35) 42%, rgba(143, 152, 218, 0) 70%);
}

.card.is-playing .mlnd-media { animation: ml-walk 2.8s var(--ease-out); }

.mlnd-nav {
  position: absolute;
  top: 3cqw;
  left: 3.5cqw;
  right: 3.5cqw;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.mlnd-logo {
  font-size: 2.6cqw;
  font-weight: 600;
}

.mlnd-search {
  display: flex !important;
  align-items: center;
  gap: 1.6cqw;
  padding: 0.6cqw 0.6cqw 0.6cqw 2cqw;
  border-radius: 99px;
  background: #FFFFFF;
  color: #5F6385;
  font-size: 1.5cqw;
  font-weight: 500;
  box-shadow: 0 0.8cqw 2cqw rgba(40, 40, 120, 0.22);
}

.mlnd-go {
  padding: 0.8cqw 1.6cqw;
  border-radius: 99px;
  background: #FF5A5F;
  color: #FFFFFF;
}

.mlnd-title {
  position: absolute;
  top: 11cqw;
  left: 3.5cqw;
  max-width: 44cqw;
  font-size: 6.4cqw;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0.4cqw 1.2cqw rgba(60, 60, 140, 0.25);
}

.mlnd-hill {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0;
  filter: drop-shadow(0 -0.5cqw 0.9cqw rgba(50, 50, 120, 0.2));
  transform: translateX(calc((var(--mx) - 0.5) * var(--hp) * -1.6cqw));
  transition: transform 0.8s var(--ease-out);
}

.mlnd-hill::before {
  content: "";
  position: absolute;
  inset: 0;
}

.mlnd-h1 { --hp: 1; height: 19cqw; }
.mlnd-h1::before {
  clip-path: polygon(0 45%, 22% 16%, 45% 40%, 68% 8%, 100% 34%, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #CFECDC 0 22%, #B8DFCA 22% 45%, #CFECDC 45% 68%, #B8DFCA 68%);
}
.mlnd-h2 { --hp: 2; height: 13cqw; }
.mlnd-h2::before {
  clip-path: polygon(0 42%, 18% 18%, 40% 52%, 66% 12%, 88% 40%, 100% 28%, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #98D6B8 0 18%, #7FC8A6 18% 40%, #98D6B8 40% 66%, #7FC8A6 66% 88%, #98D6B8 88%);
}
.mlnd-h3 { --hp: 3.2; height: 7cqw; }
.mlnd-h3::before {
  clip-path: polygon(0 52%, 30% 14%, 58% 56%, 82% 18%, 100% 46%, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #62B894 0 30%, #4FA582 30% 58%, #62B894 58% 82%, #4FA582 82%);
}

.mlnd-tree {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: calc(3.2cqw * var(--s));
  height: calc(7.2cqw * var(--s));
  background: linear-gradient(90deg, #309070 50%, #237957 50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  animation: sway 2.4s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

.mlnd-new {
  scale: 0;
}

.mlnd-stamp {
  position: absolute;
  display: grid !important;
  place-items: center;
  width: 11cqw;
  height: 11cqw;
  padding: 1.6cqw;
  border: 0.3cqw dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.35cqw;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 0.6cqw 1.4cqw rgba(50, 50, 120, 0.25);
  animation: stamp-bob 2.6s ease-in-out infinite alternate;
}

.mlnd-s1 { top: 22cqw; right: 23cqw; rotate: -12deg; background: #FF5A5F; }
.mlnd-s2 { top: 30cqw; right: 6cqw; rotate: 10deg; background: #5B6BD8; animation-delay: -1.3s; }

.mlnd-plane-pos {
  position: absolute;
  top: 0;
  left: 0;
  width: 10cqw;
  height: 5cqw;
  perspective: 30cqw;
  transform: translate(calc(var(--mx) * 100cqw - 50%), calc(var(--my) * 62.5cqw - 50%));
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.mlnd-plane {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-28deg) rotateY(calc((var(--mx) - 0.5) * 60deg)) rotateZ(-12deg);
  transition: transform 0.9s var(--ease-out);
}

.mlnd-wing {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.mlnd-wing-a {
  background: #FFFFFF;
  clip-path: polygon(0 50%, 100% 0, 72% 50%);
  transform: rotateX(38deg);
}

.mlnd-wing-b {
  background: #D6DAF6;
  clip-path: polygon(0 50%, 72% 50%, 100% 100%);
  transform: rotateX(-38deg);
}

.card.is-playing .mlnd-new { animation: grow 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; animation-delay: var(--d); }
.card.is-playing .mlnd-plane-pos { animation: mlnd-loop 2.2s ease-in-out; }

@keyframes stamp-bob { from { translate: 0 -0.6cqw; } to { translate: 0 0.6cqw; } }
@keyframes grow { from { scale: 0; } to { scale: 1; } }
@keyframes mlnd-loop {
  0% { translate: 0 0; rotate: 0deg; }
  30% { translate: 22cqw -14cqw; rotate: -40deg; }
  60% { translate: 8cqw -26cqw; rotate: -220deg; }
  100% { translate: 0 0; rotate: -360deg; }
}

/* ===== 1. Mechanic shop: classic local-shop layout (white header, blue nav, photo, info cards) ===== */
.mini-auto {
  background: #FFFFFF;
  color: #1E2A38;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
}

.ma-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 8.5cqw;
  padding: 0 6cqw;
}

.ma-logo {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  color: #2F4F73;
  font: 400 2.2cqw "Michroma", sans-serif;
  letter-spacing: 0.08em;
}

.ma-logo svg {
  width: 10cqw;
  height: 3.2cqw;
}

.ma-call {
  display: flex !important;
  align-items: center;
  gap: 1cqw;
  font-size: 1.2cqw;
}

.ma-call small {
  display: block;
  color: #6B7785;
  font-size: 1cqw;
}

.ma-call b {
  font-size: 1.5cqw;
}

.ma-ring {
  width: 2.6cqw;
  height: 2.6cqw;
  border-radius: 50%;
  background: #1E2A38 radial-gradient(circle, #FFFFFF 0 0.45cqw, transparent 0.5cqw);
}

.ma-nav {
  position: absolute;
  top: 8.5cqw;
  left: 0;
  right: 0;
  display: flex !important;
  align-items: center;
  gap: 2.4cqw;
  height: 3.6cqw;
  padding: 0 6cqw;
  background: #34506F;
  color: #FFFFFF;
  font-size: 1.2cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ma-social {
  display: flex !important;
  gap: 0.8cqw;
  margin-left: auto;
}

.ma-social i {
  display: block;
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.85;
}

.ma-hero {
  position: absolute;
  top: 12.1cqw;
  left: 0;
  right: 0;
  height: 30cqw;
  overflow: hidden;
}

.ma-hero img,
.mf-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-hero img {
  animation: pan-right 14s ease-in-out infinite alternate;
}

.ma-cards {
  position: absolute;
  top: 36cqw;
  left: 12cqw;
  right: 12cqw;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
}

.ma-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
  min-height: 18cqw;
  padding: 3.4cqw 1.6cqw 1.4cqw;
  background: #3B5A7D;
  color: #FFFFFF;
  font-size: 1.15cqw;
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ma-card:hover {
  z-index: 2;
  transform: translateY(-1.2cqw);
  box-shadow: 0 1.6cqw 2.4cqw rgba(15, 30, 50, 0.35);
}

.ma-loc {
  background: #0F1215;
}

.ma-card b {
  font-size: 1.4cqw;
  letter-spacing: 0.04em;
}

.ma-ico {
  position: absolute;
  top: -2.6cqw;
  left: 50%;
  display: grid !important;
  place-items: center;
  width: 5.2cqw;
  height: 5.2cqw;
  border: 0.35cqw solid #FFFFFF;
  border-radius: 50%;
  background: inherit;
  translate: -50% 0;
}

.ma-ico svg {
  width: 2.6cqw;
  height: 2.6cqw;
}

.ma-row {
  display: flex !important;
  justify-content: space-between;
  width: 100%;
  padding: 0.15cqw 0.5cqw;
  border-radius: 0.3cqw;
}

.ma-row.is-today {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.ma-open {
  position: absolute;
  top: 1cqw;
  right: 1cqw;
  padding: 0.3cqw 0.8cqw;
  border-radius: 99px;
  background: #3DDC84;
  color: #08331B;
  font-size: 0.9cqw;
  font-weight: 700;
  scale: 0;
}

.ma-btn {
  margin-top: 0.6cqw;
  padding: 0.7cqw 1.4cqw;
  border-radius: 0.3cqw;
  background: #3B5A7D;
  font-weight: 700;
}

.ma-big {
  font-size: 2.4cqw;
}

.ma-welcome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4cqw;
  color: #1E2A38;
  font: 400 2.2cqw "Roboto Slab", Georgia, serif;
  letter-spacing: 0.04em;
  text-align: center;
}

.card.is-playing .ma-hero img { animation: zoom-in 2.6s var(--ease-out); }
.card.is-playing .ma-open { animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s forwards; }
.card.is-playing .ma-pin { animation: pin-drop 0.9s cubic-bezier(0.3, 1.6, 0.5, 1); }
.card.is-playing .ma-ring { animation: ring 0.12s linear 10; }
.card.is-playing .ma-card { animation: lift 0.8s var(--ease-out); }
.card.is-playing .ma-card:nth-child(2) { animation-delay: 0.1s; }
.card.is-playing .ma-card:nth-child(3) { animation-delay: 0.2s; }

/* ===== 4. Restaurant: refined and light, script logo, burgundy serif, photo mosaic ===== */
.mini-fine {
  background: #F7F7F9;
  color: #2A2A2E;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.mf-head {
  position: absolute;
  top: 2cqw;
  left: 4cqw;
  right: 4cqw;
  display: flex !important;
  align-items: center;
  gap: 5cqw;
}

.mf-logo {
  color: #3A3A3F;
  font: 400 5cqw/1 "Pinyon Script", cursive;
}

.mf-logo small {
  display: block;
  margin-top: 0.4cqw;
  color: #B08A3E;
  font: 500 0.95cqw "Cormorant Garamond", serif;
  letter-spacing: 0.2em;
}

.mf-nav {
  display: flex !important;
  gap: 2cqw;
  font-size: 1.05cqw;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.mf-intro {
  position: absolute;
  top: 12cqw;
  left: 10cqw;
  right: 10cqw;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
  text-align: center;
}

.mf-intro small {
  font-size: 1.05cqw;
  letter-spacing: 0.24em;
}

.mf-intro i {
  display: block;
  width: 4cqw;
  height: 0.15cqw;
  background: #9B3A4A;
}

.mf-intro span {
  color: #9B3A4A;
  font-size: 2.3cqw;
  line-height: 1.35;
}

.mf-mosaic {
  position: absolute;
  top: 25cqw;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4cqw;
}

.mf-tile {
  position: relative;
  overflow: hidden;
}

.mf-big {
  grid-row: 1 / 3;
}

.mf-tile img {
  transition: transform 0.9s var(--ease-out), filter 0.5s ease;
  filter: brightness(0.78);
}

.mf-big img {
  animation: pan-left 16s ease-in-out infinite alternate;
}

.mf-tile:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.mf-cap {
  position: absolute;
  inset: auto 0 12% 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.6cqw;
  color: #FFFFFF;
  text-align: center;
  text-shadow: 0 0.2cqw 1cqw rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out);
}

.mf-tile:hover .mf-cap {
  transform: translateY(-1cqw);
}

.mf-cap b {
  font-size: 3.6cqw;
  font-weight: 500;
  line-height: 1;
}

.mf-tile:not(.mf-big) .mf-cap b {
  font-size: 2.6cqw;
}

.mf-cap small {
  font-family: "Bodoni Moda", serif;
  font-size: 0.95cqw;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.mf-drawer {
  position: absolute;
  top: 25cqw;
  right: 0;
  bottom: 0;
  display: flex !important;
  flex-direction: column;
  gap: 1.4cqw;
  width: 33.4cqw;
  padding: 3cqw 2.6cqw;
  background: #FBF8F3;
  box-shadow: -1cqw 0 3cqw rgba(0, 0, 0, 0.25);
  transform: translateX(105%);
}

.mf-drawer b {
  color: #9B3A4A;
  font-size: 3cqw;
  font-weight: 500;
}

.mf-chips {
  display: flex !important;
  gap: 0.8cqw;
}

.mf-chips i {
  display: block;
  padding: 0.7cqw 1.2cqw;
  border: 0.12cqw solid #C9B9A3;
  border-radius: 99px;
  font-size: 1.3cqw;
  font-style: normal;
}

.mf-held {
  color: #2E7D4F;
  font-size: 1.6cqw;
  font-style: italic;
  opacity: 0;
}

.card.is-playing .mf-drawer { animation: drawer 2.8s var(--ease-out); }
.card.is-playing .mf-chips i:first-child,
.card.is-playing .mf-times i:nth-child(2) { animation: choose 2.8s ease forwards; }
.card.is-playing .mf-held { animation: held 2.8s ease forwards; }

/* ===== 5. Barbershop: full-bleed panning footage, bold white caps, red booking button ===== */
.mini-barber {
  background: #120E0B;
  color: #FFFFFF;
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

.mbr-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 6, 4, 0.55), rgba(10, 6, 4, 0.25) 40%, rgba(10, 6, 4, 0.6));
}

.mbr-nav {
  position: absolute;
  top: 3cqw;
  left: 5cqw;
  right: 5cqw;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.mbr-logo {
  font: 700 1.9cqw/1.05 "Oswald", sans-serif;
  letter-spacing: 0.12em;
}

.mbr-links {
  display: flex !important;
  align-items: center;
  gap: 2cqw;
  font: 400 1.25cqw "Jost", sans-serif;
}

.mbr-pin::before {
  content: "";
  display: inline-block;
  width: 0.9cqw;
  height: 0.9cqw;
  margin-right: 0.5cqw;
  border-radius: 50% 50% 50% 0;
  background: #D7262F;
  rotate: -45deg;
}

.mbr-book-o {
  padding: 0.7cqw 1.4cqw;
  border: 0.12cqw solid #D7262F;
}

.mbr-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
  width: 86cqw;
  text-align: center;
  transform: translate(-50%, -50%);
}

.mbr-title {
  font-size: 5.6cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 0.3cqw 2cqw rgba(0, 0, 0, 0.5);
}

.mbr-sub {
  font: 400 1.6cqw "Jost", sans-serif;
}

.mbr-book {
  padding: 1.1cqw 2.8cqw;
  background: #D7262F;
  font: 500 1.4cqw "Jost", sans-serif;
  transition: transform 0.3s var(--ease-out);
}

.card-stage:hover .mbr-book {
  transform: scale(1.06);
}

.mbr-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3cqw;
  font: 400 1.4cqw "Jost", sans-serif;
  text-align: center;
}

.mbr-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
  width: 46cqw;
  padding: 2.2cqw 2cqw 2.6cqw;
  border-radius: 1.6cqw 1.6cqw 0 0;
  background: #FBF7F2;
  color: #1C1612;
  font-family: "Jost", sans-serif;
  translate: -50% 105%;
}

.mbr-sheet b {
  font: 700 2cqw "Oswald", sans-serif;
  letter-spacing: 0.04em;
}

.mbr-barbers,
.mbr-slots {
  display: flex !important;
  gap: 1.2cqw;
}

.mbr-barbers i {
  display: grid;
  place-items: center;
  width: 5cqw;
  height: 5cqw;
  border-radius: 50%;
  background: #2B2420;
  color: #FFFFFF;
  font-size: 1.4cqw;
  font-style: normal;
}

.mbr-slots i {
  padding: 0.7cqw 1.4cqw;
  border: 0.12cqw solid #CDBFB0;
  border-radius: 0.4cqw;
  font-size: 1.3cqw;
  font-style: normal;
}

.card.is-playing .mbr-sheet { animation: sheet 2.8s var(--ease-out); }
.card.is-playing .mbr-barbers i:nth-child(2),
.card.is-playing .mbr-slots i:nth-child(1) { animation: choose-red 2.8s ease forwards; }

/* Shared motion for the photo samples: slow pans, like a camera moving through the room */
@keyframes pan-right { from { transform: scale(1.12) translateX(-3%); } to { transform: scale(1.12) translateX(3%); } }
@keyframes pan-left { from { transform: scale(1.1) translateX(3%); } to { transform: scale(1.1) translateX(-3%); } }
@keyframes frames {
  0% { opacity: 0; transform: scale(1.14) translateX(3%); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.06) translateX(-3%); }
  100% { opacity: 0; }
}
@keyframes zoom-in { 0% { transform: scale(1.12); } 50% { transform: scale(1.3); } 100% { transform: scale(1.12); } }
@keyframes pop-in { to { scale: 1; } }
@keyframes pin-drop { 0% { translate: -50% -60%; } 60% { translate: -50% 0; } 100% { translate: -50% 0; } }
@keyframes ring { 0%, 100% { rotate: 0deg; } 50% { rotate: 14deg; } }
@keyframes lift { 40% { transform: translateY(-1.4cqw); } }
@keyframes drawer { 0% { transform: translateX(105%); } 18%, 85% { transform: translateX(0); } 100% { transform: translateX(105%); } }
@keyframes choose { 0%, 30% { background: transparent; color: inherit; } 40%, 100% { background: #9B3A4A; color: #FFFFFF; border-color: #9B3A4A; } }
@keyframes choose-red { 0%, 30% { background: transparent; } 40%, 100% { background: #D7262F; color: #FFFFFF; border-color: #D7262F; } }
@keyframes held { 0%, 45% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes sheet { 0% { translate: -50% 105%; } 18%, 85% { translate: -50% 0; } 100% { translate: -50% 105%; } }

/* Shared keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-0.4cqw, 0.3cqw); } 50% { transform: translate(0.4cqw, -0.3cqw); } 75% { transform: translate(-0.3cqw, -0.1cqw); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes snip-a { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes snip-b { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Upgrade an existing website ---------- */
.upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
}

.upgrade-copy {
  display: grid;
  gap: 1.25rem;
}

.upgrade-lede {
  max-width: 34rem;
  font-size: 1.1875rem;
}

.leaks {
  display: grid;
  gap: 0.9rem;
  margin: 0.5rem 0 0;
}

.leaks div {
  padding: 1rem 1.2rem;
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  background: color-mix(in srgb, var(--deep) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.leaks dt {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.leaks dd {
  margin: 0.25rem 0 0;
  color: var(--pearl-muted);
}

.upgrade-side {
  display: grid;
  gap: 1.25rem;
}

.compare {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.compare-old,
.compare-new {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-old span,
.compare-new span {
  display: block;
}

/* Before: the same shop's dated site */
.compare-old {
  padding: 3cqw;
  background: #E4DFD3;
  color: #2A2A2A;
  font-family: "Times New Roman", Times, serif;
}

.co-top {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.6cqw 2cqw;
  background: #5B5B5B;
  color: #F0F0F0;
  font-size: 2.4cqw;
}

.co-top b { font-size: 3.4cqw; font-weight: 700; }

.co-hero {
  display: grid !important;
  grid-template-columns: 34% 1fr;
  gap: 2.4cqw;
  margin-top: 3cqw;
}

.co-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 0.6cqw ridge #A9A49A;
  filter: saturate(0.35) contrast(0.85) brightness(1.05);
}

.co-copy { font-size: 2.3cqw; line-height: 1.3; }
.co-copy b { display: block; margin-bottom: 1cqw; color: #1F3F8F; font-size: 4cqw; text-decoration: underline; }
.co-tiny { margin-top: 1.4cqw; color: #77736A; font-size: 1.8cqw; }

.co-foot {
  position: absolute;
  left: 3cqw;
  right: 3cqw;
  bottom: 3cqw;
  padding-top: 1.4cqw;
  border-top: 1px solid #B9B4A9;
  color: #77736A;
  font-size: 1.9cqw;
  text-align: center;
}

.co-lost {
  position: absolute;
  left: 6cqw;
  bottom: 12cqw;
  padding: 1cqw 2cqw;
  border: 1px solid #C8533F;
  background: #FFF4F0;
  color: #A2321F;
  font: 600 2.1cqw/1 var(--font-body);
}

/* After: the barbershop sample's look, with the lead and booking CRM */
.compare-new {
  background: #120E0B;
  color: #FFFFFF;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  clip-path: inset(0 0 0 var(--pos));
}

.cn-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.cn-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 4, 0.78), rgba(10, 6, 4, 0.35) 55%, rgba(10, 6, 4, 0.7));
}

.cn-nav {
  position: absolute;
  top: 4cqw;
  left: 5cqw;
  right: 5cqw;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.cn-logo { font: 700 2.8cqw/1.05 "Oswald", sans-serif; letter-spacing: 0.12em; }
.cn-links { display: flex !important; align-items: center; gap: 2.6cqw; font: 400 2cqw var(--font-body); }
.cn-book-o { padding: 1cqw 2cqw; border: 0.2cqw solid #D7262F; }

.cn-hero {
  position: absolute;
  top: 22cqw;
  left: 5cqw;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2cqw;
  width: 46cqw;
}

.cn-title {
  font-size: 7cqw;
  font-weight: 700;
  line-height: 0.98;
  text-shadow: 0 0.4cqw 2.4cqw rgba(0, 0, 0, 0.5);
}

.cn-sub { font: 400 2.3cqw/1.35 var(--font-body); }
.cn-book { padding: 1.6cqw 3.6cqw; background: #D7262F; font: 500 2.2cqw var(--font-body); }

.crm {
  position: absolute;
  top: 17cqw;
  right: 4cqw;
  width: 44cqw;
  padding: 2.2cqw;
  border-radius: 2cqw;
  background: #FBF7F2;
  color: #1C1612;
  font-family: var(--font-body);
  box-shadow: 0 2cqw 5cqw -1cqw rgba(0, 0, 0, 0.6);
}

.crm-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.crm-head b { font: 700 2.7cqw "Oswald", sans-serif; letter-spacing: 0.03em; }

.crm-live {
  padding: 0.5cqw 1.4cqw;
  border-radius: 99px;
  background: #E3F6EC;
  color: #127A47;
  font-size: 1.7cqw;
  font-weight: 600;
}

.crm-live::before {
  content: "";
  display: inline-block;
  width: 1.1cqw;
  height: 1.1cqw;
  margin-right: 0.7cqw;
  border-radius: 50%;
  background: #18B26B;
}

.crm-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
  margin: 1.8cqw 0 1.4cqw;
}

.crm-stats > span {
  padding: 1cqw;
  border-radius: 1cqw;
  background: #F0E9E0;
  color: #6A5D52;
  font-size: 1.5cqw;
  text-align: center;
}

.crm-stats b { display: block; color: #1C1612; font: 700 3cqw/1.1 "Oswald", sans-serif; }

.crm-row {
  display: grid !important;
  grid-template-columns: 4.6cqw 1fr auto;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.2cqw 0;
  border-top: 1px solid #E6DDD2;
  font-size: 1.6cqw;
  line-height: 1.25;
}

.crm-row i {
  display: grid;
  place-items: center;
  width: 4.6cqw;
  height: 4.6cqw;
  border-radius: 50%;
  background: #2B2420;
  color: #FFFFFF;
  font-size: 1.6cqw;
  font-style: normal;
}

.crm-row b { display: block; font-size: 1.9cqw; }
.crm-row > span { overflow: hidden; color: #6A5D52; white-space: nowrap; text-overflow: ellipsis; }
.crm-row > span b { color: #1C1612; }

.crm-row em {
  padding: 0.5cqw 1.2cqw;
  border-radius: 99px;
  font-size: 1.5cqw;
  font-style: normal;
  font-weight: 600;
}

.crm-row .ok { background: #E3F6EC; color: #127A47; }
.crm-row .fu { background: #E6EEFF; color: #1D45B8; }
.crm-row .re { background: #FCEBD9; color: #9A5A12; }

.leak-dot {
  position: absolute;
  top: -12px;
  left: 70%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0533D;
}

/* Only transform and opacity animate, so the browser composites them on the GPU. */
@media (prefers-reduced-motion: no-preference) {
  .leak-dot { animation: leak 2.4s ease-in infinite; animation-delay: var(--d); }
  .cn-photo { animation: pan-right 18s ease-in-out infinite alternate; }
  .crm-row { animation: crm-in 8s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.6s); }
  .crm-row em { animation: crm-tag 8s ease infinite; animation-delay: calc(var(--i) * 0.6s); }
  .motion-paused :is(.leak-dot, .cn-photo, .crm-row, .crm-row em) { animation-play-state: paused; }
}

@keyframes leak { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-40px, 300px); opacity: 0.2; } }
@keyframes crm-in { 0% { opacity: 0; transform: translateX(6%); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes crm-tag { 0%, 12% { transform: scale(0.6); opacity: 0; } 18%, 100% { transform: scale(1); opacity: 1; } }

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--gilt);
  translate: -50% 0;
  pointer-events: none;
}

.compare-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid var(--gilt);
  border-radius: 50%;
  background: var(--ink-dark);
  translate: -50% -50%;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(.compare-range:focus-visible) .compare-line::after {
  box-shadow: 0 0 0 4px rgba(231, 181, 79, 0.5);
}

.compare-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex !important;
  justify-content: space-between;
  pointer-events: none;
}

.compare-tags span {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(2, 16, 63, 0.75);
  color: var(--pearl);
  font-size: 12px;
}

.guarantee {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--gilt) 55%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--deep) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.guarantee-big {
  color: var(--gilt-bright);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.2rem);
  line-height: 1.15;
}

.guarantee p:not(.guarantee-big) {
  color: var(--pearl-muted);
}

.guarantee .guarantee-crm {
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--gilt) 35%, transparent);
}

.guarantee-crm b {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--pearl);
  font-weight: 600;
}

/* ---------- Chat assistant ---------- */
/* Sits above the "Powered by Netlify" badge that the free hosting plan pins to the bottom-right corner. */
.chat-launch {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 52px);
  z-index: 30;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--gilt);
  color: var(--ink-dark);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.chat-launch:hover {
  transform: translateY(-2px);
}

.chat-launch:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.chat {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 112px);
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(380px, calc(100vw - 2rem));
  height: min(540px, calc(100svh - 140px));
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: rgba(3, 12, 52, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overscroll-behavior: contain;
}

.chat[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(191, 243, 255, 0.14);
}

.chat-head h2 {
  font-size: 1.3rem;
}

.chat-head p {
  color: var(--pearl-muted);
  font-size: 0.8125rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--pearl);
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(242, 246, 255, 0.1);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.chat-log li {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-log .from-bot {
  align-self: flex-start;
  background: rgba(242, 246, 255, 0.1);
}

.chat-log .from-you {
  align-self: flex-end;
  background: var(--gilt);
  color: var(--ink-dark);
}

.chat-log a {
  color: var(--ice);
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
}

.chat-quick button {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: none;
  color: var(--pearl);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.chat-quick button:hover {
  border-color: var(--gilt);
  background: rgba(231, 181, 79, 0.12);
}

.chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(191, 243, 255, 0.14);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(1, 8, 40, 0.6);
  color: var(--pearl);
  font: inherit;
  font-size: 1rem;
}

.chat-form input:focus-visible {
  outline: none;
  border-color: var(--gilt);
}

.chat-form .btn {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
}

/* Spam trap: off-screen for people, filled only by bots. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.credits {
  flex-basis: 100%;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ---------- Fitting: floating step panels ---------- */
.fitting {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
}

.fitting-head {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.fitting-head p {
  max-width: 28rem;
  color: var(--pearl-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, rgba(242, 246, 255, 0.14), rgba(242, 246, 255, 0.04));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(1, 4, 30, 0.8);
  counter-increment: step;
}

.steps li:nth-child(2n) {
  margin-top: 3.5rem;
}

.steps li:hover {
  border-color: var(--accent);
}

.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.75rem;
}

.steps h3::before {
  content: counter(step);
  color: var(--accent);
  font-size: 1.125rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
}

.steps p {
  color: var(--pearl-muted);
}

/* ---------- Designed by hand, coded locally ---------- */
.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
}

.craft-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.craft-copy > p {
  color: var(--pearl);
  font-size: 1.1875rem;
}

.craft-points {
  display: grid;
  gap: 1.1rem;
  margin: 0.5rem 0 0;
}

.craft-points div {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-edge);
}

.craft-points dt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.craft-points dd {
  margin: 0.25rem 0 0;
  color: var(--pearl-muted);
}

.craft-stage {
  position: relative;
  min-height: 26rem;
}

.craft-sketch {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  padding: 1rem;
  border-radius: 14px;
  background: #F6F1E4;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

.craft-sketch svg {
  display: block;
  width: 100%;
  height: auto;
}

.draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: 0;
}

.craft-stage.will-draw .draw {
  stroke-dashoffset: var(--len);
}

.craft-stage.is-drawing .draw {
  animation: draw-line 1.1s var(--ease-out) both;
  animation-delay: var(--d);
}

@keyframes draw-line { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

.craft-code {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: rgba(1, 6, 31, 0.88);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(191, 243, 255, 0.14);
  color: var(--pearl-muted);
  font: 400 0.8125rem "Geist Mono", ui-monospace, monospace;
}

.code-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(191, 243, 255, 0.3);
}

.code-bar span {
  margin-left: 0.5rem;
}

.craft-code pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  color: var(--pearl);
  font: 400 0.875rem/1.65 "Geist Mono", ui-monospace, monospace;
  white-space: pre-wrap;
}

.c-k { color: #7FB2FF; }
.c-a { color: var(--gilt-bright); }
.c-s { color: #8CF5D2; }

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--gilt);
}

@media (prefers-reduced-motion: no-preference) {
  .caret {
    animation: blink 1.1s steps(1) infinite;
  }

  .motion-paused .caret {
    animation-play-state: paused;
  }
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}

.contact-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 30rem;
  justify-self: end;
  align-self: start;
  padding: 1.75rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--deep) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-copy p {
  color: var(--pearl-muted);
}

.direct a {
  color: var(--ice);
  overflow-wrap: anywhere;
}

.direct a:hover {
  color: var(--pearl);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  max-width: 40rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, color-mix(in srgb, var(--deep) 70%, transparent), color-mix(in srgb, var(--deep) 88%, transparent));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field-wide,
.form-footer {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.optional {
  color: var(--pearl-muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-field);
  background: rgba(1, 8, 40, 0.55);
  color: var(--pearl);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(242, 246, 255, 0.55);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(191, 243, 255, 0.5);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--gilt);
  box-shadow: 0 0 0 3px rgba(231, 181, 79, 0.32);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.875rem;
}

.field-error:empty {
  display: none;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--ice);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* ---------- Footer, clock, motion control ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem max(var(--gutter), env(safe-area-inset-right)) calc(9rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  align-items: center;
  border-top: 1px solid rgba(191, 243, 255, 0.16);
  color: var(--pearl-muted);
  font-size: 0.9375rem;
}

.clock {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(var(--gutter), env(safe-area-inset-left));
  z-index: 15;
  color: var(--pearl);
  pointer-events: none;
}

.clock svg {
  display: block;
}

.clock-hand {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle {
  position: fixed;
  left: calc(max(var(--gutter), env(safe-area-inset-left)) + 56px);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 15;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pearl-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}

.motion-toggle:hover {
  border-color: var(--ice);
  color: var(--pearl);
  transform: translateY(-1px);
}

/* ---------- Payment for Customers ---------- */
.pay-open[hidden] {
  display: none;
}

.pay-tab {
  margin-left: auto;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--gilt) 60%, transparent);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gilt-bright);
  font: inherit;
  font-size: 0.9375rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pay-tab:hover {
  background: var(--gilt);
  color: var(--ink-dark);
}

.pay-link {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--gilt) 60%, transparent);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--gilt-bright);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pay-link:hover {
  background: var(--gilt);
  color: var(--ink-dark);
}

.pay {
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: rgba(3, 12, 52, 0.97);
  color: var(--pearl);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overscroll-behavior: contain;
}

.pay::backdrop {
  background: rgba(2, 8, 36, 0.62);
  backdrop-filter: blur(4px);
}

.pay-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.5rem;
  text-align: center;
}

.pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.pay-head h2 {
  font-size: 1.6rem;
  font-style: italic;
}

.pay-note,
.pay-address,
.pay-fine {
  color: var(--pearl-muted);
  font-size: 0.9375rem;
}

.pay-qr {
  width: min(220px, 62vw);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}

.pay-qr[hidden] {
  display: none;
}

.pay-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-address a {
  color: var(--pearl);
  overflow-wrap: anywhere;
}

.pay-fine {
  font-size: 0.8125rem;
}

/* ---------- Medium screens: business list above the carousel ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .samples-sticky {
    grid-template-rows: auto auto 1fr;
  }

  .samples-filter {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    margin: 0.75rem max(var(--gutter), env(safe-area-inset-left)) 0;
    justify-self: start;
  }

  .samples-filter ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .card {
    width: min(70vw, 680px, calc((100svh - 360px) * 1.5));
  }

  .fitting,
  .craft,
  .upgrade {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Portrait screens: slipper above, hero text below ---------- */
@media (max-aspect-ratio: 1/1) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 5.5rem;
  }

  .hero-hint {
    top: calc(var(--header-h) + 0.5rem);
    bottom: auto;
  }
}

/* ---------- Narrow screens: stacked samples ---------- */
@media (max-width: 760px) {
  :root {
    --header-h: 4.25rem;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .nav-pill a {
    padding-inline: 0.75rem;
  }

  /* No room in the phone header: the footer link opens the payment panel instead. */
  .site-header .pay-tab {
    display: none;
  }

  .ask {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .ask input {
    padding: 0 0.75rem;
  }

  .samples {
    height: auto !important;
  }

  .samples-sticky {
    position: static;
    display: block;
    height: auto;
    padding-block: 3rem;
    overflow: visible;
  }

  .samples-filter {
    display: none;
  }

  .samples-track {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem max(var(--gutter), env(safe-area-inset-left)) 0;
    perspective: none;
  }

  .card {
    position: static;
    width: auto;
    translate: none;
    transform: none !important;
    opacity: 1 !important;
  }

  .fitting,
  .craft,
  .upgrade,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li:nth-child(2n) {
    margin-top: 0;
  }

  .craft-stage {
    min-height: 0;
    display: grid;
    gap: 1rem;
  }

  .craft-sketch,
  .craft-code {
    position: static;
    width: 100%;
  }

  .contact-copy {
    justify-self: stretch;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .wordmark {
    font-size: 1.125rem;
  }

  .nav-pill a {
    padding-inline: 0.6rem;
    font-size: 0.875rem;
  }
}

/* Under reduced motion everything rests; nothing that matters stays hidden. */
.motion-paused .mini :is(.ma-hero img, .mf-big img, .frame) {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .frame-1 { opacity: 1; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .mini *,
  .mini *::before,
  .mini *::after,
  .card.is-playing .mini * {
    animation: none !important;
  }

  .card.is-playing .mlnd-new { scale: 1; }
  .card.is-playing .mb-more { opacity: 1; }
  .panel { transform: none; }
}

/* Sample cards scrolled fully out of view (made inert by js/main.js) are invisible:
   pause their loops so the visible ones get the whole frame budget. */
.card[inert] .mini,
.card[inert] .mini * {
  animation-play-state: paused !important;
}

/* Booking link next to the Upgrade button. */
.guarantee .text-link { display: inline-block; margin: 0.75rem 0 0 1.25rem; }


/* ---------- FAQ: the two packages (no prices) and short answers ---------- */
.faq {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}

.faq-head { display: grid; gap: 0.6rem; max-width: 40rem; }
.faq-head p, .faq-cta p { color: var(--pearl-muted); }

.faq-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.faq-pack, .faq-list, .faq-cta {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.faq-pack-plus { border-color: var(--gilt); }
.faq-pack h3 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; }
.faq-pack-plus h3 { color: var(--gilt-bright); }
.faq-pack > p { margin-top: 0.4rem; color: var(--pearl-muted); }

.faq-pack ul { display: grid; gap: 0.55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.faq-pack li { position: relative; padding-left: 1.4rem; }
.faq-pack li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gilt);
}

.faq-list { display: grid; padding-block: 0.5rem; }
.faq-list details { border-top: 1px solid var(--glass-edge); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gilt); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1rem; color: var(--pearl-muted); }

.faq-cta { display: grid; gap: 1rem; justify-items: start; }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

@media (max-width: 760px) {
  .faq-packages { grid-template-columns: 1fr; }
}

/* Four nav links on small phones: tighter so "Contact" stays on screen. */
@media (max-width: 430px) {
  .nav-pill { gap: 0; }
  .nav-pill a { padding-inline: 0.45rem; font-size: 0.8125rem; }
  .wordmark { font-size: 1.25rem; }
}
