/* fonts, served from this site (Latin and Latin Extended subsets of Google Fonts, both variable) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Halflight — shared styles
   Palette pulled from the footage: smoke-filled night court → sunlit brick court
   ========================================================================== */

:root {
  --night: #1E252B;      /* smoke slate */
  --smoke: #34414B;
  --haze: #A9B6BF;       /* lit smoke */
  --chalk: #EEF0F2;      /* court line */
  --brick: #D9A08E;      /* sunlit wall */
  --brick-deep: #B9776A;
  --sky: #A7CBE8;
  --leather: #C4542A;    /* the ball, in shadow */
  --orange: #EE6A2F;     /* the ball, in light: carries dark text only (5.2:1 on umber) */
  --umber: #2B1D18;      /* daylight ink */

  --display: "Big Shoulders Display", "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --bar: 0px;
}
/* phones: pinned scenes fill the screen with the toolbars hidden, so no page shows beneath them;
   --bar is the toolbar's height, used to keep bottom-anchored copy above it */
@supports (height: 1lvh) {
  :root { --bar: calc(100lvh - 100svh); }
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--orange) var(--night); }
::selection { background: var(--orange); color: var(--umber); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* Safari ignores scrollbar-color; give it the same orange-on-slate scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 5px; border: 2px solid var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; /* Firefox on macOS draws text heavier without this */
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}

/* split-text helpers: each word sits in a mask so it can rise into place */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.w > span { display: inline-block; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--chalk);
  transition: color .4s var(--ease-out);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* over light or orange sections the header switches to dark ink */
.site-header[data-theme="light"] { color: var(--umber); }
.site-header[data-theme="light"] .cart-count { background: var(--umber); color: var(--orange); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand-mark { width: 22px; height: 22px; }
.brand-mark path { fill: var(--orange); }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.nav a, .nav button {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--umber);
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Page transition: half light. Night slides down over the left half, the ball's
   orange rises over the right, and the next page's name is split down the seam.
   -------------------------------------------------------------------------- */
.pt {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh; height: 100lvh;
  z-index: 100;
  pointer-events: none;
}
.pt-half {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.1%;
  overflow: hidden;
  will-change: transform;
}
.pt-l { left: 0; background: var(--night); transform: translateY(-101%); }
.pt-r { right: 0; background: var(--orange); transform: translateY(101%); }
/* a thin edge on each half, so the night half still reads when it slides over a dark page */
.pt-l { box-shadow: inset 0 3px 0 var(--orange), inset 0 -3px 0 var(--orange); }
.pt-r { box-shadow: inset 0 3px 0 var(--night), inset 0 -3px 0 var(--night); }
/* each half holds a full-screen copy of the word, so the two copies line up across the seam */
.pt-inner {
  position: absolute;
  top: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
}
.pt-l .pt-inner { left: 0; }
.pt-r .pt-inner { right: 0; }
.pt-word {
  display: block;
  overflow: hidden;
  padding: .04em .02em 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(88px, 21vw, 340px);
  line-height: .86;
  text-transform: uppercase;
  white-space: nowrap;
}
.pt-word .pt-ch { display: inline-block; will-change: transform; }
.pt-l .pt-word { color: var(--chalk); }
.pt-r .pt-word { color: var(--umber); }
.pt-line {
  display: block;
  width: min(560px, 56vw);
  height: 4px;
  border-radius: 2px;
  transform: scaleX(0);
}
.pt-l .pt-line { background: var(--orange); }
.pt-r .pt-line { background: var(--umber); }
html.is-entering .pt-half { transform: none; }
html.is-entering .pt-line { transform: none; }
html.is-entering .pt { pointer-events: auto; }

/* --------------------------------------------------------------------------
   Video defaults
   -------------------------------------------------------------------------- */
.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 56px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 14px;
  color: var(--haze);
  background: var(--night);
}
.site-footer .brand { color: var(--chalk); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--orange); }

