/* ═══════════════════════════════════════════════════════════════════════
   Venermori — single page site
   1. Tokens & base
   2. The galaxy (background for the whole document)
   3. Stage 1: the intro overlay
   4. The HUD bar
   5. Stage 2: the storefront
   6. Cart & toast
   7. Responsive
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens & base ─────────────────────────────────────────────────── */
:root {
  --bone:        #f6f4ef;
  --ink:         #0b0b0d;

  /* Everything sits on the galaxy now, so the working palette is the dark
     one: bone at a few strengths, plus the cosmic blue for accents. */
  --dim:         rgba(246, 244, 239, .62);
  --faint:       rgba(246, 244, 239, .38);
  --hair:        rgba(246, 244, 239, .16);
  --panel:       rgba(6, 8, 18, .72);
  --cosmic:      #3f56c8;
  --cosmic-lift: #5b71e6;
  --void:        #04050b;

  --hud-h: 64px;

  --shell: min(1240px, 100% - 10vw);
  /* The banner runs much wider than the rows — it is the one full-bleed thing
     on the page, and the contrast is what sells the pull-back. */
  --banner-w: min(2200px, 100% - 3vw);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;

  /* Length of the intro scroll. Overridden for reduced-motion users. */
  --intro-len: 300vh;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The page is driven by scroll position and the cue is the affordance for it;
   a native scrollbar beside it reads as a second, competing one. Hidden in both
   engines. The page still scrolls by wheel, trackpad, key, touch and anchor —
   only the bar is gone. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: var(--cosmic); color: var(--bone); }
.btn--primary:hover { background: var(--cosmic-lift); }
.btn--ghost {
  width: 100%;
  background: transparent;
  color: var(--bone);
  border-color: var(--hair);
  text-align: center;
}
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Says so for a moment after you press it, rather than leaving the toast to do
   all the work — the button you are looking at is where you expect the answer.
   Tinted toward the light the card just threw, so the two read as one event. */
.btn--ghost.is-added,
.btn--ghost.is-added:hover {
  background: rgba(122, 138, 246, .16);
  border-color: rgba(150, 164, 255, .75);
  color: var(--bone);
}
/* Drawn, not typed: a glyph would come from whichever font happened to load. */
.btn__tick {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin: 0 0 1px 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;   /* whole pixels, or it renders hairline-thin */
  transform: rotate(45deg);
  transform-origin: center;
  animation: tick .32s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes tick {
  from { opacity: 0; transform: rotate(45deg) scale(.4); }
  to   { opacity: 1; transform: rotate(45deg) scale(1); }
}
/* How many of them are in the cart, not how many times you have pressed — if
   you empty the cart and start again the button counts from one again. */
.btn__times {
  margin-left: 9px;
  opacity: .78;
}
.btn--block { width: 100%; }

/* Nothing in the storefront animates itself into view on scroll. The rows used
   to slide up as you reached them, which cut across the pull-back: the page is
   already arriving as one piece, and a second entrance on top of it read as a
   different thing happening. They are simply there, like the banner. */


/* ── 2. The galaxy ────────────────────────────────────────────────────────
   Fixed and behind everything, for the whole document rather than just the
   intro — it is the storefront's background too, so it is never faded out and
   never scrolled past. It lives outside .intro-stage precisely so that stage's
   overflow and stacking cannot reach it. */
.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Static stand-in when the 3D scene cannot run */
.intro-fallback {
  position: fixed;
  top: 34%;
  left: 50%;
  z-index: 1;
  width: min(38vw, 260px);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.no-webgl .intro-fallback { opacity: 1; }
.no-webgl .space { display: none; }


/* ── 3. Stage 1: the intro overlay ────────────────────────────────────── */
.intro-track {
  position: relative;
  z-index: 1;
  height: var(--intro-len);
}

.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  /* The whole stage is a shortcut: a click anywhere runs the scroll for you.
     It is only reachable while the intro is on screen, since the track ends
     with it. */
  cursor: pointer;
}

/* The entry goes at the bottom, so the scroll cue takes the top. They cannot
   share an end: the mark is fitted to a fixed share of the viewport height and
   centred, which leaves a band above and a band below — enough for one of them
   each, and anything that spills out of a band is white artwork on a white
   mark. */
.intro-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4vh 6vw 3vh;
  text-align: center;
  color: var(--bone);
  pointer-events: none;
}

