/* ============================================
   UXTRALY — Monochrome editorial system
   Black / graphite / off-white only
   ============================================ */

:root {
  --bg: #090909;
  --bg-raised: #0f0f0f;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --line: #242424;
  --line-strong: #333333;
  --text: #f2f2f2;
  --text-soft: #a3a3a3;
  --text-mute: #6b6b6b;
  --text-faint: #3d3d3d;
  --white: #fafafa;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--text-soft);
  outline-offset: 3px;
}

/* ---------- Top strip ---------- */
.promo {
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 0.65rem var(--pad);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.95;
}

.brand-word {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem var(--pad);
    letter-spacing: 0.14em;
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav a.is-active {
    color: var(--white);
    background: var(--surface);
  }
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 10vw, 7rem) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-logo {
  width: min(374px, 71.4vw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: grayscale(1) brightness(1.08);
}

.hero-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 14ch;
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-head.center {
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.product-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
}

.product-card:hover {
  background: var(--bg-raised);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.92;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
  opacity: 1;
}

.product-body {
  padding: 1.15rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
}

.product-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.4;
  min-height: 2.6em;
}

.product-status {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.category-card {
  background: var(--bg);
  display: block;
  transition: background 0.3s var(--ease);
}

.category-card:hover {
  background: var(--bg-raised);
}

.category-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
}

.category-card:hover .category-media img {
  transform: scale(1.04);
  opacity: 1;
}

.category-body {
  padding: 1.5rem 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.category-kicker {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.4rem;
}

.category-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--white);
}

/* ---------- Info ---------- */
.info-block {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.info-block p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-soft);
}

.info-block a {
  color: var(--white);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease);
}

.info-block a:hover {
  border-color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social a:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.social svg {
  width: 15px;
  height: 15px;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}

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

/* ---------- Fallbacks ---------- */
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
