/* ===== DuG Lab — Surreal Streetwear ===== */

:root {
  --ink: #0a0a09;
  --ink-2: #131211;
  --paper: #f4efe4;
  --gold: #f2c230;
  --gold-deep: #d9a916;
  --gold-dim: #8a731f;
  --line: rgba(242, 194, 48, 0.18);
  --ff-display: 'Anton', 'Arial Narrow', sans-serif;
  --ff-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Courier New', monospace;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 12px 20px; z-index: 999;
  font-family: var(--ff-mono); text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Texture overlay ===== */
.grain {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Cursor dot ===== */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--gold); pointer-events: none; z-index: 400;
  transform: translate(-50%, -50%); transition: width .2s var(--ease), height .2s var(--ease), opacity .2s;
  opacity: 0; mix-blend-mode: difference;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-big { width: 46px; height: 46px; background: var(--gold); }
.cursor-dot.is-active.is-big { opacity: .9; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px var(--gutter);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,9,.85), transparent);
  transition: background .3s var(--ease), padding .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(10,10,9,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.header-inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-mark img { height: 42px; width: auto; }

.main-nav { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--ff-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.main-nav a { text-decoration: none; opacity: .8; position: relative; padding-bottom: 3px; transition: opacity .2s; }
.main-nav a span { color: var(--gold); margin-right: 6px; }
.main-nav a:hover, .main-nav a:focus-visible { opacity: 1; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 210; }
.nav-toggle span { width: 26px; height: 2px; background: var(--gold); display: block; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: 205; background: var(--ink);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: var(--gutter); gap: 22px; font-size: 1.4rem;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px var(--gutter) 100px; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.15) contrast(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(10,10,9,0) 0%, rgba(10,10,9,.6) 55%, rgba(10,10,9,.97) 100%),
    linear-gradient(to bottom, rgba(10,10,9,.55), rgba(10,10,9,.85));
}

.hero-content { position: relative; z-index: 1; max-width: 980px; }

.eyebrow {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--gold-deep); margin: 0 0 20px;
}

.wordmark {
  margin: 0; color: var(--gold); font-family: var(--ff-display); font-weight: 400;
  line-height: .86; text-transform: uppercase;
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  text-shadow: 0 0 60px rgba(242,194,48,.25);
}
.wm-line { display: block; }
.wm-g { position: relative; display: inline-block; }
.wm-eye {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 1.05em; color: var(--ink); filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
}

.hero-tag {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .3em;
  font-size: clamp(.85rem, 2vw, 1.15rem); color: var(--paper); margin: 28px 0 18px;
}

.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .04em; color: var(--gold-dim);
}

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--paper); opacity: .7; transition: opacity .2s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue-line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cueMove 1.8s ease-in-out infinite; }
@keyframes cueMove { 0%,100% { transform: scaleY(1); opacity: .5; } 50% { transform: scaleY(.6); opacity: 1; } }

/* ===== Barcode decoration ===== */
.barcode {
  display: inline-block; width: 90px; height: 22px;
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3px, currentColor 3px 6px, transparent 6px 9px, currentColor 9px 10px, transparent 10px 13px);
  color: var(--gold-dim);
}
.barcode--sm { width: 60px; height: 16px; }
.barcode--footer { width: 120px; height: 26px; color: var(--gold-dim); margin: 0 auto; }

/* ===== Marquee ===== */
.marquee {
  background: var(--gold); color: var(--ink); overflow: hidden;
  padding: 16px 0; transform: skewY(-1.4deg); margin: -1px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex; width: max-content; gap: 2.2rem;
  animation: marqueeScroll 32s linear infinite;
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.5rem); white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.2rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Layout helpers ===== */
.section-grid {
  max-width: var(--container); margin: 0 auto; padding: clamp(70px,10vw,140px) var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center;
}
@media (max-width: 900px) { .section-grid { grid-template-columns: 1fr; } }

.tag-label {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--gold); margin: 0 0 18px;
}
.tag-label.center { text-align: center; }

h2 {
  font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; line-height: .96;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0 0 26px; color: var(--paper);
}
h2 em { color: var(--gold); font-style: normal; }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-title.center { text-align: center; margin-bottom: 60px; }

