/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --white:   #fafafa;
  --gray-1:  #f4f4f4;
  --gray-2:  #e0e0e0;
  --gray-3:  #999;
  --gray-4:  #555;
  --accent:  #0a0a0a;
  --font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:   64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#nav.scrolled {
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-2);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-4);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  flex-direction: column;
  padding: 24px 48px;
  gap: 20px;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

/* Subtle animated grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10%      { transform: translate(-2%,-3%); }
  20%      { transform: translate(3%,1%); }
  30%      { transform: translate(-1%,4%); }
  40%      { transform: translate(2%,-2%); }
  50%      { transform: translate(-3%,3%); }
  60%      { transform: translate(1%,-1%); }
  70%      { transform: translate(3%,2%); }
  80%      { transform: translate(-2%,3%); }
  90%      { transform: translate(2%,-3%); }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  width: fit-content;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-scroll-hint {
  position: absolute;
  right: 48px; bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--white);
  transform-origin: top;
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 120px 48px;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.section-label--light { color: rgba(255,255,255,0.4); }

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-title--light { color: var(--white); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--gray-2);
  color: var(--gray-4);
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ============================================================
   GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-item {
  overflow: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.grid-item.hidden {
  display: none;
}

.grid-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-1);
}
.grid-thumb--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.grid-thumb--tall { aspect-ratio: 3/4; }

/* Span wide item layout in grid */
.grid-item:nth-child(2) { grid-column: span 2; }
.grid-item:nth-child(7) { grid-row: span 2; }

.grid-thumb img {
  transition: transform 0.6s var(--ease);
}
.grid-item:hover .grid-thumb img {
  transform: scale(1.04);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.35s var(--ease);
  pointer-events: none;
}
.grid-item:hover .grid-overlay {
  background: rgba(10,10,10,0.55);
  pointer-events: auto;
}

.grid-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease) 0.05s, transform 0.3s var(--ease) 0.05s;
}
.grid-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease) 0.1s, transform 0.3s var(--ease) 0.1s;
}
.grid-open {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s var(--ease) 0.05s, transform 0.3s var(--ease) 0.05s;
  pointer-events: auto;
}
.grid-item:hover .grid-tag,
.grid-item:hover .grid-title,
.grid-item:hover .grid-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  pointer-events: none;
  transition: background 0.25s, transform 0.25s;
}
.play-badge svg {
  width: 18px; height: 18px;
  fill: var(--white);
  margin-left: 3px;
}
.grid-item:hover .play-badge {
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
}
.about-image {
  aspect-ratio: 4/5;
  border-radius: 4px;
  filter: grayscale(20%);
  transition: filter 0.4s;
}
.about-image:hover { filter: grayscale(0%); }
.about-image-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%; height: 60%;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  pointer-events: none;
}

.about-text { display: flex; flex-direction: column; gap: 20px; }

.about-bio {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.about-services { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
}
.service-tag:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-left { display: flex; flex-direction: column; gap: 20px; }

.contact-blurb {
  font-size: 1rem;
  color: var(--gray-4);
  line-height: 1.7;
  max-width: 320px;
}

.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-link {
  font-size: 0.9rem;
  color: var(--gray-4);
  transition: color 0.2s;
  position: relative;
  width: fit-content;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.25s var(--ease);
}
.contact-link:hover { color: var(--black); }
.contact-link:hover::after { width: 100%; }

.social-links { display: flex; gap: 16px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-4);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-link:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-2);
  border-radius: 2px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-3);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, gap 0.2s;
  width: fit-content;
}
.form-submit:hover { background: #222; gap: 18px; }
.submit-arrow { font-size: 1.1rem; }

.form-success {
  display: none;
  font-size: 0.9rem;
  color: #2d7a4f;
  padding: 12px 0;
}
.form-success.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-top: 1px solid var(--gray-2);
  font-size: 0.8rem;
  color: var(--gray-3);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.95);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-caption {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
  padding: 12px;
}
.lightbox-close { top: 24px; right: 24px; font-size: 1.1rem; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox-close:hover { color: var(--white); }
.lightbox-prev:hover  { color: var(--white); transform: translateY(-50%) translateX(-4px); }
.lightbox-next:hover  { color: var(--white); transform: translateY(-50%) translateX(4px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-item:nth-child(2) { grid-column: span 2; }
  .grid-item:nth-child(7) { grid-row: auto; }
  .about-inner { gap: 48px; }
  .contact-inner { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  #nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; padding: 24px; }

  .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }
  .hero-scroll-hint { right: 24px; bottom: 60px; }

  .section { padding: 80px 24px; }

  .grid { grid-template-columns: 1fr; gap: 8px; }
  .grid-item:nth-child(2) { grid-column: span 1; }
  .grid-thumb--wide { aspect-ratio: 4/3; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap { max-width: 400px; }
  .about-image-accent { display: none; }
  .about-stats { gap: 24px; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

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

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .stat-num { font-size: 1.5rem; }
}
