/* ====================================================
   Tusshar — Data & Systems Integration Architect
   Shared stylesheet across all pages
==================================================== */

:root{
  --bg:#0A0A13;
  --surface:#13131F;
  --surface-2:#181828;
  --border:rgba(255,255,255,0.09);
  --border-soft:rgba(255,255,255,0.05);
  --text:#F1EFFB;
  --muted:#9290AC;
  --faint:#5B5878;
  --violet:#7C5CFC;
  --violet-2:#9B82FF;
  --violet-glow:rgba(124,92,252,0.35);
  --teal:#00E5C3;
  --teal-glow:rgba(0,229,195,0.25);
  --max:1160px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

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

body::before{
  content:'';
  position:fixed; inset:0; z-index:5; pointer-events:none; opacity:0.4;
  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)' opacity='0.04'/%3E%3C/svg%3E");
}

a{ color:inherit; text-decoration:none; }
:focus-visible{ outline:2px solid var(--violet-2); outline-offset:3px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 28px; position:relative; }

.cur-dot, .cur-ring{ display:none; }
@media (pointer: fine){
  .cur-dot{ display:block; position:fixed; top:0; left:0; width:8px; height:8px; background:var(--teal); border-radius:50%; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); mix-blend-mode:screen; }
  .cur-ring{ display:block; position:fixed; top:0; left:0; width:34px; height:34px; border:1px solid var(--violet-glow); border-radius:50%; pointer-events:none; z-index:9998; transform:translate(-50%,-50%); transition:width .2s, height .2s, border-color .2s; }
  body, a, button{ cursor:none; }
}

.eyebrow{
  font-family:'JetBrains Mono', monospace; font-size:12.5px; letter-spacing:0.13em; text-transform:uppercase;
  color:var(--teal); display:inline-flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--teal); display:inline-block; box-shadow:0 0 8px var(--teal-glow); }

h1,h2,h3{ font-family:'Bricolage Grotesque', sans-serif; font-weight:700; letter-spacing:-0.01em; }

.accent{
  background:linear-gradient(135deg, var(--violet-2), var(--teal));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- HEADER ---------- */
header{ position:sticky; top:0; z-index:50; background:rgba(10,10,19,0.78); backdrop-filter:blur(14px); border-bottom:1px solid var(--border-soft); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:68px; }
.nav-left{ display:flex; align-items:center; gap:11px; }
.nav-avatar{ width:30px; height:30px; border-radius:50%; overflow:hidden; background:linear-gradient(155deg, var(--surface-2), #1d1d30); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.nav-avatar span{ font-family:'Bricolage Grotesque'; font-size:12px; font-weight:700; }
.nav-avatar img{ width:100%; height:100%; object-fit:cover; }
.nav-name{ font-family:'Bricolage Grotesque'; font-weight:700; font-size:16px; }
.nav-links{ display:flex; gap:26px; font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--muted); }
.nav-links a{ transition:color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--text); }

/* ---------- HERO (home) ---------- */
.hero{ position:relative; overflow:hidden; padding:88px 0 0; border-top:none; }
.glow-blob{ position:absolute; border-radius:50%; pointer-events:none; filter:blur(4px); z-index:0; transition:transform .6s ease; }
.blob-a{ width:620px; height:620px; background:radial-gradient(circle, var(--violet-glow), transparent 70%); top:-220px; right:-160px; }
.blob-b{ width:460px; height:460px; background:radial-gradient(circle, var(--teal-glow), transparent 70%); bottom:-220px; left:-130px; }

.hero-ghost{
  position:absolute; top:6%; right:-2%; font-size:clamp(90px, 19vw, 260px); font-weight:800;
  color:rgba(255,255,255,0.025); white-space:nowrap; pointer-events:none; z-index:0; user-select:none; line-height:1;
}
@media (max-width:860px){ .hero-ghost{ display:none; } }

.hero-inner{ position:relative; z-index:1; max-width:880px; }
.hero-status{ display:inline-flex; align-items:center; gap:9px; font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--teal); margin-bottom:18px; min-height:18px; }
.hero-status .status-dot{ width:6px; height:6px; border-radius:50%; background:var(--violet-2); box-shadow:0 0 8px var(--violet-glow); flex-shrink:0; }
.status-text::after{ content:'_'; margin-left:2px; animation:blink 1s step-end infinite; }
@keyframes blink{ 0%,50%{ opacity:1; } 50.01%,100%{ opacity:0; } }

