/* ============================================
   OMNIVERA — style.css
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --mid:   #888;
  --border: rgba(255,255,255,0.1);
  --font: 'Archivo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

header.scrolled {
  border-color: var(--border);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  color: var(--mid);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--white);
}

/* ─── HERO ────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 48px 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}

.divider {
  opacity: 0.3;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}

/* ─── MARQUEE ─────────────────────────────── */

.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--black);
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  padding-right: 0;
}

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

/* ─── SECTION SHARED ─────────────────────── */

.about,
.work {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.about-label,
.work-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.about-label span:first-child,
.work-label span:first-child {
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.15em;
  font-weight: 600;
}

.about-label span:last-child,
.work-label span:last-child {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ─── ABOUT ───────────────────────────────── */

.about-content h2 {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 64px;
}

.about-content h2 em {
  font-style: italic;
  font-weight: 300;
}

.about-details {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}

.detail-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.65);
  max-width: 560px;
  font-weight: 400;
}

/* ─── WORK ────────────────────────────────── */

.work-intro {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 48px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: default;
}

.work-item:first-child {
  border-top: 1px solid var(--border);
}

.work-item:hover {
  background: rgba(255,255,255,0.02);
}

.work-item--muted {
  opacity: 0.35;
}

.work-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mid);
  font-weight: 600;
}

.work-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.work-info p {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
}

.work-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
  text-align: right;
}

/* ─── CONTACT ─────────────────────────────── */

.contact {
  padding: 160px 48px;
  border-bottom: 1px solid var(--border);
}

.contact-inner {
  max-width: 800px;
}

.contact .eyebrow {
  margin-bottom: 28px;
}

.contact h2 {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 56px;
}

.contact-link {
  display: inline-block;
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,245,240,0.25);
  padding-bottom: 6px;
  letter-spacing: -0.01em;
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ─── FOOTER ──────────────────────────────── */

footer {
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}

/* ─── SCROLL HEADER JS HOOK ──────────────── */

/* handled via JS class toggle */

/* ─── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
  header {
    padding: 20px 24px;
  }

  nav ul {
    gap: 24px;
  }

  .hero {
    padding: 120px 24px 64px;
  }

  .hero-scroll {
    right: 24px;
  }

  .about,
  .work {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
  }

  .about-label,
  .work-label {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .about-details {
    gap: 36px;
    flex-wrap: wrap;
  }

  .work-item {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }

  .work-tag {
    display: none;
  }

  .contact {
    padding: 100px 24px;
  }

  footer {
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
