@font-face {
  font-family: 'Nimbus Mono PS';
  src: url('/assets/nimbus-mono-regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --charcoal: #1d1d1f;
  --light: #ededed;
  --muted: #b0b0b0;
  --header-height: 112px;
  --announcement-height: 32px;
  --panel-pause: clamp(56px, 10vh, 120px);
  --nav-shadow: none;
  --edge: clamp(24px, 3.05vw, 64px);
  --ease: cubic-bezier(.2,.65,.3,1);
  font-family: 'Nimbus Mono PS', 'Courier New', Courier, monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: var(--black); overscroll-behavior-y: none; }
body { margin: 0; color: var(--light); background: var(--black); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; border-radius: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--light); outline-offset: 7px; }
[hidden] { display: none !important; }

.header {
  position: fixed;
  z-index: 20;
  inset: var(--announcement-offset, var(--announcement-height)) 0 auto;
  min-height: var(--header-height);
  color: #fff;
  background: transparent;
  text-shadow: var(--nav-shadow);
  isolation: isolate;
}
.announcement {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--announcement-height);
  padding: 8px 16px;
  background: #FF4D00;
  color: #0a0a0a;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}
.announcement__text {
  display: block;
  margin: 0;
  padding: 0;
  text-align: center;
  /* Trim the font's unused ascent/descent space instead of shifting the label. */
  text-box: trim-both cap alphabetic;
}
.header__inner {
  position: relative;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: start;
}
.navigation {
  display: flex;
  align-items: center;
  gap: clamp(28px,3.1vw,60px);
  padding-top: 30px;
}
.navigation--left { grid-column: 1; grid-row: 1; justify-self: start; }
.navigation--right { grid-column: 3; grid-row: 1; justify-self: end; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .45em;
  padding: 0;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  font-synthesis: weight;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: var(--nav-shadow);
  cursor: default;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  width: calc(100% - .09em);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.cart-count { font-variant-numeric: tabular-nums; }

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  transition: opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover { opacity: .82; }
}
.brand__mark {
  display: block;
  width: 122px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
/* The touch/mobile source uses the original contours as opaque white vector
   paths. Paint it directly, without an offscreen filter or sticky touch hover. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .brand__mark { filter: none; }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .brand__mark--safari { filter: none; }
}
.menu-toggle, .mobile-cart { display: none; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  isolation: isolate;
  background: #363636;
}
/* Keep the final photograph pinned for one more viewport. The shop overlaps
   this unpainted scroll space, using the same pause and native sticky motion. */
.hero::after {
  content: "";
  flex: 0 0 calc(100vh + var(--panel-pause));
  flex-basis: calc(100lvh + var(--panel-pause));
}
.hero__panel {
  position: sticky;
  top: 0;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  height: 100vh;
  /* A stable large viewport prevents address-bar changes from resizing the
     stack during touch scrolling. Each panel always covers the visible view. */
  height: 100lvh;
  overflow: hidden;
  background: #363636;
}
/* The first transition starts with the first scroll movement. From the third
   panel onward, a short unpainted scroll interval holds the fully aligned
   preceding picture. Nothing snaps, auto-advances, or intercepts input. */
.hero__panel:nth-of-type(n+3) {
  margin-top: var(--panel-pause);
}
.hero__panel--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}
.hero__portrait {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero__portrait .hero__image {
  object-position: left bottom;
}
.hero__shop {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  /* Preserve the original line height, vertical padding, and border height. */
  height: calc(1.5em + 26px);
  padding: 12px 2cm;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  transition: background-color 250ms ease, color 250ms ease;
}
.hero__shop-label {
  display: block;
  text-box: trim-both cap alphabetic;
  /* Exclude trailing letter spacing from the centered text width. */
  margin-right: -.035em;
}
@media (hover: hover) {
  .hero__shop:hover {
    background-color: #fff;
    color: #000;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .navigation { gap: 25px; }
  .nav-link { letter-spacing: .045em; }
}

@media (max-width: 760px) {
  :root { --header-height: 100px; --edge: 20px; }
  .hero__image { object-position: 50% 50%; }
  .navigation { display: none; }
  .brand { width: 90px; padding-top: 22px; }
  .brand__mark { width: 106px; }
  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    position: relative;
    justify-self: start;
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-top: 25px;
    padding: 0;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 23px; height: 1px; background: currentColor; transform-origin: center; transition: transform 280ms var(--ease); }
  .is-menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .is-menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-cart {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-self: end;
    align-self: start;
    align-items: center;
    gap: 7px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    margin-top: 25px;
    font-size: .75rem;
    font-weight: 600;
    font-synthesis: weight;
    letter-spacing: .035em;
    cursor: default;
  }
  .mobile-cart svg { width: 21px; height: 24px; }
  .mobile-menu-surface {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity 280ms var(--ease);
  }
  .header.is-menu-open .mobile-menu-surface { opacity: 1; }
  .header.is-menu-visible .header__inner { z-index: 1; }
  .mobile-menu {
    position: fixed;
    z-index: 0;
    inset: var(--menu-top, calc(var(--header-height) + var(--announcement-height))) 0 auto;
    height: calc(100vh - var(--menu-top, calc(var(--header-height) + var(--announcement-height))));
    height: max(0px, calc(var(--menu-viewport-bottom, 100dvh) - var(--menu-top, calc(var(--header-height) + var(--announcement-height)))));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #000;
    color: #fff;
    padding: clamp(16px, 3svh, 32px) var(--edge) max(24px, env(safe-area-inset-bottom));
  }
  .mobile-menu__links { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: #fff;
    text-shadow: none;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-menu__account, .mobile-menu__archive {
    align-self: flex-start;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 24px 0;
    color: #fff;
    font-size: .75rem;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .mobile-menu__account { margin-bottom: 0; }
  .mobile-menu__archive { margin-top: 0; padding: 0; text-align: left; }
  .mobile-menu__link:hover, .mobile-menu__account:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  .mobile-menu__search {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
  }
  .mobile-menu__search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
  }
  .mobile-menu__search input::placeholder { color: #fff; opacity: 1; }
  .mobile-menu__search button { display: grid; place-items: center; flex: 0 0 52px; min-height: 52px; padding: 12px; cursor: pointer; }
  .mobile-menu__search svg { display: block; width: 24px; height: 24px; }
  .mobile-menu__search:focus-within { outline: 1px solid #fff; outline-offset: 3px; }
  body.menu-open { overflow: hidden; }
}

@media (min-width: 761px) {
  .mobile-menu-surface, .mobile-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