/* The brand name as a dictionary entry — flat artwork, so it can be scaled but
   not re-set. The vh term is the one that usually binds: the mark takes most of
   the viewport height, so what is left below it is a shallow band, and the
   entry is 3:1 — height is what runs out, not width. */
.entry {
  width: min(460px, 42vw, 52vh);
  height: auto;
}

/* A button, not a label — the same shortcut the stage offers, but focusable.
   Its parent switches pointer events off, so it has to switch them back on. */
.intro-cue {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.intro-cue:focus-visible {
  outline: 1px solid rgba(246, 244, 239, .55);
  outline-offset: 10px;
}
.intro-cue__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;          /* the trailing letter-space, put back */
  text-transform: uppercase;
  color: rgba(246, 244, 239, .62);
}
.intro-cue__line {
  display: block;
  width: 1px;
  height: 80px;
  margin: 18px auto 0;
  background: linear-gradient(rgba(246,244,239,.85), rgba(246,244,239,0));
  transform-origin: top;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.3); opacity: .3; }
  50%      { transform: scaleY(1);  opacity: 1; }
}


/* ── 4. The HUD bar ───────────────────────────────────────────────────────
   Only the links live here. The black bar itself is a plane in the 3D scene,
   which is what lets the docked wordmark sit ON it — see js/space-scene.js.
   So this element has no background of its own, and only fades in once the bar
   has fallen. */
/* The bar itself is a plane in the 3D scene, on the canvas, and the canvas is
   the page's background — so without this the storefront scrolls straight over
   it. This is the top of that canvas copied one layer up: the same pixels, so
   there is nothing to keep in sync and no second thing to draw. Under .hud, so
   the links and the home button stay clickable above it. */
.hud-strip {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--hud-h);
  z-index: 39;
  display: none;
  pointer-events: none;
}

.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--hud-h);
  padding: 0 5vw;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.hud.is-visible { opacity: 1; pointer-events: auto; }

/* Without WebGL there is no scene to draw the bar, so paint one. */
.no-webgl .hud { background: #05060a; border-bottom: 1px solid var(--hair); }

/* Same width the scene parks the wordmark at, on the bar's centre line. */
.hud__home {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(140px, 11vw, 200px);
  height: 100%;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  /* Sideways is ours — that is the drag that turns it. Up and down stays the
     browser's, so the page still scrolls under a thumb resting on the logo. */
  touch-action: pan-y;
  user-select: none;
}
.hud__home:active { cursor: grabbing; }
.hud__home:focus-visible {
  outline: 1px solid rgba(246, 244, 239, .55);
  outline-offset: 4px;
}

/* Out of the flex row, so adding it does not shift the links on the right.
   Absolute against .hud, which is fixed. */
.hud__back {
  position: absolute;
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s ease;
}
.hud__back:hover { opacity: 1; }
.hud__arrow {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}
.hud.is-product .hud__back { display: inline-flex; }
.hud.is-product .hud__shop { display: none; }

.hud__links { display: flex; align-items: center; gap: 30px; }
.hud__links a, .hud__cart {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease;
}
.hud__links a:hover, .hud__cart:hover { opacity: 1; }

.hud__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--cosmic);
  color: var(--bone);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}


/* ── 5. Stage 2: the storefront ───────────────────────────────────────────
   Transparent throughout — the galaxy behind it is the background.

   It is pulled up a full viewport so that the end of the intro and the top of
   the shop are the same moment: the intro stage is sticky, so at the end of
   the track it fills the screen and anything after it would otherwise begin
   below the fold. Overlapping means the banner is already on screen while the
   wordmark is still docking, which is what it needs to be for the zoom-out to
   land on it. Held out of the way until then. */
