/*
 * Miami Vendr storefront
 *
 * A showroom after dark: true black, a chrome sign, glass controls that float
 * over everything, and every piece on its own rounded card with space around
 * it. The only colour on the site comes from the clothes.
 */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #fff;
  --silver: #cdcdd3;
  --steel: #9d9da6;
  --smoke: #74747d;
  --rim: rgba(255, 255, 255, 0.16);
  --rim-soft: rgba(255, 255, 255, 0.09);
  --glass-light: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  --glass-dark: rgba(14, 14, 16, 0.74);
  --glass-blur: blur(22px) saturate(170%);
  --pad: 12px;
  --gap: 10px;
  --r-card: 18px;
  --font: "Mona Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --spring: cubic-bezier(0.3, 1.45, 0.4, 1);
  color-scheme: dark;
}

@media (min-width: 640px) {
  :root {
    --pad: 20px;
    --gap: 14px;
  }
}

@media (min-width: 900px) {
  :root {
    --pad: 32px;
    --gap: 18px;
    --r-card: 22px;
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #000;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: 86px; /* room for the floating category bar on phones */
  color: var(--ink);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

img {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -90px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 22px;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 10px;
}

/* Soft light from above plus film grain, fixed behind everything. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 46% at 50% -6%, rgba(255, 255, 255, 0.17), transparent 70%),
    radial-gradient(50% 30% at 100% 38%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(50% 30% at 0% 72%, rgba(255, 255, 255, 0.04), transparent 70%),
    #000;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* ---------- glass controls ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 26px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #dfdfe5 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 34px -10px rgba(255, 255, 255, 0.42);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn.is-glass {
  border: 1px solid var(--rim);
  background: var(--glass-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  font-weight: 600;
}

.btn.is-glass::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
}

.btn.is-small {
  min-height: 40px;
  padding: 6px 17px;
  font-size: 14px;
  white-space: nowrap;
}

.orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--glass-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--spring), border-color 0.2s, opacity 0.2s;
}

.orb.is-small {
  width: 40px;
  height: 40px;
}

.orb:active:not(:disabled) {
  transform: scale(0.9);
}

.orb:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #fff, 0 18px 44px -10px rgba(255, 255, 255, 0.55);
  }

  .btn:hover::after {
    transform: translateX(120%);
    transition: transform 0.7s var(--ease);
  }

  .btn.is-glass:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .orb:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.06);
  }
}

/* ---------- navigation ---------- */

.nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 0;
}

.nav-mark {
  font-size: 15px;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #9b9ba4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-ig {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--glass-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-ig.is-empty {
  visibility: hidden;
}

/* On phones the categories float at the bottom of the screen like an app's tab bar. */
.nav-cats {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-scroll {
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--glass-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 44px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  pointer-events: auto;
}

.nav-scroll::-webkit-scrollbar,
.seg::-webkit-scrollbar,
.rail::-webkit-scrollbar,
.viewer-track::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--silver);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background-color 0.25s;
}

.nav-link[aria-current="page"] {
  background: #fff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.28);
  color: #000;
}

.page-home .nav-mark {
  visibility: hidden; /* the big sign right below already says it */
}

/* Home page with no Instagram link yet: nothing in the top row, so close it up. */
.page-home .nav:has(.nav-ig.is-empty) {
  min-height: 18px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  main {
    padding-top: 84px;
  }

  .nav {
    position: fixed;
    top: 14px;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 40px);
    min-height: 0;
    gap: 18px;
    padding: 6px 6px 6px 22px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: var(--glass-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 50px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }

  .page-home .nav-mark {
    visibility: visible;
  }

  .nav-cats {
    position: static;
    min-width: 0;
    pointer-events: auto;
  }

  .nav-scroll {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-link {
    height: 40px;
    padding: 0 16px;
  }

  .nav-link:hover:not([aria-current="page"]) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .nav-ig {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-ig:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .nav-ig.is-empty {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px var(--pad) 0;
  overflow: hidden;
  text-align: center;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--glass-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 600;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: pulse 2.2s ease-out infinite;
}

.live span {
  padding-left: 10px;
  border-left: 1px solid var(--rim);
  color: var(--steel);
  font-weight: 500;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75), 0 0 10px #fff; }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0), 0 0 10px #fff; }
}

/* The sign: wide, heavy, polished chrome with a light that sweeps across it. */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: 19.5vw;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 0 34px rgba(255, 255, 255, 0.2));
}

