/* =========================================================================
   Baloo - premium product page
   Vibe archetype:   Soft Structuralism (cool silver-grey, one deep accent)
   Layout archetype: Editorial Split (hero) + Comparison Grid (colorways)
   Radius system:    actions + quantity = pill / cards = 1.25rem / choices = .75rem
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --paper: #f4f5f3;
  --paper-2: #f4f5f3;
  --surface: #ffffff;
  --canvas: #ffffff; /* product cut-outs always sit on light */
  --ink: #0d1b24;
  --ink-2: #53616a;
  --ink-3: #7b878e;
  --hair: rgb(13 27 36 / 0.14);
  --hair-soft: rgb(13 27 36 / 0.08);
  --shell: rgb(13 27 36 / 0.04);

  --accent: #0b2838;
  --accent-ink: #ffffff;
  --accent-soft: rgb(11 40 56 / 0.08);

  --shadow-amb: 0 20px 55px -38px rgb(11 40 56 / 0.28);
  --shadow-lift: 0 28px 64px -34px rgb(11 40 56 / 0.34);

  --r-xl: 1.25rem;
  --r-lg: 1.25rem;
  --r-md: 1rem;
  --r-sm: 0.75rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-o: cubic-bezier(0.16, 1, 0.3, 1);

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1440px;
  --hero-frame: clamp(0.75rem, 2vw, 2.5rem);

  --z-nav: 40;
  --z-bar: 45;
  --z-drawer: 60;
  --z-grain: 70;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0e100f;
    --paper-2: #0e100f;
    --surface: #171a19;
    --canvas: #f4f5f2;
    --ink: #edefec;
    --ink-2: #98a09b;
    --ink-3: #6e7671;
    --hair: rgb(237 239 236 / 0.13);
    --hair-soft: rgb(237 239 236 / 0.07);
    --shell: rgb(237 239 236 / 0.05);
    --accent: #8dbba0;
    --accent-ink: #0e100f;
    --accent-soft: rgb(141 187 160 / 0.13);
    --shadow-amb:
      0 28px 70px -30px rgb(0 0 0 / 0.7), 0 3px 10px -4px rgb(0 0 0 / 0.4);
    --shadow-lift:
      0 40px 90px -34px rgb(0 0 0 / 0.8), 0 4px 12px -4px rgb(0 0 0 / 0.45);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="dark"] {
  --paper: #0e100f;
  --paper-2: #0e100f;
  --surface: #171a19;
  --canvas: #f4f5f2;
  --ink: #edefec;
  --ink-2: #98a09b;
  --ink-3: #6e7671;
  --hair: rgb(237 239 236 / 0.13);
  --hair-soft: rgb(237 239 236 / 0.07);
  --shell: rgb(237 239 236 / 0.05);
  --accent: #8dbba0;
  --accent-ink: #0e100f;
  --accent-soft: rgb(141 187 160 / 0.13);
  --shadow-amb:
    0 28px 70px -30px rgb(0 0 0 / 0.7), 0 3px 10px -4px rgb(0 0 0 / 0.4);
  --shadow-lift:
    0 40px 90px -34px rgb(0 0 0 / 0.8), 0 4px 12px -4px rgb(0 0 0 / 0.45);
}
:root[data-theme="light"] {
  --paper: #f4f5f3;
  --paper-2: #f4f5f3;
  --surface: #ffffff;
  --canvas: #ffffff;
  --ink: #0d1b24;
  --ink-2: #53616a;
  --ink-3: #7b878e;
  --hair: rgb(13 27 36 / 0.14);
  --hair-soft: rgb(13 27 36 / 0.08);
  --shell: rgb(13 27 36 / 0.04);
  --accent: #0b2838;
  --accent-ink: #ffffff;
  --accent-soft: rgb(11 40 56 / 0.08);
  --shadow-amb: 0 20px 55px -38px rgb(11 40 56 / 0.28);
  --shadow-lift: 0 28px 64px -34px rgb(11 40 56 / 0.34);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings:
    "ss01" 1,
    "cv05" 1;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* film grain: fixed layer only, never on scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.display {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 500;
}
.h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.body-muted {
  color: var(--ink-2);
  max-width: 62ch;
}
.mono {
  font-family: "Geist Mono", ui-monospace, "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
section {
  position: relative;
}
.sec {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.sec-tight {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-o),
    transform 0.9s var(--ease-o),
    filter 0.9s var(--ease-o);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--surface);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--hair);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    background-color 0.5s var(--ease),
    opacity 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    var(--shadow-amb);
}
.btn:active {
  transform: translateY(0) scale(0.982);
}
.btn__ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  font-size: 1.05rem;
  transition:
    transform 0.55s var(--ease),
    background-color 0.55s var(--ease);
}
.btn:hover .btn__ico {
  transform: translate(3px, -1px) scale(1.06);
}
.btn--primary {
  --bg: var(--accent);
  --fg: var(--accent-ink);
  box-shadow:
    inset 0 0 0 1px transparent,
    var(--shadow-amb);
}
.btn--primary:hover {
  box-shadow: var(--shadow-lift);
}
.btn--primary .btn__ico {
  background: color-mix(in srgb, var(--accent-ink) 16%, transparent);
}
.btn--ghost {
  --bg: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.btn--block {
  width: 100%;
  justify-content: center;
  padding-left: 1.75rem;
  font-size: 1.02rem;
}
.btn--sm {
  padding: 0.45rem 0.45rem 0.45rem 1.05rem;
  min-height: 44px;
  font-size: 0.85rem;
  gap: 0.6rem;
}
.btn--sm .btn__ico {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.9rem;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* Neutral wrapper + one visual surface. This avoids nested bezel effects. */
.shell {
  background: transparent;
  border-radius: var(--r-xl);
  padding: 0;
  box-shadow: none;
}
.shell__core {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-amb);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .shell__core {
    box-shadow: var(--shadow-amb);
  }
}

/* product canvas: cut-outs keep a light plate in both themes */
.plate {
  background: var(--canvas);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================================
   NAV - floating glass island inside the hero frame
   ========================================================================= */
.nav {
  position: fixed;
  top: 0.75rem;
  right: 0;
  left: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding-inline: calc(var(--hero-frame) + 0.75rem);
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-frame) + 0.25rem), 0);
  transition: transform 0.35s var(--ease);
}
.nav.is-scrolled {
  transform: translate3d(0, 0, 0);
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.35vw, 1.4rem);
  width: 100%;
  max-width: 1040px;
  height: 56px;
  padding: 0 0.4rem 0 1.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    var(--shadow-amb);
}
.nav__brand {
  display: flex;
  align-items: center;
  width: clamp(6.8rem, 8vw, 8rem);
  margin-right: auto;
}
.nav__brand img {
  width: 100px;
  height: auto;
}
:root[data-theme="dark"] .nav__brand img {
  filter: invert(1);
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 1.4vw, 1.4rem);
  margin-right: auto;
}
.nav__links a {
  position: relative;
  font-size: 0.8rem;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink-2);
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.icon-btn:hover {
  background: var(--shell);
  color: var(--ink);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn .lucide {
  font-size: 1.2rem;
}
.cart-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.cart-count.on {
  transform: scale(1);
}
.nav__cta {
  display: none;
}
@media (min-width: 900px) {
  .nav__cta {
    display: inline-flex;
  }
}
@media (max-width: 899px) {
  .nav__links {
    display: none;
  }
}

/* =========================================================================
   HERO - full-height editorial room scene
   ========================================================================= */
.hero {
  display: flex;
  align-items: stretch;
  max-width: none;
  min-height: 100dvh;
  padding: var(--hero-frame);
}
.hero__grid {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: calc(100dvh - var(--hero-frame) - var(--hero-frame));
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-xl);
  background-image:
    linear-gradient(
      90deg,
      rgb(241 241 238 / 0.96) 0%,
      rgb(241 241 238 / 0.82) 29%,
      rgb(241 241 238 / 0.16) 51%,
      transparent 67%
    ),
    url("assets/hero-baloo-bedroom.jpg");
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgb(19 22 26 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.75),
    0 32px 80px -42px rgb(20 34 27 / 0.48);
}
.hero__grid::after {
  content: none;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  color: #13161a;
  margin-left: auto;
}
.hero__copy .display {
  max-width: 11ch;
  font-size: clamp(2.75rem, 3.5vw, 7rem);
}
.hero__copy .lead {
  max-width: 38ch;
  color: #4f5754;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.hero__actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}
.hero__actions .btn__ico {
  width: 1.85rem;
  height: 1.85rem;
}
.hero__actions .btn--ghost {
  --bg: rgb(255 255 255 / 0.74);
  --fg: #0d1b24;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 760px) {
  .nav {
    top: 0.5rem;
    padding-inline: var(--hero-frame);
    transform: translate3d(0, var(--hero-frame), 0);
  }
  .nav.is-scrolled {
    transform: translate3d(0, 0, 0);
  }
  .nav__inner {
    height: 58px;
    padding-left: 1rem;
    gap: 0.2rem;
  }
  .nav__brand {
    width: 7.4rem;
  }
  .hero {
    min-height: 100dvh;
    padding: var(--hero-frame);
  }
  .hero__grid {
    min-height: calc(100dvh - var(--hero-frame) - var(--hero-frame));
    grid-template-columns: 1fr;
    align-items: end;
    background-image:
      linear-gradient(
        0deg,
        rgb(238 239 236 / 0.98) 0%,
        rgb(238 239 236 / 0.9) 35%,
        rgb(238 239 236 / 0.08) 66%
      ),
      url("assets/hero-baloo-bedroom.jpg");
    background-position: 66% center;
  }
  .hero__copy {
    padding: 1.5rem;
    gap: 1rem;
  }
  .hero__copy .display {
    max-width: 9ch;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }
  .hero__copy .lead {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 32ch;
  }
  .hero__actions {
    margin-top: 0.15rem;
  }
}

.nav-sentinel {
  display: block;
  width: 1px;
  height: 1.5rem;
  margin-bottom: -1.5rem;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

/* =========================================================================
   INFO BAR (belka)
   ========================================================================= */
.bar {
  background: transparent;
  padding-block: 48px;
}
.bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.6rem 0;
}
@media (min-width: 640px) {
  .bar__item {
    padding: 2rem clamp(1rem, 2.5vw, 2rem);
  }
  .bar__item + .bar__item {
    box-shadow: inset 1px 0 0 var(--hair);
  }
  .bar__item:nth-child(3) {
    box-shadow: none;
  }
  .bar__item:first-child {
    padding-left: 0;
  }
}
@media (min-width: 1024px) {
  .bar__item:nth-child(3) {
    box-shadow: inset 1px 0 0 var(--hair);
  }
  .bar__item:last-child {
    padding-right: 0;
  }
}
@media (max-width: 639px) {
  .bar__item + .bar__item {
    border-top: 1px solid var(--hair-soft);
  }
}
.bar__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
}
.bar__t {
  font-weight: 500;
  letter-spacing: -0.012em;
}
.bar__d {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* =========================================================================
   BUY - gallery + configurator
   ========================================================================= */
#konfigurator {
  max-width: 1920px;
  padding-top: 0;
  padding-inline: clamp(1.25rem, 4.5vw, 5.75rem);
  scroll-margin-top: 6.5rem;
}
#budowa,
#kolory,
#wymiary,
#opinie,
#pytania {
  scroll-margin-top: 6.5rem;
}
.configurator-card {
  padding: clamp(1.4rem, 3.35vw, 4rem);
  border-radius: clamp(1.6rem, 2.5vw, 2.6rem);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--hair-soft),
    0 32px 80px -58px rgb(11 40 56 / 0.3);
}
.buy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
/* grid children default to min-width:auto, which lets the scrollable thumb strip
   push the whole column wider than the viewport on small screens */
