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

:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-raised: #1a1a1a;
  --color-border: #222222;
  --color-text: #e8e8e8;
  --color-text-muted: #888888;
  --color-accent: #c8a86e;
  --color-accent-hover: #dfc08a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────────────────────────── NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ──────────────────────────────── HERO */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  background: url('hero.webp') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(180px, 30vw, 320px);
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.typewriter-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 2em;
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  display: inline;
}

.typewriter-cursor {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--color-accent);
  animation: blink 0.8s step-end infinite;
  display: none;
  margin-left: 2px;
}

.typewriter-cursor.active {
  display: inline;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: 3.5s;
}

.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

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

/* ──────────────────────────────── SECTIONS */

.section {
  padding: 80px 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}

.section-intro em {
  color: var(--color-text);
  font-style: italic;
}

/* ──────────────────────────────── WORK / VIDEOS */

.work-section {
  background: var(--color-bg);
}

.work-category-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  margin-top: 60px;
}

.work-category-label:first-of-type {
  margin-top: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 32px;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s;
}

.video-card:hover {
  border-color: var(--color-accent);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-play {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-thumb:hover .video-thumb-play {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}

.video-thumb-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-card-caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ──────────────────────────────── SERVICES */

.services-section {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}

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

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ──────────────────────────────── ABOUT */

.about-section {
  background: var(--color-bg);
}

.about-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.about-photo-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  filter: grayscale(0.15);
}

.about-content {
  max-width: 640px;
}

.about-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content em {
  color: var(--color-text);
  font-style: italic;
}

/* ──────────────────────────────── CONTACT */

.contact-section {
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-method h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-method a {
  font-size: 1.05rem;
  font-weight: 400;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--color-accent-hover);
}

/* ──────────────────────────────── FOOTER */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────── ANIMATIONS */

.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }

/* ──────────────────────────────── RESPONSIVE */

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav {
    background: #0a0a0a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.scrolled {
    background: #0a0a0a;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a0a0a;
    background-image: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.125rem;
    padding: 12px 16px;
  }

  .hero {
    min-height: 100svh;
    min-height: 100vh;
  }

  .hero-logo {
    width: clamp(140px, 50vw, 240px);
    margin-bottom: 24px;
  }

  .typewriter-line {
    margin-bottom: 28px;
  }

  .hero-cta {
    padding: 12px 32px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .video-grid {
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-card:hover {
    transform: none;
  }

  .work-category-label {
    margin-top: 40px;
  }

  .about-layout {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .about-photo-wrap {
    width: 140px;
    height: 140px;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-info {
    text-align: center;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
    padding: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .section {
    padding: 32px 0;
  }

  .hero-title {
    font-size: 0.85rem;
  }
}
