/* ============================================================
   Plum Edits — dark cinematic premium
   Vanilla CSS, no build step.
   ============================================================ */

:root {
  --bg: #0B0710;
  --bg-2: #120A1C;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(192, 132, 252, 0.35);

  --plum-1: #C084FC;
  --plum-2: #A855F7;
  --plum-3: #7C3AED;
  --accent: #E879F9;

  --text: #F4EFFA;
  --muted: #A99CBF;
  --muted-2: #7E7392;

  --grad: linear-gradient(120deg, #E9D5FF 0%, #C084FC 35%, #A855F7 65%, #7C3AED 100%);
  --grad-accent: linear-gradient(120deg, #E879F9, #A855F7);

  --maxw: 1140px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.45);
}

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

html { scroll-behavior: smooth; }

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

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

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

.muted { color: var(--muted-2); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hidden { position: absolute; left: -9999px; }

/* ---------- Animated background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(1200px 700px at 70% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
  radial-gradient(900px 600px at 10% 10%, rgba(232, 121, 249, 0.10), transparent 55%),
  var(--bg);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob-1 { width: 520px; height: 520px; background: #7C3AED; top: -120px; right: -80px; animation: drift1 22s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: #A855F7; top: 30%; left: -140px; animation: drift2 26s ease-in-out infinite; }
.blob-3 { width: 420px; height: 420px; background: #E879F9; bottom: -160px; left: 40%; opacity: 0.28; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 60px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, -40px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, -70px) scale(1.12); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}
.noise { position: absolute; inset: 0; opacity: 0.035; 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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.2px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-primary { background: var(--grad-accent); color: #1a0a2b; box-shadow: 0 10px 30px -8px rgba(168, 85, 247, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(168, 85, 247, 0.75); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 7, 16, 0.72); backdrop-filter: blur(18px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(168,85,247,0.45)); }
.wordmark { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; letter-spacing: -0.3px; color: var(--text); }
.wordmark strong { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad-accent); transition: width 0.25s var(--ease); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 0 24px; background: rgba(11,7,16,0.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease), padding 0.35s; }
.mobile-menu.open { max-height: 380px; padding: 12px 24px 24px; }
.mobile-menu a { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { margin-top: 12px; justify-content: center; border-bottom: 0; color: #1a0a2b; }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 90px; }
.hero-inner { max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--plum-1); margin-bottom: 22px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.5rem, 6.4vw, 4.7rem); line-height: 1.04; letter-spacing: -1.5px; margin-bottom: 26px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 640px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted-2); font-size: 0.92rem; font-family: "Space Grotesk", sans-serif; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); display: inline-block; }

/* ---------- Strip / stats ---------- */
.strip { padding: 30px 0 10px; }
.strip-label { text-align: center; color: var(--muted-2); font-family: "Space Grotesk", sans-serif; letter-spacing: 0.4px; font-size: 0.95rem; margin-bottom: 30px; }
.strip-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.stat .cap { display: block; margin-top: 10px; color: var(--muted); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.8px; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { position: relative; padding: 34px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(192,132,252,0.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 1.7rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(140deg, rgba(168,85,247,0.22), rgba(124,58,237,0.08)); border: 1px solid var(--border); margin-bottom: 20px; }
.card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card-list li { color: var(--muted-2); font-size: 0.92rem; padding-left: 22px; position: relative; }
.card-list li::before { content: "→"; position: absolute; left: 0; color: var(--plum-1); }

/* ---------- Work / showreel ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-tile { position: relative; isolation: isolate; aspect-ratio: 338 / 691; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); display: block; background-size: cover; background-position: center; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.work-tile:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow); }

/* Real "in production" thumbnails (cards already carry their own title/label) */
.t1 { background-image: url("assets/work-1.jpg"); }
.t2 { background-image: url("assets/work-2.jpg"); }
.t3 { background-image: url("assets/work-3.jpg"); }
.t4 { background-image: url("assets/work-4.jpg"); }

/* "In production" status pill */
.work-status { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(11,7,16,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.16); font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #F5B042; box-shadow: 0 0 0 0 rgba(245,176,66,0.6); animation: livePulse 1.9s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(245,176,66,0.6); } 70% { box-shadow: 0 0 0 7px rgba(245,176,66,0); } 100% { box-shadow: 0 0 0 0 rgba(245,176,66,0); } }

/* "Rendering" radar pulse — sits over the play button on each thumbnail */
.work-render { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; z-index: 2; border-radius: 50%; }
.work-render::before, .work-render::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55); animation: renderPulse 2.6s var(--ease) infinite; }
.work-render::after { animation-delay: 1.3s; }
@keyframes renderPulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dot-live, .work-render::before, .work-render::after { animation: none; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 34px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; }
.step-no { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; margin: 10px 0 12px; }
.step p { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 540px; }
.about-copy .btn { margin-top: 10px; }
.about-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 26px; box-shadow: var(--shadow); }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: var(--muted-2); font-size: 0.9rem; }
.panel-row b { font-family: "Space Grotesk", sans-serif; font-weight: 500; text-align: right; }
.panel-row a { color: var(--plum-1); }

/* ---------- Contact ---------- */
.contact-card { background: linear-gradient(160deg, rgba(168,85,247,0.10), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow); }
.contact-head { max-width: 560px; margin-bottom: 34px; }
.contact-head a { color: var(--plum-1); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--muted); font-family: "Space Grotesk", sans-serif; letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
  font-family: "Inter", sans-serif; font-size: 0.98rem; color: var(--text);
  background: rgba(11,7,16,0.5); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; transition: border-color 0.2s, background 0.2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--border-strong); background: rgba(11,7,16,0.75); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23A99CBF'%3E%3Cpath d='M7 10L2 5h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 56px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(124,58,237,0.06)); }
.footer-inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-tag { color: var(--muted); max-width: 320px; margin-top: 14px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 36px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--muted-2); }

/* ---------- Legal page ---------- */
.legal { padding: 130px 0 70px; }
.legal-wrap { max-width: 760px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum-1); font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; margin-bottom: 26px; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.legal-card h1 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.6px; margin-bottom: 6px; }
.legal-sub { color: var(--muted); margin-bottom: 28px; }
.legal-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--plum-1); margin: 30px 0 12px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { color: var(--muted); margin-bottom: 12px; font-size: 0.97rem; }
.legal-card a { color: var(--plum-1); }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table td { padding: 11px 0; vertical-align: top; font-size: 0.96rem; }
.legal-table td:first-child { color: var(--muted-2); width: 40%; padding-right: 16px; }
.legal-table tr + tr td { border-top: 1px solid var(--border); }
.legal-card b { color: var(--text); font-weight: 600; }
.legal-updated { color: var(--muted-2); font-size: 0.85rem; margin-top: 26px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .strip-stats, .work-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero { padding: 140px 0 70px; }
  .section { padding: 72px 0; }
  .strip-stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
  .legal { padding: 108px 0 50px; }
  .legal-card { padding: 28px 22px; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