@keyframes heroUp{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
.hero-anim{ opacity:0; animation:heroUp .7s ease forwards; }
@media (prefers-reduced-motion: reduce){
  .hero-anim{ opacity:1; animation:none; }
  .status-text::after{ animation:none; }
}

.hero-head{ font-weight:800; letter-spacing:-0.02em; }
.hero-head .line-1{
  display:block; font-family:'JetBrains Mono', monospace; font-weight:500; text-transform:none;
  font-size:clamp(15px,1.6vw,19px); color:var(--muted); letter-spacing:0; margin-bottom:14px;
}
.hero-head .line-2{ display:block; font-size:clamp(42px, 8.6vw, 96px); line-height:0.98; }

.hero p.sub{ color:var(--muted); font-size:17px; max-width:540px; margin:26px 0 30px; }
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  font-family:'JetBrains Mono', monospace; font-size:13px; padding:13px 22px; border-radius:7px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{
  background:linear-gradient(135deg, var(--violet), #6443e8); color:#fff; font-weight:500;
  box-shadow:0 16px 32px -14px var(--violet-glow), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-primary:hover{ box-shadow:0 20px 40px -14px rgba(124,92,252,0.55), inset 0 0 0 1px rgba(255,255,255,0.16); }
.btn-ghost{ border:1px solid var(--border); color:var(--text); }
.btn-ghost:hover{ border-color:var(--teal); color:var(--teal); }

/* ---------- PAGE HEADER (about / work / contact / case studies) ---------- */
.page-header{ position:relative; overflow:hidden; padding:120px 0 50px; border-top:none; }
.page-header h1{ font-size:clamp(36px,6vw,64px); line-height:1.06; margin-top:14px; }
.page-header p.sub{ color:var(--muted); font-size:17px; max-width:560px; margin-top:18px; }

.back-link{ display:inline-flex; align-items:center; gap:8px; font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--muted); margin-bottom:24px; transition:color .15s ease; }
.back-link:hover{ color:var(--teal); }

/* ---------- CLIENT HERO (case study pages) ---------- */
.client-hero{ position:relative; padding:128px 0 50px; overflow:hidden; border-top:none; }
.ghost-name{
  position:absolute; top:12%; left:-2%; font-size:clamp(70px,15vw,210px); font-weight:800;
  color:rgba(255,255,255,0.035); white-space:nowrap; z-index:0; user-select:none; line-height:1; pointer-events:none;
}
@media (max-width:760px){ .ghost-name{ display:none; } }
.client-hero-content{ position:relative; z-index:1; }
.client-hero h1{ font-size:clamp(38px,7vw,78px); line-height:1.0; margin:14px 0 10px; }
.client-scope{ font-family:'JetBrains Mono', monospace; font-size:14px; color:var(--violet-2); }
.client-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.client-status{ display:flex; align-items:center; gap:8px; font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--muted); margin-top:18px; }

.case-nav{ display:flex; justify-content:space-between; align-items:center; padding:40px 0; border-top:1px solid var(--border-soft); font-family:'JetBrains Mono', monospace; font-size:13px; flex-wrap:wrap; gap:14px; }
.case-nav a{ color:var(--muted); transition:color .15s ease; display:inline-flex; align-items:center; gap:8px; }
.case-nav a:hover{ color:var(--teal); }

/* ---------- MARQUEE ---------- */
.marquee{ overflow:hidden; white-space:nowrap; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); background:var(--surface); padding:20px 0; margin-top:64px; }
.marquee-track{ display:flex; width:max-content; animation:marqueeScroll 32s linear infinite; }
.marquee.reverse .marquee-track{ animation-direction:reverse; }
.marquee-set{ display:flex; align-items:center; gap:40px; padding-right:40px; flex-shrink:0; }
.marquee-word{
  font-family:'Bricolage Grotesque'; font-weight:700; font-size:22px; text-transform:uppercase;
  letter-spacing:0.01em; color:var(--muted); display:inline-flex; align-items:center; gap:40px;
}
.marquee-word .mdot{ width:6px; height:6px; border-radius:50%; background:var(--violet-2); flex-shrink:0; }
@keyframes marqueeScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }

/* ---------- TRUST STRIP ---------- */
.trust-strip{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:30px 0; }
.trust-label{ font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:0.1em; white-space:nowrap; }
.trust-names{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--muted); }
.trust-names a{ transition:color .15s ease; }
.trust-names a:hover{ color:var(--teal); }
.trust-names .sep{ color:var(--border); }

/* ---------- STATS ---------- */
.stats-section{ padding:24px 0 56px; border-top:none; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-num{
  font-family:'Bricolage Grotesque'; font-size:42px; font-weight:800;
  background:linear-gradient(135deg, var(--violet-2), var(--teal)); -webkit-background-clip:text; background-clip:text; color:transparent;
  opacity:0; transform:scale(0.85); transition:opacity .5s ease, transform .5s ease;
}
.stat-num.in{ opacity:1; transform:scale(1); }
@media (prefers-reduced-motion: reduce){ .stat-num{ opacity:1; transform:none; transition:none; } }
.stat-label{ font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--muted); margin-top:6px; }

/* ---------- BILLBOARD ---------- */
.billboard{ padding:90px 0; text-align:center; border-top:1px solid var(--border-soft); }
.billboard h2{ font-size:clamp(30px,5.6vw,58px); line-height:1.12; max-width:880px; margin:0 auto; }

/* ---------- PIPELINE ---------- */
.pipeline-section{ padding:56px 0; border-top:1px solid var(--border-soft); }
.pipeline-cap{ font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--faint); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:14px; }
.pipeline-frame{ border:1px solid var(--border); border-radius:12px; background:linear-gradient(180deg, var(--surface), var(--bg)); padding:18px 8px 6px; box-shadow:0 30px 70px -36px rgba(124,92,252,0.25); }
svg.pipeline{ width:100%; height:auto; display:block; }
.pl-path{ stroke:var(--border); stroke-width:2; fill:none; }
.pl-node{ fill:var(--teal); filter:drop-shadow(0 0 6px var(--teal-glow)); }
.pl-node-ring{ fill:none; stroke:var(--teal); stroke-width:1.5; opacity:0.35; }
.pl-pulse{ fill:var(--violet-2); filter:drop-shadow(0 0 8px var(--violet-glow)); }
.pl-label{ font-family:'JetBrains Mono', monospace; font-size:27px; font-weight:500; fill:var(--text); text-anchor:middle; }
.pl-sublabel{ font-family:'JetBrains Mono', monospace; font-size:17px; fill:var(--faint); text-anchor:middle; }
@media (prefers-reduced-motion: reduce){ .pl-pulse{ display:none; } }

/* ---------- SECTION GENERIC ---------- */
section{ position:relative; padding:84px 0; border-top:1px solid var(--border-soft); }
.section-head{ margin-bottom:48px; max-width:680px; }
.section-head h2{ font-size:clamp(26px,3.4vw,34px); margin-top:10px; }
.section-head p{ color:var(--muted); margin-top:10px; font-size:15.5px; }

/* ---------- TIMELINE (process / phase breakdown) ---------- */
.timeline{ position:relative; display:flex; justify-content:space-between; gap:24px; }
.timeline::before{ content:''; position:absolute; top:25px; left:0; right:0; height:1px; background:var(--border); z-index:0; }
.tl-step{ position:relative; flex:1; padding-top:74px; }
.tl-num{
  position:absolute; top:0; left:0; width:50px; height:50px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-family:'Bricolage Grotesque'; font-weight:800; font-size:17px; color:var(--teal); z-index:1;
  transition:border-color .2s ease, color .2s ease;
}
.tl-step:hover .tl-num{ border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-glow); }
.tl-step h3{ font-size:16px; margin-bottom:8px; }
.tl-step p{ font-size:13.5px; color:var(--muted); line-height:1.55; }
@media (max-width:860px){
  .timeline{ flex-direction:column; gap:36px; }
  .timeline::before{ top:0; bottom:0; left:24px; right:auto; width:1px; height:auto; }
  .tl-step{ padding-top:0; padding-left:74px; }
}