/* portfolio credit: the concept disclaimer and the ELIS2code mark, its cursor blinking like a terminal */
.footer-credit {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 240, 242, .12);
}
.concept-note { max-width: 62ch; margin: 0; font-size: 13px; line-height: 1.5; }
.concept-note strong { color: var(--chalk); font-weight: 600; }
.made-by { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
.e2c {
  --e2c-ink: #ECEAF2;
  display: inline-flex;
  align-items: baseline;
  padding: 8px 14px 9px;
  border-radius: 8px;
  background: #302C52;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--e2c-ink);
}
.e2c-eli, .e2c-s2 { font-weight: 800; }
.e2c-s2 { color: #E8455F; }
.e2c-code { font-weight: 300; letter-spacing: 0; }
.e2c-cursor {
  display: inline-block;
  width: .55em;
  height: .1em;
  margin-left: .12em;
  background: currentColor;
  animation: e2c-blink 1.06s steps(1) infinite;
}
@keyframes e2c-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .e2c-cursor { animation: none; } }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* intro: court lines draw, then open onto the hero */
.intro {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh; height: 100lvh;
  z-index: 80;
  background: var(--night);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro svg { width: min(78vw, 560px); height: auto; overflow: visible; }
.intro path, .intro circle, .intro line {
  fill: none; stroke: var(--orange); stroke-width: 2.5;
  /* the lines draw from the first paint, before any script has arrived */
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: intro-draw 1s cubic-bezier(.65, 0, .35, 1) forwards;
}
.intro :nth-child(2) { animation-delay: .08s; }
/* if the scripts are still on their way, the centre keeps breathing instead of sitting still */
.intro :nth-child(3) { animation-delay: .16s; animation: intro-draw 1s cubic-bezier(.65, 0, .35, 1) .16s forwards, intro-dot .3s 1s forwards, intro-pulse .7s 1.3s ease-in-out infinite alternate; }
.intro :nth-child(4) { animation-delay: .24s; }
.intro :nth-child(5) { animation-delay: .32s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-dot { to { fill: #C4542A; stroke: #C4542A; } }
@keyframes intro-pulse { to { opacity: .45; } }
.intro-hint {
  position: absolute;
  bottom: 40px;
  font-size: 14px;
  color: var(--haze);
}
html.skip-intro .intro { display: none; }

/* hero */
.hero { position: relative; }
.hero-stage {
  position: relative;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  background: #000;
}
.hero-stage video { transform: scale(1.15); }
.hero-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-mask text {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.hero-outline { fill: none; stroke: var(--orange); stroke-width: 2.5px; }
.hero-sub {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(28px, 6vh, 64px) + var(--bar));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  color: var(--haze);
  font-size: 15px;
}
.hero-sub p { margin: 0; max-width: 30ch; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--haze) 50%, transparent 50%);
  background-size: 1px 200%;
  animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,37,43,0) 30%, rgba(30,37,43,.85) 100%);
  opacity: 0;
}
.hero-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(40px, 10vh, 110px) + var(--bar));
}
.hero-line h1 { font-size: clamp(54px, 9.4vw, 168px); max-width: 11ch; }
.hero-line p { margin: 28px 0 0; max-width: 44ch; color: var(--chalk); opacity: .86; font-size: clamp(16px, 1.3vw, 19px); }

/* night: an orange screen, as if you're inside the ball, then a clip breaks out of it */
.night { position: relative; background: var(--night); }
.night-stage { position: relative; height: 100vh; height: 100lvh; overflow: hidden; }
.statement {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  background: var(--orange);
  color: var(--umber);
  overflow: hidden;
}
.statement-seams {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: .22;
  pointer-events: none;
}
.statement-text {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: min(14vw, 24vh, 260px);
  line-height: .84;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.statement-text .st-line { display: block; }
.pill {
  display: inline-block;
  position: relative;
  width: 1.9em;
  height: .72em;
  margin-left: .08em;
  vertical-align: .02em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--night) url(../media/n-spin.jpg) 50% 50% / cover;
}
/* once the clip is laid over it, the slot itself stays empty */
.night.is-live .pill { visibility: hidden; }
.statement-note {
  position: relative;
  margin: clamp(28px, 5vh, 56px) 0 0;
  max-width: 44ch;
  text-align: center;
  font-size: clamp(15px, 1.2vw, 18px);
}

