/* ============================================================
   RUDRAKSH.SITE — DESIGN TOKENS
   Palette: ink black / deep indigo panel / brass gold / periwinkle
   Type: Fraunces (display) · Space Grotesk (body/UI) · JetBrains Mono (labels)
   ============================================================ */
:root{
  --ink:        #06070c;
  --panel:      #0d1024;
  --panel-2:    #12162e;
  --line:       rgba(243,241,234,0.10);
  --gold:       #e8b45c;
  --gold-dim:   #a8813f;
  --periwinkle: #5b7fff;
  --text:       #f3f1ea;
  --muted:      #8a8ba0;
  --muted-2:    #5c5d72;

  --font-display: 'Fraunces', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --edge: clamp(24px, 6vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; overflow-x:hidden; width:100%; }
html,body{ background:var(--ink); }

body{
  font-family:var(--font-body);
  color:var(--text);
  overflow-x:hidden;
  width:100%;
  cursor:none;
  -webkit-font-smoothing:antialiased;
}
@media (max-width:860px){ body{ cursor:auto; } }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:pointer; }

::selection{ background:var(--gold); color:var(--ink); }

/* Scrollbar */
::-webkit-scrollbar{ width:9px; }
::-webkit-scrollbar-track{ background:var(--ink); }
::-webkit-scrollbar-thumb{ background:var(--panel-2); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:var(--gold-dim); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:9999;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .8s var(--ease), visibility .8s var(--ease);
}
#preloader.done{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner{ text-align:center; }
.preloader-mark{
  font-family:var(--font-display); font-size:3rem; font-weight:500;
  color:var(--gold); letter-spacing:-2px; margin-bottom:22px;
}
.preloader-bar{
  width:220px; height:1px; background:var(--line); margin:0 auto 14px;
  position:relative; overflow:hidden;
}
.preloader-bar span{
  position:absolute; left:0; top:0; height:100%; width:0%;
  background:var(--gold); transition:width .25s ease;
}
.preloader-pct{
  font-family:var(--font-mono); font-size:.72rem; color:var(--muted);
  letter-spacing:2px;
}

/* ============================================================
   3D CANVAS + GRAIN
   ============================================================ */
