/* ---------------------------------------------------------------------------
   Texture Toys — shell styles: the home carousel, the toy layer, the in-toy menu
   button and the material switcher, plus the shared tokens toys use.
   Toys ship their own stylesheets scoped to .toy-<id>.
--------------------------------------------------------------------------- */

@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #8fb1e4;
}

:root {
  /* Shared with toys. */
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --ease-spring: cubic-bezier(.2, 1.4, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Shell. */
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --ease-glide: cubic-bezier(.32, .72, 0, 1);
  --bg: #060708;
  --ink: #f3efe7;
  --ink-2: rgba(243, 239, 231, .64);
  --ink-3: rgba(243, 239, 231, .4);
  --ink-4: rgba(243, 239, 231, .22);
  --line: rgba(243, 239, 231, .1);
  --gold: #d8c09a;
  --gold-2: #a8906c;
  --glass: rgba(20, 21, 25, .56);
  --glass-hi: rgba(255, 255, 255, .14);
  --gutter: 22px;
  --card-w: min(78vw, 350px);
  --card-r: 30px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: fixed;
  inset: 0;
}
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

/* clip, not just hidden: a hidden box can still be scrolled by focus() or scrollIntoView, which slides every layer off-screen. */
#shell { position: fixed; inset: 0; overflow: hidden; overflow: clip; }

/* ---- Ambient: a colour bloom that follows the focused material ----- */
#ambient { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s ease; }
#ambient .bloom {
  position: absolute; left: 50%; top: 56%; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent 62%),
    radial-gradient(closest-side at 50% 30%, rgba(216, 192, 154, .07), transparent 70%);
  transition: --glow 1.1s ease;
  opacity: .9;
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  #ambient .bloom { background: radial-gradient(closest-side, rgba(143, 177, 228, .2), transparent 62%); }
}
#ambient .grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#shell.in-toy #ambient { opacity: 0; }

/* ---- Home ---------------------------------------------------------- */
#home {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
  padding: calc(var(--safe-top) + 16px) calc(var(--safe-right) + var(--gutter)) calc(var(--safe-bottom) + 18px) calc(var(--safe-left) + var(--gutter));
  transition: transform .6s var(--ease-glide), opacity .6s ease, filter .6s ease;
  transform-origin: 50% 50%;
  scrollbar-width: none;
}
#home::-webkit-scrollbar { display: none; }
#home.pushed { transform: scale(.94); opacity: .35; filter: brightness(.55) saturate(.8); pointer-events: none; }
#home.dragging { transition: none; }

