/* Sajtora Scroll World - poster-first scroll experience.
   Video swap-in later happens in scroll-world.js (SCENES config), not here. */

:root {
  --mist: #f5f7fa;
  --ink: #07121e;
  --cobalt: #164cff;
  --indigo: #2620f4;
  --azure: #0877ff;
  --ink-60: rgba(7, 18, 30, 0.6);
  --ink-40: rgba(7, 18, 30, 0.4);
  --ink-12: rgba(7, 18, 30, 0.12);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- Nav ---------- */

.sw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.6rem) 1.6rem;
  pointer-events: none;
  background: linear-gradient(rgba(245, 247, 250, 0.9), rgba(245, 247, 250, 0));
}

.sw-nav > * {
  pointer-events: auto;
}

.sw-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sw-nav-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-left: 0.9rem;
  border-left: 1px solid var(--ink-12);
}

.sw-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sw-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-60);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

.sw-nav-link:hover,
.sw-lang:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.sw-lang {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  background: none;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.sw-lang:focus-visible,
.sw-nav-link:focus-visible,
.sw-rail button:focus-visible,
.sw-intake-btn:focus-visible,
.sw-magnet:focus-visible {
  outline: 2px solid var(--blue, #2f6bff);
  outline-offset: 3px;
}

/* ---------- Progress rail ---------- */

.sw-rail {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.8rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sw-rail button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink-40);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.sw-rail button.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  transform: scale(1.35);
}

/* ---------- Stage shell ----------
   One tall scroll driver + one sticky stage. All six scenes are stacked
   layers inside the stage; only the active one is visible, and every
   transition happens inside this single pin (no seams). */

.sw-driver {
  position: relative;
  /* height set from JS: total scene lengths in vh */
}

.sw-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.sw-layer {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.sw-layer.is-on {
  visibility: visible;
}

.sw-media-wrap {
  position: absolute;
  inset: 0;
  will-change: transform, filter;
}

.sw-media-wrap picture,
.sw-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sw-media {
  object-fit: contain;
  object-position: 50% 50%;
}

/* Scrubbed video layer: hidden until its first frame is decoded, then it
   crossfades in over the poster; the poster bows out underneath. */
.sw-media-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sw-media-video.is-live {
  opacity: 1;
}

.sw-video-live picture {
  opacity: 0;
  transition: opacity 0.6s ease 0.25s;
}

/* Side-copy scenes push the world slightly right so type owns the left mist */
#sw-dental .sw-media,
#sw-architecture .sw-media,
#sw-restaurant .sw-media {
  object-position: 62% 50%;
}

.sw-mist {
  position: absolute;
  inset: 0;
  background: var(--mist);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* CTA sits above the mist so the form stays crisp during the final settle */
.sw-copy-cta {
  z-index: 12;
}

/* ---------- Copy layers ---------- */

.sw-copy {
  position: absolute;
  z-index: 5;
}

.sw-eyebrow,
.sw-index {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1.1rem;
}

/* Scene 1 - brand */

.sw-copy-brand {
  left: clamp(1.2rem, 5vw, 4.5rem);
  bottom: clamp(1.6rem, 7vh, 4.8rem);
  max-width: min(92vw, 78rem);
}

.sw-copy-brand .sw-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.sw-copy-brand .sw-eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--cobalt);
}

.sw-h1 {
  font-size: clamp(4rem, 9.8vw, 8.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 2px 34px rgba(245, 247, 250, 0.9), 0 0 14px rgba(245, 247, 250, 0.6);
}

.sw-h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  will-change: transform;
}

.sw-h1-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--cobalt);
  letter-spacing: -0.02em;
}

.sw-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.sw-brand-support {
  margin-top: 1.1rem;
  max-width: 28rem;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-60);
  text-shadow: 0 2px 22px rgba(245, 247, 250, 0.95), 0 0 10px rgba(245, 247, 250, 0.8);
}

/* Scroll cue: thin running line + stacked wordmark, quiet but deliberate */

