/* ─── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --bg-2:      #111111;
  --bg-3:      #1a1a1a;
  --border:    rgba(255,255,255,0.07);
  --text:      #f0f0f0;
  --text-muted:#888888;
  --accent:    #E8C97A;      /* warm gold */
  --accent-dim:rgba(232,201,122,0.12);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Noto Sans', system-ui, sans-serif;
  --max-w:     1200px;
  --radius:    12px;
  --transition:0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── UTILITY ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 120px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.accent { color: var(--accent); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #f5d98a; transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── REVEAL ANIMATION ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #f5d98a !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ─── MOBILE MENU ────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232,201,122,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--text-muted);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; width: 24px; }
  50% { opacity: 1; width: 48px; }
}

/* reveal stagger on hero */
.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }

/* ─── REEL ───────────────────────────────────────────────────────── */
.reel-section { background: var(--bg-2); }

.reel-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

.reel-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ─── SERVICES ───────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── STATS ──────────────────────────────────────────────────────── */
.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat { }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
}

.stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ─── WORK / PORTFOLIO ───────────────────────────────────────────── */
.work-section { background: var(--bg); }

.work-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.work-card { border-radius: var(--radius); overflow: hidden; }
.work-card.hidden { display: none; }

.work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.05); }

.work-thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform var(--transition);
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; pointer-events: none; }

.work-info {
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: none;
}

.work-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.work-info h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.work-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── ABOUT ──────────────────────────────────────────────────────── */
.about-section { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text); }

.about-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tool-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
}

/* ─── CLIENTS ────────────────────────────────────────────────────── */
.clients-section { background: var(--bg); }

.clients-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.clients-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3.5rem;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.client-logo {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  aspect-ratio: 2/1;
  transition: border-color var(--transition);
  filter: grayscale(1) brightness(0.7);
}
.client-logo:hover {
  border-color: var(--accent);
  filter: grayscale(0) brightness(1);
}
.client-logo img { max-height: 40px; width: auto; }

/* ─── TESTIMONIALS ───────────────────────────────────────────────── */
.testimonials-section { background: var(--bg-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: rgba(232,201,122,0.3); }

.stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── PROCESS ────────────────────────────────────────────────────── */
.process-section { background: var(--bg); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 200px;
  padding: 0 1.5rem;
}

.process-step:first-child { padding-left: 0; }
.process-step:last-child  { padding-right: 0; }

.process-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  padding-top: 1rem;
  flex-shrink: 0;
}

.step-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-dim);
  color: rgba(232,201,122,0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CONTACT ────────────────────────────────────────────────────── */
.contact-section { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-item:hover { color: var(--accent); }
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── FORM ───────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group select { appearance: none; cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Formspree hides these until needed via aria-hidden / display */
.form-success {
  display: none;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  color: #4ade80;
  font-size: 0.9rem;
}
/* @formspree/ajax toggles aria-hidden; show when visible */
.form-success:not([aria-hidden="true"]) { display: block; }

.form-field-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1.1em;
}

.form-error-banner {
  font-size: 0.85rem;
  color: #f87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: none;
}
.form-error-banner:not(:empty) { display: block; }

/* Highlight invalid fields flagged by Formspree */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #f87171;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-socials svg { width: 16px; height: 16px; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.5rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }
  .about-img-badge { right: 0; }

  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }

  .process-steps { flex-direction: column; }
  .process-arrow { display: none; }
  .process-step  { padding: 0; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .work-grid  { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
