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

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f10;
  --surface: #131316;
  --surface-hover: #1a1a1f;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --accent: #fafafa;
  --radius: 12px;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

/* === Topbar === */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

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

.topbar-logo img {
  height: 28px;
  width: auto;
  filter: invert(1);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.topbar-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.topbar-cta:hover {
  opacity: 0.85;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--muted);
  font-weight: 500;
}

.hero-tagline {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn-primary,
.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover,
.btn-primary-large:hover { opacity: 0.88; }
.btn-primary:active,
.btn-primary-large:active { transform: scale(0.98); }

.btn-primary-large {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn-ghost-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.btn-ghost-small:hover {
  color: var(--text);
}

/* === Section === */
.section {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-2);
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-header-center {
  text-align: center;
}

.section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 800px;
}

.section-header-center h2 {
  margin: 0 auto;
}

.text-accent {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

/* === Showreel === */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.showreel-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
}

.showreel-text h2 {
  margin-bottom: 24px;
}

.showreel-tagline {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.showreel-video {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  margin-left: auto;
}

.showreel-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .showreel-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showreel-video {
    margin: 0 auto;
    max-width: 340px;
  }
}

.video-placeholder,
.work-thumb[data-placeholder] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #18181c 0%, #0f0f10 100%);
}

.work-thumb[data-placeholder] {
  position: relative;
  aspect-ratio: 16 / 9;
}

.placeholder-inner {
  text-align: center;
  padding: 24px;
}

.placeholder-play {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--muted);
}

.placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.placeholder-text-small {
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.placeholder-hint {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.6;
}

/* === Work Grid === */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.work-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.work-tile:hover {
  transform: translateY(-4px);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1f 0%, #0f0f10 100%);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
}

.work-tile:hover .work-thumb {
  border-color: var(--border-strong);
}

.work-thumb[data-placeholder]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.work-thumb-label {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0.7;
}

.work-play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.work-tile:hover .work-play {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.work-meta h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-meta p {
  font-size: 13px;
  color: var(--muted);
}

.work-tile-cta {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 4 / 5;
  background: transparent;
}

.work-cta-inner {
  text-align: center;
}

.work-cta-inner h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #18181c 0%, #0f0f10 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-paragraph {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 560px;
  line-height: 1.7;
}

.about-meta-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-meta-list li {
  font-size: 15px;
  color: var(--muted);
}

.about-meta-list strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 8px;
}

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.service-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* === Trusted by === */
.trusted-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trusted-item {
  color: var(--muted);
  transition: color 0.2s ease;
}

.trusted-item:hover {
  color: var(--text);
}

.trusted-divider {
  color: var(--muted-2);
  opacity: 0.5;
}

/* === CTA Bottom === */
.cta-bottom {
  text-align: center;
  padding-top: 140px;
  padding-bottom: 140px;
}

.cta-inner h2 {
  margin: 0 auto 20px;
}

.cta-tagline {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: invert(1);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--muted-2);
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === Mobile === */
@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 16px 20px;
  }
  .topbar-nav {
    gap: 16px;
  }
  .topbar-nav a:not(.topbar-cta) {
    display: none;
  }
  .hero {
    padding: 100px 20px 60px;
  }
  .section {
    padding: 80px 20px;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .work-play {
    opacity: 1;
    transform: scale(1);
  }
}
