:root{
  --bg: #0a0a0a;
  --bg-2: #111111;
  --ink: #f5f4f0;
  --ink-dim: rgba(245,244,240,0.62);
  --accent: #ff4d33;
  --line: rgba(245,244,240,0.1);
  --card: #141414;
  --display: 'Syne', sans-serif;
  --sans: 'Inter', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg); color:var(--ink); font-family:var(--sans);
  overflow-x:hidden; -webkit-font-smoothing:antialiased; cursor:none;
}
a{color:inherit; text-decoration:none;}

@media (max-width:900px){
  body{cursor:auto;}
  .cursor-dot, .cursor-ring{display:none;}
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring{
  position:fixed; top:0; left:0; z-index:999; pointer-events:none;
  border-radius:50%; transform:translate(-50%,-50%);
}
.cursor-dot{width:6px; height:6px; background:var(--accent);}
.cursor-ring{
  width:36px; height:36px; border:1px solid rgba(245,244,240,0.4);
  transition:width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.active{
  width:64px; height:64px; background:rgba(255,77,51,0.1); border-color:var(--accent);
}

/* ---------- Navbar ---------- */
.navbar{position:fixed; top:0; left:0; right:0; z-index:100; padding:28px 0; transition:padding .4s ease, background .4s ease, backdrop-filter .4s ease, border-color .4s ease;}
.navbar.scrolled{padding:16px 0; background:rgba(10,10,10,.72); backdrop-filter:blur(16px); border-bottom:1px solid var(--line);}
.nav-inner{max-width:1320px; margin:0 auto; padding:0 40px; display:flex; align-items:center; justify-content:space-between;}
.logo{font-family:var(--display); font-size:22px; font-weight:800; letter-spacing:-.01em;}
.logo span{color:var(--accent);}
.nav-links{display:flex; gap:38px;}
.nav-links a{font-size:14px; color:var(--ink-dim); transition:color .3s ease; position:relative;}
.nav-links a:hover{color:var(--ink);}
.nav-cta{font-size:13px; font-weight:600; padding:12px 24px; border-radius:999px; border:1px solid var(--ink); transition:background .3s ease, color .3s ease;}
.nav-cta:hover{background:var(--ink); color:var(--bg);}
.nav-burger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;}
.nav-burger span{width:22px; height:1.5px; background:var(--ink);}

/* ---------- Hero ---------- */
.hero{position:relative; min-height:100vh; display:flex; align-items:center; padding:0 40px; overflow:hidden; background:#050505;}
.scene-canvas{position:absolute; inset:0; z-index:0; width:100%; height:100%; display:block;}
.hero-content{position:relative; z-index:2; max-width:1320px; margin:0 auto; width:100%; padding-top:120px;}
.eyebrow{font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:20px; font-weight:500;}

.hero-title{font-family:var(--display); font-weight:800; font-size:clamp(42px,7.4vw,104px); line-height:1; letter-spacing:-.02em;}
.hero-title .line{display:block; overflow:hidden;}
.hero-title .word{display:inline-block; opacity:0; transform:translateY(110%); animation:wordUp .8s cubic-bezier(.2,.8,.2,1) forwards;}
.hero-title .line:nth-child(1) .word:nth-child(1){animation-delay:.1s;}
.hero-title .line:nth-child(1) .word:nth-child(2){animation-delay:.2s;}
.hero-title .line:nth-child(2) .word:nth-child(1){animation-delay:.3s;}
.hero-title .line:nth-child(2) .word:nth-child(2){animation-delay:.4s;}
.hero-title .line:nth-child(2) .word:nth-child(3){animation-delay:.5s;}
@keyframes wordUp{to{opacity:1; transform:translateY(0);}}

.hero-sub{margin-top:26px; max-width:460px; font-size:17px; line-height:1.6; color:var(--ink-dim);
  opacity:0; transform:translateY(16px); animation:fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:.6s;}
.hero-actions{display:flex; gap:16px; margin-top:42px;
  opacity:0; transform:translateY(16px); animation:fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:.72s;}
@keyframes fadeUp{to{opacity:1; transform:translateY(0);}}

.btn{display:inline-flex; align-items:center; justify-content:center; padding:16px 30px; border-radius:999px; font-size:15px; font-weight:600; transition:transform .25s ease, box-shadow .25s ease, background .3s ease;}
.btn-primary{background:var(--accent); color:#0a0a0a;}
.btn-primary:hover{box-shadow:0 10px 30px rgba(255,77,51,.35);}
.btn-ghost{border:1px solid var(--line); color:var(--ink);}
.btn-ghost:hover{background:rgba(245,244,240,.06);}
.btn-lg{padding:19px 38px; font-size:16px;}

.scroll-cue{position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:2; width:26px; height:42px; border:1px solid var(--ink-dim); border-radius:999px;}
.scroll-cue span{position:absolute; top:8px; left:50%; width:4px; height:8px; margin-left:-2px; background:var(--accent); border-radius:999px; animation:scrollCue 1.8s ease infinite;}
@keyframes scrollCue{0%{top:8px;opacity:1;}70%{top:22px;opacity:0;}100%{top:8px;opacity:0;}}

/* ---------- Shared ---------- */
section{padding:150px 40px; position:relative;}
.section-head{max-width:1320px; margin:0 auto 64px;}
.section-head h2{font-family:var(--display); font-size:clamp(32px,4.6vw,56px); font-weight:700; margin-top:12px; line-height:1.1;}

/* ---------- Work (3D tilt cards) ---------- */
.work-grid{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:repeat(2,1fr); gap:28px; perspective:1200px;}
.tilt-card{
  position:relative; border-radius:22px; aspect-ratio:16/10; overflow:hidden;
  background:var(--grad); transform-style:preserve-3d; will-change:transform;
  transition:transform .15s ease-out;
}
.tilt-inner{
  position:absolute; inset:0; padding:32px; display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
}
.work-cat{font-size:13px; letter-spacing:.04em; color:rgba(255,255,255,.85); font-weight:500;}
.tilt-card h3{font-family:var(--display); font-size:clamp(24px,3vw,32px); font-weight:700; color:#fff; align-self:flex-start;}
.work-arrow{
  align-self:flex-end; width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px;
  transition:background .3s ease, transform .3s ease;
}
.tilt-card:hover .work-arrow{background:#fff; color:#0a0a0a; transform:rotate(45deg);}

/* ---------- Services ---------- */
.services-grid{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
.service-card{
  background:var(--card); border:1px solid var(--line); border-radius:20px; padding:32px;
  transition:transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease;
}
.service-card:hover{transform:translateY(-6px); border-color:rgba(255,77,51,.35);}
.service-shape{width:40px; height:40px; margin-bottom:24px; transition:transform .4s cubic-bezier(.2,.8,.2,1);}
.service-card:hover .service-shape{transform:rotate(25deg) scale(1.1);}
.shape-1{background:var(--accent); border-radius:50%;}
.shape-2{background:#2e5bff; border-radius:8px;}
.shape-3{background:#1fae7a; clip-path:polygon(50% 0%, 0% 100%, 100% 100%);}
.shape-4{background:#f5f4f0; border-radius:50% 10%;}
.service-card h3{font-family:var(--display); font-size:19px; font-weight:700; margin-bottom:12px;}
.service-card p{color:var(--ink-dim); font-size:14.5px; line-height:1.6;}

/* ---------- Process ---------- */
.process-track{max-width:1320px; margin:0 auto; position:relative;}
.process-line{width:100%; height:2px; display:block; margin-bottom:60px;}
.process-line line{stroke:var(--line); stroke-width:2;}
.process-line .drawn{stroke:var(--accent);}
.process-steps{display:grid; grid-template-columns:repeat(4,1fr); gap:28px;}
.process-step{opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);}
.process-step.in-view{opacity:1; transform:translateY(0);}
.step-num{font-family:var(--display); font-size:14px; color:var(--accent); letter-spacing:.06em; font-weight:700;}
.process-step h3{font-family:var(--display); font-size:22px; font-weight:700; margin-top:14px; margin-bottom:10px;}
.process-step p{color:var(--ink-dim); font-size:14.5px; line-height:1.6; max-width:260px;}

/* ---------- Studio ---------- */
.studio{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center;}
.studio-content h2{font-family:var(--display); font-size:clamp(30px,4.2vw,48px); font-weight:700; margin-top:14px; line-height:1.15;}
.studio-content p{margin-top:22px; color:var(--ink-dim); font-size:16px; line-height:1.7; max-width:440px;}
.studio-stats{display:flex; flex-direction:column; gap:28px; border-left:1px solid var(--line); padding-left:40px;}
.stat-num, .stat-suffix{font-family:var(--display); font-size:44px; font-weight:800; display:inline;}
.stat-suffix{color:var(--accent);}
.stat-label{display:block; font-size:13px; color:var(--ink-dim); margin-top:6px;}

/* ---------- CTA ---------- */
.cta{overflow:hidden; display:flex; align-items:center; justify-content:center; text-align:center; min-height:70vh; background:#050505;}
.cta-inner{position:relative; z-index:2;}
.cta .eyebrow{display:block;}
.cta h2{font-family:var(--display); font-size:clamp(32px,5.2vw,64px); font-weight:800; line-height:1.1; margin-top:14px;}
.cta .btn{margin-top:36px;}

/* ---------- Footer ---------- */
.footer{padding:0 40px 50px;}
.footer-top{max-width:1320px; margin:0 auto; padding:60px 0; border-top:1px solid var(--line);}
.footer-logo{font-family:var(--display); font-size:clamp(60px,14vw,180px); font-weight:800; letter-spacing:-.03em; color:transparent; -webkit-text-stroke:1px var(--ink); display:block; line-height:1;}
.footer-logo span{-webkit-text-stroke:1px var(--accent);}
.footer-inner{max-width:1320px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;}
.footer-inner p{color:var(--ink-dim); font-size:13px;}
.footer-links{display:flex; gap:24px;}
.footer-links a{font-size:13px; color:var(--ink-dim); transition:color .3s ease;}
.footer-links a:hover{color:var(--ink);}

/* ---------- Scroll reveal (generic) ---------- */
.reveal{opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);}
.reveal.in-view{opacity:1; transform:translateY(0);}
.reveal.delay-1.in-view{transition-delay:.1s;}
.reveal.delay-2.in-view{transition-delay:.2s;}
.reveal.delay-3.in-view{transition-delay:.3s;}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .work-grid, .services-grid, .process-steps{grid-template-columns:repeat(2,1fr);}
  .studio{grid-template-columns:1fr; gap:36px;}
  .studio-stats{border-left:none; padding-left:0; border-top:1px solid var(--line); padding-top:28px; flex-direction:row; flex-wrap:wrap; gap:36px;}
}
@media (max-width:760px){
  .nav-links, .nav-cta{display:none;}
  .nav-burger{display:flex;}
  section{padding:100px 20px;}
  .hero{padding:0 20px;}
  .hero-actions{flex-direction:column;}
  .work-grid, .services-grid, .process-steps{grid-template-columns:1fr;}
  .footer-logo{font-size:18vw;}
}