/* the wall: nine clips from the night court */
.wall {
  z-index: 2;
  --tw: 30vw; --th: 18vw; --gap: 10px;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, var(--tw));
  grid-template-rows: repeat(3, var(--th));
  gap: var(--gap);
  place-content: center;
  transform-origin: 50% 50%;
  visibility: hidden;
}
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: var(--smoke); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); }
.tile figcaption {
  position: absolute;
  left: 14px; bottom: 10px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(18px, 3.4vw, 64px);
  line-height: .9;
  text-transform: uppercase;
  color: var(--orange);
}
.tile-center { background: transparent; z-index: 1; box-shadow: inset 0 0 0 3px rgba(238, 106, 47, var(--ring, 0)); }
.wall-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
  visibility: hidden;
}
.night.is-live .wall-layer { visibility: visible; }
/* the layer box is stretched to the pill's shape; the clip inside is stretched back so it never distorts */
.wall-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.wall-layer::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); }
/* shadowed headlines stay invisible until revealed, or their shadows leak past the word masks */
.wall-copy, .swish-copy h2, .day-reveal-copy { visibility: hidden; }
.reduced .wall-copy { visibility: visible; }
.wall-copy {
  z-index: 3;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.wall-copy h3 {
  font-size: clamp(34px, min(4.4vw, 7.4vh), 92px);
  max-width: 11ch;
  text-align: center;
  color: var(--chalk);
  text-shadow: 0 4px 60px rgba(20,25,29,.6);
}

/* the street: three scenes dealt like a deck of cards */
.street {
  --ball: min(40vw, 40vh, 440px);
  --ball-y: 40%;
  position: relative;
  background: var(--night);
}
.street-stage {
  position: relative;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #2A333B, var(--night) 70%);
  perspective: 1600px;
}
.deck-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-backface-visibility: hidden; /* keeps Safari clipping the video to the rounded card while it turns */
  backface-visibility: hidden;
}
/* an orange edge shows while a scene is a card in the deck */
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 2px solid var(--orange);
  border-radius: inherit;
  opacity: var(--edge, 0);
  pointer-events: none;
}
.card-night { position: absolute; inset: 0; background: var(--night); opacity: .95; }
/* the aerial court is bright concrete: shade the side the headline sits on */
.card-a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30,37,43,.55) 0, rgba(30,37,43,0) 140px),
    linear-gradient(270deg, rgba(30,37,43,.72) 0%, rgba(30,37,43,.45) 38%, rgba(30,37,43,0) 68%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .card-a::before { background: linear-gradient(0deg, rgba(30,37,43,.78) 0%, rgba(30,37,43,.4) 50%, rgba(30,37,43,.1) 100%); }
}
.swish-copy, .day-reveal-copy { z-index: 3; }
.street .closer-light { z-index: 1; }
.street .closer-ball { z-index: 2; }
.street .closer-copy { z-index: 3; }

.day-reveal-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(36px, 9vh, 100px) + var(--bar));
  color: #fff;
}
.day-reveal-copy h2 { font-size: clamp(48px, 7.4vw, 132px); max-width: 12ch; text-shadow: 0 2px 40px rgba(43,29,24,.35); }
.swish-copy {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(36px, 10vh, 110px) + var(--bar));
  max-width: 600px;
  color: #fff;
  text-align: right;
}
.swish-copy h2 { font-size: clamp(54px, 8vw, 150px); text-shadow: 0 2px 40px rgba(30,37,43,.35); }
.swish-copy p { margin: 22px 0 0 auto; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); text-shadow: 0 1px 18px rgba(30,37,43,.6); }

/* closer: one ball under one light (the last phase of the day section) */
.closer-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 34% 60% at 50% 0%, rgba(245,135,79,.22), rgba(245,135,79,0) 70%),
    radial-gradient(ellipse 30% 9% at 50% 62%, rgba(238,106,47,.16), rgba(238,106,47,0) 70%);
  pointer-events: none;
}
.closer-ball {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--ball-y) - var(--ball) / 2);
  margin: 0;
  width: var(--ball);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closer-drop { width: 100%; will-change: transform; }