.sw-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.4rem, 3.5vh, 2.2rem);
}

.sw-cue-track {
  position: relative;
  width: 1.5px;
  height: 44px;
  background: var(--ink-12);
  overflow: hidden;
  border-radius: 2px;
}

.sw-cue-track i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--cobalt);
  border-radius: 2px;
  animation: sw-cue-run 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes sw-cue-run {
  0% {
    top: -50%;
  }
  62%,
  100% {
    top: 110%;
  }
}

.sw-cue-words {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sw-cue-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.sw-cue-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cobalt);
}

/* Side copy (scenes 2–4) */

.sw-copy-side {
  left: clamp(1.2rem, 5vw, 4.5rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: 26rem;
  /* The scrubbed clips travel closer to dark surfaces than the posters did;
     a mist halo keeps side copy legible at any video frame. */
  text-shadow: 0 2px 26px rgba(245, 247, 250, 0.95), 0 0 12px rgba(245, 247, 250, 0.85),
    0 0 34px rgba(245, 247, 250, 0.7);
}

.sw-h2 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.sw-h2 em,
.sw-h2-cta em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cobalt);
}

.sw-body {
  font-size: 1rem;
  color: var(--ink-60);
  max-width: 21rem;
}

/* Scene 2 - choreography steps */

.sw-steps {
  list-style: none;
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sw-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-40);
  transition: color 0.35s;
}

.sw-steps li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-12);
  background: #fff;
  position: relative;
  transition: border-color 0.35s, background 0.35s;
  flex: none;
}

.sw-steps li i::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sw-steps li.is-on {
  color: var(--ink);
}

.sw-steps li.is-on i {
  border-color: var(--cobalt);
}

.sw-steps li.is-on i::after {
  transform: scale(1);
}

.sw-steps-beam {
  margin-top: 1.2rem;
  height: 2px;
  width: min(15rem, 100%);
  background: var(--ink-12);
  border-radius: 2px;
  overflow: hidden;
}

.sw-steps-beam i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cobalt);
  transform-origin: left center;
  transform: scaleX(0);
}

/* Scene 3 - depth cards */

.sw-depth-card {
  position: absolute;
  z-index: 6;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--ink-12);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-60);
  box-shadow: 0 12px 32px rgba(7, 18, 30, 0.08);
  will-change: transform;
}

.sw-depth-card span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.1rem;
}

.sw-depth-near {
  right: clamp(4rem, 16vw, 18rem);
  top: 24%;
}

.sw-depth-far {
  right: clamp(2rem, 8vw, 8rem);
  bottom: 22%;
}

/* Scene 4 - spotlight + magnetic */

.sw-spotlight {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 320px at var(--sx, 60%) var(--sy, 55%),
    rgba(255, 255, 255, 0) 0%,
    rgba(7, 18, 30, 0.03) 55%,
    rgba(7, 18, 30, 0.13) 100%
  );
}

.sw-magnet-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.sw-magnet {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  transition: background 0.25s, color 0.25s;
}

.sw-magnet:hover,
.sw-magnet:focus-visible {
  background: var(--ink);
  color: var(--mist);
}

.sw-magnet span {
  display: inline-block;
  will-change: transform;
}

.sw-hint {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--ink-40);
}

/* Scene 5 - kinetic type */

.sw-copy-law {
  left: 50%;
  top: clamp(3.2rem, 7vh, 5.5rem);
  transform: translateX(-50%);
  text-align: center;
  width: min(90vw, 54rem);
  text-shadow: 0 2px 30px rgba(245, 247, 250, 1), 0 0 16px rgba(245, 247, 250, 0.95),
    0 0 44px rgba(245, 247, 250, 0.8);
}

.sw-kinetic {
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sw-kline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.sw-kline > span {
  display: inline-block;
  will-change: transform, opacity;
}

.sw-kline-accent > span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cobalt);
}

/* Scene 6 - CTA */

.sw-copy-cta {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(92vw, 46rem);
  z-index: 12;
}