.site {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  /* A block formatting context, so the clipper's negative margin below does
     not collapse into this one. */
  display: flow-root;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.site.is-live { opacity: 1; pointer-events: auto; }

/* The storefront is scaled to several times the width of the page while it is
   opening out, and this is what keeps that off the scrollbars and out of the
   document's height. clip rather than hidden, so it never becomes a scroll
   container. It cannot sit on the scaled element itself — the clip box would
   grow along with the thing it is meant to be clipping.

   The padding is headroom. Scaling the wrapper lifts its top edge well above
   where the storefront starts, all of it empty space over the banner, and a box
   clipped exactly at the storefront's own top would shave the banner's top edge
   at some window sizes. The negative margin puts the content back where it was,
   so this costs nothing in layout: same position, same height, just a taller
   box to clip against. */
.site__clip {
  overflow: clip;
  padding-top: 100vh;
  margin-top: -100vh;
}

/* One transform for the whole storefront, so the rows and the panel arrive on
   the same pull-back the banner does instead of scrolling in underneath it.
   will-change keeps it on its own compositor layer rather than repainting the
   page at four times its size every frame. */
.site__zoom {
  transform-origin: 50% 0;
  will-change: transform;
}

/* Held while the pull-back is running — see the block that sets it in
   js/space-scene.js. Everything switched off here is something that has to
   read the galaxy behind the storefront, and the galaxy is a canvas that
   redraws every frame, so none of it survives from one frame to the next. It
   is all recomputed at whatever size the storefront currently is, which during
   the pull-back is up to three and a half times its own, and that is eleven
   times the pixels of the state it ends in. Off, the storefront is one flat
   picture the compositor can scale; on, it is a full repaint per frame.

   The class is on for the whole intro and comes off at the end, so this is
   what the page looks like only while it is in motion, at several times its
   size. What it comes to rest as is unchanged. */
.site.is-zooming .row__body,
.site.is-zooming .pdp__body,
.site.is-zooming .panel { backdrop-filter: none; }

/* The garment's light, and the lift it takes on hover. A cursor left anywhere
   over the storefront is hovering whatever flies under it, and the light is a
   blurred layer blended against the galaxy — the single most expensive thing
   on the page, lit by accident, at three times its size, halfway through the
   move. It also has no business being lit: nothing was pointed at. */
.site.is-zooming .row__media::before {
  opacity: 0;
  filter: none;
  mix-blend-mode: normal;
  transition: none;
}
.site.is-zooming .row__media:hover img { transform: none; }

/* The banner. */
.banner {
  width: var(--banner-w);
  margin: 0 auto;
  padding-top: calc(var(--hud-h) + clamp(14px, 2.2vh, 26px));
}
/* Border colour is driven from js/space-scene.js: a 1px line inside a box that
   is currently three times its own size is not a 1px line, so it is held back
   until the pull-back is nearly over. */
.banner__frame {
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
}
.banner__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* display: grid beats the browser's own rule for [hidden], so a grid that can
   be hidden has to say so itself. Same for .pdp below. */
.shop[hidden] { display: none; }

.shop {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 72px);
  display: grid;
  gap: clamp(28px, 5vh, 56px);
}

/* A product is a wide rectangle: picture on the left, everything else on the
   right. */
/* No fill of its own. The garments are cut out of their shots, so what backs
   them is the galaxy the whole page is standing on; the panel is kept for the
   text beside them, where it is doing real work. */
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 4px;
}

/* Added to the cart: a ring opens from the button and runs out across the card,
   in the same light the garment picks up on hover. Two of them, a beat apart, so
   it reads as a ripple rather than one expanding circle. js/site.js sets where
   it starts and how far it has to travel to clear the far corner; without that
   the ring would either stop short on a tall card or overshoot absurdly on a
   wide one. The card already clips, so the ring ends at its own edges. */
