@font-face {
  font-family: "Uch Sans";
  src: url("assets/inter-variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --black: #090909;
  --white: #f8f8f5;
  --paper: #f1f1ed;
  --red: #ff2b18;
  --line: #111;
  --pad: clamp(16px, 1.35vw, 24px);
  --header-h: 72px;
  color: var(--black);
  background: var(--white);
  font-family: "Uch Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.3;
}

body,
button,
a {
  cursor: default;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
}

a[href],
button:not(:disabled) {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: var(--white);
  border: 1px solid var(--black);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  border-bottom-color: rgba(255, 255, 255, .46);
  background: transparent;
  color: #fff;
}

.header-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 42px);
}

.header-group--end {
  justify-content: flex-end;
}

.header-group a,
.dialog-close,
.tile-meta button,
.tile-meta a,
.cart-link,
.text-action,
.remove-line {
  position: relative;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.header-group a::after,
.text-action::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.header-group a:hover::after,
.header-group a:focus-visible::after,
.header-group a[aria-current="page"]::after,
.text-action:hover::after,
.text-action:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-mark {
  display: block;
  width: 38px;
  height: 38px;
  transition: transform 450ms cubic-bezier(.2, .8, .2, 1);
}

.header-mark:hover,
.header-mark:focus-visible {
  transform: rotate(90deg);
}

.header-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 11px;
  line-height: 1;
}

/* Landing */
.hero-stack {
  background: var(--black);
}

.hero-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #151515;
  color: #fff;
  isolation: isolate;
}

.hero-panel::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 35%, rgba(0, 0, 0, .28));
  content: "";
  pointer-events: none;
}

.hero-panel > img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), filter 700ms ease;
}

.hero-panel:hover > img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1);
}

.hero-panel--911t > img {
  object-position: center 54%;
}

.hero-panel--bmw-e30 > img {
  object-position: center 58%;
}