.wm-line {
  position: relative;
  display: block;
  padding: 0.035em 0.04em 0.02em;
  letter-spacing: -0.045em; /* set here, not on the parent, so it scales with each line's own size */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f6f6f8 26%,
    #c2c2ca 43%,
    #7b7b85 48.5%,
    #18181b 50.5%,
    #2c2c31 52%,
    #cfcfd6 56.5%,
    #fafafb 68%,
    #dcdce2 84%,
    #9b9ba5 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wm-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  background: linear-gradient(108deg, transparent 42%, #fff 50%, transparent 58%) no-repeat;
  background-size: 260% 100%;
  background-position: 140% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.js .wordmark {
  visibility: hidden;
}

.js .wordmark.is-fit {
  visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .js .wordmark.is-fit .wm-line {
    animation: sign-in 1s var(--ease) both;
  }

  .js .wordmark.is-fit .wm-line + .wm-line {
    animation-delay: 0.09s;
  }

  .wm-line::after {
    animation: sweep 7s var(--ease) 1.3s infinite;
  }

  .wm-line + .wm-line::after {
    animation-delay: 1.45s;
  }

  .js .live,
  .js .hero-line,
  .js .ring-stage,
  .js .ring-hint {
    animation: rise 0.9s var(--ease) 0.25s both;
  }

  .js .ring-stage {
    animation-delay: 0.4s;
  }
}

@keyframes sign-in {
  from { opacity: 0; transform: translateY(0.22em) scale(0.96); filter: blur(14px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes sweep {
  0% { background-position: 140% 0; }
  26%, 100% { background-position: -140% 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-line {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 16px;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 22px;
  }

  .live {
    margin-bottom: 26px;
  }

  .wordmark {
    flex-direction: row;
    gap: 0.22em;
    font-size: 11.6vw;
  }

  .hero-line {
    max-width: none;
    margin-top: 22px;
    font-size: 18px;
  }
}

/* ---------- the spinning showcase ---------- */

.ring-stage {
  --card-w: clamp(150px, 45vw, 200px);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(var(--card-w) * 1.25 + 84px);
  margin-top: 6px;
  perspective: 1200px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.ring-stage.is-dragging {
  cursor: grabbing;
}

.ring-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: min(88%, 760px);
  height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.ring {
  position: relative;
  width: var(--card-w);
  aspect-ratio: 4 / 5;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.ring-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg, #131315);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.ring-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
}

.ring-hint {
  margin: 4px 0 0;
  color: var(--smoke);
  font-size: 12.5px;
  font-weight: 500;
}

.for-mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .for-touch {
    display: none;
  }

  .for-mouse {
    display: inline;
  }
}

/* Without scripts the showcase is a plain scrolling row. */
html:not(.js) .ring-stage {
  display: block;
  height: auto;
  perspective: none;
  overflow-x: auto;
}

html:not(.js) .ring {
  display: flex;
  gap: var(--gap);
  width: max-content;
  aspect-ratio: auto;
}

html:not(.js) .ring-card {
  position: relative;
  flex: none;
  width: var(--card-w);
  aspect-ratio: 4 / 5;
}

@media (min-width: 900px) {
  .ring-stage {
    --card-w: clamp(200px, 17vw, 250px);
    height: calc(var(--card-w) * 1.25 + 120px);
    margin-top: 14px;
    perspective: 1700px;
  }

  .ring-card {
    border-radius: 24px;
  }
}

/* ---------- product cards ---------- */

/* A card is the photo with the live stock count in its corner, then a bar
   with the sizes the piece comes in and a button. */
.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-card);
  background: #0c0c0e;
  box-shadow: 0 24px 44px -28px #000;
  color: #fff;
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.4s var(--ease),
    scale 0.3s var(--ease),
    opacity 0.7s var(--ease) calc(var(--d, 0) * 55ms),
    translate 0.7s var(--ease) calc(var(--d, 0) * 55ms);
}

.card.is-tilting {
  transition:
    transform 0.1s linear,
    box-shadow 0.4s var(--ease),
    scale 0.3s var(--ease);
}

/* A hairline of light around the edge, so dark photos still read as a card. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

/* The light follows the pointer: the card dims slightly away from it. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(
    120% 120% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.16) 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.22) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.card-shot {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg, #131315);
}

/* A little shade where the photo meets the bar, like light falling off a wall. */
.card-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(0, 0, 0, 0.09) 100%);
  pointer-events: none;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.8s var(--ease);
}

.card-img.is-contain {
  object-fit: contain;
}

.card-img.is-cover {
  object-fit: cover;
}

/* "Fill the card" chosen for a studio shot: move in closer. */
.card-img.is-zoom {
  scale: 1.22;
}

/* A whole photo that is wider or taller than its card: centre it and feather
   its outer edge into the card colour, so the join never shows. */
.card-img.is-wide {
  inset: auto 0;
  top: 50%;
  height: auto;
  translate: 0 -50%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.card-img.is-tall {
  inset: 0 auto;
  left: 50%;
  width: auto;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.card:active {
  scale: 0.97;
}

.card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Live stock count in the corner of the photo. */
.card-stock {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  color: var(--silver);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.card-stock b {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.card-stock.is-out {
  padding: 0 10px;
  color: var(--silver);
  font-weight: 600;
}

/* The blinking white dot that says "this is here right now". */
.card-stock i,
.cat-meta i {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 2px;
}

.card-stock i::before,
.card-stock i::after,
.cat-meta i::before,
.cat-meta i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
}

.card-stock i::before,
.cat-meta i::before {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: blink 1.5s ease-in-out infinite;
}

.card-stock i::after,
.cat-meta i::after {
  animation: blink-ring 1.5s ease-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes blink-ring {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.7); opacity: 0; }
}

/* The bar under the photo: sizes on the left, a button on the right. */
.card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 auto;
  min-height: 46px;
  padding: 8px 8px 8px 12px;
  background: linear-gradient(180deg, #18181b, #0c0c0e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-sizes {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  padding-right: 14px;
  overflow: hidden;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  /* a long run of sizes fades out instead of being cut off */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
}

.card-sizes i {
  flex: none;
  font-style: normal;
}

.card-sizes i.is-out {
  color: var(--smoke);
  text-decoration: line-through;
}

.card-sizes.is-words {
  color: var(--silver);
  font-weight: 600;
}

.card-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #d6d6dc);
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -6px rgba(255, 255, 255, 0.55);
  color: #000;
  transition: transform 0.4s var(--spring);
}

.card.is-out .card-img {
  opacity: 0.35;
}

.card.is-out .card-go {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--steel);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 34px 70px -24px rgba(255, 255, 255, 0.2);
  }

  .card:hover .card-img {
    transform: scale(1.06);
  }

  .card:hover::after {
    opacity: 1;
  }

  .card:hover .card-go {
    transform: translate(2px, -2px) scale(1.08);
  }
}