.buy__grid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .buy__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(3rem, 4.8vw, 6rem);
    align-items: start;
  }
  .buy__panel {
    position: sticky;
    top: 6.5rem;
  }
}
.gallery__main .plate {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
}
.gallery__open {
  position: relative;
  width: 100%;
  cursor: zoom-in;
}
.gallery__main img {
  object-fit: contain;
  padding: clamp(0.75rem, 2vw, 2.25rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease);
}
.gallery__main.swapping img {
  opacity: 0;
  transform: scale(0.985);
}
.gallery__zoom {
  position: absolute;
  right: clamp(0.75rem, 1.4vw, 1.15rem);
  bottom: clamp(0.75rem, 1.4vw, 1.15rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(13 27 36 / 0.1);
  border-radius: 999px;
  color: #0d1b24;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 12px 30px -16px rgb(11 40 56 / 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.3s var(--ease-o),
    background-color 0.3s var(--ease-o);
}
.gallery__zoom .lucide {
  width: 1.15rem;
  height: 1.15rem;
}
.gallery__main:not(.swapping) .gallery__open:hover img {
  transform: scale(1.015);
}
.gallery__open:hover .gallery__zoom {
  background: #ffffff;
  transform: scale(1.06);
}
.gallery__open:active .gallery__zoom {
  transform: scale(0.96);
}
.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(82px, 6vw, 108px);
  gap: clamp(0.55rem, 0.8vw, 0.8rem);
  margin-top: clamp(0.75rem, 1vw, 1rem);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}
