/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --fg: #f2f2f0;
  --fg-muted: #9a9a94;
  --accent: #ff3b30;
  --border: rgba(255,255,255,0.1);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  cursor: default;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Film grain overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -3%); }
  80% { transform: translate(4%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav { display: flex; gap: 36px; }
.nav-link {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 100%; }

.header-social {
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.header-social:hover {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-link--mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: calc(100% + 120px);
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.95) 100%);
}
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--bg);
  pointer-events: none;
  animation: curtainOut 1.1s var(--ease) 0.2s forwards;
}
@keyframes curtainOut {
  to { opacity: 0; visibility: hidden; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 96px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s var(--ease) 0.55s forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.92;
  letter-spacing: 1px;
}
.hero-title .line-mask {
  display: block;
  overflow: hidden;
}
.hero-title .line-inner {
  display: block;
  transform: translateY(115%);
  animation: lineUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line-mask:nth-child(1) .line-inner { animation-delay: 0.6s; }
.hero-title .line-mask:nth-child(2) .line-inner { animation-delay: 0.75s; }
.hero-title .line-mask:nth-child(3) .line-inner { animation-delay: 0.9s; }
@keyframes lineUp {
  to { transform: translateY(0); }
}
.hero-sub {
  margin-top: 24px;
  max-width: 460px;
  font-size: 16px;
  color: var(--fg-muted);
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s var(--ease) 1.15s forwards;
}

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 1.6s forwards;
}
.scroll-cue i {
  width: 1px;
  height: 48px;
  background: var(--fg-muted);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--fg);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Intro ---------- */
.intro {
  padding: 140px 0;
  border-bottom: 1px solid var(--border);
}
.intro-text {
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  max-width: 720px;
  color: var(--fg-muted);
}
.intro-text strong { color: var(--fg); font-weight: 500; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}
.section-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section-head h2, .about-content h2, .contact h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.5px;
}

/* ---------- Work / Gallery ---------- */
.work { padding: 140px 0; }

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--fg); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--bg-soft);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item.is-hidden {
  display: none;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item figcaption span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- About ---------- */
.about { padding: 140px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-media {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-content p {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 480px;
  margin-top: 22px;
}
.about-content .section-num { display: block; margin-bottom: 12px; }
.about-content h2 { margin-bottom: 8px; }

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 34px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.35s var(--ease);
}
.btn--submit {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 500;
}
.btn--submit:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: #0a0a0a;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

/* ---------- Contact ---------- */
.contact {
  padding: 160px 0 140px;
  text-align: left;
  border-top: 1px solid var(--border);
}
.contact .section-num { display: block; margin-bottom: 20px; }
.contact h2 { margin-bottom: 48px; line-height: 0.95; }

.contact-form {
  max-width: 560px;
  margin-bottom: 64px;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; }
.contact-form .btn {
  cursor: pointer;
  font-family: inherit;
  border: none;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-muted);
}
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff6b6b; }

.contact-alt-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-email:hover { color: var(--accent); }
.contact-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--fg-muted);
  font-size: 14px;
}
.contact-details a { transition: color 0.3s var(--ease); }
.contact-details a:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--fg); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .header-social { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: var(--bg-soft);
    padding: 120px 40px;
    gap: 28px;
    border-left: 1px solid var(--border);
  }
  .main-nav.is-open .nav-link { font-size: 20px; }
  .main-nav.is-open .nav-link--mobile-only {
    display: block;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--fg-muted);
  }

  .hero-content { padding-bottom: 64px; }
  .scroll-cue { display: none; }
  .intro, .work, .about, .contact { padding: 90px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .contact-details { flex-direction: column; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .header-inner { padding: 0 22px; }
  .hero-content { padding-left: 22px; padding-right: 22px; }
  .hero-title { font-size: clamp(42px, 13vw, 160px); }
}