.closer-hop { position: relative; }
.closer-hop::before {
  content: "";
  position: absolute;
  inset: calc(4% + 30px) -4% -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.closer-img {
  display: block;
  position: relative;
  width: 100%;
  animation: closer-turn 40s linear infinite;
  -webkit-user-select: none;
  user-select: none;
}
@keyframes closer-turn { to { transform: rotate(360deg); } }
.closer-shadow {
  display: block;
  width: 70%;
  height: 26px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.closer-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(clamp(36px, 8vh, 96px) + var(--bar)); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.closer-copy p { margin: 0; color: var(--haze); font-size: 15px; }

/* SHOP ONLINE: a ball-leather fill spreads from where the pointer enters, the label rolls over */
.shop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(72px, 9vh, 96px);
  padding: 0 clamp(40px, 5vw, 72px);
  border: 2px solid var(--chalk);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 3vw, 46px);
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: border-color .5s var(--ease-out), color .5s var(--ease-out);
}
.shop-btn-fill {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  z-index: -1;
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #F5874F, var(--orange) 45%, #C9521F);
  transform: translate(-50%, -50%) scale(0) rotate(-40deg);
  transition: transform .7s var(--ease-out);
}
.shop-btn:focus-visible .shop-btn-fill { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.shop-btn:focus-visible { border-color: var(--orange); color: var(--umber); }
@media (hover: hover) {
  .shop-btn:hover .shop-btn-fill { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  .shop-btn:hover { border-color: var(--orange); color: var(--umber); }
}
.shop-btn-text { position: relative; display: block; overflow: hidden; line-height: 1.05; }
.shop-btn-text > span, .shop-btn-text::after { display: block; transition: transform .55s var(--ease-out); }
.shop-btn-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  transform: translateY(105%);
}
.shop-btn:focus-visible .shop-btn-text > span { transform: translateY(-105%); }
.shop-btn:focus-visible .shop-btn-text::after { transform: translateY(0); }
@media (hover: hover) {
  .shop-btn:hover .shop-btn-text > span { transform: translateY(-105%); }
  .shop-btn:hover .shop-btn-text::after { transform: translateY(0); }
}

/* ==========================================================================
   STORE PAGE
   ========================================================================== */
body.store { background: var(--chalk); color: var(--umber); }

.store-hero {
  position: relative;
  height: 92vh; height: 92svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--orange);
}
.store-hero .frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 0;
  transition: border-radius .5s var(--ease-out);
}
.store-hero .frame.is-card { border-radius: 13px; }
.store-hero .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,29,24,.25), rgba(43,29,24,0) 30%, rgba(43,29,24,.55));
}
.store-title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 5vh, 56px);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
}
.store-title h1 { font-size: clamp(110px, 21vw, 360px); line-height: .78; }
.store-title h1 .ch { display: inline-block; }
.store-title p { margin: 0; max-width: 34ch; font-size: 16px; }

.shelf-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 76px var(--gutter) 16px;
  background: linear-gradient(var(--chalk) 82%, rgba(238,240,242,0));
}
.filters {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  border-radius: 999px;
  background: #E1E4E7;
}
.filters::-webkit-scrollbar { display: none; }
.filters a {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color .3s;
}
.filters a[aria-current] { color: var(--umber); }
.filter-pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  border-radius: 999px;
  background: var(--orange);
  z-index: 0;
}
.shelf-note { margin: 0; font-size: 14px; color: #6A605C; white-space: nowrap; }

/* the floor: every product stands on the court line, drawn at its real size next to the others */
.floors {
  --u: clamp(3.4px, .42vw, 6.4px); /* screen pixels per real centimetre, the same for every product */
  --slot: clamp(14px, 2.2vw, 36px);
  padding: 0 var(--gutter) clamp(80px, 14vh, 160px);
}
.floor { padding-top: clamp(48px, 9vh, 110px); scroll-margin-top: 90px; } /* a #floor link lands below the sticky category bar */
.floor-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 10px 32px;
  margin-bottom: clamp(24px, 5vh, 56px);
}
.floor-head h2 { font-size: clamp(72px, 11vw, 184px); line-height: .8; }
.floor-head p { margin: 0 0 .4em; max-width: 34ch; color: #4F4643; font-size: 15px; }
/* a map-style scale bar: 10 real centimetres at the floor's scale */
.scale { display: inline-flex; align-items: center; gap: 10px; margin-bottom: .5em; font-size: 13px; color: #6A605C; white-space: nowrap; }
.scale i { width: calc(10 * var(--u)); height: 8px; border: 2px solid currentColor; border-top: 0; }
/* js/store.js sets --per so the rows come out even (7 balls are 4 + 3, not 6 + 1).
   Each item spans two subgrid rows, so every stretch of line in a row sits at the same height */
.floor-row {
  display: grid;
  grid-template-columns: repeat(var(--per, 4), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.item, .item-gap, .item-btn { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
.item-btn { text-align: left; border-radius: 4px; }
.item-stand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--slot) 8px;
  border-bottom: 3px solid var(--orange);
}
.item-art { position: relative; z-index: 1; display: block; width: calc(var(--cm) * var(--u)); }
.item-art .product-img {
  width: 100%;
  max-height: none;
  filter: drop-shadow(0 6px 10px rgba(20, 14, 10, .18));
  /* its own layer: the blurred shadow is drawn once, and the lift and the entrance only move it */
  will-change: transform;
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease-out);
}
.item-shadow {
  position: absolute;
  left: calc(var(--slot) + var(--cm) * var(--u) * .1);
  bottom: 4px;
  width: calc(var(--cm) * var(--u) * .8);
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 29, 24, .35), rgba(43, 29, 24, 0));
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
/* the name wraps to the item's own width instead of pushing the row apart */
.item-meta { display: flex; flex-direction: column; gap: 6px; padding: 14px var(--slot) clamp(40px, 7vh, 72px); }
.item-name {
  width: 0;
  min-width: 100%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 1.5vw, 25px);
  line-height: 1;
  text-transform: uppercase;
}
.item-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.item-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.item-tag { font-size: 13px; color: #6A605C; }
/* keyboard focus lifts a product a little off the line */
.item-btn:focus-visible .product-img { transform: translateY(-7%); }
.item-btn:focus-visible .item-shadow { transform: scaleX(.8); opacity: .6; }

/* quick view art */
.card-art {
  position: absolute;
  inset: 12% 12% 16%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-float {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.product-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(20, 14, 10, .35));
  transition: transform .9s var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}
.card-art[data-shape="ball"] .product-img { max-width: 82%; max-height: 82%; }
.card-shadow {
  position: absolute;
  left: 22%; right: 22%;
  bottom: -9%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 8, 6, .45), rgba(10, 8, 6, 0));
}
/* ball seams spin */

