.kit-experience {
  --edge: clamp(20px, 3.5vw, 72px);
  --inset-y: clamp(18px, 3.5svh, 42px);
  --paper: #f8f6f3;
  --occasion-color: #6c449a;
  --heading-color: #d18cfb;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: #211c25;
  display: grid;
  grid-template: "copy copy" 1fr "product product" auto "links toolbar" auto / 1fr auto;
  align-items: end;
  row-gap: clamp(12px, 2svh, 22px);
  min-height: calc(100svh - var(--nav-h) - var(--subnav-h));
  padding: var(--inset-y) var(--edge);
}
.kit-experience button { font: inherit; color: inherit; cursor: pointer; }
.kit-experience :focus-visible { outline: 2px solid white; outline-offset: 4px; }
.kit-experience svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.ke-stage {
  position: absolute; inset: 0; z-index: -1; perspective: 1500px; overflow: hidden;
  max-height: calc(100svh - var(--nav-h) - var(--subnav-h));
}
.ke-piece, .ke-scene { position: absolute; inset: 0; height: 100%; width: 100%; }
.ke-scene { object-fit: contain; object-position: right top; }
@media (orientation: landscape) {
  .ke-stage::before {
    content: ''; position: absolute; inset: -24px;
    background: var(--scene-backdrop) center / cover no-repeat;
    filter: blur(24px); opacity: .65; pointer-events: none;
  }
}
.ke-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, #130f18db, #17121cc2 21%, #17121c30 48%, transparent 68%),
    linear-gradient(0deg, #110d167a, transparent 32%);
}
.ke-product {
  grid-area: product; width: min(24vw, 26rem); height: clamp(110px, 21svh, 235px);
}
.ke-kit {
  width: 100%; height: 100%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / .3));
}
@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ke-product, .ke-cover[data-slot="0"] .ke-cover-kit {
    transform: translate3d(var(--kit-x, 0px), var(--kit-y, 0px), 0);
    transition: transform 180ms ease-out;
  }
}
.ke-piece { z-index: 2; backface-visibility: hidden; }
.ke-piece.left { clip-path: polygon(0 0, 61% 0, 40.1% 100%, 0 100%); transform-origin: 25% 55%; }
.ke-piece.right { clip-path: polygon(60.9% 0, 100% 0, 100% 100%, 40% 100%); transform-origin: 75% 55%; }
.ke-toolbar {
  grid-area: toolbar; justify-self: end; display: flex; align-items: center; gap: clamp(6px, 1vw, 16px);
}
.kit-experience:not([data-ready]) .ke-interactive { visibility: hidden; }
.ke-controls, .ke-gallery-controls, .ke-gallery-button {
  display: inline-flex; align-items: center; border-radius: 40px;
  border: 1px solid rgb(255 255 255 / .31); background: rgb(24 18 31 / .52);
  backdrop-filter: blur(14px);
}
.ke-controls { position: relative; padding: 0 4px 0 18px; gap: 1px; }
.ke-position { font-size: .8rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ke-position b { font-weight: 650; }
.ke-clock { width: clamp(32px, 5vw, 78px); height: 2px; margin: 0 8px 0 12px; background: rgb(255 255 255 / .35); }
.ke-clock i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.kit-experience .ke-icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%;
}
.ke-icon-button:hover { background: rgb(255 255 255 / .16); }
.ke-icon-button svg { width: 17px; height: 17px; }
.ke-motion .ke-play-icon, .kit-experience[data-paused] .ke-pause-icon { display: none; }
.kit-experience[data-paused] .ke-play-icon { display: block; }
.kit-experience .ke-gallery-button {
  min-height: 48px; padding: 0 17px; gap: 9px; white-space: nowrap; font-weight: 550; font-size: .94rem;
  background: color-mix(in srgb, var(--occasion-color) 24%, #211b26);
  border-color: color-mix(in srgb, var(--heading-color) 75%, white);
  box-shadow: 0 0 13px color-mix(in srgb, var(--heading-color) 68%, transparent),
    0 0 36px color-mix(in srgb, var(--heading-color) 50%, transparent), 0 4px 14px #160d1ca6;
  transition: background .28s, box-shadow .28s;
}
.kit-experience .ke-gallery-button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--occasion-color) 49%, #201824);
  box-shadow: 0 0 18px var(--heading-color), 0 0 44px color-mix(in srgb, var(--heading-color) 58%, transparent);
}
.ke-gallery-button svg { color: var(--heading-color); }
.ke-gallery-short { display: none; }
.ke-copy { grid-area: copy; align-self: start; width: min(44vw, 44rem); }
.ke-signature {
  display: flex; gap: 12px; align-items: center; margin-bottom: clamp(12px, 2svh, 24px);
  font-size: clamp(1rem, 1.4vw, 1.4rem); font-weight: 550; line-height: 1.3;
}
.ke-signature::before { content: ''; width: 34px; height: 4px; background: var(--occasion-color); box-shadow: 0 0 0 1px #ffffff38; flex-shrink: 0; }
.ke-heading {
  font-size: clamp(3rem, 6.1vw, 7.5rem); font-weight: 530; line-height: .99;
  letter-spacing: -.067em; text-wrap: balance;
}
.ke-heading span, .ke-copy .ke-heading em { display: block; }
.ke-heading em {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic;
  letter-spacing: -.055em; color: var(--heading-color);
}
.ke-items { max-width: 37ch; font-size: clamp(.97rem, 1.3vw, 1.25rem); line-height: 1.45; margin-top: 16px; text-wrap: pretty; }
.ke-links { grid-area: links; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.kit-experience .ke-design {
  display: inline-flex; align-items: center; justify-content: center; margin-top: clamp(15px, 3vh, 30px);
  min-height: 46px; padding: 0 24px; border-radius: 44px; border: 1px solid transparent;
  color: #261e2d; background: var(--paper); font-weight: 600; font-size: .94rem;
}
.kit-experience .ke-design:hover { background: #fff; box-shadow: inset 0 -3px 0 var(--occasion-color); }
.ke-links .ke-design { margin-top: 0; }
.ke-highlights { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: .875rem; }
.ke-highlights:hover span { text-decoration: underline; }
.ke-highlights svg { width: 16px; }
.ke-gallery {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; border: none;
  color: var(--paper); background: radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--occasion-color) 54%, #252228), #1a181c 61%, #100f11);
  overflow: auto; overscroll-behavior: contain;
}
.ke-gallery[open] { display: flex; flex-direction: column; align-items: stretch; }
.ke-gallery::backdrop { background: #151118; }
html:has(.ke-gallery[open]) { overflow: hidden; }
.ke-gallery-head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  margin: 0 var(--edge); padding: clamp(12px, 2.5vh, 30px) 0; border-bottom: 1px solid #ffffff29;
}
.ke-gallery-head h2 { font-size: clamp(1.13rem, 2vw, 1.55rem); font-weight: 550; letter-spacing: -.035em; }
.ke-gallery-head .ke-icon-button { border: 1px solid #ffffff50; }
.ke-wheel {
  --cover-width: min(68vw, 100svh, 1100px);
  --cover-ratio: calc(16 / 9);
  --wheel-min: clamp(175px, 43vh, 580px);
  --hover-scale: 1.028;
  position: relative; isolation: isolate; perspective: 1050px; overflow: clip; flex: 1 0 auto;
  min-height: max(var(--wheel-min), calc(var(--cover-width) / var(--cover-ratio) * var(--hover-scale) + 16px));
  touch-action: pan-y;
}
.kit-experience .ke-cover {
  position: absolute; left: 50%; top: 50%; padding: 0; width: var(--cover-width); aspect-ratio: var(--cover-ratio);
  overflow: visible;
  border: 0; border-radius: 4px; background: transparent; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, -50%); transition: transform .62s cubic-bezier(.18,.76,.2,1), opacity .5s, box-shadow .32s;
}
.ke-cover-art {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: inherit; transform: translateZ(0);
}
.ke-cover-photo { width: 100%; height: 100%; object-fit: cover; }
.ke-cover-kit { position: absolute; left: 4%; bottom: 5%; width: 31%; height: 38%; }
.ke-cover-light {
  position: absolute; top: 100%; inset-inline: 0; height: 7px; pointer-events: none;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--heading-color) 72%, white) 0 1px,
    color-mix(in srgb, var(--heading-color) 57%, transparent) 2px,
    color-mix(in srgb, var(--heading-color) 15%, transparent) 4px, transparent 7px);
  border-radius: 0 0 4px 4px;
}
.ke-cover[data-slot] {
  visibility: visible; pointer-events: auto; z-index: var(--depth); opacity: var(--opacity);
  transform: translate(-50%,-50%) translateX(var(--shift)) translateZ(var(--z)) rotateY(var(--tilt)) scale(var(--hover, 1));
  box-shadow: 0 11px 28px #0006, 0 0 0 1px #ffffff30;
}
.ke-cover[data-slot="0"] { --depth: 4; --opacity: 1; --shift: 0%; --z: 0px; --tilt: 0deg; }
.ke-cover[data-slot="-1"], .ke-cover[data-slot="1"] { --depth: 3; --opacity: .78; --z: -115px; }
.ke-cover[data-slot="-2"], .ke-cover[data-slot="2"] { --depth: 2; --opacity: .48; --z: -230px; }
.ke-cover[data-slot="-1"] { --shift: -67%; --tilt: 27deg; }
.ke-cover[data-slot="1"] { --shift: 67%; --tilt: -27deg; }
.ke-cover[data-slot="-2"] { --shift: -112%; --tilt: 39deg; }
.ke-cover[data-slot="2"] { --shift: 112%; --tilt: -39deg; }
@media (hover:hover) {
  .ke-cover[data-slot]:hover { --hover: var(--hover-scale); opacity: 1; box-shadow: 0 0 0 1px #efdcff, 0 0 28px #ceb4f666; }
}
.ke-gallery-caption { padding: 0 var(--edge); text-align: center; }
.ke-gallery-caption .ke-position { color: #ddd9d5; }
.ke-gallery-caption .ke-heading { margin-top: 8px; font-size: clamp(2.25rem, 4vw, 4.5rem); }
.ke-gallery-caption .ke-heading span { display: inline; }
.ke-gallery-caption .ke-items { max-width: none; margin: 10px auto 0; }
.ke-gallery-controls { align-self: center; margin: 16px auto max(16px, env(safe-area-inset-bottom)); padding: 0 3px; }
@media (max-width: 800px), (max-width: 1100px) and (orientation: portrait) {
  .kit-experience {
    --edge: clamp(16px, 4.2vw, 36px);
    --inset-y: max(16px, env(safe-area-inset-bottom), 2.6svh);
  }
  .ke-stage::after {
    background: linear-gradient(145deg, #17121cef, #17121c8c 28%, transparent 55%),
      linear-gradient(0deg, #151019bf, transparent 29%);
  }
  .ke-controls { padding-left: 12px; }
  .ke-clock { width: 22px; margin-inline: 6px 0; }
  .kit-experience .ke-gallery-button { min-height: 44px; font-size: .82rem; padding: 0 12px; gap: 5px; }
  .ke-gallery-button svg { width: 18px; }
  .ke-copy { width: min(85%, 32rem); }
  .ke-signature { margin-bottom: 10px; }
  .ke-copy .ke-heading { font-size: clamp(2.65rem, 9.3vw, 5rem); }
  .ke-copy .ke-heading span, .ke-copy .ke-heading em { display: inline; }
  .ke-copy .ke-items { margin-top: 8px; font-size: 1rem; }
  .ke-product { width: min(41vw, 240px); height: clamp(90px, 15svh, 180px); }
  .ke-links { gap: 8px; }
  .ke-highlights { width: 44px; justify-content: center; border-radius: 50%; border: 1px solid #ffffff70; }
  .ke-highlights span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .ke-wheel { --cover-width: min(83vw, 92svh); }
}
@media (max-width: 640px) {
  .kit-experience {
    grid-template: "copy copy" 1fr "product links" auto "toolbar toolbar" auto / auto 1fr;
  }
  .ke-links { justify-content: end; }
  .ke-links .ke-design { padding-inline: 16px; }
}
@media (orientation: portrait) {
  .kit-experience {
    grid-template: "photo photo" auto "copy copy" 1fr "product links" auto "toolbar toolbar" auto / auto 1fr;
    padding-top: 0;
  }
  .ke-stage {
    grid-area: photo; position: relative; align-self: start;
    margin-inline: calc(-1 * var(--edge));
  }
  .ke-stage > .ke-scene { position: static; height: auto; }
  .ke-stage::after { content: none; }
  .ke-copy { align-self: center; width: min(100%, 44rem); }
  .ke-links { justify-content: end; }
}
@media (max-width: 800px) and (orientation: portrait) {
  .ke-wheel {
    --cover-ratio: calc(4 / 3); --wheel-min: 0px;
    flex: none; margin-top: auto;
  }
  .ke-cover-photo { object-position: 60% center; }
  .ke-gallery-caption { padding-top: 12px; }
  .ke-gallery { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .ke-gallery-controls { margin-bottom: auto; }
}
@media (max-width: 480px) {
  .ke-controls { gap: 0; padding: 0 3px 0 12px; }
  .ke-controls .ke-position { font-size: .75rem; letter-spacing: 0; }
  .ke-clock { position: absolute; inset: auto 14px 2px; width: auto; margin: 0; }
}
@media (max-width: 360px) {
  .kit-experience .ke-gallery-button { padding-inline: 7px; }
  .ke-gallery-long { display: none; }
  .ke-gallery-short { display: inline; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .kit-experience { --inset-y: 12px; row-gap: 8px; }
  .ke-copy { width: min(58%, 35rem); }
  .ke-signature, .ke-copy .ke-items { margin-block: 4px; }
  .ke-copy .ke-heading { font-size: clamp(1.9rem, 4vw, 3rem); }
  .ke-copy .ke-heading span, .ke-copy .ke-heading em { display: inline; }
  .ke-product { width: min(22vw, 180px); height: clamp(60px, 16svh, 86px); }
  .ke-gallery-head { padding-block: 2px; }
  .ke-gallery-caption .ke-design { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .kit-experience *, .kit-experience *::before, .kit-experience *::after { transition-duration: 0s !important; }
}