#hub-canvas{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:0;
  width:100%; height:100%;
  display:block;
}
.grain{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:1; pointer-events:none;
  opacity:.035; mix-blend-mode:overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-dot,.cursor-ring{
  position:fixed; top:0; left:0; z-index:9000; pointer-events:none;
  border-radius:50%; transform:translate(-50%,-50%);
}
.cursor-dot{ width:6px; height:6px; background:var(--gold); }
.cursor-ring{
  width:34px; height:34px; border:1px solid rgba(232,180,92,.5);
  transition:width .25s var(--ease), height .25s var(--ease), border-color .25s ease, background .25s ease;
}
.cursor-ring.big{ width:64px; height:64px; background:rgba(232,180,92,.08); border-color:var(--gold); }
@media (max-width:860px){ .cursor-dot,.cursor-ring{ display:none; } }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
main, header, footer{ position:relative; z-index:2; }
.section{
  max-width:var(--container); margin:0 auto;
  padding:min(14vw,150px) var(--edge) 40px;
}
.section-head{ margin-bottom:56px; max-width:640px; }
.eyebrow{
  display:block; font-family:var(--font-mono); font-size:.72rem;
  letter-spacing:3px; text-transform:uppercase; color:var(--gold);
  margin-bottom:16px;
}
.section-title{
  font-family:var(--font-display); font-weight:500;
  font-size:clamp(1.8rem, 4vw, 2.9rem); line-height:1.15;
  letter-spacing:-.5px;
}
.section-sub{ margin-top:14px; color:var(--muted); font-size:1.02rem; max-width:480px; }
.ital{ font-style:italic; font-weight:400; color:var(--gold); }

/* reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-line{ display:block; overflow:hidden; }
.reveal-line span{
  display:block; transform:translateY(110%); transition:transform 1s var(--ease);
}
.reveal-line.in span{ transform:translateY(0); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:500; font-size:.95rem;
  padding:15px 26px; border-radius:100px; white-space:nowrap;
  transition:transform .4s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
}
.btn i{ font-style:normal; transition:transform .3s var(--ease); }
.btn:hover i{ transform:translateX(4px); }
.btn-primary{ background:var(--gold); color:var(--ink); }
.btn-primary:hover{ transform:translateY(-2px); background:#f2c274; }
.btn-ghost{ border:1px solid var(--line); color:var(--text); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px var(--edge);
  transition:padding .4s ease, background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  padding:14px var(--edge);
  background:rgba(6,7,12,.72);
  backdrop-filter:blur(14px);
  border-color:var(--line);
}
.nav-mark{ font-family:var(--font-display); font-size:1.4rem; color:var(--gold); font-weight:500; }
.nav-links{ display:flex; gap:38px; }
.nav-links a{
  font-size:.9rem; color:var(--muted); position:relative; padding:4px 0;
  transition:color .3s ease;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--gold); transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  font-size:.85rem; padding:11px 22px; border:1px solid var(--line); border-radius:100px;
  transition:border-color .3s ease, color .3s ease;
}
.nav-cta:hover{ border-color:var(--gold); color:var(--gold); }
.nav-burger{ display:none; flex-direction:column; gap:6px; width:28px; z-index:600; }
.nav-burger span{ height:1px; background:var(--text); width:100%; transition:transform .35s ease, opacity .35s ease; }
.nav-burger.open span:first-child{ transform:translateY(3.5px) rotate(45deg); }
.nav-burger.open span:last-child{ transform:translateY(-3.5px) rotate(-45deg); }

.mobile-menu{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:400; background:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px;
  transform:translateY(-100%); transition:transform .5s var(--ease);
}
.mobile-menu.open{ transform:translateY(0); }
.mobile-menu a{ font-family:var(--font-display); font-size:1.8rem; color:var(--text); }

@media (max-width:860px){
  .nav-links,.nav-cta{ display:none; }
  .nav-burger{ display:flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:120px var(--edge) 80px; max-width:var(--container); margin:0 auto;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:1.5px;
  color:var(--muted); border:1px solid var(--line); padding:8px 16px;
  border-radius:100px; margin-bottom:34px; text-transform:uppercase;
  white-space:nowrap;
}
.hero-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); box-shadow:0 0 10px var(--gold); }
.hero-title{
  font-family:var(--font-display); font-weight:500;
  font-size:clamp(2.6rem, 8vw, 6.2rem); line-height:.98; letter-spacing:-2px;
  max-width:920px;
}
.hero-sub{
  margin-top:32px; font-size:clamp(1rem,1.6vw,1.2rem); color:var(--muted);
  max-width:480px; line-height:1.6;
}
.hero-actions{ display:flex; gap:16px; margin-top:44px; flex-wrap:wrap; }
.hero-scroll{
  position:absolute; bottom:44px; left:var(--edge);
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:2px; color:var(--muted-2);
  text-transform:uppercase;
}
.scroll-line{ width:1px; height:44px; background:var(--line); position:relative; overflow:hidden; }
.scroll-line i{
  position:absolute; top:-44px; left:0; width:100%; height:100%; background:var(--gold);
  animation:scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip{
  0%{ transform:translateY(0); } 100%{ transform:translateY(88px); }
}
@media (max-width:640px){ .hero-scroll{ display:none; } .hero-eyebrow{ white-space:normal; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:start; }
.about-lead{ font-family:var(--font-display); font-size:clamp(1.3rem,2.4vw,1.7rem); font-weight:400; line-height:1.45; }
.about-lead strong{ color:var(--gold); font-weight:500; }
.about-body{ color:var(--muted); line-height:1.75; font-size:1rem; }
.about-stats{ grid-column:1 / -1; display:flex; gap:56px; flex-wrap:wrap; margin-top:20px; padding-top:36px; border-top:1px solid var(--line); }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-family:var(--font-display); font-size:2.8rem; color:var(--gold); font-weight:500; line-height:1; display:inline-block; }
.stat-plus{ font-family:var(--font-display); font-size:1.6rem; color:var(--gold); vertical-align:top; }
.stat-label{ font-size:.85rem; color:var(--muted); margin-top:8px; max-width:160px; }
@media (max-width:760px){ .about-grid{ grid-template-columns:1fr; gap:28px; } .about-stats{ gap:36px; } }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.service-card{
  background:var(--ink); padding:34px 26px; min-height:200px;
  display:flex; flex-direction:column; gap:14px;
  transition:background .4s ease, transform .4s ease;
}
.service-card:hover{ background:var(--panel); transform:translateY(-4px); }
.service-node{ font-size:1.3rem; color:var(--gold); }
.service-card h3{ font-family:var(--font-body); font-weight:600; font-size:1rem; line-height:1.35; }
.service-card p{ color:var(--muted); font-size:.86rem; line-height:1.55; }
@media (max-width:960px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .services-grid{ grid-template-columns:1fr; } }

/* ============================================================
   SOCIAL
   ============================================================ */
.social-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.social-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 20px; text-align:center; transition:transform .4s var(--ease), border-color .4s ease;
}
.social-card:hover{ transform:translateY(-6px); border-color:var(--gold-dim); }
.social-card img{ width:56px; height:56px; border-radius:50%; margin:0 auto 16px; object-fit:cover; border:1px solid var(--line); }
.social-card h4{ font-size:.92rem; font-weight:600; margin-bottom:6px; }
.social-card p{ font-size:.78rem; color:var(--muted); margin-bottom:14px; min-height:32px; }
.link-arrow{ font-family:var(--font-mono); font-size:.72rem; color:var(--periwinkle); }
@media (max-width:900px){ .social-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .social-grid{ grid-template-columns:repeat(2,1fr); } }

