/* Product tour video. On the homepage it sits where the hero's orange stream lands (the stream ends on the
   frame's top edge, its glow shows on both sides), and the showcase follows. /vsl/ reuses the same frame
   under its own headline, lit by the same material. tour.js swaps the native controls for this player. */
.tour-section {position:relative;z-index:3;padding-top:12px}
.tour-section + .crafted-showcase {margin-top:clamp(56px,7vw,96px)}
.tour-frame {
  position:relative;container-type:inline-size;padding:8px;border-radius:26px;background:#fff;outline:none;
  box-shadow:0 0 0 1px #f2dfd0,0 30px 70px -34px #a2542775,0 10px 24px -16px #a2542733;
}
.tour-video {display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:18px;background:#ff5600;object-fit:cover}
.tour-cover,.tour-end {position:absolute;inset:8px;border-radius:18px}
.tour-cover[hidden],.tour-end[hidden],.tour-chapters[hidden],.tp-bar[hidden],.tp-captions[hidden],.tp-tip[hidden],.tp-btn[hidden] {display:none}
.tour-frame.is-custom .tour-video {cursor:pointer}
.tour-frame.is-idle,.tour-frame.is-idle .tour-video {cursor:none}

/* Poster: one Watch button (icon, text, duration) at the exact centre of the video. After the first play the
   same button is the icon alone, for pause. The cover is sized explicitly: a positioned <button> does not
   stretch to its insets in every engine, and a narrower cover would pull the button off centre. */
.tour-cover {
  z-index:3;display:flex;align-items:center;justify-content:center;width:calc(100% - 16px);height:calc(100% - 16px);
  margin:0;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.tour-cover:focus-visible {outline:none}
.tp-big {
  display:inline-flex;align-items:center;gap:16px;padding:10px 28px 10px 10px;border-radius:999px;background:#fff;color:#111;
  font-size:19px;font-weight:650;line-height:1;letter-spacing:-.01em;white-space:nowrap;
  box-shadow:inset 0 0 0 1px #ffffffcc,0 22px 50px -18px #5a1f00a6,0 6px 16px -8px #5a1f0059;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
/* the triangle's centroid sits on the circle's centre: no nudge */
.tp-big-icon {position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:#ff5600;color:#fff;box-shadow:inset 0 0 6px 2px #ffffff3d}
.tp-big-icon svg {display:block;width:24px;height:24px}
.tp-big-icon::after {content:'';position:absolute;inset:-7px;border-radius:50%;border:2px solid #ff560066;animation:tour-ring 2.4s var(--ease) infinite}
.tp-big-time {padding-left:16px;border-left:1px solid #e8e8e5;color:#76675a;font-size:16px;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}
.tour-cover:hover .tp-big {transform:scale(1.04)}
.tour-cover:active .tp-big {transform:scale(.98)}
.tour-cover:focus-visible .tp-big {outline:3px solid #fff;outline-offset:5px}
.tour-frame.is-started .tp-big {padding:0;background:none;box-shadow:none}
.tour-frame.is-started .tp-big-label,.tour-frame.is-started .tp-big-time {display:none}
.tour-frame.is-started .tp-big-icon {width:84px;height:84px;box-shadow:inset 0 0 6px 2px #ffffff3d,0 18px 40px -16px #5a1f00a6}
.tour-frame.is-started .tp-big-icon svg {width:34px;height:34px}
.tour-frame.is-started .tp-big-icon::after {animation:none;opacity:0}
@keyframes tour-ring {0% {transform:scale(.9);opacity:1} 70%,100% {transform:scale(1.32);opacity:0}}
@container (min-width:900px) {
  .tp-big {gap:20px;padding:12px 36px 12px 12px;font-size:23px}
  .tp-big-icon {width:70px;height:70px}
  .tp-big-icon svg {width:30px;height:30px}
  .tp-big-icon::after {inset:-8px}
  .tp-big-time {padding-left:20px;font-size:19px}
  .tour-frame.is-started .tp-big-icon {width:96px;height:96px}
  .tour-frame.is-started .tp-big-icon svg {width:40px;height:40px}
}

/* Control bar: the site's white material, floating inside the video. */
.tp-bar {
  position:absolute;left:20px;right:20px;bottom:20px;z-index:4;display:flex;align-items:center;gap:2px;height:48px;padding:0 6px;
  border-radius:12px;background:#ffffffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#111;
  -webkit-user-select:none;user-select:none;
  box-shadow:0 0 0 1px #1111110f,0 12px 32px -14px #5a1f0080;transition:opacity .25s ease,transform .3s var(--ease);
}
.tour-frame.is-idle .tp-bar,.tour-frame.is-ended .tp-bar {opacity:0;transform:translateY(10px);pointer-events:none}
.tp-btn {
  display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:9px;
  background:none;color:inherit;font:inherit;cursor:pointer;transition:background-color .15s ease,color .15s ease;
}
.tp-btn svg {width:20px;height:20px}
.tp-btn:hover {background:#f5f1ec}
.tp-btn:focus-visible,.tp-seek:focus-visible,.tp-vol:focus-visible {outline:2px solid #a53600;outline-offset:2px}
.tp-btn .i-off,.tour-frame.is-playing .tp-play .i-on,.tour-frame.is-muted .tp-mute .i-on,.tour-frame.is-fullscreen .tp-fs .i-on {display:none}
.tour-frame.is-playing .tp-play .i-off,.tour-frame.is-muted .tp-mute .i-off,.tour-frame.is-fullscreen .tp-fs .i-off {display:block}
.tp-cc[aria-pressed=true] {background:#fff1e8;color:#ff5600}
.tp-speed {flex-basis:auto;width:auto;min-width:40px;padding:0 7px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.tp-time {flex:0 0 auto;min-width:40px;padding:0 4px;color:#41434b;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center}

/* Progress: one segment per chapter, played in orange, buffered in sand. */
.tp-seek {position:relative;flex:1 1 auto;min-width:60px;height:36px;margin:0 6px;display:flex;align-items:center;border-radius:6px;cursor:pointer;touch-action:none}
.tp-track {display:flex;gap:3px;width:100%;height:6px;transition:height .15s ease}
.tp-seek:hover .tp-track,.tp-seek.is-dragging .tp-track {height:8px}
.tp-seg {position:relative;flex:1 1 0;min-width:0;height:100%;border-radius:3px;background:#ece5dd;overflow:hidden}
.tp-buf,.tp-fill {position:absolute;top:0;bottom:0;left:0;width:0;border-radius:inherit}
.tp-buf {background:#dcd1c5}
.tp-fill {background:#ff5600}
.tp-thumb {
  position:absolute;top:50%;left:0;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#ff5600;pointer-events:none;
  box-shadow:0 0 0 2px #fff,0 2px 6px #5a1f0059;transform:scale(0);transition:transform .15s ease;
}
.tp-seek:hover .tp-thumb,.tp-seek:focus-visible .tp-thumb,.tp-seek.is-dragging .tp-thumb {transform:scale(1)}
.tp-tip {
  position:absolute;bottom:calc(100% + 8px);left:0;transform:translateX(-50%);padding:5px 9px;border-radius:8px;background:#111;color:#fff;
  font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums;
}

/* Volume: the slider opens beside the speaker. */
.tp-volume {display:flex;align-items:center}
.tp-vol {position:relative;width:0;height:36px;overflow:hidden;cursor:pointer;touch-action:none;transition:width .2s var(--ease),margin .2s var(--ease)}
.tp-volume:hover .tp-vol,.tp-volume:focus-within .tp-vol,.tp-vol.is-dragging {width:64px;margin:0 8px 0 2px;overflow:visible}
.tp-vol::before,.tp-vol-fill {content:'';position:absolute;top:50%;left:0;height:4px;margin-top:-2px;border-radius:2px}
.tp-vol::before {right:0;background:#ece5dd}
.tp-vol-fill {width:100%;background:#111}
.tour-frame.no-volume .tp-vol {display:none}

/* Captions: drawn by the page, above the bar while it shows. */
.tp-captions {
  position:absolute;left:50%;bottom:84px;z-index:3;width:max-content;max-width:min(86%,860px);transform:translateX(-50%);
  text-align:center;pointer-events:none;transition:bottom .3s var(--ease);
}
.tour-frame.is-idle .tp-captions {bottom:28px}
.tp-captions span {
  display:inline;padding:3px 10px;border-radius:7px;background:#111111c9;color:#fff;font-size:20px;font-size:clamp(13px,1.8cqi,24px);
  font-weight:600;line-height:1.55;white-space:pre-line;-webkit-box-decoration-break:clone;box-decoration-break:clone;
}

/* Loading ring while the video waits for data. */
.tp-spinner {
  position:absolute;left:50%;top:50%;z-index:2;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;
  border:3px solid #ffffff59;border-top-color:#fff;opacity:0;pointer-events:none;transition:opacity .2s ease;animation:tp-spin .8s linear infinite;
}
.tour-frame.is-waiting .tp-spinner {opacity:1}
@keyframes tp-spin {to {transform:rotate(360deg)}}

/* End card: the next step over the closing frame. */
.tour-end {
  z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;
  background:#ff5600d6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.tour-end p {margin:0;color:#fff;font-size:clamp(20px,2.6vw,34px);font-weight:600;line-height:1.1;letter-spacing:-.02em}
.tour-end-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tour-end .button:focus-visible {outline-color:#fff}

/* Full screen: the frame becomes the stage. */
.tour-frame:fullscreen {display:flex;align-items:center;padding:0;border-radius:0;background:#000;box-shadow:none}
.tour-frame:fullscreen .tour-video {height:100%;border-radius:0;object-fit:contain}
.tour-frame:fullscreen .tour-cover,.tour-frame:fullscreen .tour-end {inset:0;border-radius:0}
.tour-frame:fullscreen .tour-cover {width:100%;height:100%}
.tour-frame:-webkit-full-screen {display:flex;align-items:center;width:100%;height:100%;padding:0;border-radius:0;background:#000;box-shadow:none}
.tour-frame:-webkit-full-screen .tour-video {height:100%;border-radius:0;object-fit:contain}
.tour-frame:-webkit-full-screen .tour-cover,.tour-frame:-webkit-full-screen .tour-end {inset:0;border-radius:0}
.tour-frame:-webkit-full-screen .tour-cover {width:100%;height:100%}

/* Compact player (phones): fewer controls, a lower bar. */
@container (max-width:560px) {
  .tp-bar {left:13px;right:13px;bottom:13px;height:40px;padding:0 4px}
  .tp-btn {flex-basis:32px;width:32px;height:32px}
  .tp-btn svg {width:18px;height:18px}
  .tp-dur,.tp-volume,.tp-speed {display:none}
  .tp-seek {margin:0 4px}
  .tp-time {min-width:34px;padding:0 2px;font-size:11px}
  .tp-captions {bottom:62px}
  .tour-frame.is-idle .tp-captions {bottom:18px}
  .tp-big {gap:10px;padding:6px 16px 6px 6px;font-size:13px}
  .tp-big-icon {width:38px;height:38px}
  .tp-big-icon svg {width:17px;height:17px}
  .tp-big-icon::after {inset:-5px}
  .tp-big-time {padding-left:10px;font-size:12px}
  .tour-frame.is-started .tp-big-icon {width:56px;height:56px}
  .tour-frame.is-started .tp-big-icon svg {width:24px;height:24px}
}

/* Chapters (/vsl/): the current one follows playback. */
.tour-chapters {margin-top:20px}
.tour-chapters ol {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}
.tour-chapters button {
  display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:9px;
  background:#fff;color:#41434b;font:inherit;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer;
  transition:border-color .2s ease,color .2s ease,box-shadow .2s ease;
}
.tour-chapters button span {color:#ff5600;font-variant-numeric:tabular-nums}
.tour-chapters button:hover {border-color:#f1d5c0;color:#111}
.tour-chapters button:focus-visible {outline:2px solid #a53600;outline-offset:3px}
.tour-chapters button[aria-current=true] {border-color:#ff5600;box-shadow:inset 0 0 0 1px #ff5600;color:#111}

/* /vsl/ */
.vsl-hero {position:relative;isolation:isolate;overflow:clip;padding:150px 0 8px;text-align:center}
.vsl-hero .hero-copy {position:relative;z-index:2}
.vsl-hero h1 {max-width:900px;margin:auto;font-size:clamp(34px,4.2vw,56px);line-height:1.04}
.vsl-hero .hero-copy p {max-width:680px;margin:22px auto 0;color:var(--muted);font-size:15px;line-height:1.65}
.vsl-stage {position:relative;margin-top:60px}
.vsl-stage .tour-section {z-index:1;max-width:1040px;padding-top:0}
.vsl-material {
  position:absolute;z-index:0;left:50%;top:-230px;width:1600px;max-width:none;height:640px;transform:translateX(-50%);
  object-fit:fill;opacity:.9;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent 30%,#000 50%,#000 65%,#000c 78%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 30%,#000 50%,#000 65%,#000c 78%,transparent 100%);
}
.vsl-actions {position:relative;z-index:1;display:flex;justify-content:center;margin-top:34px}

@media (max-width:800px) {
  .vsl-hero {padding-top:118px}
  .vsl-stage {margin-top:40px}
  .vsl-material {width:1100px;height:440px;top:-150px}
}
@media (max-width:600px) {
  .tour-frame {padding:5px;border-radius:18px}
  .tour-video {border-radius:13px}
  .tour-cover,.tour-end {inset:5px;border-radius:13px}
  .tour-cover {width:calc(100% - 10px);height:calc(100% - 10px)}
  .tour-end {gap:10px;padding:12px}
  .tour-end p {font-size:16px}
  /* one swipeable row, edge to edge, instead of six wrapped rows */
  .tour-chapters {margin-inline:calc((100vw - 100%) / -2)}
  .tour-chapters ol {
    flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:2px 18px 6px;scroll-snap-type:x proximity;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent);
  }
  .tour-chapters ol::-webkit-scrollbar {display:none}
  .tour-chapters li {flex:0 0 auto;scroll-snap-align:start;scroll-margin-inline:18px}
  .tour-chapters button {min-height:34px;padding:5px 10px;font-size:12px;white-space:nowrap}
  .vsl-hero .hero-copy p br {display:none}
  .vsl-material {width:820px;height:328px;top:-110px}
}
@media (hover:none) {
  .tp-vol {display:none}
}
@media (prefers-reduced-motion:reduce) {
  .tp-big,.tp-bar,.tp-btn,.tp-thumb,.tp-track,.tp-vol,.tp-captions,.tour-chapters button {transition:none}
  .tp-big-icon::after {animation:none;opacity:0}
  .tp-spinner {animation-duration:2.4s}
}
