:root {
  --blue: #173ce8;
  --logo-blue: #006bc5;
  --black: #050505;
  --paper: #f3f1ea;
  --white: #f7f6f1;
  --hairline: 1px;
}

* { box-sizing: border-box; }
html { margin: 0; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.04;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- HOME / COVER ---------- */
html:has(body.home-page),
body.home-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--blue);
}
.home-shell,
.cover {
  width: 100%;
  height: 100vh;
  height: 100svh;
}
.cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: var(--white);
}
.cover-motion {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.cover-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.02), transparent 28%, transparent 73%, rgba(0,0,0,.10));
}
.cover-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 40.5%;
  width: min(94vw, 1500px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.cover-logo {
  width: min(80vw, 1340px);
  max-height: 40vh;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.18)) drop-shadow(0 0 7px rgba(0,0,0,.08));
  pointer-events: none;
  user-select: none;
}
.category-nav {
  width: min(96vw, 1380px);
  margin-top: clamp(10px, 1.5vh, 18px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 12px;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 400;
  letter-spacing: -.027em;
  line-height: 1.08;
  text-shadow: 0 1px 7px rgba(0,0,0,.40);
  pointer-events: auto;
}
.category-nav a {
  position: relative;
  padding-bottom: 3px;
}
.category-hand {
  flex: 0 0 auto;
  width: clamp(17px, 1.3vw, 23px);
  height: clamp(18px, 1.4vw, 25px);
  object-fit: contain;
  align-self: center;
  user-select: none;
  pointer-events: none;
}
.category-nav .category-hand {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.category-nav a::after,
.header-categories a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 145ms ease;
}
.category-nav a:hover::after,
.category-nav a:focus-visible::after,
.header-categories a:hover::after,
.header-categories a:focus-visible::after,
.header-categories a.is-active::after { right: 0; }

.cover-links,
.bio-trigger {
  position: absolute;
  z-index: 3;
  bottom: 19px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 400;
  letter-spacing: -.018em;
  text-shadow: 0 1px 6px rgba(0,0,0,.50);
}
.bio-trigger {
  left: 20px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.file-icon {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 14px;
  border: 1px solid currentColor;
}
.file-icon::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.cover-links {
  right: 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.cover-bio-panel[hidden] { display: none; }
.cover-bio-panel {
  position: absolute;
  z-index: 7;
  left: 20px;
  bottom: 52px;
  width: min(500px, calc(100vw - 40px));
  padding: 14px 15px 16px;
  border: 1px solid var(--black);
  background: var(--paper);
  color: var(--black);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.12;
  letter-spacing: -.022em;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.cover-bio-panel p { margin: 28px 0 0; }
.bio-close {
  position: absolute;
  top: 11px;
  right: 13px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.bio-trigger:hover,
.bio-trigger:focus-visible,
.bio-close:hover,
.bio-close:focus-visible,
.cover-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CATEGORY PAGES ---------- */
body.category-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--black);
}
.category-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: var(--hairline) solid var(--black);
}
.category-header-top {
  position: relative;
  min-height: clamp(160px, 20vw, 265px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 22px 14px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: var(--hairline) solid var(--black);
  background: var(--paper);
}
.category-banner-motion {
  position: absolute;
  z-index: 1;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;
  opacity: .38;
  filter: grayscale(1) contrast(1.12);
  pointer-events: none;
  user-select: none;
}
.category-banner-wash {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(243,241,234,.03);
  pointer-events: none;
}
.header-home {
  position: relative;
  z-index: 3;
  display: block;
  width: min(67vw, 920px);
}
.header-home img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(243,241,234,.3));
}
.header-contact {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: clamp(14px, 1vw, 17px);
  letter-spacing: -.02em;
}
.header-contact a:hover,
.category-title-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.cart-trigger:hover,
.cart-trigger:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.header-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  padding: 13px 20px 12px;
  border-bottom: var(--hairline) solid var(--black);
  font-size: clamp(18px, 1.3vw, 22px);
  letter-spacing: -.024em;
  text-align: center;
}
.header-categories a {
  position: relative;
  padding-bottom: 3px;
}
.category-title-row {
  min-height: 65px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 13px 18px 12px;
}
.category-title-row h1 {
  margin: 0;
  font-size: clamp(23px, 2.3vw, 38px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.04em;
}
.category-title-row a { font-size: clamp(14px, 1vw, 17px); }
.title-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: clamp(14px, 1vw, 17px);
}
.title-actions .cart-trigger { font-size: inherit; }

.category-main { width: 100%; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  border-left: var(--hairline) solid var(--black);
}
.category-card {
  position: relative;
  appearance: none;
  border: 0;
  border-right: var(--hairline) solid var(--black);
  border-bottom: var(--hairline) solid var(--black);
  background: var(--black);
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}
.category-card.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.category-card.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease, opacity 150ms ease;
}
.category-card .work-number {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 3px 5px 2px;
  background: rgba(243,241,234,.94);
  font-size: 12px;
  opacity: 0;
  transition: opacity 130ms ease;
}
.category-card:hover img { transform: scale(1.014); opacity: .95; }
.category-card:hover .work-number { opacity: 1; }
.category-footer {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 30px 18px 16px;
  font-size: clamp(14px, 1vw, 17px);
  border-bottom: var(--hairline) solid var(--black);
}
.category-footer p { margin: 0; }
.category-footer p:last-child { text-align: right; opacity: .55; }

