@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F5F3;
  --fg: #0A0A0A;
  --fg-muted: #6B6B68;
  --border: rgba(10, 10, 10, 0.12);
  --gap: 1px;
  --header-h: 76px;
  --font: 'General Sans', 'Archivo', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(245, 245, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
}

.header-left {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.header-center {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.header-email {
  transition: opacity 0.2s ease;
}

.header-email:hover {
  opacity: 0.6;
}

.header-socials {
  display: flex;
  gap: 14px;
}

.header-socials a {
  transition: opacity 0.2s ease;
}

.header-socials a:hover {
  opacity: 0.6;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--bg);
}

.hero-strips {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-track {
  display: flex;
  gap: 6px;
  height: 100%;
  padding: 6px 0;
  animation: hero-scroll 60s linear infinite;
  width: max-content;
}

@keyframes hero-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-strip {
  flex-shrink: 0;
  width: 22vw;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  filter: brightness(0.4);
}

.hero-strip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 32px 64px;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(72px, 18vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;

}

.hero-description {
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.5;
  max-width: 560px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---------- Works ---------- */

.works {
  padding: 8vh 0 10vh;
}

.works-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.works-count {
  color: var(--fg-muted);
  font-weight: 400;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.work-cell {
  position: relative;
  aspect-ratio: 9 / 16;
  background-color: #FFFFFF;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: default;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-cell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-cell video.is-playing {
  opacity: 1;
}

.works-section {
  max-width: 1400px;
  margin: 0 auto;
}

.works-section + .works-section {
  margin-top: 8vh;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 32px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.section-count {
  font-weight: 400;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 10vh 32px 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-email {
  font-size: clamp(30px, 12vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

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

.footer-contacts {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-contact-name {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.footer-contact a {
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.6;
}

.footer-bottom {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .header-center {
    display: none;
  }

  .hero-strip {
    width: 28vw;
  }
}

@media (max-width: 560px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 20px;
  }

  .site-header {
    padding: 0 20px;
  }

  .header-right {
    gap: 14px;
  }

  .header-email {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    height: 85vh;
  }

  .hero-strip {
    width: 40vw;
  }

  .hero-overlay {
    padding: 0 20px 48px;
  }

  .works-label {
    padding: 0 20px 24px;
  }

  .section-label {
    padding: 0 20px 16px;
  }
}
