/* ============================================
   JANS — Premium Dark Agency
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #f5f5f5;
  --text-muted: #888888;
  --accent: #e8e8e8;
  --border: rgba(255, 255, 255, 0.06);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: transparent;
  transition: background var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hero-headline {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(1.2em);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.15s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.35s;
}

.hero-line-accent {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--text);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Section labels
   ============================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================
   Work
   ============================================ */

.work {
  padding: 6rem 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.work-item {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

.work-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
}

.work-item-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.work-item:hover .work-item-bg {
  opacity: 1;
}

.work-item-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-item:hover .work-item-number {
  opacity: 1;
}

.work-item-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  transform: translateY(0.5em);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.work-item:hover .work-item-title {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   About
   ============================================ */

.about {
  padding: 6rem 2rem 8rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-content {
  padding-top: 1rem;
}

.about-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-text {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.about-text + .about-text {
  margin-top: 1.25rem;
}

/* ============================================
   Contact (Footer)
   ============================================ */

.contact {
  padding: 6rem 2rem 4rem;
  border-top: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
}

.contact-email {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1rem 0 3rem;
  transition: color var(--transition-fast);
}

.contact-email:hover {
  color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 2.5rem;
}

.contact-social a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-item {
    aspect-ratio: 16 / 9;
    padding: 1.5rem;
  }

  .contact-social {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .work,
  .about,
  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