@media (min-width: 900px) {
  .card-stock {
    left: 10px;
    top: 10px;
    height: 28px;
    padding: 0 12px 0 11px;
    font-size: 12px;
  }

  .card-stock b {
    font-size: 13px;
  }

  .card-bar {
    min-height: 52px;
    padding: 9px 10px 9px 15px;
  }

  .card-sizes {
    gap: 12px;
    font-size: 13.5px;
  }

  .card-go {
    width: 34px;
    height: 34px;
  }
}

/* "See every piece" card at the end of a row */
.card-more {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 16px;
  border: 1px solid var(--rim);
  background: var(--glass-light);
  color: var(--silver);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.card-more b {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 58px;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.card-more::before,
.card-more::after {
  display: none;
}

/* Cards ease into place the first time they scroll into view. */
.js .reveal:not(.is-in) {
  opacity: 0;
  translate: 0 26px;
  animation: reveal-anyway 0.01s 4s forwards; /* safety net if scripts never run */
}

@keyframes reveal-anyway {
  to { opacity: 1; translate: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1760px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- home shelves ---------- */

.shelf {
  padding-top: 44px;
}

.shelf-head,
.group-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 12px;
}

.shelf-head {
  margin: 0 var(--pad) 8px;
}

/* The rail the pieces hang from: a hairline, brightest under the name. */
.shelf-head::after,
.group-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.07));
}