/* Entrance choreography on first paint. */
.reveal { animation: rise .9s var(--ease-glide) backwards; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

#home-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex: none; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand .mark { flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(216, 192, 154, .14)); }
.brand .word { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: .005em; font-weight: 500; white-space: nowrap; }

/* Gold foil: the italic half of the wordmark. The gradient is three panels wide
   (foil, a bright sheen band, foil) and slides once on load, so the sheen sweeps
   across the letters and settles on plain foil. */
.brand .word em, #home-foot .sig em {
  font-style: italic; font-weight: 400; padding-right: .08em;
  background: linear-gradient(100deg,
    #d8c09a 0%, #f1e3c8 18%, #b99a70 33%,
    #d8c09a 41%, #fffaf0 50%, #d8c09a 59%,
    #b99a70 67%, #f1e3c8 82%, #d8c09a 100%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .word em { animation: foil-sheen 2.6s var(--ease-glide) .75s both; }
@keyframes foil-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.controls {
  display: inline-flex; align-items: center; height: 44px; padding: 0 3px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.ctl {
  width: 40px; height: 38px; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center;
  cursor: pointer; color: var(--ink); transition: transform .25s var(--ease-spring), color .3s, background .3s;
}
.ctl:hover { background: rgba(255, 255, 255, .05); }
.ctl:active { transform: scale(.88); }
.ctl .when-off { display: none; }
.ctl.off { color: var(--ink-3); }
.ctl.off .when-on { display: none; }
.ctl.off .when-off { display: block; }
.ctl-rule { width: 1px; height: 16px; background: var(--line); }

.intro { margin-top: clamp(18px, 4.2vh, 44px); flex: none; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .rule { width: 18px; height: 1px; background: var(--gold); opacity: .8; flex: none; }
.intro h1 {
  margin-top: 12px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 11.4vw, 60px); line-height: .98; letter-spacing: -.025em; color: var(--ink);
}
.intro h1 em {
  font-style: italic; letter-spacing: -.02em; padding-right: .06em;
  background: linear-gradient(100deg, #f1e3c8 0%, var(--gold) 45%, #b99a70 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- The stage: a snapping carousel of material cards --------------- */
#stage {
  position: relative; flex: 1 1 auto; min-height: 330px; display: flex; align-items: center;
  margin: clamp(14px, 3vh, 30px) calc(-1 * (var(--safe-right) + var(--gutter))) 0 calc(-1 * (var(--safe-left) + var(--gutter)));
}
.swatches {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px calc(50% - var(--card-w) / 2) 30px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.swatches::-webkit-scrollbar { display: none; }

.swatch {
  position: relative; flex: 0 0 var(--card-w); height: min(100%, calc(var(--card-w) * 1.5)); min-height: 300px;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
  scroll-snap-align: center; scroll-snap-stop: always;
  transform-origin: 50% 55%; will-change: transform, opacity;
  -webkit-user-drag: none;
}
.swatch:focus-visible { outline: none; }
.swatch:focus-visible .tile::after { box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .18); }
.swatch .tile {
  position: absolute; inset: 0; border-radius: var(--card-r); overflow: hidden; background: var(--sw-color, #121317);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 18px 34px -18px rgba(0, 0, 0, .7);
  transform: translateZ(0); transition: transform .5s var(--ease-glide);
}
.swatch:active .tile { transform: scale(.975); transition-duration: .18s; }
.swatch .tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: box-shadow .3s;
}
.swatch canvas { position: absolute; top: 0; bottom: 0; left: -24px; width: calc(100% + 48px); height: 100%; display: block; will-change: transform; }
.swatch .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 7, 8, .92) 0%, rgba(6, 7, 8, .6) 22%, rgba(6, 7, 8, 0) 50%),
    linear-gradient(to bottom, rgba(6, 7, 8, .38) 0%, rgba(6, 7, 8, 0) 22%);
}
.swatch .sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .7;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 46%, transparent 60%);
  transform: translateX(var(--sheen, 0%));
}
.swatch .num {
  position: absolute; left: 20px; top: 18px; font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(255, 255, 255, .86);
  letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.swatch .verb {
  position: absolute; right: 16px; top: 14px; height: 26px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: rgba(10, 11, 13, .34); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
}
.swatch .caption { position: absolute; left: 22px; right: 80px; bottom: 22px; }
.swatch .name { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.02em; color: #fbf8f2; }
.swatch .tag { margin-top: 8px; font-size: 13px; line-height: 1.38; color: rgba(243, 239, 231, .7); letter-spacing: .005em; }
.swatch .go {
  position: absolute; right: 18px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #16130f; background: linear-gradient(145deg, #f6ecd9, var(--gold) 60%, #b89a72);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .5s var(--ease-glide), opacity .5s;
}
.swatch:not(.focused) .go { transform: scale(.7); opacity: 0; }

.stage-arrow {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -34px; border-radius: 50%; display: none; place-items: center;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line); cursor: pointer;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: opacity .3s, transform .25s var(--ease-spring), background .3s;
}
.stage-arrow:hover { background: rgba(40, 41, 46, .7); }
.stage-arrow:active { transform: scale(.92); }
.stage-arrow[disabled] { opacity: 0; pointer-events: none; }
.stage-arrow.prev { left: max(24px, calc(50% - var(--card-w) / 2 - 92px)); }
.stage-arrow.next { right: max(24px, calc(50% - var(--card-w) / 2 - 92px)); }
@media (hover: hover) and (pointer: fine) { .stage-arrow { display: grid; } }

/* ---- Index: named tabs under the stage ----------------------------- */
.index { flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 2px; }
.index .tabs { display: flex; gap: 4px; }
.index button {
  height: 34px; padding: 0 12px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3);
  transition: color .4s ease, background .3s;
}
.index button:hover { color: var(--ink-2); }
.index button.active { color: var(--ink); }
.index .rail { position: relative; width: 132px; height: 1px; background: var(--line); overflow: hidden; }
.index .rail i { position: absolute; left: 0; top: 0; height: 1px; width: 25%; background: var(--gold); transform: translateX(0); will-change: transform; }