.sw-h2-cta {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.sw-h2-cta em {
  text-transform: none;
}

.sw-cta-support {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-60);
}

.sw-intake {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.sw-intake-field {
  display: flex;
  gap: 0.6rem;
  width: min(100%, 34rem);
  background: #fff;
  border: 1.5px solid var(--ink-12);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  box-shadow: 0 20px 50px rgba(7, 18, 30, 0.1);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.sw-intake-field:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 20px 50px rgba(22, 76, 255, 0.16);
}

.sw-intake-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.sw-intake-btn {
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
  transition: background 0.25s;
}

.sw-intake-btn:hover {
  background: var(--indigo);
}

.sw-intake-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.sw-intake-contact {
  display: flex;
  gap: 0.6rem;
  width: min(100%, 34rem);
}

.sw-intake-contact input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--ink-12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.25s;
}

.sw-intake-contact input:focus {
  border-color: var(--cobalt);
}

.sw-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.sw-status {
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 500;
}

.sw-status.ok {
  color: #0a7d38;
}

.sw-status.err {
  color: #c0264b;
}

.sw-cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-40);
}

/* ---------- Scene 04 nested Menu / Reservation ---------- */

html.sw-scroll-locked,
html.sw-nesting {
  overflow: hidden;
}

.sw-nest {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(18rem, 26rem) 1fr;
  background: var(--mist);
  pointer-events: none;
}

.sw-nest[hidden] {
  display: none !important;
}

.sw-nest.is-open {
  pointer-events: auto;
}

.sw-nest-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sw-nest-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.sw-nest-plate.is-on {
  opacity: 1;
}

.sw-nest-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 247, 250, 0.92) 0%,
    rgba(245, 247, 250, 0.78) 34%,
    rgba(245, 247, 250, 0.18) 58%,
    rgba(245, 247, 250, 0) 78%
  );
  opacity: 0;
  pointer-events: none;
}

.sw-nest-panel {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin: clamp(4.5rem, 10vh, 6rem) 0 2rem clamp(1.2rem, 4vw, 2.8rem);
  max-width: 24rem;
  max-height: calc(100svh - 6.5rem);
  overflow: auto;
  padding: 1.35rem 1.35rem 1.6rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ink-12);
  box-shadow: 0 24px 60px rgba(7, 18, 30, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overscroll-behavior: contain;
}

.sw-nest-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--ink-60);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-bottom: 1rem;
}

.sw-nest-close:hover {
  color: var(--ink);
}

.sw-nest-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.55rem;
}

.sw-nest-title {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.sw-nest-lead {
  font-size: 0.92rem;
  color: var(--ink-60);
  margin-bottom: 1.25rem;
}

.sw-nest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.sw-nest-tab,
.sw-nest-chip {
  border: 1.5px solid var(--ink-12);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-60);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sw-nest-tab.is-on,
.sw-nest-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sw-nest-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sw-nest-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--ink-12);
}

.sw-nest-item:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.sw-nest-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.sw-nest-item h3 {
  font-size: 1rem;
  font-weight: 700;
}

.sw-nest-price {
  font-weight: 700;
  color: var(--cobalt);
}

.sw-nest-price::before {
  content: "€";
  margin-right: 0.05rem;
}

.sw-nest-item p {
  font-size: 0.88rem;
  color: var(--ink-60);
}

.sw-nest-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.sw-nest-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1px solid rgba(22, 76, 255, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.sw-nest-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.sw-nest-field label,
.sw-nest-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.sw-nest-field input[type="date"] {
  border: 1.5px solid var(--ink-12);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.sw-nest-guests,
.sw-nest-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sw-nest-confirm {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.2s;
}

.sw-nest-confirm:hover {
  background: var(--indigo);
}

.sw-nest-status {
  min-height: 1.3em;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.sw-nest-status.is-ok {
  color: #0a7d38;
}

.sw-nest-status.is-err {
  color: #c0264b;
}

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

.sw-footer {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem);
  font-size: 0.88rem;
  color: var(--ink-60);
}

.sw-footer span {
  font-weight: 700;
  color: var(--ink);
}

.sw-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-12);
}