/* ---------- BENTO CAPABILITY CARDS ---------- */
.bento-top{ margin-bottom:16px; }
.bento-bottom{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card{
  display:block; background:var(--surface); border:1px solid var(--border-soft); border-radius:14px; padding:24px 22px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor:pointer;
}
.card-cta{ display:block; font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--teal); margin-top:14px; }
.preview-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:860px){ .preview-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .preview-grid{ grid-template-columns:1fr; } }
.card:hover{ transform:translateY(-3px); border-color:var(--teal); box-shadow:0 20px 44px -26px rgba(0,229,195,0.25); }
.card h3{ font-size:15px; margin-bottom:8px; color:var(--text); }
.card-tag{ font-size:13px; color:var(--muted); line-height:1.5; }
.card-hint{ display:block; font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--faint); margin-top:14px; transition:opacity .2s ease; }
.card:hover .card-hint, .card.tap-open .card-hint{ opacity:0; height:0; margin-top:0; }
.card-detail{ max-height:0; opacity:0; overflow:hidden; transition:max-height .35s ease, opacity .3s ease, margin-top .35s ease; }
.card:hover .card-detail, .card.tap-open .card-detail{ max-height:260px; opacity:1; margin-top:14px; }
.card-row{ display:flex; gap:10px; font-size:13px; padding:9px 0; border-top:1px solid var(--border-soft); }
.card-row:first-of-type{ border-top:none; }
.card-row .k{ font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--faint); letter-spacing:0.06em; width:56px; flex-shrink:0; padding-top:1px; }
.card-row .v{ color:var(--muted); line-height:1.45; }

.card.featured{ display:flex; align-items:center; gap:40px; padding:34px 38px; }
.card.featured .card-main{ flex-shrink:0; max-width:300px; }
.card.featured h3{ font-size:24px; margin-bottom:10px; }
.card.featured .card-tag{ font-size:15px; }
.card.featured .card-hint{ margin-top:18px; }
.card.featured .card-detail{ flex:1; max-height:0; }
.card.featured:hover .card-detail, .card.featured.tap-open .card-detail{ max-height:none; }
@media (max-width:860px){
  .bento-bottom{ grid-template-columns:1fr 1fr; }
  .card.featured{ flex-direction:column; align-items:flex-start; gap:18px; }
}
@media (max-width:560px){ .bento-bottom{ grid-template-columns:1fr; } }

/* ---------- EDITORIAL CASE LIST (work index) ---------- */
.case{ position:relative; padding:54px 0; border-top:1px solid var(--border-soft); overflow:hidden; transition:background .2s ease; display:block; }
.case:first-of-type{ border-top:none; }
.case-index{ font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--faint); letter-spacing:0.08em; }
.case-ghost{
  position:absolute; top:8px; left:-2px; font-size:clamp(48px,9vw,116px); line-height:1; font-weight:800;
  color:rgba(255,255,255,0.045); white-space:nowrap; z-index:0; user-select:none; pointer-events:none;
}
.case:nth-child(even) .case-ghost{ left:auto; right:-2px; }
.case-content{ position:relative; z-index:1; max-width:640px; padding-top:50px; }
.case:nth-child(even) .case-content{ margin-left:auto; }
.case-name{ font-size:22px; font-weight:700; margin-bottom:4px; transition:color .2s ease; }
.case:hover .case-name{ color:var(--teal); }
.case-scope{ font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--violet-2); display:block; margin-bottom:14px; }
.case-desc{ color:var(--muted); font-size:14.5px; line-height:1.65; }
.case-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.tag{ font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--muted); border:1px solid var(--border); border-radius:4px; padding:3px 8px; }
.case-status{ display:flex; align-items:center; gap:8px; font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--muted); margin-top:18px; }
.case-readmore{ display:inline-flex; align-items:center; gap:6px; font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--teal); margin-top:18px; }
.dot{ width:7px; height:7px; border-radius:50%; background:var(--teal); flex-shrink:0; box-shadow:0 0 8px var(--teal-glow); }
@media (max-width:760px){
  .case-ghost{ display:none; }
  .case-content{ padding-top:0; margin-left:0 !important; max-width:100%; }
}

