/* ═══════════════════════════════════════════════════
   ROMAN DOG — style.css
   Font: DM Sans (body) + DM Mono (labels/code)
═══════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --bg:       #080808;
  --surface:  #100f0f;
  --panel:    #141010;
  --border:   #2a1a1a;
  --red:      #8b1a1a;
  --red2:     #c0392b;
  --gold:     #7a5c2e;
  --gold2:    #b8860b;
  --ink:      #d4c4b0;
  --muted:    #7a6a5a;
  --white:    #f0ece4;
  --footer-h: 11vh;
  --maxw:     1080px;
  --sans:     'DM Sans', Arial, sans-serif;
  --mono:     'DM Mono', 'Courier New', monospace;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

a { color: var(--gold2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
img { display: block; max-width: 100%; }

/* ── NOISE OVERLAY ───────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .45;
}

/* ═══════════════════════════════════════════════════
   AGE GATE
═══════════════════════════════════════════════════ */
#age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
#age-gate[hidden] { display: none; }

.ag-box {
  position: relative;
  max-width: 540px; width: 92%;
  background: var(--surface);
  border: 1px solid var(--red);
  padding: 56px 48px 48px;
  text-align: center;
  box-shadow: 0 0 80px rgba(139,26,26,.25), inset 0 0 40px rgba(0,0,0,.6);
}
.ag-box::before {
  content: '';
  position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.ag-sigil {
  font-family: var(--sans);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 600;
  color: var(--red2);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 8px;
  text-shadow: 0 0 30px rgba(192,57,43,.4);
}
.ag-rule {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0 auto 28px;
}
.ag-title {
  font-family: var(--sans);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.ag-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.ag-warning {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: .8;
}
.ag-btns {
  display: flex; gap: 16px; justify-content: center;
}
.ag-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid;
  cursor: pointer;
  transition: all .3s ease;
  background: transparent;
}
.ag-btn small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: .55;
  margin-top: 3px;
  font-weight: 400;
}
.ag-btn-yes {
  border-color: var(--red);
  color: var(--ink);
}
.ag-btn-yes:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 24px rgba(139,26,26,.4);
}
.ag-btn-no {
  border-color: var(--border);
  color: var(--muted);
}
.ag-btn-no:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.ag-legal {
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
  opacity: .6;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   INTRO VIDEO
═══════════════════════════════════════════════════ */
#intro {
  position: fixed; inset: 0; z-index: 190;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  /* 2s fade IN when .active is added */
  transition: opacity 2s ease;
}
#intro.active {
  opacity: 1;
  pointer-events: auto;
}
/* Direct crossfade out — no black screen, site rises simultaneously */
#intro.fading-out {
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
#intro video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#intro .skip-hint {
  position: absolute; bottom: 32px; right: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: hintFadeIn 1s ease 3s forwards;
}
@keyframes hintFadeIn { to { opacity: 1; } }

/* ═══════════════════════════════════════════════════
   SITE SHELL
═══════════════════════════════════════════════════ */
#site {
  opacity: 0;
  pointer-events: none;
  /* Same duration as intro fade-out — true crossfade */
  transition: opacity 1.2s ease;
  position: relative;
  min-height: 100vh;
}
#site.revealed {
  opacity: 1;
  pointer-events: auto;
}

/* ── HEADER / NAV ────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,8,8,.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.logo-text {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--red2);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo-tagline {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 300;
}

nav.desktop-nav {
  display: flex; gap: 32px; align-items: center;
}
nav.desktop-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
nav.desktop-nav a:hover { color: var(--ink); }
nav.desktop-nav a.nav-cta { color: var(--red2); }

/* ── HAMBURGER ───────────────────────────────────── */
.hamburger {
  display: none;
  position: fixed; top: 16px; right: 16px; z-index: 101;
  width: 44px; height: 44px;
  background: rgba(8,8,8,.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 10px;
  backdrop-filter: blur(6px);
}
.hamburger span {
  width: 22px; height: 1px;
  background: var(--ink);
  transition: all .3s ease;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ── MOBILE MENU ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: 0; right: -100%; width: 75%; max-width: 340px;
  height: 100vh; z-index: 100;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  padding: 90px 32px 32px;
  transition: right .4s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}
.mobile-menu nav a:hover { color: var(--white); padding-left: 8px; }

.menu-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.menu-backdrop.visible { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE BREAKPOINT ───────────────────────── */
@media (max-width: 900px) {
  nav.desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu, .menu-backdrop { display: block; }
}

/* ═══════════════════════════════════════════════════
   MAIN / SECTIONS
═══════════════════════════════════════════════════ */
main {
  padding-bottom: calc(var(--footer-h) + 20px);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(139,26,26,.12) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(42,26,26,.15) 39px,
      rgba(42,26,26,.15) 40px
    );
}
.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 24px;
  opacity: .8;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.8);
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.hero-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0 auto 48px;
}
.hero-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 16px 44px;
  border: 1px solid var(--red);
  color: var(--ink);
  transition: all .3s ease;
}
.hero-cta:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 30px rgba(139,26,26,.3);
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); opacity: .4;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ── GENERIC SECTION ─────────────────────────────── */
.section {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.section > .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 10px;
  opacity: .75;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.2;
}
.section-title em {
  font-style: normal;
  color: var(--gold2);
}
.section-body {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
  max-width: 680px;
}
.section-body p { margin-bottom: 18px; }
.section-body p:last-child { margin-bottom: 0; }