/* ============================================================
   WORK (drag rail)
   ============================================================ */
.section--bleed{ max-width:none; padding-left:0; padding-right:0; }
.section--bleed .section-head{ max-width:640px; margin-left:auto; margin-right:auto; padding:0 var(--edge); }
.work-rail{ overflow:hidden; cursor:grab; padding:0 var(--edge); }
.work-rail.dragging{ cursor:grabbing; }
.work-track{ display:flex; gap:20px; width:max-content; }
.work-card{
  width:min(78vw,340px); flex-shrink:0; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 26px; display:flex; flex-direction:column; gap:10px; min-height:220px;
  transition:border-color .4s ease, transform .4s ease;
  user-select:none;
}
.work-card:hover{ border-color:var(--gold-dim); transform:translateY(-6px); }
.work-tag{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--periwinkle); }
.work-card h3{ font-family:var(--font-display); font-size:1.5rem; font-weight:500; margin-top:6px; }
.work-url{ color:var(--muted); font-size:.85rem; font-family:var(--font-mono); }
.work-card .link-arrow{ margin-top:auto; color:var(--gold); }

/* ============================================================
   WHY
   ============================================================ */
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.why-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 22px; text-align:center; transition:transform .4s var(--ease), border-color .4s ease;
}
.why-card:hover{ transform:translateY(-5px); border-color:var(--gold-dim); }
.why-mark{ display:block; font-family:var(--font-display); font-size:1.9rem; color:var(--gold); margin-bottom:10px; }
.why-card p{ font-size:.84rem; color:var(--muted); }
@media (max-width:760px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }

/* ============================================================
   PROCESS
   ============================================================ */
.process-list{ display:flex; flex-direction:column; }
.process-step{
  display:flex; gap:36px; align-items:baseline; padding:34px 0;
  border-top:1px solid var(--line);
}
.process-step:last-child{ border-bottom:1px solid var(--line); }
.process-num{ font-family:var(--font-mono); color:var(--gold); font-size:.9rem; flex-shrink:0; width:36px; }
.process-step h3{ font-family:var(--font-display); font-size:1.5rem; font-weight:500; margin-bottom:8px; }
.process-step p{ color:var(--muted); max-width:420px; }
@media (max-width:600px){ .process-step{ gap:18px; } .process-step h3{ font-size:1.2rem; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-wrap{ position:relative; }
.testi-track{ display:flex; transition:transform .7s var(--ease); }
.testi-card{
  flex:0 0 100%; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:48px clamp(24px,5vw,60px); display:flex; flex-direction:column; gap:30px; min-height:220px;
}
.testi-card p{ font-family:var(--font-display); font-size:clamp(1.15rem,2.4vw,1.5rem); font-weight:400; line-height:1.5; }
.testi-person{ display:flex; align-items:center; gap:14px; }
.testi-person img{ width:44px; height:44px; border-radius:50%; object-fit:cover; }
.testi-person strong{ display:block; font-size:.92rem; }
.testi-person span{ font-size:.8rem; color:var(--muted); }
.testi-dots{ display:flex; justify-content:center; gap:10px; margin-top:26px; }
.testi-dots button{ width:8px; height:8px; border-radius:50%; background:var(--line); transition:background .3s ease, transform .3s ease; }
.testi-dots button.active{ background:var(--gold); transform:scale(1.3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ text-align:center; padding-top:min(16vw,180px); padding-bottom:min(16vw,160px); }
.contact-inner{ display:flex; flex-direction:column; align-items:center; }
.contact-title{
  font-family:var(--font-display); font-weight:500; font-size:clamp(2.1rem,6vw,4.2rem);
  line-height:1.08; letter-spacing:-1.5px; margin:22px 0 40px;
}
.contact-actions{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.contact-meta{ display:flex; gap:30px; margin-top:40px; flex-wrap:wrap; justify-content:center; font-family:var(--font-mono); font-size:.78rem; color:var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  border-top:1px solid var(--line); padding:50px var(--edge) 34px;
  max-width:var(--container); margin:0 auto;
  display:flex; flex-direction:column; gap:26px;
}
.footer-top{ display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:10px; }
.footer-mark{ font-family:var(--font-display); font-size:1.3rem; color:var(--gold); }
.footer-top p{ color:var(--muted); font-size:.85rem; }
.footer-links{ display:flex; gap:24px; }
.footer-links a{ font-size:.85rem; color:var(--muted); transition:color .3s ease; }
.footer-links a:hover{ color:var(--gold); }
.footer-copy{ font-size:.75rem; color:var(--muted-2); font-family:var(--font-mono); }

.back-to-top{
  position:fixed; bottom:28px; right:28px; z-index:300;
  width:44px; height:44px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  background:rgba(13,16,36,.7); backdrop-filter:blur(10px);
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .4s ease, transform .4s ease, border-color .3s ease;
}
.back-to-top.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.back-to-top:hover{ border-color:var(--gold); color:var(--gold); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
