/* Satoshi by Indian Type Foundry (Fontshare, ITF Free Font License), served from this site. */
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* Shared parts. Each page themes these through the scrollcraft tokens
   (--sc-canvas, --sc-surface, --sc-ink, --sc-ink-soft, --sc-accent,
   --sc-accent-ink) plus --part-radius. */

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
body { min-height: 100vh; }
.lenis.lenis-stopped { overflow: clip; }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ slab lay -- */
.slablay { position: relative; overflow: hidden; background: var(--sc-surface); }
.slablay canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.slablay img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* No JS: show the finished job. With JS the canvas draws both photos and the
   images stay in the document for their alt text. */
.slablay__before { opacity: 0; }
.slablay--live img { opacity: 0; }

/* ------------------------------------------------------------- compare -- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize; background: var(--sc-surface);
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
}
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--compare-line, #fff); z-index: 2; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14);
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--compare-grip, #fff); color: var(--compare-grip-ink, #15171a);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.22), 0 8px 24px rgb(0 0 0 / 0.18);
  transition: scale 160ms var(--sc-ease-out);
}
.compare.is-dragging .compare__grip { scale: 0.94; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; z-index: 3;
}
.compare:has(.compare__range:focus-visible) {
  outline: 2px solid var(--sc-accent); outline-offset: 3px;
}
.compare__tag {
  position: absolute; bottom: 12px; z-index: 2; pointer-events: none;
  font-size: var(--sc-t-xs); font-weight: 600; line-height: 1;
  padding: 7px 10px; border-radius: var(--part-radius, 4px);
  background: rgb(15 17 20 / 0.72); color: #f4f2ee;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }

/* --------------------------------------------------------- quote sheet -- */
.quote {
  width: min(34rem, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: var(--part-radius, 6px);
  background: var(--sc-surface); color: var(--sc-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.35);
  overflow: auto; overscroll-behavior: contain;
}
.quote::backdrop { background: rgb(10 12 15 / 0.62); }
.quote[open] { animation: quote-in 260ms var(--sc-ease-out); }
@keyframes quote-in { from { opacity: 0; translate: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .quote[open] { animation: none; } }
.quote__in { padding: clamp(20px, 4vw, 32px); }
.quote__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.quote h2 { margin: 0; font-family: var(--sc-font-display); font-size: var(--sc-t-xl); line-height: 1.08; letter-spacing: var(--sc-track-snug); text-wrap: balance; }
.quote__lede { margin: 10px 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); max-width: 44ch; }
.quote__x {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: color-mix(in oklab, var(--sc-ink) 8%, transparent); color: var(--sc-ink);
  display: grid; place-items: center; cursor: pointer;
}
.quote__x:hover { background: color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.quote form { display: grid; gap: 14px; margin-top: 22px; }
.quote label { display: grid; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.quote label span.opt { font-weight: 400; color: var(--sc-ink-soft); }
.quote :is(input, select, textarea) {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent);
  border-radius: var(--part-radius, 4px);
  background: var(--sc-canvas); color: var(--sc-ink); font-size: 16px;
}
.quote textarea { min-height: 88px; resize: vertical; }
.quote :is(input, select, textarea):focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: transparent; }
.quote__send {
  min-height: 52px; border: 0; border-radius: var(--part-radius, 4px); cursor: pointer;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 700; font-size: var(--sc-t-base);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter 140ms var(--sc-ease-out), scale 120ms var(--sc-ease-out);
}
.quote__send:hover { filter: brightness(1.08); }
.quote__send:active { scale: 0.98; }
.quote__or { margin: 4px 0 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.quote__or a { color: var(--sc-ink); font-weight: 700; }
.quote [data-status]:empty { display: none; }
.quote [data-status] {
  margin: 0; padding: 12px 14px; border-radius: var(--part-radius, 4px); font-size: var(--sc-t-sm);
  background: color-mix(in oklab, var(--sc-accent) 12%, var(--sc-surface));
}
.quote [data-status][data-state="error"] { background: #fbe4e1; color: #7a1d12; }
.quote [data-status] a { color: inherit; font-weight: 700; }

/* ------------------------------------------------------- demo notes ---- */
/* Notes for Gaz inside the concept. They come out before anything goes live. */
.demo-note {
  display: block; max-width: 40ch;
  margin: 0; padding: 10px 12px;
  font: 500 13px/1.45 var(--sc-font-text); letter-spacing: 0;
  color: #3b2f00; background: #ffe98a;
  border-radius: 3px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.18);
  text-align: left; text-transform: none;
}
.demo-note b { font-weight: 700; }