.shelf-title,
.group-title {
  min-width: 0;
  margin: 0;
  font-size: 25px;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Same polished chrome as the sign at the top. */
.shelf-title a,
.group-title a {
  background: linear-gradient(180deg, #fff 28%, #9c9ca6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}

/* How many pieces, set small beside the name. */
.shelf-title sup,
.group-title sup {
  position: relative;
  top: 0.15em;
  margin-left: 7px;
  color: var(--steel);
  font-size: 12px;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: top;
}

.see-all {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  min-height: 40px;
  margin: -12px 0 -11px auto;
  color: var(--silver);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.see-all svg {
  width: 12px;
  height: 12px;
}

.shelf-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.shelf-tools .orb {
  display: none;
}

.rail {
  display: flex;
  gap: var(--gap);
  margin-bottom: -26px;
  padding: 6px 0 32px var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::after {
  content: "";
  flex: 0 0 calc(var(--pad) - var(--gap));
}

.rail .card {
  flex: 0 0 clamp(180px, 58vw, 250px);
  scroll-snap-align: start;
}

.rail.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.rail.is-dragging .card {
  pointer-events: none;
}

@media (min-width: 900px) {
  .shelf-tools .orb {
    display: grid;
  }

  .shelf-tools.is-static .orb {
    display: none;
  }

  .shelf {
    padding-top: 70px;
  }

  .shelf-head {
    margin-bottom: 14px;
    padding-bottom: 16px;
  }

  .shelf-title {
    font-size: 38px;
  }

  .shelf-title sup,
  .group-title sup {
    font-size: 14px;
  }

  .see-all {
    font-size: 15px;
  }

  .see-all:hover {
    color: #fff;
  }

  .rail .card {
    flex-basis: clamp(230px, 19vw, 290px);
  }
}

/* ---------- category page ---------- */

.cat-head {
  padding: 22px var(--pad) 20px;
}

.cat-crumb {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 14.5px;
  font-weight: 500;
}

.cat-crumb a {
  text-decoration: none;
}

.cat-crumb a:hover {
  color: #fff;
}

.cat-title {
  margin: 0;
  padding-bottom: 0.06em;
  font-size: clamp(40px, 12.5vw, 150px);
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff 35%, #8f8f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  color: var(--silver);
  font-size: 15px;
  font-weight: 500;
}

.cat-meta i {
  width: 7px;
  height: 7px;
}

.seg-wrap {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 30;
  display: flex;
  margin-bottom: 16px;
  padding: 0 var(--pad);
  pointer-events: none;
}

.seg {
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--glass-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 36px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  pointer-events: auto;
}

.seg-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s, color 0.2s;
}

.seg-item span {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.6;
}

.seg-item[aria-current="page"] {
  background: #fff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.28);
  color: #000;
}

.wall {
  padding: 0 var(--pad);
}

.group + .group {
  margin-top: 46px;
}

.group-head {
  margin-bottom: 14px;
}

.group-title {
  font-size: 21px;
}

@media (min-width: 900px) {
  .cat-head {
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .seg-wrap {
    top: 78px;
    margin-bottom: 22px;
  }

  .seg-item:hover:not([aria-current="page"]) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .group + .group {
    margin-top: 64px;
  }

  .group-title {
    font-size: 28px;
  }
}

/* ---------- empty and not-found ---------- */

.empty {
  max-width: 44ch;
  padding: 60px var(--pad) 40px;
}

.empty p {
  margin: 0 0 24px;
  color: var(--steel);
  font-size: 17px;
}

.empty .empty-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 36px;
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* ---------- footer ---------- */

.foot {
  margin-top: 96px;
  padding: 0 var(--pad) calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.foot-mark {
  margin: 0;
  font-size: 13.4vw;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.34);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 96%);
  -webkit-user-select: none;
  user-select: none;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 10px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.foot-note {
  margin: 0;
  color: var(--smoke);
  font-size: 13.5px;
}

/* ---------- piece viewer ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}

.viewer-backdrop {
  position: fixed;
  inset: 0;
  background: #000;
}

.viewer-shell {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  isolation: isolate;
}

.viewer-shell {
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.viewer-shell.is-pulled {
  transition: none; /* follows the finger while a piece is being swiped away */
}

.viewer-side {
  display: contents; /* on phones the sheet and the button bar sit straight in the column */
}

/* The piece's own colours, blurred into a glow behind everything. */
.viewer-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.viewer-ambient::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: var(--amb, none) center / cover no-repeat;
  filter: blur(54px) saturate(1.9) brightness(0.6);
  opacity: 0.85;
  transform: translateZ(0);
}

.viewer-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.82) 100%);
}