.gallery__thumbs::-webkit-scrollbar {
  display: none;
}
.thumb {
  scroll-snap-align: start;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  transition:
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease),
    opacity 0.4s;
  opacity: 0.62;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.thumb[aria-selected="true"] {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* Full-screen product gallery */
.lightbox {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  color: #f5f7f7;
  background: #090c0e;
  overflow: hidden;
}
.lightbox[open] {
  display: block;
  animation: lightboxIn 0.3s var(--ease-o) both;
}
.lightbox::backdrop {
  background: rgb(5 8 10 / 0.94);
}
.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
}
.lightbox__toolbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right)) 1rem
    max(1rem, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgb(4 7 9 / 0.7), transparent);
}
.lightbox__title {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lightbox__figure {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: max(5.25rem, calc(env(safe-area-inset-top) + 4.25rem))
    clamp(3.7rem, 7vw, 7rem)
    max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
}
.lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__caption {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgb(245 247 247 / 0.72);
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  line-height: 1.45;
  pointer-events: none;
}
.lightbox__counter {
  flex: none;
  color: #f5f7f7;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.lightbox__control {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  color: #f5f7f7;
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.25s var(--ease-o),
    background-color 0.25s var(--ease-o),
    border-color 0.25s var(--ease-o);
}
.lightbox__control:hover {
  border-color: rgb(255 255 255 / 0.34);
  background: rgb(255 255 255 / 0.16);
  transform: scale(1.05);
}
.lightbox__control:active {
  transform: scale(0.95);
}
.lightbox__control:focus-visible {
  outline-color: #ffffff;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev:hover,
.lightbox__next:hover {
  transform: translateY(-50%) scale(1.05);
}
.lightbox__prev:active,
.lightbox__next:active {
  transform: translateY(-50%) scale(0.95);
}
.lightbox__prev {
  left: max(0.75rem, env(safe-area-inset-left));
}
.lightbox__next {
  right: max(0.75rem, env(safe-area-inset-right));
}
@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}
@media (max-width: 540px) {
  .lightbox__caption > span:first-child {
    max-width: 70vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__main img,
  .gallery__zoom,
  .lightbox[open],
  .lightbox__control {
    animation: none;
    transition: none;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.65rem, 2vw, 2.4rem);
}
.panel__head {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1vw, 1rem);
}
.panel__head .h2 {
  font-size: clamp(2.5rem, 3.5vw, 4.5rem);
}
.panel__head .body-muted {
  font-size: clamp(0.9375rem, 1vw, 1.125rem) !important;
  line-height: 1.55;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 1vw, 1rem);
  flex-wrap: wrap;
  margin-top: clamp(0.35rem, 0.8vw, 0.8rem);
}
.price {
  font-size: clamp(2.25rem, 3vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.price-note {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.field__value {
  color: var(--ink);
  font-weight: 500;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
@media (min-width: 480px) {
  .sizes {
    grid-template-columns: repeat(4, 1fr);
  }
}
.size {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: clamp(4.4rem, 5.1vw, 6rem);
  padding: 0.8rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
  text-align: center;
  transition:
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.size:hover {
  transform: translateY(-2px);
}
.size strong {
  font-size: clamp(0.92rem, 1vw, 1.125rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.size span {
  font-size: clamp(0.72rem, 0.78vw, 0.875rem);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.size[aria-checked="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 0 0 1px transparent,
    var(--shadow-amb);
}
.size[aria-checked="true"] span {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.swatch {
  position: relative;
  width: clamp(2.9rem, 3.2vw, 4rem);
  height: clamp(2.9rem, 3.2vw, 4rem);
  border-radius: var(--r-sm);
  box-shadow:
    inset 0 0 0 1px var(--hair),
    inset 0 2px 6px rgb(0 0 0 / 0.18);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--r-sm) + 4px);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.swatch:hover {
  transform: translateY(-2px);
}
.swatch[aria-checked="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  border-radius: 999px;
  padding: 0.25rem;
  box-shadow: inset 0 0 0 1px var(--hair);
  background: var(--surface);
  min-height: clamp(3.25rem, 4vw, 4.5rem);
}
.qty button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.qty button:hover {
  background: var(--shell);
  color: var(--ink);
}
.qty output {
  min-width: 2.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.purchase-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}
.purchase-row .btn {
  min-width: 0;
  min-height: clamp(3.25rem, 4vw, 4.5rem);
}
@media (max-width: 480px) {
  .purchase-row {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.55rem;
  }
  .purchase-row .btn {
    gap: 0.5rem;
    padding-left: 1rem;
    font-size: 0.84rem;
  }
  .purchase-row .btn__ico {
    width: 1.8rem;
    height: 1.8rem;
  }
}
@media (max-width: 340px) {
  .purchase-row {
    grid-template-columns: 1fr;
  }
}

.panel__notes {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 4rem);
  width: 100%;
  margin-top: clamp(2.25rem, 3.4vw, 4rem);
  padding-top: clamp(1.5rem, 2.2vw, 2.5rem);
  border-top: 1px solid var(--hair-soft);
}
.note {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: clamp(0.8rem, 0.8vw, 0.9375rem);
  color: var(--ink-2);
  line-height: 1.45;
}
.note .lucide {
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.35;
  flex: none;
}
@media (max-width: 1023px) {
  .configurator-card {
    padding: clamp(1.25rem, 4.5vw, 2.5rem);
  }
  .panel__notes {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 699px) {
  #konfigurator {
    padding-inline: 0.75rem;
  }
  .configurator-card {
    border-radius: 1.5rem;
  }
  .panel__notes {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .swatches {
    gap: 0.5rem;
  }
}

/* =========================================================================
   LAYERS - cross-section bands + crossfading detail
   ========================================================================= */
.layers-head .h2 {
  max-width: 17ch;
}
.layers-board {
  overflow: hidden;
  border-radius: var(--r-xl);
}
.layers-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: inherit;
}
.layers-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-right: 1px solid var(--hair-soft);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 72%), var(--surface);
}
.layers-sidebar__intro {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.layers-sidebar__intro strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.layers-sidebar__intro div > span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}
.bands {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 2rem;
}
.band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 54%, var(--surface));
  text-align: left;
  transition:
    transform 0.2s var(--ease-o),
    border-color 0.35s var(--ease-o),
    background-color 0.35s var(--ease-o),
    color 0.35s var(--ease-o);
}
.band:hover {
  background: var(--accent-soft);
  border-color: var(--hair);
}
.band:active {
  transform: scale(0.985);
}
.band__t {
  min-width: 0;
  font-weight: 500;
  letter-spacing: -0.018em;
  font-size: 0.9rem;
  line-height: 1.25;
}
.band__bar {
  width: 2.5rem;
  height: 6px;
  border-radius: 999px;
  background: var(--band, var(--ink-3));
  box-shadow:
    inset 0 1px 2px rgb(255 255 255 / 0.35),
    inset 0 -1px 2px rgb(0 0 0 / 0.18);
}
.band[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.layers-stage {
  min-width: 0;
}
.layer-detail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(24rem, 1fr);
  min-height: 39rem;
  height: 100%;
  background: var(--surface);
}
.layer-detail__text {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(17rem, 1.2fr);
  align-items: end;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  border-bottom: 1px solid var(--hair-soft);
  background: color-mix(in srgb, var(--paper) 42%, var(--surface));
}
.layer-detail__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.layer-detail__text .body-muted {
  max-width: 46ch;
  font-size: 0.94rem;
  line-height: 1.6;
}
.layer-detail__text > * {
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.layer-detail.swapping .layer-detail__text > * {
  opacity: 0;
  transform: translateY(10px);
}
.layer-detail .plate {
  min-height: 24rem;
}
.layer-detail .plate img {
  object-fit: contain;
}
.layer-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.8125rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

@media (max-width: 899px) {
  .layers-layout {
    grid-template-columns: 1fr;
  }
  .layers-sidebar {
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--hair-soft);
  }
  .bands {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px, 72vw);
    gap: 0.55rem;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .bands::-webkit-scrollbar {
    display: none;
  }
  .band {
    scroll-snap-align: start;
  }
  .layer-detail {
    grid-template-rows: auto minmax(17rem, 1fr);
    min-height: 0;
  }
  .layer-detail .plate {
    min-height: 17rem;
    aspect-ratio: 16 / 10;
  }
  .layer-detail__text {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
    padding: clamp(1.4rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .band {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
    min-height: 52px;
    padding-inline: 0.8rem;
  }
  .band__bar {
    width: 2.25rem;
  }
  .layer-detail .plate {
    min-height: 14rem;
  }
}

/* =========================================================================
   CAROUSEL - key features
   ========================================================================= */
.features-head .h2 {
  max-width: 16ch;
}

.car__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 400px);
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.car__track::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .car__track {
    grid-auto-columns: min(52vw, 440px);
  }
}
@media (min-width: 1024px) {
  .car__track {
    grid-auto-columns: calc((100% - 2rem) / 3);
  }
}
.slide {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
.slide .shell__core {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--paper) 54%, var(--surface));
  box-shadow: none;
}
.slide .plate {
  aspect-ratio: 5 / 4;
  border-bottom: 1px solid var(--hair-soft);
}
.slide__body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.slide__t {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.slide__d {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.features-controls {
  padding-top: 1rem;
}

/* =========================================================================
   COLORWAYS - compact comparison grid
   ========================================================================= */
.colorways {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
}
.colorways__head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: clamp(1.5rem, 2.8vw, 2.25rem);
}
.colorways__head .h2 {
  max-width: none;
}
.colorways__head .body-muted {
  line-height: 1.5;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}
@media (min-width: 1180px) {
  .colorways__head .h2 {
    white-space: nowrap;
  }
  .color-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
  }
}
.color-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-amb);
  transition:
    transform 0.25s var(--ease-o),
    border-color 0.25s var(--ease-o),
    box-shadow 0.25s var(--ease-o);
}
.color-card__media {
  flex: none;
  aspect-ratio: 4 / 3;
}
.color-card__media img {
  object-fit: contain;
  padding: clamp(0.55rem, 1.1vw, 0.95rem);
  transition: transform 0.3s var(--ease-o);
}
.color-card:hover {
  transform: translateY(-2px);
  border-color: var(--hair);
}
.color-card:hover .color-card__media img {
  transform: scale(1.025);
}
.color-card:active {
  transform: scale(0.985);
}
.color-card[aria-checked="true"] {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    var(--shadow-lift);
}
.color-card__meta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 4.75rem;
  padding: 0.85rem;
  border-top: 1px solid var(--hair-soft);
}
.color-card__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.color-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.color-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.color-card__code {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.color-card__dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  flex: none;
  box-shadow:
    inset 0 0 0 1px var(--hair),
    inset 0 2px 4px rgb(0 0 0 / 0.18);
}
.color-card__status {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.2s var(--ease-o),
    transform 0.2s var(--ease-o);
}
.color-card[aria-checked="true"] .color-card__status {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 420px) {
  .color-card__meta {
    min-height: 4.5rem;
    padding: 0.75rem;
  }
  .color-card__identity {
    gap: 0.5rem;
  }
  .color-card__name {
    font-size: 0.82rem;
  }
  .color-card__code {
    font-size: 0.68rem;
  }
  .color-card__status {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .color-card,
  .color-card__media img,
  .color-card__status {
    transition: none;
  }
}

/* =========================================================================
   SPECS - one composed specification board
   ========================================================================= */
.dimensions__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 44rem);
  margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}
