@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --text-primary: #f0ede6;
  --text-secondary: #9a978f;
  --text-muted: #5c5a54;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.25, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── NAV ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─── HERO ─── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 ratio — ensures cover */
  min-width: 100%;
  height: 100vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  max-width: 820px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  user-select: none;
  cursor: default;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-subtext {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(240, 237, 230, 0.55);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-scroll-cue span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  animation: scrollPulse 2s var(--ease-out) infinite;
}

/* ─── SECTIONS ─── */

.sections-container {
  padding: 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── CARDS GRID ─── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-elevated);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.8rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-weight: 400;
}

.card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}

.card:hover .card-arrow {
  background: var(--text-primary);
  border-color: var(--text-primary);
  transform: translate(2px, -2px);
}

.card-arrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  transition: stroke 0.3s;
}

.card:hover .card-arrow svg {
  stroke: var(--bg);
}

/* ─── VIMEO EMBEDS ─── */

.vimeo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
}

.vimeo-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vimeo-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.vimeo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vimeo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vimeo-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.vimeo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ─── CASE STUDIES ─── */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-elevated), #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

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

.case-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.case-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── FOOTER ─── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-primary);
}

.footer-email {
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 300;
  transition: opacity 0.3s;
}

.footer-email:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
}

.footer-social a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--text-primary);
}


/* ─── ANIMATIONS ─── */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }
  .nav.scrolled {
    padding: 0.8rem 1.5rem;
  }
  .hero-content {
    padding: 0 1.5rem 3.5rem;
  }
  .hero-scroll-cue {
    right: 1.5rem;
  }
  .sections-container {
    padding: 0 1.5rem;
  }
  .section {
    padding: 4rem 0;
  }
  .section-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .vimeo-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 1.5rem 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
  }
}