.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;
}
.noscript { margin-top: 24px; max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.noscript ul { margin: 12px 0; padding-left: 1.2em; }
.noscript li { margin: 6px 0; }
.noscript strong { color: var(--ink); }

#home-foot { flex: none; margin-top: clamp(14px, 2.6vh, 26px); text-align: center; }
#home-foot p.sig {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 9px;
  font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--ink-2);
}
#home-foot .sig em { background-position: 0 0; }
#home-foot .sig .rule { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
#home-foot .sig .rule:last-child { background: linear-gradient(270deg, transparent, var(--gold-2)); }
#home-foot p { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); }
#home-foot i { font-style: normal; margin: 0 .5em; color: var(--gold-2); }

/* ---- Toy layer ----------------------------------------------------- */
#toy-layer { position: absolute; inset: 0; background: var(--bg); z-index: 20; will-change: transform; }
#toy-layer.out { transition: transform .3s cubic-bezier(.4, 0, .6, 1); transform: translate3d(100%, 0, 0); }
#toy-layer.dragging { transition: none; box-shadow: -24px 0 60px rgba(0, 0, 0, .55); }
.toy-root { position: absolute; inset: 0; overflow: hidden; }

/* ---- In-toy menu button -------------------------------------------- */
#nav-btn {
  position: absolute; z-index: 40; left: calc(var(--safe-left) + 14px); top: calc(var(--safe-top) + 10px);
  height: 44px; min-width: 44px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 0;
  color: #f7f3ec; cursor: pointer; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(16, 17, 20, .5);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0; transform: translate3d(0, -6px, 0) scale(.9);
  transition: opacity .45s ease, transform .5s var(--ease-glide), gap .5s var(--ease-glide), background .3s;
}
#nav-btn.show { opacity: 1; transform: none; }
#nav-btn:active { transform: scale(.92); transition-duration: .15s; }
#nav-btn.tucked { opacity: 0; transform: scale(.85); pointer-events: none; }
#nav-btn svg { flex: none; }
#nav-btn .label { display: grid; grid-template-columns: 0fr; overflow: hidden; transition: grid-template-columns .55s var(--ease-glide), opacity .4s; opacity: 0; }
#nav-btn .label > span { min-width: 0; white-space: nowrap; font-family: var(--serif); font-size: 16px; letter-spacing: .01em; padding-right: 3px; }
#nav-btn.announce { gap: 10px; padding-right: 16px; }
#nav-btn.announce .label { grid-template-columns: 1fr; opacity: 1; }
/* Toys with their own top-left chrome step aside for the button. */
#toy-layer { --nav-reserve: 60px; }