.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(244,239,228,.78); max-width: 52ch; }

/* ===== Manifesto ===== */
.meta-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; margin: 40px 0 0;
  font-family: var(--ff-mono); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 26px;
}
.meta-list div { display: flex; flex-direction: column; gap: 4px; }
.meta-list dt { color: var(--gold-dim); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; margin:0; }
.meta-list dd { margin: 0; color: var(--paper); }

.specimen-frame {
  position: relative; border: 1px solid var(--line); padding: 10px; background: var(--ink-2);
  transform: rotate(1.4deg); transition: transform .4s var(--ease);
}
.specimen-frame:hover { transform: rotate(0deg); }
.specimen-frame img { width: 100%; height: auto; }
.specimen-tag {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .06em; color: var(--gold-dim);
  padding: 10px 6px 2px; text-transform: uppercase;
}

/* ===== Pillars ===== */
.lab { padding: clamp(70px,10vw,140px) var(--gutter); max-width: var(--container); margin: 0 auto; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--ink); padding: 40px 28px; transition: background .3s;
}
.pillar:hover { background: var(--ink-2); }
.pillar-num { font-family: var(--ff-mono); color: var(--gold); font-size: .78rem; letter-spacing: .08em; }
.pillar h3 { font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin: 14px 0 12px; }
.pillar p { margin: 0; color: rgba(244,239,228,.72); font-size: .92rem; }

/* ===== Arquivo / Gallery ===== */
.arquivo { padding: clamp(70px,10vw,140px) var(--gutter) 40px; max-width: var(--container); margin: 0 auto; }
.arquivo-head { max-width: 640px; margin-bottom: 50px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.specimen {
  position: relative; border: 1px solid var(--line); background: var(--ink-2); padding: 0; cursor: pointer;
  overflow: hidden; text-align: left; font: inherit; color: inherit; display: block;
}
.specimen img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: grayscale(.2) contrast(1.02); }
.specimen:hover img, .specimen:focus-visible img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.specimen-label {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 10px 12px; font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(10,10,9,.92), transparent);
  color: var(--gold);
}
.specimen-label span:last-child { color: var(--paper); }
.specimen::after {
  content: ''; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color .3s;
}
.specimen:hover::after, .specimen:focus-visible::after { border-color: var(--gold); }

/* ===== Pull quote ===== */
.pullquote {
  padding: clamp(90px,14vw,180px) var(--gutter); text-align: center; max-width: 1000px; margin: 0 auto;
}
.pullquote p {
  font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; line-height: 1.08;
  font-size: clamp(1.6rem, 5vw, 3rem); margin: 0;
}
.pullquote span { color: var(--gold); }

/* ===== Contato ===== */
.cta-email {
  display: inline-block; margin-top: 32px; font-family: var(--ff-mono); font-size: 1.1rem;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 4px;
  transition: border-color .2s, letter-spacing .2s;
}
.cta-email:hover { border-color: var(--gold); letter-spacing: .02em; }

.social-row { display: flex; gap: 26px; margin-top: 26px; font-family: var(--ff-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.social-row a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.social-row a:hover { opacity: 1; color: var(--gold); }

.contato-visual { display: flex; align-items: center; justify-content: center; }
.eye-orb { width: min(320px, 70vw); color: var(--gold); }
.eye-orb svg { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(242,194,48,.2)); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 50px var(--gutter) 40px; }
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-inner p { font-family: var(--ff-mono); font-size: .74rem; color: var(--gold-dim); margin: 0; letter-spacing: .04em; }
.back-top { font-family: var(--ff-mono); font-size: .74rem; text-decoration: none; color: var(--paper); opacity: .7; transition: opacity .2s; }
.back-top:hover { opacity: 1; }

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

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(10,10,9,.96);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(900px, 90vw); max-height: 86vh; text-align: center; }
.lightbox img { max-height: 74vh; width: auto; margin: 0 auto; border: 1px solid var(--line); }
.lightbox figcaption { margin-top: 16px; font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); display: flex; gap: 14px; justify-content: center; }
.lightbox figcaption span:last-child { color: var(--paper); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: none; border: 1px solid var(--line); color: var(--paper);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: border-color .2s, color .2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
