/* ============================================================
   DRACH — design tokens
   ============================================================ */
:root {
  /* color */
  --bg: #0a0a09;
  --bg-raised: #141311;
  --bg-raised-2: #1c1b18;
  --fg: #f4f1ea;
  --muted: #9a978d;
  --muted-2: #5f5c54;
  --line: #29281f;
  --line-soft: #201f1a;
  --accent: #d81f26;
  --accent-dim: #7a1216;

  /* type */
  --font-display: "Anton", sans-serif;
  --font-body: "Inter", sans-serif;

  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1rem;     /* 16 */
  --fs-md: 1.25rem;    /* 20 */
  --fs-lg: 2rem;       /* 32 */
  --fs-xl: clamp(2.75rem, 6vw, 4.5rem);
  --fs-2xl: clamp(3.5rem, 10vw, 8rem);

  /* spacing (4/8 base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;
  --sp-9: 128px;

  --max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.section-title {
  font-size: var(--fs-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--fg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 44px;
}

.btn--solid {
  background: var(--fg);
  color: var(--bg);
}
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--fg); }

.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: rgba(244, 241, 234, 0.35);
}
.btn--outline:hover { border-color: var(--fg); }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}
.btn--accent:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--accent);
  color: var(--fg);
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-3);
  font-weight: 600;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-4);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-links a {
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding: var(--sp-2) 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.icon-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,0.15) 0%, rgba(10,10,9,0.35) 55%, rgba(10,10,9,0.95) 100%);
}

.hero__content {
  position: relative;
  padding: var(--sp-8) var(--sp-4) var(--sp-7);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font-size: var(--fs-2xl);
  max-width: 14ch;
  margin-bottom: var(--sp-4);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-5);
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-raised);
}

.marquee__track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: var(--sp-4) var(--sp-5);
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-5);
}

.marquee__track span::after {
  content: "\2726";
  color: var(--accent);
  font-size: var(--fs-base);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   Statement
   ============================================================ */
.statement {
  padding: var(--sp-9) var(--sp-4);
  text-align: center;
}

.statement__text {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.15;
}

.statement__text .dim { color: var(--muted-2); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  padding: var(--sp-8) var(--sp-4);
}

.section--tight { padding: var(--sp-7) var(--sp-4); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.section-head .btn { flex-shrink: 0; }

/* ============================================================
   Product grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-raised);
  margin-bottom: var(--sp-3);
}

.product-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--accent);
  color: var(--fg);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-2);
  font-weight: 700;
}

.product-card__quick {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick .btn { width: 100%; }

.product-card__title {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.product-card__price { color: var(--fg); font-weight: 600; }

/* ============================================================
   Split / editorial feature
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-7);
  align-items: center;
}

.feature--reverse .feature__media { order: 2; }

.feature__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.feature__body .eyebrow { margin-bottom: var(--sp-3); }

.feature__body h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}

.feature__body p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: var(--sp-5);
}

/* ============================================================
   Full-bleed break
   ============================================================ */
.break {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,9,0.85) 0%, rgba(10,10,9,0) 45%);
}

.break__caption {
  position: relative;
  padding: var(--sp-6) var(--sp-4);
  width: 100%;
}

.break__caption h2 {
  font-size: var(--fs-xl);
}

/* ============================================================
   Gallery grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.gallery-grid a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.gallery-grid a:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-grid a:hover img { transform: scale(1.05); }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}

.newsletter h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.newsletter p {
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.newsletter form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 var(--sp-4);
  color: var(--fg);
  min-height: 52px;
}

.newsletter input::placeholder { color: var(--muted-2); }

.newsletter .btn {
  border: none;
  border-left: 1px solid var(--line);
}

.newsletter__note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: var(--sp-8) var(--sp-4) var(--sp-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo { margin-bottom: var(--sp-3); }

.footer-brand p {
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: var(--sp-4);
}

.social-row { display: flex; gap: var(--sp-3); }

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

.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 16px; height: 16px; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { color: var(--muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

.footer-bottom a:hover { color: var(--muted); }

/* ============================================================
   Shop page — filters
   ============================================================ */
.page-header {
  padding: var(--sp-7) var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.page-header p { color: var(--muted); max-width: 52ch; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h, 65px);
  background: rgba(10,10,9,0.92);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.filter-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.filter-tabs button {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s var(--ease);
  min-height: 44px;
}

.filter-tabs button:hover { color: var(--fg); border-color: var(--muted); }
.filter-tabs button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.result-count { font-size: var(--fs-xs); color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

.product-card[hidden] { display: none; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.contact-form { display: flex; flex-direction: column; gap: var(--sp-4); }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input, .field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: var(--sp-3);
  min-height: 48px;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-6); }

.info-block h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.info-block p, .info-block a { font-size: var(--fs-md); }

.form-note {
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

.form-status {
  font-size: var(--fs-sm);
  color: var(--accent);
  min-height: 1em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:first-child { grid-column: span 2; }
}

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

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--sp-6) var(--sp-4);
    gap: var(--sp-4);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .nav-links a { font-size: var(--fs-md); }

  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .footer-brand { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 84vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a:first-child { grid-column: span 1; }
  .newsletter form { flex-direction: column; border: none; gap: var(--sp-2); }
  .newsletter input { border: 1px solid var(--line); }
  .newsletter .btn { border: 1px solid var(--fg); }
}