.sw-footer a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .sw-rail {
    display: none;
  }

  .sw-nav-tag {
    display: none;
  }

  /* Stack: world on top, copy below. The posters' mist background matches the
     page background, so contain-fit blends seamlessly at any crop. */
  .sw-layer {
    display: flex;
    flex-direction: column;
  }

  .sw-media-wrap {
    position: relative;
    inset: auto;
    height: 52svh;
    flex: none;
    margin-top: 3.6rem;
  }

  /* CTA scene needs room for the form below the world */
  #sw-world .sw-media-wrap {
    height: 30svh;
  }

  /* Touch devices get no cursor spotlight; the boxed vignette reads wrong
     on the stacked mobile layout. */
  .sw-spotlight {
    display: none;
  }

  .sw-media,
  #sw-dental .sw-media,
  #sw-architecture .sw-media,
  #sw-restaurant .sw-media {
    object-position: 50% 50%;
  }

  .sw-copy,
  .sw-copy-side,
  .sw-copy-law {
    position: relative;
    inset: auto;
    transform: none;
    left: auto;
    top: auto;
    max-width: none;
    width: auto;
    padding: 1.4rem 1.4rem 0;
    text-align: left;
  }

  .sw-copy-brand {
    bottom: auto;
  }

  .sw-h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .sw-brand-support {
    max-width: none;
    font-size: 1rem;
  }

  .sw-index {
    letter-spacing: 0.12em;
  }

  .sw-depth-card {
    display: none;
  }

  .sw-hint,
  [data-pointer-hint] {
    display: none;
  }

  .sw-copy-cta {
    text-align: center;
    padding: 1.4rem 1.2rem 0;
  }

  .sw-intake-field {
    flex-direction: column;
    border-radius: 22px;
    padding: 0.7rem;
    gap: 0.55rem;
  }

  .sw-intake-field input {
    padding: 0.5rem 0.7rem;
  }

  .sw-intake-btn {
    width: 100%;
  }

  .sw-intake-contact {
    flex-direction: column;
  }

  .sw-nest {
    grid-template-columns: 1fr;
  }

  .sw-nest-plate {
    object-position: 72% 45%;
  }

  .sw-nest-scrim {
    background: linear-gradient(
      180deg,
      rgba(245, 247, 250, 0.15) 0%,
      rgba(245, 247, 250, 0.55) 38%,
      rgba(245, 247, 250, 0.94) 62%,
      rgba(245, 247, 250, 0.98) 100%
    );
  }

  .sw-nest-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    max-height: min(62svh, 34rem);
    border-radius: 22px 22px 0 0;
    padding: 1.1rem 1.15rem 1.4rem;
  }
}

/* ---------- Static / reduced-motion fallback ---------- */

html.sw-static .sw-driver {
  height: auto !important;
}

html.sw-static .sw-stage {
  position: static;
  height: auto;
  overflow: visible;
}

html.sw-static .sw-layer {
  position: relative;
  inset: auto;
  visibility: visible;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
}

html.sw-static .sw-media-wrap {
  position: relative;
  inset: auto;
  height: 60vh;
}

html.sw-static .sw-copy,
html.sw-static .sw-copy-side,
html.sw-static .sw-copy-brand,
html.sw-static .sw-copy-law,
html.sw-static .sw-copy-cta {
  position: relative;
  inset: auto;
  transform: none;
  left: auto;
  top: auto;
  bottom: auto;
  margin: 2rem auto 0;
  padding: 0 1.4rem;
  width: min(92vw, 46rem);
}

html.sw-static .sw-mist,
html.sw-static .sw-spotlight,
html.sw-static .sw-depth-card {
  display: none;
}

html.sw-static .sw-kline > span,
html.sw-static .sw-char {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sw-cue-dot {
    animation: none;
  }
}