/* On phones the photo takes whatever height is left once the size panel and
   the button are on screen, so nothing important is ever below the fold. */
.viewer-media {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  min-height: 230px;
  max-height: calc((100vw - 20px) * 1.25);
  overflow: hidden;
  isolation: isolate;
  border-radius: 26px;
  background: #121214;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px -30px #000;
}

.viewer-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.viewer-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--bg, transparent);
}

/* A regular photo gets a soft, blurred copy of itself behind it, so a photo of
   any shape fills the frame without hard bars. */
.viewer-slide.is-photo::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: var(--fill, none) center / cover no-repeat;
  filter: blur(26px) brightness(0.8);
}

.viewer-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

/* Size the photo to its own shape (not the frame's), which lets a studio shot
   feather into its background colour with no visible join. */
@supports (width: 1cqw) {
  .viewer-slide {
    container-type: size;
  }

  .viewer-slide img.is-shaped {
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(100cqw, calc(100cqh * var(--ar)));
    height: auto;
    aspect-ratio: var(--ar);
    translate: -50% -50%;
    object-fit: fill;
  }

  .viewer-slide.is-flat img.is-shaped {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

.viewer-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  pointer-events: none;
}

.viewer-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
  transition: opacity 0.2s, width 0.3s var(--ease);
}

.viewer-dots i.is-on {
  width: 16px;
  border-radius: 3px;
  opacity: 1;
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  margin-top: -22px;
}

.viewer-arrow.is-prev { left: 10px; }
.viewer-arrow.is-next { right: 10px; }

.viewer-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.viewer-close {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 20px;
  z-index: 3;
}

.viewer-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
}