.row::before,
.row::after,
.pdp::before,
.pdp::after {
  content: '';
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  z-index: 3;
  width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid rgba(150, 164, 255, .95);
  /* The light the ring throws, inside and out, so it reads as something lit
     rather than a drawn circle. Both fade with the ring's own opacity. */
  box-shadow: 0 0 26px 2px rgba(122, 138, 246, .8),
              inset 0 0 26px 2px rgba(122, 138, 246, .6);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.row.is-added::before,
.pdp.is-added::before { animation: ripple 820ms cubic-bezier(.16, .8, .3, 1); }
.row.is-added::after,
.pdp.is-added::after  { animation: ripple 820ms cubic-bezier(.16, .8, .3, 1) 150ms; }

@keyframes ripple {
  0%   { width: 0; opacity: 0; border-width: 7px; }
  10%  { opacity: 1; }
  100% { width: var(--rr, 1400px); opacity: 0; border-width: 3px; }
}

.row__media {
  position: relative;
  display: block;
  /* Half again what it was. The sweats are nearly twice as tall as they are
     wide, and in the old box they came out at a third of the hoodie's width —
     height is the axis that was starving them, since the width was already at
     the shell's. The floor is not simply the old one times 1.5: under it the
     card's height came from the text beside the picture, not from this, so
     scaling this alone would have grown the box by a third and no more. */
  min-height: clamp(465px, 51vh, 510px);
  overflow: hidden;
  border-right: 1px solid var(--hair);
}
/* The light behind it, in the colour of the halo the mark carries in the intro.
   One circle, and what keeps it from reading as a drawn disc is the falloff
   rather than the shape: seven stops that shed most of their strength in the
   first third and then trail off over the rest, which is roughly how light
   actually thins with distance. A two-stop gradient has a visible edge no
   matter how soft you make it, because it thins at a constant rate all the way
   out. closest-side keeps it clear of the cell's own borders — a glow that
   meets a border stops looking like a glow and starts looking like a lit
   rectangle. */
.row__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side at 50% 50%,
    rgba(128, 144, 252, .80) 0%,
    rgba(114, 131, 248, .58) 12%,
    rgba(101, 119, 243, .39) 25%,
    rgba(90, 108, 237, .24) 40%,
    rgba(82, 100, 231, .13) 56%,
    rgba(75, 93, 225, .05) 74%,
    rgba(70, 88, 220, 0) 92%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0;
  /* Comes up promptly, goes out slowly. Light that cuts off the instant you
     look away is the thing that gives a glow away as a state change. */
  transition: opacity 1.15s cubic-bezier(.25, .6, .35, 1);
  pointer-events: none;
}
/* Pinned inside the cell rather than sized by its own picture. These two are
   very different shapes — one is wider than it is tall, the other is nearly
   twice as tall as it is wide — and letting either set its own height would
   drag the card's height along with it. contain, not cover: they are cut out,
   so cropping would slice the garment rather than trim a backdrop. */
.row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* The breathing room is padding on the picture itself, with a border box, so
     object-fit lays the garment out inside the content box. Insets alone will
     not do it: for a replaced element with auto width and height the intrinsic
     picture wins and bottom and right are simply dropped. */
  padding: 32px;
  box-sizing: border-box;
  object-fit: contain;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.row__media:hover::before { opacity: 1; transition-duration: .4s; }
.row__media:hover img { transform: scale(1.06); }

.row__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 2px;
  background: rgba(4, 5, 11, .82);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.row__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.row__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
}
.row__name a {
  color: inherit;
  text-decoration: none;
  /* Underlined only on the way in, so the resting card stays quiet. */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .4s cubic-bezier(.22, .61, .36, 1);
}
.row:hover .row__name a,
.row__name a:focus-visible { background-size: 100% 1px; }

.row__name {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.row__desc {
  max-width: 46ch;
  margin: 0;
  font-size: 14px;
  color: var(--dim);
}
.row__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 8px;
}
.row__price { margin: 0; font-size: 19px; font-weight: 400; }
.row__foot .btn { width: auto; min-width: 180px; }


/* ── Sizes ─────────────────────────────────────────────────────────────────
   Real radios under the chips: one press of an arrow key moves between them,
   the group announces itself, and the browser keeps exactly one chosen without
   being told to. The input is clipped rather than hidden, because display:none
   takes it out of the focus order along with everything else. */
.sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}
.sizes__legend {
  /* A legend is a flex item like any other here, so it needs telling not to
     take a share of the line — left to itself it stretches and pushes the
     chips off the end of the row. float does nothing in flex flow. */
  flex: none;
  width: auto;
  margin: 0 6px 0 0;
  padding: 0;
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.size { position: relative; }
.size input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.size span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.size:hover span { color: var(--bone); border-color: rgba(246, 244, 239, .38); }
.size input:checked + span {
  background: rgba(122, 138, 246, .14);
  border-color: rgba(150, 164, 255, .7);
  color: var(--bone);
}
.size input:focus-visible + span {
  outline: 1px solid rgba(246, 244, 239, .55);
  outline-offset: 3px;
}


/* ── One product, on its own route ─────────────────────────────────────────
   Same shell as the shop, so stepping into a piece and back out does not move
   the page under you. */
.pdp-view {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 44px) 0 clamp(40px, 6vh, 72px);
}

.pdp__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 3vh, 30px);
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease;
}
.pdp__back:hover { color: var(--bone); }
.pdp__arrow {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}

.pdp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 4px;
}
.pdp[hidden] { display: none; }

/* ── The gallery ───────────────────────────────────────────────────────────
   Scroll snapping does the work. No script decides which image you are on;
   the dots below only report it. */
.shots { position: relative; }
.shots__strip {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* Deliberately not scroll-behavior: smooth. That applies to every
     programmatic scroll, including the frame-by-frame scrollLeft a drag is made
     of — each one would start its own animation and the strip would lag a long
     way behind the pointer. The steps that should glide ask for it themselves,
     per call, in js/site.js. */
  overscroll-behavior-x: contain;   /* does not drag the page sideways with it */
  scrollbar-width: none;
}
.shots__strip::-webkit-scrollbar { display: none; }
/* No touch-action override: on a touch screen the browser's own panning and
   snapping are better than anything scripted, and the drag below sits out for
   touch pointers entirely. This is for the mouse, which never gets that. */
.shots__strip { cursor: grab; user-select: none; }
.shots__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Which half does what. Hints, not controls — the strip itself takes the click,
   and a second set of controls for one strip is two things to keep in step. */
.shots::before,
.shots::after {
  content: '';
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: solid rgba(246, 244, 239, .8);
  border-width: 0 0 1.5px 1.5px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.shots::before { left: 24px; transform: translateY(-50%) rotate(45deg); }
.shots::after { right: 24px; transform: translateY(-50%) rotate(-135deg); }
.shots:hover::before,
.shots:hover::after { opacity: .7; }
.shots__strip:focus-visible {
  outline: 1px solid rgba(246, 244, 239, .55);
  outline-offset: -3px;
}
.shots__shot {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: clamp(420px, 62vh, 620px);
}
.shots__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 28px;
  box-sizing: border-box;
  object-fit: contain;
  /* The strip is dragged with the pointer, so the picture must not be: a
     browser's own image drag would take the gesture the moment it started. */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.shots__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.shots__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(246, 244, 239, .28);
  transition: background-color .3s ease, transform .3s ease;
}
.shots__dot.is-on {
  background: rgba(150, 164, 255, .95);
  transform: scale(1.5);
}