.sep {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 20px 0;
}

/* ── ABOUT ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-manifesto {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.about-manifesto::before {
  content: '\201C';
  position: absolute; top: -16px; left: 24px;
  font-size: 72px;
  color: var(--red);
  line-height: 1;
  opacity: .3;
  font-family: Georgia, serif;
}
.about-manifesto p {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.9;
}

.craft-list {
  list-style: none;
  margin-top: 32px;
}
.craft-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  font-size: 15px;
  color: var(--ink);
}
.craft-list li::before {
  content: '◆';
  color: var(--red);
  font-size: 7px;
  flex-shrink: 0;
}

.img-placeholder {
  aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.img-placeholder-icon { font-size: 32px; opacity: .1; }
.img-placeholder-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .35;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── PRODUCTS ────────────────────────────────────── */
#products { background: var(--panel); }

.product-intro {
  max-width: 600px;
  margin-bottom: 48px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.product-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  position: relative;
}
.product-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,.012) 4px, rgba(255,255,255,.012) 5px),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,.008) 4px, rgba(255,255,255,.008) 5px);
}
.product-img-icon {
  font-size: 40px;
  opacity: .12;
  position: relative; z-index: 1;
}
.product-img-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .35;
  position: relative; z-index: 1;
}

.product-info { padding: 20px 24px 24px; }
.product-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.product-material {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold2);
  opacity: .7;
}

/* ── HOW TO ORDER ────────────────────────────────── */
.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.order-step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.step-num {
  font-family: var(--sans);
  font-size: 64px;
  font-weight: 600;
  color: var(--red);
  opacity: .15;
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
  user-select: none;
}
.step-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  position: relative; z-index: 1;
  letter-spacing: .5px;
}
.step-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  position: relative; z-index: 1;
}

.order-note {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--red);
  background: rgba(139,26,26,.06);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

/* ── CONTACT FORM ────────────────────────────────── */
.contact-form { max-width: 560px; margin-top: 40px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; }

.submit-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 15px 44px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .3s;
}
.submit-btn:hover {
  background: var(--red);
  color: var(--white);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── ABOUT US / STORY ────────────────────────────── */
#about-us { background: var(--panel); }

.story-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.story-aside {
  position: sticky; top: 100px;
}
.story-sigil {
  font-family: var(--sans);
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 600;
  color: var(--red);
  opacity: .12;
  line-height: .9;
  user-select: none;
  letter-spacing: -4px;
}
.story-attrs {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.story-attr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.story-attr span {
  color: var(--gold2);
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .story-layout { grid-template-columns: 1fr; gap: 32px; }
  .story-aside { position: static; }
}

/* ── EXOTIC LEATHERS ─────────────────────────────── */
#leathers { background: var(--bg); }

.leather-intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.leather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}
.leather-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 32px 28px 28px;
  transition: border-color .3s, background .3s;
  overflow: hidden;
}
.leather-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height .4s ease;
}
.leather-card:hover { border-color: var(--red); background: var(--surface); }
.leather-card:hover::before { height: 100%; }

.leather-animal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 8px;
  opacity: .8;
}
.leather-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.leather-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.leather-traits {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.leather-trait {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold2);
  padding: 4px 8px;
  border: 1px solid var(--gold);
  opacity: .75;
}
.leather-note {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(122,92,46,.06);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}
.leather-note strong { color: var(--gold2); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--ink); }

.footer-nav {
  display: flex; gap: 20px; align-items: center;
  flex: 1; justify-content: center;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--ink); }

.footer-18 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red2);
  white-space: nowrap;
  opacity: .7;
}

@media (max-width: 768px) {
  :root { --footer-h: 0px; }
  footer { display: none; }
  main { padding-bottom: 60px; }
}