/* quick view */
.qv {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.qv.is-open { display: block; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(43,29,24,.5); }
.qv-panel {
  position: absolute;
  inset: clamp(0px, 4vh, 48px) clamp(0px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--chalk);
  border-radius: 8px;
  overflow: hidden;
}
.qv-media { position: relative; background: var(--tile, var(--night)); overflow: hidden; }
.qv-media .card-art { inset: 14%; }
.qv-info {
  padding: clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px) 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.qv-info h2 { font-size: clamp(44px, min(6vw, 9vh), 104px); }
.qv-info .price { font-size: 22px; font-weight: 700; margin: 18px 0 0; }
.qv-info .desc { max-width: 44ch; margin: 22px 0 0; color: #4F4643; }
.qv-info .specs { margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; color: #4F4643; }
.qv-info .specs li { padding: 10px 0; border-top: 1px solid #D5D2CF; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; border: 0; padding: 0; }
.sizes legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span {
  display: inline-grid;
  place-items: center;
  min-width: 52px; height: 44px;
  padding: 0 12px;
  border: 1.5px solid #C7C2BF;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sizes input:checked + span { background: var(--orange); color: var(--umber); border-color: var(--orange); }
.sizes input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.qv-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: auto;
  padding: 28px 0 calc(clamp(20px, 3.5vw, 48px) + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(238,240,242,0), var(--chalk) 28px);
}
.qv-note { margin: 12px 0 0; font-size: 13px; color: #5E6670; }
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--umber);
  font-weight: 700;
  transition: color .4s var(--ease-out);
  font-size: 16px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--umber);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { color: #fff; }
}
.qv-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--umber);
  display: grid;
  place-items: center;
}

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(30,37,43,.55); opacity: 0; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--night);
  color: var(--chalk);
  display: flex;
  flex-direction: column;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; }
.drawer-head h2 { font-size: 44px; }
.drawer-head-actions { display: flex; align-items: center; gap: 18px; }
.drawer-clear, .drawer-undo { font-size: 14px; color: var(--haze); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.drawer-empty-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.drawer-empty .drawer-undo { color: var(--orange); font-size: inherit; padding: 0; }
.drawer-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 28px; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--smoke);
}
.line-art { width: 76px; height: 76px; border-radius: 6px; background: var(--tile, var(--smoke)); padding: 10px; }
.line-art .product-img { width: 100%; height: 100%; filter: none; }
.line h3 { margin: 0; font-size: 16px; font-weight: 600; }
.line p { margin: 2px 0 0; font-size: 14px; color: var(--haze); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--smoke); }
@media (hover: hover) {
  .qty button:hover, .drawer-clear:hover { border-color: var(--orange); color: var(--orange); }
}
.qty output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-empty { padding: 40px 28px; color: var(--haze); }
.drawer-empty p { margin: 0 0 18px; }
.drawer-empty button { text-decoration: underline; text-underline-offset: 4px; color: var(--chalk); }
.drawer-foot { padding: 22px 28px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--smoke); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--haze); font-size: 15px; }
.drawer-foot .row.total { color: var(--orange); font-size: 20px; font-weight: 700; margin: 10px 0 18px; }
.drawer-note { margin: 14px 0 0; font-size: 13px; color: var(--haze); text-align: center; min-height: 1.4em; }

