:root {
  --bg-0: #dedede;
  --bg-1: #dadada;
  --bg-2: #c7c7c7;
  --ink: #0e0e0e;
  --muted: #6b6b6b;
  --link: #101010;
  --linkHover: #000;
  --shadow: rgba(0, 0, 0, .04);
  --card: rgba(255, 255, 255, .55);
  --line: rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "IBM Plex Mono", "Space Mono", monospace;
  line-height: 1.45;
  background:
    radial-gradient(1200px 800px at 80% 10%, var(--bg-0) 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 90%, var(--bg-1) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(0, 0, 0, .03) 1px, transparent 1px),
    radial-gradient(1px 1px at 70% 80%, rgba(0, 0, 0, .025) 1px, transparent 1px),
    radial-gradient(1px 1px at 40% 60%, rgba(0, 0, 0, .02) 1px, transparent 1px);
  background-size: 8px 8px, 10px 10px, 12px 12px;
  mix-blend-mode: multiply;
}

/* ===== Header ===== */
header.headerbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  color: var(--ink);
}

.logo-img {
  height: 1em;
  vertical-align: middle;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.9;
}

.logo-text {
  font-size: 1em;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.toplinks a {
  text-decoration: none;
  color: #222;
  margin-left: 18px;
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.toplinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .6;
  transition: transform .2s ease;
}

.toplinks a:hover::after {
  transform: scaleX(1);
}

/* ===== Hero Section ===== */
main.hero {
  min-height: calc(100dvh - 120px);
  display: grid;
  grid-template-rows: .3fr auto auto 1fr;
  align-items: center;
  justify-items: center;
  padding: clamp(24px, 5vw, 64px);
  gap: 18px;
  text-align: center;
}

.brand {
  letter-spacing: .08em;
  font-size: clamp(28px, 5.8vw, 72px);
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 1px 0 var(--shadow);
}

.tagline {
  line-height: 1.25;
  min-height: 3.2em;
  margin: 6px 0 2px;
  font-size: clamp(14px, 1.7vw, 20px);
  color: var(--muted);
  letter-spacing: .06em;
  opacity: .92;
  transition: opacity .4s ease;
}

nav.links {
  display: flex;
  gap: clamp(12px, 5vw, 28px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

nav.links a {
  position: relative;
  text-decoration: none;
  color: var(--link);
  letter-spacing: .14em;
  font-size: clamp(12px, 1.6vw, 15px);
  padding: 8px 2px;
  transition: transform .2s, color .2s, letter-spacing .2s;
  text-transform: uppercase;
}

nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .65;
  transition: transform .25s ease;
}

nav.links a:hover {
  color: var(--linkHover);
  transform: translateY(-1px);
  letter-spacing: .18em;
}

nav.links a:hover::after {
  transform: scaleX(1);
}

/* ===== Manifest & Content Pages ===== */
main:not(.hero) {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 22px 120px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .06);
  padding: clamp(18px, 4vw, 32px);
}

.h {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #2a2a2a;
  margin-bottom: 10px;
}

.title {
  font-size: clamp(20px, 4.6vw, 34px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  margin-bottom: 16px;
}

.sep {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.block {
  margin-top: 14px;
}

.muted {
  color: var(--muted);
}

ul.clean {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

ul.clean li {
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

ul.clean li:first-child {
  border-top: 0;
}

.manifest-footer {
  text-align: center;
  margin-top: 16px;
}

.manifest-logo {
  position: fixed;
  top: 50px;
  right: 60px;
  width: 180px;
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ===== Legal Pages (Privacy, Terms) ===== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 22px 120px;
}

.legal-container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .06);
  padding: clamp(28px, 5vw, 48px);
}

.legal h1 {
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-update {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-of-type {
  margin-bottom: 24px;
}

.legal h2 {
  font-size: clamp(16px, 3.5vw, 20px);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 28px;
  color: #1a1a1a;
}

.legal h3 {
  font-size: clamp(13px, 3vw, 15px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 18px;
  color: #333;
}

.legal p {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #2a2a2a;
}

.legal ul {
  margin: 12px 0 14px 0;
  padding-left: 24px;
  line-height: 1.7;
}

.legal li {
  margin-bottom: 8px;
  color: #2a2a2a;
}

.legal strong {
  font-weight: 600;
  color: #1a1a1a;
}

.legal-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-link {
  display: inline-block;
  text-decoration: none;
  color: var(--link);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .3);
  transition: all .2s ease;
}

.legal-link:hover {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(0, 0, 0, .15);
  color: var(--linkHover);
}

/* ===== Footer ===== */
footer.footerbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 16px 22px;
  background: linear-gradient(to top, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  backdrop-filter: saturate(1.1) blur(6px);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-left {
  font-size: 12px;
  color: #2a2a2a;
  text-transform: uppercase;
}

.footer-chip {
  border: 1px solid rgba(0, 0, 0, .12);
  padding: 6px 10px;
  border-radius: 999px;
  color: #5c5c5c;
  font-size: 11.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px var(--shadow);
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  max-width: 100%;
}
/* ===== Fullscreen Viewer ===== */
.viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.viewer.show {
  display: flex;
}

.viewer img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0, 0, 0, .4);
  transition: opacity .25s ease;
}

.viewer-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: rgba(255, 255, 255, .8);
  font-size: 28px;
  cursor: pointer;
  transition: opacity .2s ease;
  z-index: 10000;
}

.viewer-close:hover {
  opacity: .5;
}

.viewer-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 32px;
  color: rgba(255, 255, 255, .9);
  transition: all .2s ease;
  backdrop-filter: blur(4px);
  z-index: 10000;
  user-select: none;
}

.viewer-nav:hover {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.viewer-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.viewer-prev {
  left: 30px;
}

.viewer-next {
  right: 30px;
}

/* ===== Product Page ===== */
.product {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 22px 140px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(18px, 4vw, 40px);
}

.gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}

.media-main {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .06);
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.media-main img,
.media-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, .4);
  border-radius: 14px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  aspect-ratio: 1/1;
  transition: transform .15s ease, border-color .15s ease;
}

.thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, .16);
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta .h {
  margin-bottom: 6px;
}

.product-title {
  font-size: clamp(18px, 3.4vw, 28px);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.price {
  font-size: 16px;
  letter-spacing: .06em;
  margin: 8px 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
  box-shadow: 0 2px 10px var(--shadow);
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.select,
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .5);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .04em;
  outline: none;
  transition: border .2s ease, background .2s ease;
}

.select:focus,
.input:focus {
  border-color: rgba(0, 0, 0, .22);
  background: rgba(255, 255, 255, .62);
}

.row {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 10px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

.btn {
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 12px;
  background: transparent;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}

.btn.primary {
  background: rgba(0, 0, 0, .8);
  color: #fff;
  border-color: rgba(0, 0, 0, .85);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.spec {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.spec b {
  color: #222;
  font-weight: 600;
}

.notice {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.identity-note {
  font-size: 12px;
  margin-top: 4px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: border .2s ease, background .2s ease;
}

.consent:hover {
  background: rgba(255, 255, 255, .65);
  border-color: rgba(0, 0, 0, .15);
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.consent input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  background: rgba(0, 0, 0, .85);
  border-radius: 2px;
  transition: transform .15s ease-out;
}

.consent input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.consent input[type="checkbox"]:focus {
  outline: none;
  border-color: rgba(0, 0, 0, .6);
}

.consent input[type="checkbox"]:hover {
  border-color: rgba(0, 0, 0, .6);
}

.inline-link {
  color: #111;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, .25);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}

.inline-link:hover {
  color: #000;
  border-bottom-color: rgba(0, 0, 0, .6);
}

.consent .consent-text {
  font-size: 12px;
  color: #202020;
  letter-spacing: .03em;
  line-height: 1.5;
}

.consent.error {
  border-color: rgba(200, 0, 0, .4);
}

.error {
  border-color: rgba(200, 0, 0, .4) !important;
  box-shadow: 0 0 0 3px rgba(200, 0, 0, .06) inset;
}

.error-text {
  color: #a00;
  font-size: 11px;
  letter-spacing: .04em;
  margin-top: 6px;
}

/* ===== Modal ===== */
.preorder-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preorder-modal.show {
  display: flex;
}

.modal-box {
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 8px 34px rgba(0, 0, 0, .12);
}

.modal-box .h {
  margin-bottom: 8px;
}

.modal-summary {
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.modal-actions .btn {
  padding: 10px 14px;
}

.modal-notice {
  margin-top: 10px;
}

/* ===== Cookie Consent ===== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 9999;
  pointer-events: none;
  transition: background .4s ease, backdrop-filter .4s ease;
}

.cookie-overlay.show {
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.cookie-overlay.hidden {
  display: none;
}

.cookie-consent {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  max-width: 600px;
  width: calc(100% - 40px);
  padding: 24px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(1.2) blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
  transition: bottom .4s ease;
}

.cookie-consent.show {
  bottom: 50%;
  transform: translate(-50%, 50%);
}

.cookie-consent.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-text .h {
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-privacy-link {
  margin-top: 8px;
  font-size: 12px;
}

.cookie-privacy-link a {
  color: var(--link);
  text-decoration: underline;
  transition: color .2s ease;
}

.cookie-privacy-link a:hover {
  color: var(--linkHover);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* ===== Media Queries ===== */
@media (prefers-reduced-motion: reduce) {
  .tagline,
  nav.links a {
    transition: none !important;
  }
  nav.links a:hover {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .product {
    grid-template-columns: 1fr;
  }
  .thumbs {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}