/* ---------- ABOUT (portrait + bio) ---------- */
.about-grid{ display:grid; grid-template-columns:260px 1fr; gap:48px; align-items:start; }
.portrait-frame{ position:relative; aspect-ratio:4/5; width:100%; }
.portrait-photo{ position:absolute; inset:0; overflow:hidden; border-radius:8px; }
.portrait-placeholder{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(155deg, var(--surface-2), #1a1a2c); }
.monogram{ font-family:'Bricolage Grotesque'; font-size:68px; font-weight:800; background:linear-gradient(135deg, var(--violet-2), var(--teal)); -webkit-background-clip:text; background-clip:text; color:transparent; opacity:0.55; }
.portrait-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:contrast(1.06) saturate(0.9) brightness(0.95); }
.portrait-tint{ position:absolute; inset:0; pointer-events:none; background:linear-gradient(160deg, rgba(124,92,252,0.3), rgba(10,10,19,0.4) 55%, rgba(0,229,195,0.22)); mix-blend-mode:multiply; }
.corner{ position:absolute; width:22px; height:22px; pointer-events:none; }
.corner.tl{ top:-1px; left:-1px; border-top:2px solid var(--teal); border-left:2px solid var(--teal); }
.corner.tr{ top:-1px; right:-1px; border-top:2px solid var(--teal); border-right:2px solid var(--teal); }
.corner.bl{ bottom:-1px; left:-1px; border-bottom:2px solid var(--teal); border-left:2px solid var(--teal); }
.corner.br{ bottom:-1px; right:-1px; border-bottom:2px solid var(--teal); border-right:2px solid var(--teal); }
.portrait-coord{ display:block; font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--faint); margin-top:10px; }
.about-bio p{ color:var(--muted); font-size:16.5px; line-height:1.8; max-width:640px; }
.about-bio p + p{ margin-top:16px; }
@media (max-width:760px){ .about-grid{ grid-template-columns:1fr; } .portrait-frame{ max-width:220px; } }

/* ---------- CONTACT ---------- */
.contact-section{ background:linear-gradient(180deg, var(--bg), #0d0d18); border-top:none; }
.contact{ text-align:center; max-width:760px; margin:0 auto; }
.contact .eyebrow{ display:flex; justify-content:center; margin-bottom:18px; }
.contact h2{ font-size:clamp(32px,6.2vw,68px); line-height:1.08; margin-bottom:18px; }
.contact p.sub{ color:var(--muted); font-size:16px; margin-bottom:32px; }
.contact-links{ display:flex; justify-content:center; gap:22px; flex-wrap:wrap; margin-bottom:14px; }
.contact-links a{ font-family:'JetBrains Mono', monospace; font-size:14px; color:var(--text); border-bottom:1px solid var(--border); padding-bottom:2px; transition:border-color .15s ease, color .15s ease; }
.contact-links a:hover{ color:var(--teal); border-color:var(--teal); }
.contact-loc{ font-size:13px; color:var(--faint); }

footer{ border-top:1px solid var(--border-soft); padding:24px 0 40px; font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--faint); text-align:center; }
footer a{ transition:color .15s ease; }
footer a:hover{ color:var(--teal); }

/* ---------- REVEAL ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

@media (max-width:560px){
  .nav-links{ gap:14px; font-size:11.5px; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .pl-label{ font-size:33px; }
  .pl-sublabel{ font-size:21px; }
  .trust-strip{ flex-direction:column; align-items:flex-start; gap:10px; }
  .contact-links{ flex-direction:column; gap:12px; }
  .marquee-word, .marquee-word span{ font-size:17px; }
}