/* the ball that flies into the cart */
.flyer {
  position: fixed;
  left: 0; top: 0;
  z-index: 95;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  pointer-events: none;
}
.flyer .product-img { width: 100%; height: 100%; }

/* Safari lets videos and transformed children spill past rounded corners
   when the parent is animated; a mask forces the clip */
.pill, .tile, .shop-btn, .line-art, .wall-layer, .store-hero .frame {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .swish-copy { left: var(--gutter); text-align: left; }
  .swish-copy p { margin-left: 0; }
  .qv-panel { grid-template-columns: 1fr; grid-template-rows: 36vh minmax(0, 1fr); grid-template-rows: 36svh minmax(0, 1fr); inset: 0; border-radius: 0; }
  .qv-media .card-art { inset: 12% 16% 16%; }
  .qv-info { padding: 24px var(--gutter) 0; }
  .qv-info .price { margin-top: 12px; }
  .qv-info .desc { margin-top: 14px; font-size: 16px; }
  .qv-info .specs { margin-top: 14px; }
  .qv-info .specs li { padding: 8px 0; }
  .sizes { margin-top: 18px; }
  .qv-actions { padding-top: 20px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hero-sub .scroll-cue { display: none; }
  .shelf-bar { padding-top: 68px; }
  .shelf-note { display: none; }
}
@media (max-width: 600px) {
  .floor-head { grid-template-columns: 1fr auto; }
  .floor-head h2 { grid-column: 1 / -1; }
  /* the ball on the dark court gets bigger on a tall, narrow screen */
  .street { --ball: min(64vw, 34vh); }
}
@media (max-width: 520px) {
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .nav { gap: 18px; }
  /* 44px-tall tap targets */
  .nav a, .nav button { padding: 12px 0; }
  .nav a::after { bottom: 6px; }
  .brand { font-size: 22px; }
  .filters a { padding: 9px 14px; font-size: 14px; }
  .shelf-bar { padding-top: 72px; }
}
@media (max-width: 380px) {
  .nav { gap: 14px; }
  .brand { font-size: 20px; gap: 8px; }
  .filters a { padding: 9px 11px; }
}

/* ==========================================================================
   Reduced motion: keep it legible and still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* reduced motion: the night section lays out as a plain sentence and grid */
.reduced .night-stage { height: auto; overflow: visible; }
.reduced .statement { position: relative; padding: 120px var(--gutter) 60px; }
.reduced .wall { position: relative; visibility: visible; padding-bottom: 40px; }
.reduced .wall-layer { display: none; }
.reduced .wall-copy { position: relative; padding: 40px var(--gutter) 120px; }
.reduced .tile { --dim: .4; }

/* scroll progress: a thin orange line along the top of every page */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* orange details ------------------------------------------------------- */

/* a short court line that draws under key headlines */
.court-line {
  display: block;
  width: min(220px, 40%);
  height: 4px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--orange);
  transform-origin: 0 50%;
}
.swish-copy .court-line { margin-left: auto; transform-origin: 100% 50%; }

.scroll-cue i { background: linear-gradient(var(--orange) 50%, transparent 50%); background-size: 1px 200%; width: 2px; }

/* the ball sits on a center circle */
.closer-court {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 150%;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}
.closer-court ellipse { fill: none; stroke: var(--orange); stroke-width: 2.5; }
.closer-shadow { position: relative; z-index: 1; }
.closer-drop { position: relative; z-index: 2; }

/* store: prices sit on an orange stroke */
.item-price, .qv-info .price { align-self: flex-start; line-height: 1.25; background: linear-gradient(transparent 60%, rgba(238, 106, 47, .55) 60%); padding: 0 3px; }
.qv-info .price { display: inline-block; align-self: flex-start; }
.drawer-head h2 { color: var(--orange); }
@media (hover: hover) { .qv-close:hover { background: var(--orange); } }
.store-title .court-line { width: min(260px, 30%); margin-top: 18px; }