/* ---- Switcher ------------------------------------------------------ */
#switcher { position: absolute; inset: 0; z-index: 60; }
#switcher .scrim {
  position: absolute; inset: 0; background: rgba(4, 5, 6, .46);
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  opacity: 0; transition: opacity .45s ease;
}
#switcher .sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  padding: 8px calc(var(--safe-right) + 20px) calc(var(--safe-bottom) + 20px) calc(var(--safe-left) + 20px);
  border-radius: 32px 32px 0 0; color: var(--ink);
  background: linear-gradient(180deg, rgba(28, 29, 33, .9), rgba(14, 15, 18, .94));
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(216, 192, 154, .24);
  transform: translate3d(0, 104%, 0); transition: transform .55s var(--ease-glide);
  /* Short screens (landscape phones) scroll the sheet rather than lose its top. */
  max-height: calc(100% - var(--safe-top) - 8px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
#switcher.open .scrim { opacity: 1; }
#switcher.open .sheet { transform: none; }
#switcher .grabber { width: 38px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 2px auto 14px; cursor: pointer; }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-head h2 { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
#switcher-now { color: var(--ink-2); }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none;
  color: var(--ink-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  transition: transform .25s var(--ease-spring), color .3s;
}
.round-btn:active { transform: scale(.9); }

.switcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* An odd one out spans the row instead of leaving a hole. */
.switcher-grid .sw-card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2.6 / 1; }
.sw-card {
  position: relative; aspect-ratio: 1 / .92; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left;
  background: var(--sw-color, #121317); color: #fbf8f2;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .9);
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .5s ease, transform .6s var(--ease-glide);
  transition-delay: calc(var(--i, 0) * 45ms + 80ms);
}
#switcher.open .sw-card { opacity: 1; transform: none; }
#switcher.open .sw-card:active { transform: scale(.97); transition-delay: 0s; transition-duration: .18s; }
.sw-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sw-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6, 7, 8, .85), rgba(6, 7, 8, 0) 58%);
}
.sw-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.sw-card.current::after { box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .2); }
.sw-card .sw-name { position: absolute; z-index: 3; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; }
.sw-card .sw-now {
  position: absolute; z-index: 3; right: 10px; top: 10px; height: 22px; padding: 0 9px; border-radius: 999px; display: none; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #16130f; background: var(--gold);
}
.sw-card.current .sw-now { display: inline-flex; }

.sheet-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.home-btn {
  flex: 1; height: 50px; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #16130f;
  background: linear-gradient(180deg, #faf6ee, #e9e1d2);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .8), inset 0 1px 0 #fff;
  transition: transform .25s var(--ease-spring);
}
.home-btn:active { transform: scale(.97); }
.sheet-foot .controls { height: 50px; background: rgba(255, 255, 255, .05); box-shadow: none; }
.sheet-foot .ctl { height: 44px; width: 44px; }

/* ---- Larger screens ------------------------------------------------ */
@media (min-width: 720px) {
  :root { --gutter: 44px; --card-w: min(34vw, 360px); }
  #home-head, .intro, #home-foot { width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto; }
  .intro { margin-top: clamp(24px, 6vh, 64px); }
  .swatches { gap: 22px; }
}
/* Wide screens: the whole shelf at once, no carousel. Cards share the row (--cards is set by home.js). */
@media (min-width: 1100px) {
  :root { --card-w: min(calc((100vw - 2 * var(--gutter) - (var(--cards, 4) - 1) * 26px) / var(--cards, 4)), 300px); }
  .swatches { justify-content: center; scroll-snap-type: none; padding: 10px var(--gutter) 30px; gap: 26px; }
  .swatches.shelf .swatch { transition: transform .6s var(--ease-glide), opacity .6s ease; }
  .stage-arrow { display: none !important; }
}
/* Narrow phones: six names still fit on one line. */
@media (max-width: 380px) {
  .index button { padding: 0 8px; }
}
@media (max-height: 700px) {
  .intro h1 { font-size: clamp(32px, 9.5vw, 44px); }
  .intro { margin-top: 12px; }
  #home-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #home, #toy-layer.out, .swatch .tile, #nav-btn, #nav-btn .label, #switcher .sheet, #switcher .scrim, .sw-card { transition-duration: .01s !important; transition-delay: 0s !important; }
  .reveal { animation: none; }
  .brand .word em { animation: none; background-position: 0 0; }
}