.viewer-cta {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.viewer-path {
  margin: 0;
  color: var(--silver);
  font-size: 14.5px;
  font-weight: 500;
}

.viewer-path a {
  text-decoration: none;
}

.viewer-path a:hover {
  color: #fff;
}

.viewer-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -4px 0 0;
  font-size: 50px;
  font-stretch: 118%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.viewer-words {
  color: var(--silver);
  font-size: 0.4em;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.viewer-count.is-plain {
  font-size: 34px;
  letter-spacing: -0.04em;
}

/* One bar segment per size, as wide as that size's share of the stock. */
.meter {
  display: flex;
  gap: 4px;
  height: 6px;
}

.meter i {
  flex: var(--q, 1) 1 0;
  min-width: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.meter.has-pick i {
  opacity: 0.45;
}

.meter i.is-empty {
  background: rgba(255, 255, 255, 0.1);
}

.meter.has-pick i.is-on {
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size {
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--spring),
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.3s var(--ease);
}

.size:active {
  transform: scale(0.9);
}

.size[aria-pressed="true"] {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 12px 32px -6px rgba(255, 255, 255, 0.6);
  color: #000;
  transform: scale(1.05);
}

.size.is-out {
  border-style: dashed;
  background: none;
  box-shadow: none;
  color: var(--smoke);
  text-decoration: line-through;
}

.size.is-out[aria-pressed="true"] {
  border-color: var(--steel);
  background: rgba(255, 255, 255, 0.14);
  color: var(--silver);
}

@media (hover: hover) and (pointer: fine) {
  .size:hover:not([aria-pressed="true"]) {
    border-color: rgba(255, 255, 255, 0.6);
  }
}

.viewer-hint {
  min-height: 1.45em;
  margin: -2px 0 0;
  color: var(--silver);
  font-size: 15px;
}

.viewer-foot {
  margin: 0;
  color: var(--steel);
  font-size: 13.5px;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .viewer.is-opening .viewer-sheet {
    animation: sheet-in 0.6s var(--ease) both;
  }

  .viewer.is-opening.is-plain-open .viewer-media {
    animation: media-in 0.5s var(--ease) both;
  }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes media-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .viewer {
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
  }

  .viewer-backdrop {
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(26px);
    backdrop-filter: blur(26px);
  }

  .viewer-shell {
    flex: 0 1 auto;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: min(1120px, 100%);
    height: min(720px, 100%);
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 38px;
    background: rgba(12, 12, 14, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 60px 160px -40px #000;
  }

  .viewer-ambient {
    border-radius: inherit;
  }

  .viewer-media {
    flex: 1 1 56%;
    align-self: stretch;
    width: auto;
    min-height: 0;
    max-height: none;
  }

  .viewer-side {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 30px 30px 30px 44px;
    overflow-y: auto;
  }

  .viewer-sheet {
    gap: 20px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .viewer-cta {
    position: static;
    margin-top: 0;
  }

  .viewer-count {
    font-size: 64px;
  }

  .viewer-close {
    top: 26px;
    right: 26px;
  }
}

/* The tapped card grows into the viewer (browsers that support view transitions). */
::view-transition-group(piece) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 0.9, 0.24, 1);
}

::view-transition-old(piece),
::view-transition-new(piece) {
  height: 100%;
  object-fit: cover;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
}

/* ---------- contact menu ---------- */

.reach {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  outline: none;
}

.reach-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: reach-fade 0.25s ease both;
}

.reach-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 26px 16px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1b1b1e, #0d0d0f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 -30px 80px rgba(0, 0, 0, 0.7);
  animation: reach-up 0.42s var(--ease) both;
}

.reach-title {
  margin: 0 8px;
  font-size: 30px;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 28%, #9c9ca6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.reach-note {
  margin: 10px 8px 18px;
  color: var(--silver);
  font-size: 14.5px;
  line-height: 1.4;
}

.reach-list {
  display: grid;
  gap: 8px;
}

.reach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--spring), border-color 0.2s, background-color 0.2s;
}

.reach-item:active {
  transform: scale(0.97);
}

.reach-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #d6d6dc);
  color: #000;
}

.reach-words {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.reach-words b {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.reach-words span {
  overflow: hidden;
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reach-go {
  flex: none;
  color: var(--silver);
}

.reach-close {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--silver);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@keyframes reach-fade {
  from { opacity: 0; }
}

@keyframes reach-up {
  from { transform: translateY(40px); opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .reach-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.06);
  }

  .reach-close:hover {
    color: #fff;
  }
}

@media (min-width: 640px) {
  .reach {
    align-items: center;
    padding: 24px;
  }

  .reach-sheet {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
