:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --surface: #16161c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #9a9aa5;
  --accent: #ff5c39;
  --accent-2: #ffb23e;
  --radius: 18px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(255, 92, 57, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 0% 20%, rgba(255, 178, 62, 0.08), transparent 55%);
  z-index: -2;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .brand { font-family: "Sora", sans-serif; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(10,10,12,0.7), transparent);
  transition: background 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #150a06;
  box-shadow: 0 8px 30px rgba(255, 92, 57, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 92, 57, 0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px clamp(20px, 5vw, 60px) 50px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-inner { max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 26px;
}
.grad {
  display: block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.1rem; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.work, .about, .contact, .clients {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px clamp(20px, 5vw, 60px);
}
.clients { padding-top: 40px; padding-bottom: 60px; }
.work { padding-top: 20px; }
.section-head { margin-bottom: 40px; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.project-wide { grid-column: 1 / -1; }
.project-wide { display: grid; grid-template-columns: 1.3fr 1fr; }
.project-wide .video-frame { height: 100%; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-embed { position: absolute; inset: 0; cursor: pointer; }
.video-embed .thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.82) saturate(1.05);
}
.video-embed:hover .thumb { transform: scale(1.05); filter: brightness(0.95); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 92, 57, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 30px rgba(255, 92, 57, 0.5);
}
.play svg { width: 26px; height: 26px; fill: #150a06; margin-left: 3px; }
.video-embed:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); }

.static-poster {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1230, #2a1424 60%, #3a1c18);
  display: grid; place-items: center;
  overflow: hidden;
}
.poster-glow {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,92,57,0.35), transparent 70%);
  filter: blur(20px);
  top: -60px; right: -40px;
}
.poster-content { position: relative; text-align: center; padding: 20px; }
.poster-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--accent-2);
  font-weight: 600;
}
.poster-content h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 6px; }
.poster-content p { color: var(--muted); }

.project-body { padding: 26px 26px 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.project-body h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 10px; }
.project-wide .project-body { align-self: center; }
.project-body p { color: var(--muted); margin-bottom: 18px; font-size: 0.98rem; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}
.link:hover { gap: 11px; }

/* ---------- Clients ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.logo {
  display: grid;
  place-items: center;
  padding: 26px 22px;
  min-height: 128px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.about-text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 18px; max-width: 560px; }
.about-text strong { color: var(--text); }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.skills li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.9rem;
  color: var(--text);
}
.about-card {
  background: linear-gradient(160deg, var(--surface), #12121a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  position: sticky;
  top: 100px;
}
.about-card-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-2);
  font-weight: 600;
}
.about-card-big { font-family: "Sora", sans-serif; font-size: 1.5rem; line-height: 1.3; margin: 16px 0 26px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 12px 0 16px; }
.contact-sub { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; }
.contact-email { margin-top: 20px; font-size: 1rem; }
.contact-email a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact-email a:hover { color: var(--text); border-color: currentColor; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .project-wide { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .hero-stats { gap: 24px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