/* ---------- VIEWER ---------- */
.viewer[hidden] { display: none; }
.viewer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: rgba(5, 5, 5, .54);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  color: var(--white);
  padding: 22px 24px 18px;
  cursor: zoom-out;
}
.viewer img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.22));
}
.viewer-caption {
  border-top: 1px solid rgba(247,246,241,.66);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 13px;
}

/* ---------- MERCH STOREFRONT ---------- */
.merch-main { width: 100%; }
.store-note {
  margin: 0;
  padding: 12px 18px 11px;
  border-bottom: var(--hairline) solid var(--black);
  font-size: clamp(13px, .95vw, 16px);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: var(--hairline) solid var(--black);
}
.product-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 72vh;
  border-right: var(--hairline) solid var(--black);
  border-bottom: var(--hairline) solid var(--black);
  background: #fff;
}
.product-image-wrap {
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.product-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
  display: block;
  transition: transform 180ms ease;
}
.product-card:hover img { transform: scale(1.012); }
.product-card.blue-product .product-image-wrap { background: var(--blue); }
.product-card.blue-product img { mix-blend-mode: multiply; filter: contrast(1.08); }
.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 16px;
  padding: 13px 15px 14px;
  border-top: var(--hairline) solid var(--black);
  background: var(--paper);
}
.product-info h2,
.product-info p { margin: 0; font-size: clamp(16px, 1.25vw, 21px); font-weight: 400; }
.product-info label { display: grid; gap: 4px; font-size: 11px; }
.product-info select,
.add-to-cart,
.checkout-button {
  min-height: 34px;
  border: var(--hairline) solid var(--black);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  padding: 6px 9px;
}
.add-to-cart,
.checkout-button { cursor: pointer; }
.add-to-cart:hover,
.add-to-cart:focus-visible,
.checkout-button:hover,
.checkout-button:focus-visible { background: var(--black); color: var(--paper); }
.cart-panel[hidden],
.cart-backdrop[hidden] { display: none; }
.cart-backdrop {
  position: fixed;
  z-index: 89;
  inset: 0;
  background: rgba(5,5,5,.42);
}
.cart-panel {
  position: fixed;
  z-index: 90;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--paper);
  border-left: var(--hairline) solid var(--black);
}
body.cart-open { overflow: hidden; }
.cart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 17px 13px;
  border-bottom: var(--hairline) solid var(--black);
}
.cart-heading h2 { margin: 0; font-size: 25px; font-weight: 400; }
.cart-close {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.cart-items { overflow: auto; }
.empty-cart { margin: 0; padding: 18px; }
.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-bottom: var(--hairline) solid var(--black);
}
.cart-item img { width: 112px; height: 112px; object-fit: cover; background: white; }
.cart-item h3,
.cart-item p { margin: 0; font-size: 15px; font-weight: 400; }
.quantity-controls { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.quantity-controls button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.quantity-controls button:last-child { margin-left: auto; font-size: 12px; }
.quantity-controls button:hover { border-bottom-color: currentColor; }
.cart-summary { padding: 15px 17px 17px; border-top: var(--hairline) solid var(--black); }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 20px; }
.cart-summary p { margin: 8px 0 13px; font-size: 13px; }
.checkout-button { width: 100%; background: var(--blue); color: var(--white); border-color: var(--blue); }
.checkout-status { line-height: 1.15; }
.merch-footer { min-height: 95px; }

@media (max-width: 900px) {
  .cover-center { top: 40%; width: 96vw; }
  .cover-logo { width: min(92vw, 1180px); }
  .category-nav { width: 94vw; gap: 8px 10px; font-size: clamp(19px, 2.4vw, 23px); }
  .header-home { width: min(82vw, 850px); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card.wide { grid-column: span 2; }
  .category-card.tall { grid-row: span 1; aspect-ratio: 1 / 1; }
  .product-card { min-height: 58vh; }
  .product-info { grid-template-columns: 1fr auto; }
  .product-info .add-to-cart { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .cover-center { top: 36.5%; }
  .cover-logo { width: 112vw; max-width: none; }
  .category-nav {
    width: 91vw;
    margin-top: 6px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 17.5px;
  }
  .category-nav .category-hand { width: 12px; height: 13px; justify-self: center; }
  .cover-links,
  .bio-trigger { bottom: 12px; font-size: 13px; }
  .bio-trigger { left: 12px; }
  .cover-links { right: 12px; }
  .cover-bio-panel {
    left: 12px;
    bottom: 43px;
    width: calc(100vw - 24px);
    padding: 12px 13px 14px;
    font-size: 14px;
  }

  .category-header-top { min-height: 132px; padding: 28px 10px 12px; }
  .header-home { width: 96vw; }
  .header-contact { top: 8px; right: 10px; font-size: 11px; }
  .header-categories { gap: 7px 8px; padding: 10px 9px; font-size: 16px; }
  .header-categories .category-hand { width: 13px; height: 14px; }
  .category-title-row { min-height: 58px; padding: 11px 10px 10px; }
  .category-title-row h1 { font-size: 23px; }
  .category-grid { grid-template-columns: 1fr; border-left: 0; }
  .category-card,
  .category-card.wide,
  .category-card.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
    min-height: 72vw;
  }
  .category-footer { padding: 25px 10px 12px; min-height: 120px; font-size: 12px; }
  .viewer { padding: 12px 10px 10px; }
  .product-grid { grid-template-columns: 1fr; border-left: 0; }
  .product-card { min-height: 0; }
  .product-card img { min-height: 76vw; }
  .product-info { padding: 11px 10px 12px; }
  .store-note { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-card img { transition: none; }
}