.dimensions__head .h2 {
  width: max-content;
  max-width: 100%;
  line-height: 1.12;
  padding-block: 0.04em;
  text-wrap: balance;
}
.dimensions__head .body-muted {
  max-width: 46ch;
}

.spec-board {
  overflow: hidden;
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 85%, white),
    var(--shadow-amb);
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 72%), var(--surface);
  border-bottom: 1px solid var(--hair-soft);
}
.spec {
  min-width: 0;
  min-height: 13.5rem;
  padding: clamp(1.35rem, 2.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.spec:not(:last-child) {
  border-bottom: 1px solid var(--hair-soft);
}
.spec__k {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.055em;
}
.spec__v {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  margin-top: 0.75rem;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}
.spec__v small {
  font-size: 0.32em;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.spec__d {
  max-width: 27ch;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.48;
}

.spec-groups {
  display: grid;
  grid-template-columns: 1fr;
}
.spec-group {
  min-width: 0;
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
}
.spec-group + .spec-group {
  border-top: 1px solid var(--hair-soft);
}
.spec-group__head,
.sleeping-sizes__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.spec-group__icon {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}
.spec-group h3,
.sleeping-sizes h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.spec-group ul {
  list-style: none;
  padding: 0;
  margin-top: 1.65rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1.5rem;
}
.spec-group li {
  min-width: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.sleeping-sizes {
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  border-top: 1px solid var(--hair-soft);
  background: color-mix(in srgb, var(--paper) 54%, var(--surface));
}
.sleeping-sizes__head p {
  margin-top: 0.18rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}
.sleeping-sizes__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.sleeping-size {
  min-width: 0;
  padding: 1.2rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sleeping-size + .sleeping-size {
  border-top: 1px solid var(--hair-soft);
}
.sleeping-size strong {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sleeping-size strong small {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.sleeping-size span {
  color: var(--ink-2);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec:nth-child(odd) {
    border-right: 1px solid var(--hair-soft);
  }
  .spec:nth-child(3) {
    border-bottom: 0;
  }
  .spec-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sleeping-sizes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sleeping-size:nth-child(even) {
    border-left: 1px solid var(--hair-soft);
  }
  .sleeping-size:nth-child(2) {
    border-top: 0;
  }
}
@media (min-width: 900px) {
  .spec-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-group + .spec-group {
    border-top: 0;
    border-left: 1px solid var(--hair-soft);
  }
  .sleeping-sizes__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sleeping-size + .sleeping-size {
    border-top: 0;
    border-left: 1px solid var(--hair-soft);
  }
}
@media (min-width: 1100px) {
  .spec-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .spec:not(:last-child) {
    border-right: 1px solid var(--hair-soft);
    border-bottom: 0;
  }
}
@media (max-width: 479px) {
  .dimensions__head .h2 {
    width: auto;
  }
  .spec {
    min-height: 12rem;
  }
}

/* =========================================================================
   REVIEWS
   ========================================================================= */
.reviews-section {
  background: transparent;
  overflow: hidden;
}
.reviews-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 44rem);
  margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}
.reviews-head .body-muted {
  max-width: 52ch;
}
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.8vw, 2.5rem);
  border-bottom: 1px solid var(--hair-soft);
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 72%), var(--surface);
}
.reviews-summary__intro {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.reviews-summary__icon {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}
.reviews-summary__label {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.reviews-summary__intro p {
  margin-top: 0.15rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}
.rating-overview {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.rating-overview__score {
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.rating-overview__count {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.78rem;
}
.stars {
  display: flex;
  gap: 0.12rem;
  color: #d98a14;
  font-size: 0.95rem;
}
.stars--large {
  font-size: 1.1rem;
  gap: 0.18rem;
}
.stars .lucide {
  stroke-width: 1.5;
}
.stars .icon--filled {
  fill: currentColor;
}
.rating-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.rating-breakdown > div {
  min-width: 8.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--hair);
}
.rating-breakdown dt {
  color: var(--ink-3);
  font-size: 0.72rem;
  line-height: 1.35;
}
.rating-breakdown dd {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.reviews-board {
  border-radius: 30px;
  overflow: hidden;
}

.reviews-slider {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background-color: white;
}
:root[data-theme="dark"] .reviews-slider {
  background-color: #242525;
}
.reviews-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.reviews-viewport::-webkit-scrollbar {
  display: none;
}
.reviews-track {
  display: flex;
  gap: 1rem;
}
.review {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 22rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: color-mix(in srgb, var(--paper) 54%, var(--surface));
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-md);
  transition:
    border-color 0.35s var(--ease-o),
    box-shadow 0.35s var(--ease-o);
}
.review:hover {
  border-color: var(--hair);
  box-shadow: var(--shadow-amb);
}
.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.review__quote {
  color: var(--hair);
  font-size: 2.15rem;
}
.review__title {
  max-width: 22ch;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
}
.review blockquote {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.62;
  letter-spacing: -0.008em;
}
.review figcaption {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review__name {
  font-size: 0.875rem;
  font-weight: 600;
}
.review__meta {
  font-size: 0.75rem;
  color: var(--ink-3);
}
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.reviews-counter {
  color: var(--ink-3);
  font-family: "Geist Mono", ui-monospace, "SF Mono", monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.reviews-nav {
  display: flex;
  gap: 0.5rem;
}
.reviews-nav button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
  transition:
    transform 0.2s var(--ease-o),
    border-color 0.2s var(--ease-o),
    background 0.2s var(--ease-o);
}
.reviews-nav button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.reviews-nav button:active:not(:disabled) {
  transform: scale(0.96);
}
.reviews-nav button:disabled {
  cursor: default;
  opacity: 0.3;
}

@media (min-width: 700px) {
  .review {
    flex-basis: calc((100% - 1rem) / 2);
  }
}
@media (min-width: 880px) {
  .reviews-summary {
    grid-template-columns: minmax(12rem, 1fr) auto minmax(17rem, auto);
  }
}
@media (min-width: 1180px) {
  .review {
    flex-basis: calc((100% - 2rem) / 3);
  }
}
@media (max-width: 480px) {
  .reviews-slider {
    padding: 0.8rem;
  }
  .review {
    min-height: 21rem;
    padding: 1.25rem;
  }
  .rating-breakdown > div {
    min-width: 7.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review,
  .reviews-nav button {
    transition: none;
  }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 1000px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
  .faq__intro {
    position: sticky;
    top: 7.5rem;
  }
}
.faq__lead {
  margin-top: 1rem;
  max-width: 34ch;
}
.faq__contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 25rem);
  margin-top: 2rem;
  padding: 0.7rem;
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-amb);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.faq__contact:hover {
  transform: translateY(-3px);
  border-color: var(--hair);
  box-shadow: var(--shadow-lift);
}
.faq__contact:active {
  transform: translateY(-1px) scale(0.99);
}
.faq__contact-icon,
.faq__contact-arrow {
  display: grid;
  place-items: center;
  flex: none;
}
.faq__contact-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
}
.faq__contact-icon .lucide {
  width: 1.25rem;
  height: 1.25rem;
}
.faq__contact-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.faq__contact-copy span {
  color: var(--ink-2);
  font-size: 0.75rem;
}
.faq__contact-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.faq__contact-arrow {
  width: 2rem;
  height: 2rem;
  color: var(--ink-3);
  transition:
    transform 0.45s var(--ease),
    color 0.45s var(--ease);
}
.faq__contact-arrow .lucide {
  width: 1rem;
  height: 1rem;
}
.faq__contact:hover .faq__contact-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.lucide {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.qa {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  box-shadow: var(--shadow-amb);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background-color 0.45s var(--ease);
}
.qa:hover {
  transform: translateY(-2px);
  border-color: var(--hair);
}
.qa[data-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--hair));
  box-shadow: var(--shadow-lift);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
  padding: 1.1rem 1.15rem 1.1rem 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--shell);
  color: var(--ink-3);
  transition:
    transform 0.5s var(--ease),
    background-color 0.5s var(--ease),
    color 0.5s var(--ease);
}
.qa__icon .lucide {
  width: 1.1rem;
  height: 1.1rem;
}
.qa[data-expanded="true"] .qa__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
}
.qa__body {
  overflow: hidden;
  will-change: height, opacity;
}
.qa__body > div {
  max-width: 62ch;
  padding: 0 4.5rem 1.35rem 1.35rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .faq__contact {
    width: 100%;
  }
  .qa summary {
    min-height: 4.25rem;
    padding: 1rem;
  }
  .qa__body > div {
    padding: 0 1rem 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq__contact,
  .faq__contact-arrow,
  .qa,
  .qa__icon {
    transition: none;
  }
  .qa__body {
    will-change: auto;
  }
}

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final {
  position: relative;
  overflow: hidden;
}
.final__core {
  position: relative;
  border: 1px solid var(--hair-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-amb);
}
@media (min-width: 900px) {
  .final__core {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
}
.final__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  background: var(--accent);
  color: var(--accent-ink);
}
.final__copy .h2 {
  max-width: 14ch;
}
.final__copy p {
  color: color-mix(in srgb, var(--accent-ink) 78%, transparent);
  max-width: 40ch;
}
.final__copy .btn {
  --bg: var(--accent-ink);
  --fg: var(--accent);
  box-shadow: none;
}
.final__media {
  position: relative;
  min-height: clamp(20rem, 42vw, 34rem);
  overflow: hidden;
  background: var(--canvas);
}
.final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.015);
  transition: transform 1.1s var(--ease-o);
}
.final__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 18px 0 40px -36px rgb(11 40 56 / 0.28);
}
.final__core:hover .final__media img {
  transform: scale(1.045);
}
@media (min-width: 900px) {
  .final__media {
    min-height: 34rem;
  }
}
@media (max-width: 899px) {
  .final__media {
    order: -1;
    min-height: clamp(18rem, 62vw, 28rem);
  }
  .final__media img {
    object-position: 68% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .final__media img {
    transition: none;
  }
  .final__core:hover .final__media img {
    transform: scale(1.015);
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  border-top: 1px solid var(--hair);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.foot__brand {
  display: inline-flex;
  width: clamp(8.5rem, 13vw, 11rem);
  margin-bottom: 0.9rem;
}
.foot__brand img {
  width: 100%;
  height: auto;
}
:root[data-theme="dark"] .foot__brand img {
  filter: invert(1);
}
@media (min-width: 768px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 1rem;
}
.foot ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.foot ul a:hover {
  color: var(--ink);
}
.foot__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* =========================================================================
   CART DRAWER
   ========================================================================= */
.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgb(8 12 10 / 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-drawer) + 1);
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  box-shadow: -30px 0 80px -30px rgb(0 0 0 / 0.45);
  transform: translate3d(101%, 0, 0);
  transition: transform 0.62s var(--ease);
  visibility: hidden;
}
.drawer.on {
  transform: none;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .drawer,
  .scrim {
    transition-duration: 0.01ms;
  }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.25rem 1.6rem;
  border-bottom: 1px solid var(--hair);
}
.drawer__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.drawer__foot {
  border-top: 1px solid var(--hair);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
}

.line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  animation: lineIn 0.6s var(--ease-o) both;
}
@keyframes lineIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .line {
    animation: none;
  }
}
.line__img {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--canvas);
  aspect-ratio: 1;
}
.line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.line__main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.line__t {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.line__v {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.line__price {
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.qty--sm {
  min-width: 8.5rem;
  transform: scale(0.82);
  transform-origin: left center;
  margin-right: -1.5rem;
}
.line__rm {
  flex: none;
  margin: -0.3rem -0.25rem 0 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 1.05rem;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.line__rm:hover {
  background: var(--shell);
  color: var(--ink);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sum-row span:last-child {
  font-variant-numeric: tabular-nums;
}
.sum-total {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem;
  color: var(--ink-2);
}
.empty .lucide {
  font-size: 2.5rem;
  color: var(--ink-3);
}

/* =========================================================================
   STICKY MOBILE BUY BAR
   ========================================================================= */
.stickybuy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-bar);
  padding: 0.7rem var(--gut) calc(0.7rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hair);
  transform: translate3d(0, 110%, 0);
  transition: transform 0.55s var(--ease);
}
.stickybuy.on {
  transform: none;
}
.stickybuy__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.stickybuy__t {
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stickybuy__p {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stickybuy .btn {
  margin-left: auto;
}
@media (min-width: 1024px) {
  .stickybuy {
    display: none;
  }
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: calc(var(--z-drawer) + 2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 140%, 0);
  transition:
    transform 0.55s var(--ease),
    opacity 0.25s ease;
}
.toast.on {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}
.toast .lucide {
  color: #7fd3a3;
  font-size: 1.1rem;
}
/* clear the sticky mobile buy bar, which only exists below 1024px */
@media (max-width: 1023px) {
  .toast {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  transition: top 0.3s var(--ease);
}
.skip:focus {
  top: 1rem;
}