.pdp__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--hair);
}
.pdp__eyebrow {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.pdp__name {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: -.01em;
}
.pdp__price { margin: -6px 0 0; font-size: 17px; }
.pdp__lede { margin: 0; max-width: 46ch; color: var(--dim); line-height: 1.75; }

.spec { margin: 6px 0 0; border-top: 1px solid var(--hair); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
}
.spec dt {
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.spec dd { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.6; }


/* The panel — everything that is not a product. */
.panel {
  width: var(--shell);
  margin: 0 auto clamp(48px, 9vh, 110px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 56px);
}
.panel__col--wide { max-width: 42ch; }
.panel__title {
  margin: 0 0 8px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300;
  letter-spacing: -.015em;
}
.panel__note { margin: 0 0 20px; font-size: 13px; color: var(--dim); }
.panel__head {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
}
.panel__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.panel__list a {
  color: var(--bone);
  font-size: 14px;
  text-decoration: none;
  opacity: .76;
  transition: opacity .2s ease;
}
.panel__list a:hover { opacity: 1; }

.signup__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
}
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: rgba(4, 5, 11, .5);
  color: var(--bone);
  font: inherit;
  font-size: 14px;
}
.signup__input::placeholder { color: var(--faint); }
.signup__input:focus {
  outline: none;
  border-color: rgba(154, 166, 255, .55);
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.panel__mark {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.panel__fine { margin: 0; font-size: 12px; color: var(--faint); }


/* ── 6. Cart & toast ──────────────────────────────────────────────────── */
.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 3, 8, .62);
  opacity: 0;
  transition: opacity .35s ease;
}
.cart-scrim.is-open { opacity: 1; }

.cart {
  position: fixed;
  top: 0; right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 26px 28px;
  background: rgba(5, 7, 16, .92);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--hair);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.cart__head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.cart__close {
  border: 0;
  background: none;
  color: var(--bone);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cart__items { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.cart__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.cart__item h3 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.cart__item p { margin: 0; font-size: 12px; color: var(--dim); }
.cart__remove {
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
}
.cart__empty { margin: 30px 0; font-size: 14px; color: var(--dim); }

.cart__foot { padding-top: 20px; border-top: 1px solid var(--hair); }
.cart__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 15px;
}
.cart__fine { margin: 12px 0 0; font-size: 11px; color: var(--faint); text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  padding: 13px 24px;
  border-radius: 2px;
  background: rgba(6, 8, 18, .94);
  border: 1px solid var(--hair);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ── 7. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --shell: min(1240px, 100% - 12vw); }
  /* The rectangles stack: picture over copy, rather than beside it. */
  .row { grid-template-columns: 1fr; }
  .row__media { border-right: 0; border-bottom: 1px solid var(--hair); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__body { border-left: 0; border-top: 1px solid var(--hair); }
  .shots__shot { min-height: clamp(360px, 52vh, 520px); }
  .row__media { min-height: clamp(330px, 60vh, 480px); }
  .panel__grid { grid-template-columns: 1fr 1fr; }
  .panel__col--wide { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 560px) {
  :root { --hud-h: 56px; }
  .hud { padding: 0 6vw; }
  /* The parked wordmark is centred and up to 200px wide, and at this width the
     links coming in from the right run straight into it. Shop moves to the far
     left, which leaves Cart alone on the right and the wordmark clear between
     them. Absolute rather than space-between on the row: on a product page Shop
     is gone and Cart would slide across to take its place. */
  .hud__shop {
    position: absolute;
    left: 6vw;
    top: 50%;
    transform: translateY(-50%);
  }
  .hud__back { left: 6vw; }
  .hud__links { gap: 18px; }
  .hud__links a, .hud__cart { font-size: 11px; letter-spacing: .12em; }
  /* The mark is fitted to the narrow width here, so it sits far enough down
     that the entry has the bottom of the screen to itself. */
  .entry { width: min(88vw, 460px, 52vh); }
  .intro-cue__line { height: 62px; }
  .banner__frame { aspect-ratio: 4 / 3; }
  .row__foot { flex-direction: column; align-items: stretch; }
  .row__foot .btn { width: 100%; }
  .panel__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Reduced motion: no spin, no drift — a short fade instead of a long flight. */
@media (prefers-reduced-motion: reduce) {
  :root { --intro-len: 160vh; }
  html { scroll-behavior: auto; }
  .intro-cue__line { animation: none; }
  .row__media img { transition: none; }
  .row__media::before { transition: none; }
  .shots::before, .shots::after { transition: none; }
  .row.is-added::before, .row.is-added::after,
  .pdp.is-added::before, .pdp.is-added::after { animation: none; }
  .btn__tick { animation: none; }
  .site { transition: none; }
}