.hero-word {
  position: absolute;
  z-index: 2;
  top: 47%;
  right: -.025em;
  left: -.025em;
  margin: 0;
  font-size: clamp(64px, 17.5vw, 340px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .72;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%) scaleX(.93);
  transform-origin: center;
  transition: letter-spacing 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.hero-panel:hover .hero-word {
  letter-spacing: -.075em;
  transform: translateY(-50%) scaleX(.96);
}

.hero-word--red {
  color: var(--red);
}

.hero-word--white {
  color: #fff;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: 18px;
  left: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.hero-enter {
  position: absolute;
  z-index: 4;
  top: calc(50% + clamp(70px, 9vw, 160px));
  left: 50%;
  display: inline-grid;
  place-items: center;
  min-width: 196px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, .12);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  transition: background 260ms ease, color 260ms ease;
}

.hero-enter:hover,
.hero-enter:focus-visible {
  background: #fff;
  color: var(--black);
}

/* Landing collection preview */
.collection-preview {
  background: var(--white);
  color: var(--black);
  border-bottom: 1px solid var(--line);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.preview-header h2,
.preview-header a {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.preview-header a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
  position: relative;
  min-width: 0;
  min-height: max(560px, 72svh);
  border-right: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
}

.preview-card:last-child {
  border-right: 0;
}

.preview-card:focus-visible {
  outline-offset: -2px;
}

.preview-image {
  position: absolute;
  inset: clamp(52px, 5vw, 92px) clamp(20px, 2.7vw, 50px) clamp(94px, 8vw, 130px);
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 850ms cubic-bezier(.16, 1, .3, 1);
}

.preview-card:hover .preview-image img,
.preview-card:focus-visible .preview-image img {
  transform: translateY(-8px) scale(1.015);
}

.preview-meta {
  position: absolute;
  right: var(--pad);
  bottom: 20px;
  left: var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.preview-price,
.preview-category {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 620;
}

.preview-name {
  display: block;
  font-size: 17px;
  font-weight: 790;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.noscript-note {
  padding: 100px var(--pad);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
}

/* Shared page title */
.page-word {
  overflow: hidden;
  min-height: clamp(150px, 21vw, 410px);
  padding: clamp(22px, 3vw, 56px) 0 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(72px, 20vw, 388px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .76;
  text-align: center;
  white-space: nowrap;
  transform: scaleX(.94);
  transform-origin: center;
}

/* Explore */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.grid-tile {
  position: relative;
  min-width: 0;
  min-height: max(620px, 78svh);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.grid-tile:nth-child(3n) {
  border-right: 0;
}

.tile-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1), filter 500ms ease;
}

.grid-tile:hover .tile-image img {
  transform: scale(1.018);
}

.product-tile .tile-image {
  inset: clamp(54px, 6vw, 110px) clamp(22px, 2.6vw, 48px) clamp(95px, 8vw, 130px);
}

.product-tile .tile-image img {
  object-fit: contain;
}

.product-tile:hover .tile-image img {
  transform: translateY(-8px) scale(1.015);
}

.editorial-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, .58));
  content: "";
  pointer-events: none;
}

.editorial-tile--red {
  background: var(--red);
}

.tile-meta {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 19px;
  left: var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tile-meta p {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 610;
}

.tile-meta h2 {
  max-width: 28ch;
  font-size: 17px;
  font-weight: 790;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.tile-meta button,
.tile-meta a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.editorial-tile .tile-meta {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 800ms cubic-bezier(.16, 1, .3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quick add */
.quick-add {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity 230ms ease, transform 340ms cubic-bezier(.16, 1, .3, 1), display 230ms allow-discrete, overlay 230ms allow-discrete;
}

.quick-add[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .quick-add[open] {
    opacity: 0;
    transform: translateY(20px) scale(.985);
  }
}

.quick-add::backdrop {
  background: rgba(0, 0, 0, .52);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 230ms ease, display 230ms allow-discrete, overlay 230ms allow-discrete;
}

.quick-add[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .quick-add[open]::backdrop {
    opacity: 0;
  }
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid;
}

.quick-product {
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 260px;
  border-bottom: 1px solid var(--line);
}

.quick-product > img {
  width: 100%;
  height: 100%;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  object-fit: contain;
}

.quick-product > div {
  align-self: end;
  padding: 24px;
}

.micro-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-product h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: .95;
}

.quick-product h2 + p {
  font-size: 14px;
  font-weight: 650;
}

.size-choices {
  margin: 0;
  padding: 22px 24px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.size-choices legend {
  padding: 22px 0 0;
  font-size: 14px;
  font-weight: 750;
}

.size-choices > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.size-choices button {
  min-height: 52px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 740;
  transition: background 180ms ease, color 180ms ease;
}

.size-choices button:hover,
.size-choices button:focus-visible {
  background: var(--black);
  color: #fff;
}

.dialog-note {
  padding: 17px 24px 19px;
  font-size: 12px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 15px 18px;
  border: 1px solid #fff;
  background: var(--black);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.16, 1, .3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  min-height: calc(100svh - var(--header-h) - clamp(150px, 21vw, 410px));
}

.cart-items {
  border-right: 1px solid var(--line);
}

.cart-item {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 290px) minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 54px);
  align-items: center;
  min-height: 290px;
  padding: var(--pad);
  border-bottom: 1px solid var(--line);
}

.cart-item > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.cart-item-copy h2 {
  max-width: 20ch;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 830;
  letter-spacing: -.06em;
  line-height: .95;
}

.cart-item-copy > p:not(.micro-label) {
  font-size: 14px;
  font-weight: 600;
}

.cart-item > strong {
  align-self: start;
  padding-top: 5px;
  font-size: 14px;
}

.quantity {
  display: grid;
  grid-template-columns: 38px 40px 38px;
  width: max-content;
  margin: 22px 0 14px;
  border: 1px solid var(--line);
}

.quantity button,
.quantity span {
  display: grid;
  place-items: center;
  min-height: 38px;
  font-size: 16px;
}

.quantity span {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 680;
}

.quantity button:hover,
.quantity button:focus-visible {
  background: var(--black);
  color: #fff;
}

.remove-line {
  padding-bottom: 2px;
  border-bottom: 1px solid;
  font-size: 12px;
}

.cart-summary {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 460px;
  padding: clamp(24px, 3.4vw, 62px) var(--pad);
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cart-summary > div span:last-child {
  text-align: right;
}

.order-button {
  width: 100%;
  min-height: 56px;
  margin: 28px 0 13px;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  font-size: 14px;
  font-weight: 770;
  transition: background 220ms ease, color 220ms ease;
}

.order-button:hover,
.order-button:focus-visible {
  background: var(--red);
  color: var(--black);
}

.cart-summary > p:last-child {
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.45;
}

.empty-cart {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 54svh;
  padding: clamp(40px, 6vw, 100px) var(--pad);
}

.empty-cart h2 {
  margin-bottom: 24px;
  font-size: clamp(42px, 8vw, 128px);
  font-weight: 860;
  letter-spacing: -.075em;
  line-height: .88;
}

/* Credits */
.credits-copy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.credits-copy > div,
.credit-note {
  min-height: 230px;
  padding: clamp(24px, 3.4vw, 60px) var(--pad);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credits-copy > div:nth-child(2n) {
  border-right: 0;
}

.credits-copy h2 {
  max-width: 22ch;
  margin-bottom: 26px;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 820;
  letter-spacing: -.06em;
  line-height: .95;
}

.credits-copy p {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.55;
}

.credits-copy p a {
  border-bottom: 1px solid;
}

.credit-note {
  grid-column: 1 / -1;
  min-height: auto;
  border: 0;
}

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

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

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

  .grid-tile:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .grid-tile:nth-child(2n) {
    border-right: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 0;
  }

  .cart-items {
    border-right: 0;
  }

  .cart-summary {
    position: relative;
    min-height: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 14px;
    --header-h: 60px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-mark {
    position: absolute;
    left: 50%;
    width: 31px;
    height: 31px;
    transform: translateX(-50%);
  }

  .header-mark:hover,
  .header-mark:focus-visible {
    transform: translateX(-50%) rotate(90deg);
  }

  .header-group {
    gap: 15px;
  }

  .header-group a {
    font-size: 12px;
  }

  .header-group a:first-child {
    display: none;
  }

  .cart-link span {
    min-width: 17px;
    height: 17px;
    margin-left: 2px;
    font-size: 9px;
  }

  .hero-word {
    top: 48%;
    font-size: 22vw;
    letter-spacing: -.095em;
  }

  .hero-caption {
    align-items: flex-end;
    font-size: 12px;
  }

  .hero-caption span:last-child {
    max-width: 17ch;
    text-align: right;
  }

  .hero-panel--911t > img {
    object-position: 56% center;
  }

  .hero-panel--bmw-e30 > img {
    object-position: 48% center;
  }

  .hero-enter {
    top: calc(50% + 65px);
    min-width: 176px;
  }

  .preview-header {
    min-height: 60px;
  }

  .preview-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84vw;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .preview-grid::-webkit-scrollbar {
    display: none;
  }

  .preview-card {
    min-height: 66svh;
    scroll-snap-align: start;
  }

  .page-word {
    min-height: 118px;
    padding-top: 27px;
    font-size: 20vw;
    line-height: .83;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .grid-tile,
  .grid-tile:nth-child(3n),
  .grid-tile:nth-child(2n) {
    min-height: 72svh;
    border-right: 0;
  }

  .tile-meta h2 {
    font-size: 16px;
  }

  .quick-product {
    grid-template-columns: 42% 1fr;
  }

  .quick-product > div {
    padding: 20px 16px;
  }

  .quick-product h2 {
    font-size: 24px;
  }

  .cart-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    min-height: 230px;
    padding: 20px var(--pad);
  }

  .cart-item > strong {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
  }

  .cart-item-copy h2 {
    font-size: 26px;
  }

  .credits-copy {
    grid-template-columns: 1fr;
  }

  .credits-copy > div,
  .credits-copy > div:nth-child(2n) {
    min-height: 210px;
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
