/* ═══════════════════════════════════════════════
   SANG MOTION — GLOBAL STYLES
   Design system: Quiet Authority
   Dark, cinematic, minimal, premium
═══════════════════════════════════════════════ */

:root {
  --black:        #07070a;
  --surface:      #0f0f14;
  --surface-2:    #15151c;
  --surface-3:    #1c1c26;
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.13);
  --white:        #f0efe8;
  --white-dim:    rgba(240,239,232,0.52);
  --white-faint:  rgba(240,239,232,0.2);
  --white-ghost:  rgba(240,239,232,0.08);
  --gold:         #c8a96e;
  --gold-dim:     rgba(200,169,110,0.22);
  --gold-faint:   rgba(200,169,110,0.07);
  --green:        #3ecf8e;
  --green-dim:    rgba(62,207,142,0.15);
  --radius-sm:    2px;
  --radius:       4px;
  --max-w:        1180px;
  --nav-h:        64px;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'Syne', 'Helvetica Neue', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Grain overlay ──────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Utilities ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 14px;
}
.section-title em { font-style: italic; color: var(--gold); }

hr.divider {
  border: none;
  height: 1px;
  background: var(--border);
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s, transform 0.18s;
}
.btn-primary:hover { opacity: 0.86; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white-dim);
  border: 1px solid var(--border-h);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-h); }

/* ── Reveal animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.52s; }

/* ── Navigation ─────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7,7,10,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

.nav-cta-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--gold);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s !important;
  margin-left: 16px;
}
.nav-cta-link::after { display: none !important; }
.nav-cta-link:hover { opacity: 0.85; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
#nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 499;
  padding: 24px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
#nav-drawer.open { display: flex; }
#nav-drawer a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
#nav-drawer a:last-child { border-bottom: none; }
#nav-drawer .drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* ── Footer ─────────────────────────────────────── */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white-faint);
}
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-size: 12px;
  color: var(--white-faint);
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white-dim); }

/* ── Video Modal ────────────────────────────────── */
#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#video-modal.open { display: flex; }
.modal-box {
  position: relative;
  width: min(95vw, 960px);
}
.modal-close-btn {
  position: absolute;
  top: -46px; right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--white); }
.modal-video {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.modal-video iframe { width: 100%; height: 100%; border: none; }

/* ── Upwork badge strip ─────────────────────────── */
.uw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(20,191,96,0.09);
  border: 1px solid rgba(20,191,96,0.2);
  border-radius: 100px;
}
.uw-dot { width: 6px; height: 6px; border-radius: 50%; background: #14bf60; }
.uw-text {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #14bf60;
}

/* ── Page hero (for inner pages) ───────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}
.page-hero-label { margin-bottom: 16px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 640px;
  margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Video grid (shared) ────────────────────────── */
.vgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin-top: 48px;
}
.vgrid.three-col { grid-template-columns: repeat(3, 1fr); }
.vcard {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 16/9;
}
.vcard.featured { grid-column: span 2; }
.vcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.55s ease, opacity 0.35s;
}
.vcard:hover img { transform: scale(1.04); opacity: 0.95; }
.vcard-thumb-fallback {
  width: 100%; height: 100%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.vcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,10,0.88) 0%, rgba(7,7,10,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  pointer-events: none;
}
.vcard-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.vcard-play svg { width: 18px; height: 18px; fill: white; margin-left: 2px; }
.vcard:hover .vcard-play { opacity: 1; }
.vcard-client {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.vcard-title {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
}
.vcard-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-faint);
  border: 1px solid var(--border-h);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ── CTA strip ──────────────────────────────────── */
.cta-strip {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin: 14px auto 22px;
}
.cta-strip-title em { font-style: italic; color: var(--gold); }
.cta-strip-sub {
  font-size: 16px;
  color: var(--white-dim);
  max-width: 380px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-meta {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-faint);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .vgrid { grid-template-columns: 1fr 1fr; }
  .vgrid.three-col { grid-template-columns: 1fr 1fr; }
  .vcard.featured { grid-column: span 2; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #nav-drawer { padding: 20px 20px 28px; }

  .vgrid { grid-template-columns: 1fr; }
  .vgrid.three-col { grid-template-columns: 1fr; }
  .vcard.featured { grid-column: span 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
