/* Anjaney Shrivastava · personal research portfolio · v1.0 */
:root {
  color-scheme: dark;
  --bg: #080d17;
  --bg-2: #0d1421;
  --surface: #111a2b;
  --surface-hi: #182337;
  --line: rgba(167,190,215,.16);
  --text: #eef3fa;
  --muted: #9caec3;
  --subtle: #73859b;
  --accent: #91e9d4;
  --accent-2: #acb3ff;
  --code: #c3d0e0;
  --shadow: 0 20px 90px rgba(0,0,0,.25);
  --max: 1160px;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --bg-2: #edf1f6;
  --surface: #ffffff;
  --surface-hi: #f7f9fc;
  --line: rgba(35,57,83,.16);
  --text: #182337;
  --muted: #56667b;
  --subtle: #697a8f;
  --accent: #087c72;
  --accent-2: #5b61bc;
  --code: #293e55;
  --shadow: 0 20px 80px rgba(65,91,125,.09);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.66 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content:""; position: absolute; inset:0 0 auto; height:980px; background:radial-gradient(ellipse at 81% 18%,rgba(89,121,169,.13),transparent 42%),radial-gradient(ellipse at 24% 8%,rgba(85,204,176,.065),transparent 42%); pointer-events:none; z-index:-1; }
::selection { background: #82e5d0; color:#0b1f27; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
.container { width:min(var(--max), calc(100% - 80px)); margin:auto; }
.site-header { position:sticky; top:0; z-index:20; border-bottom:1px solid transparent; transition:background .25s,border-color .25s; }
.site-header.scrolled { background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); border-bottom-color:var(--line); }
.header-inner { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:13px; white-space:nowrap; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:11px; font-size:.88rem; line-height:1; font-weight:800; letter-spacing:-.08em; color:var(--accent); background:var(--surface); }
.brand-name { display:block; font-size:.87rem; font-weight:750; letter-spacing:.002em; line-height:1.18; }
.brand-caption { display:block; font-size:.62rem; font-weight:650; letter-spacing:.155em; color:var(--subtle); margin-top:5px; }
.desktop-nav { display:flex; gap:30px; margin-left:auto; }
.desktop-nav a { font-size:.81rem; color:var(--muted); font-weight:600; transition:color .2s; }
.desktop-nav a:hover,.desktop-nav a[aria-current="page"] { color:var(--accent); }
.header-actions { display:flex; gap:10px; align-items:center; }
.icon-button { display:grid; place-items:center; width:40px; height:40px; cursor:pointer; color:var(--text); border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.icon-button:hover { border-color:var(--accent); }
.icon-button svg { width:18px; height:18px; }
.menu-button { display:none; }
.mobile-nav { display:none; }
.eyebrow { display:flex; align-items:center; gap:12px; color:var(--accent); text-transform:uppercase; letter-spacing:.19em; font-weight:750; font-size:.73rem; }
.eyebrow::before { content:""; display:inline-block; width:21px; height:1px; background:var(--accent); }
.hero { padding:112px 0 108px; overflow:hidden; }
.hero-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.88fr); align-items:center; gap:65px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.13; letter-spacing:-.055em; }
.hero h1 { margin:25px 0 25px; font-size:clamp(3.2rem, 6.4vw, 6.05rem); font-weight:770; max-width:920px; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero-copy { color:var(--muted); font-size:1.08rem; max-width:560px; line-height:1.82; }
.button-row { display:flex; flex-wrap:wrap; gap:13px; margin-top:33px; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:12px; min-height:49px; padding:12px 20px; border-radius:10px; font-size:.86rem; font-weight:760; transition:transform .2s,border-color .2s,background .2s; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { color:#062721; background:#91e9d4; }
.btn-primary:hover { background:#b8ffec; }
.btn-outline { border:1px solid var(--line); background:var(--surface); }
.btn-outline:hover { border-color:var(--accent); }
.btn svg { width:16px; height:16px; }
.hero-notes { margin-top:43px; display:flex; align-items:center; flex-wrap:wrap; gap:15px; color:var(--subtle); font-size:.76rem; letter-spacing:.02em; }
.hero-notes span+span::before { content:"·"; margin-right:15px; color:var(--accent); }
.orbit-scene { position:relative; width:min(100%,435px); aspect-ratio:1; margin-left:auto; isolation:isolate; }
.orbit-scene::before { content:""; position:absolute; inset:9%; border-radius:50%; background:radial-gradient(circle,rgba(66,120,150,.21),rgba(35,71,99,.05) 48%,transparent 66%); filter:blur(18px); }
.orbit { position:absolute; inset:7%; border-radius:50%; border:1px solid rgba(135,184,209,.2); }
.orbit.o2 { inset:20%; border-style:dashed; animation:rotate 55s linear infinite; }
.orbit.o3 { inset:34%; border-color:rgba(145,233,212,.45); }
.orbit.o1::before { position:absolute; content:""; width:9px;height:9px; top:12%; left:17%;border-radius:50%; background:var(--accent);box-shadow:0 0 20px var(--accent); }
.orbit.o2::after { position:absolute; content:"";width:8px;height:8px;right:12%;bottom:18%; border-radius:50%;background:var(--accent-2); box-shadow:0 0 20px var(--accent-2); }
.orbit-core { position:absolute; inset:40%; border-radius:50%;display:grid; place-items:center; color:var(--accent); background:var(--surface); border:1px solid rgba(145,233,212,.4); box-shadow:0 0 65px rgba(145,233,212,.15); }
.orbit-core svg { width:36px;height:36px; }
.coord { position:absolute; color:var(--subtle);font-size:.65rem; letter-spacing:.1em; font-family:ui-monospace,SFMono-Regular,monospace; }
.coord.c1 { left:0; top:20%; }.coord.c2 { right:0; bottom:20%; }.coord.c3 { left:16%;bottom:3%; }
.orbit-label { position:absolute; display:flex;align-items:center;gap:9px;font-size:.65rem;letter-spacing:.11em;color:var(--muted);font-family:ui-monospace,monospace; }
.orbit-label::before { content:"";width:6px;height:6px;border-radius:50%;background:var(--accent); }
.orbit-label.l1 { right:0;top:11%; }.orbit-label.l2 { left:0;bottom:13%; }
@keyframes rotate { to { transform:rotate(360deg); } }
.section { padding:99px 0; border-top:1px solid var(--line); }
.section-header { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:34px; }
.section-index { color:var(--accent); font-family:ui-monospace,SFMono-Regular,monospace; font-size:.8rem; margin-bottom:14px; }
.section h2 { font-size:clamp(2rem,3.7vw,3.45rem); margin-bottom:0; }
.section-description { color:var(--muted); max-width:435px; font-size:.91rem; margin-bottom:0; }
.research-grid { display:grid; grid-template-columns:1.17fr .83fr; gap:18px; }
.research-card { position:relative; display:flex; flex-direction:column; min-height:385px; padding:36px; background:var(--surface); border:1px solid var(--line); border-radius:17px; overflow:hidden; transition:border-color .2s,transform .2s; }
.research-card:hover { border-color:rgba(145,233,212,.45); transform:translateY(-3px); }
.research-card.primary::after { content:"";position:absolute; width:330px;height:330px;right:-145px;top:-170px;border-radius:50%; background:radial-gradient(circle,rgba(145,233,212,.16),transparent 70%);pointer-events:none; }
.card-top { display:flex; justify-content:space-between;align-items:center;gap:14px; }
.tag { font-family:ui-monospace,SFMono-Regular,monospace; color:var(--accent); font-size:.69rem;letter-spacing:.07em; text-transform:uppercase; }
.tag.purple { color:var(--accent-2); }
.card-no { color:var(--subtle);font-family:ui-monospace,monospace;font-size:.75rem; }
.research-card h3 { font-size:clamp(2rem,3vw,2.65rem);font-weight:780;letter-spacing:-.065em;margin:60px 0 14px; }
.research-card p { max-width:430px; color:var(--muted);font-size:.91rem;line-height:1.8; }
.card-bottom { border-top:1px solid var(--line);margin-top:auto;padding-top:19px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:.76rem;color:var(--subtle); }
.card-bottom a { color:var(--text);font-weight:700; white-space:nowrap; }.card-bottom a:hover { color:var(--accent); }
.card-bottom a svg { width:13px;height:13px;vertical-align:middle; }
.work-grid { display:grid; grid-template-columns:repeat(3,1fr);gap:18px; }
.work-card { padding:28px; min-height:290px; border:1px solid var(--line);border-radius:16px;background:var(--surface); }
.work-icon { display:grid;place-items:center;width:45px;height:45px; border:1px solid var(--line);border-radius:12px;margin-bottom:40px;color:var(--accent); }
.work-icon svg { width:21px;height:21px; }
.work-card h3 { font-size:1.25rem;letter-spacing:-.035em;margin-bottom:12px; }
.work-card p { color:var(--muted);font-size:.87rem;line-height:1.78;margin-bottom:0; }
.about-grid { display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start; }
.about-grid p { color:var(--muted);font-size:1rem;line-height:1.9; }
.about-grid .lede { color:var(--text);font-size:1.17rem;line-height:1.8; }
.fact-list { margin:0; padding:0; list-style:none; }
.fact-list li { display:flex;justify-content:space-between;gap:22px;padding:21px 0;border-bottom:1px solid var(--line);font-size:.86rem; }
.fact-list li:first-child { border-top:1px solid var(--line); }
.fact-list li span { color:var(--subtle); }.fact-list li strong { font-weight:640;text-align:right; }
.contact-panel { padding:55px;display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:40px;border:1px solid rgba(145,233,212,.25);border-radius:18px;background:linear-gradient(110deg,rgba(56,117,113,.12),rgba(75,74,122,.06)),var(--surface); }
.contact-panel h2 { font-size:clamp(2.1rem,4.1vw,3.7rem); margin:12px 0 20px; }
.contact-panel p { color:var(--muted);font-size:.96rem;max-width:530px; }
.contact-side { display:flex;flex-direction:column;align-items:flex-start;gap:13px; }
.contact-side small { color:var(--subtle); font-size:.78rem; }
.site-footer { padding:38px 0 50px; border-top:1px solid var(--line); }
.footer-inner { display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;color:var(--subtle);font-size:.77rem; }
.footer-inner strong { color:var(--text);font-weight:700; }
.footer-links { display:flex;gap:23px; }.footer-links a:hover { color:var(--accent); }
/* Research subpages */
.inner-hero { padding:100px 0 78px; }
.inner-hero .back { display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem;font-weight:650;margin-bottom:44px; }
.inner-hero .back:hover { color:var(--accent); }
.inner-hero h1 { max-width:1000px;font-size:clamp(2.8rem,5.8vw,5.3rem);margin:20px 0; }
.inner-hero .subtitle { color:var(--muted);font-size:1.12rem;max-width:730px;line-height:1.88; }
.metadata { display:flex;flex-wrap:wrap;gap:18px 30px;margin-top:29px;color:var(--subtle);font-family:ui-monospace,monospace;font-size:.73rem; }
.metadata strong { color:var(--text);font-weight:580; }
.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:75px; }
.article-body h2 { font-size:1.55rem; margin:0 0 18px; }
.article-body p,.article-body li { color:var(--muted);font-size:.97rem;line-height:1.9; }
.article-body section { padding:0 0 41px;margin:0 0 41px;border-bottom:1px solid var(--line); }
.article-body section:last-child { border:0; }
.article-body ul { padding-left:20px; }
.aside-card { position:sticky;top:115px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface); }
.aside-card h3 { letter-spacing:-.02em;font-size:1.02rem;margin-bottom:13px; }
.aside-card p { color:var(--muted);font-size:.8rem; }
.aside-card .btn { width:100%;margin-top:9px; }
.notice { border-left:2px solid var(--accent); padding:18px 22px;background:var(--surface);color:var(--muted);font-size:.88rem;line-height:1.8;border-radius:0 9px 9px 0; }
.small-caps { font-size:.71rem;font-weight:720;letter-spacing:.14em;color:var(--subtle);text-transform:uppercase; }
@media (max-width:980px) {
  .container { width:min(var(--max), calc(100% - 48px)); }
  .hero { padding:85px 0; }.hero-layout { gap:25px;grid-template-columns:minmax(0,1.25fr) minmax(250px,.8fr); }
  .research-card { padding:28px; }.work-grid { grid-template-columns:repeat(2,1fr); }.work-card:last-child { grid-column:span 2;min-height:230px; }
  .about-grid { gap:40px; }.article-layout { grid-template-columns:minmax(0,1fr) 235px;gap:40px; }
}
@media (max-width:720px) {
  .container { width:calc(100% - 36px); }.header-inner { min-height:73px; }.desktop-nav { display:none; }.menu-button { display:grid; }
  .mobile-nav { display:none;flex-direction:column;border-top:1px solid var(--line);padding:16px 18px 24px;background:var(--bg); }
  .mobile-nav.open { display:flex; }.mobile-nav a { padding:10px 0;color:var(--muted);font-size:.92rem; }
  .hero { padding:72px 0 75px; }.hero-layout { grid-template-columns:1fr; }.hero h1 { font-size:clamp(3.15rem,11vw,5rem); }
  .hero-copy { font-size:1rem; }.orbit-scene { margin:8px auto 0;width:min(81%,310px); }
  .hero-notes { margin-top:30px; }.section { padding:72px 0; }.section-header { display:block; }.section-description { margin-top:16px; }
  .research-grid,.about-grid,.article-layout { grid-template-columns:1fr; }.research-card { min-height:350px; }.research-card h3 { margin-top:48px; }
  .work-grid { grid-template-columns:1fr; }.work-card,.work-card:last-child { grid-column:auto;min-height:235px; }.work-icon { margin-bottom:24px; }
  .about-grid { gap:28px; }.contact-panel { grid-template-columns:1fr;padding:30px;gap:12px; }.contact-panel h2 { margin-top:15px; }
  .inner-hero { padding:70px 0 60px; }.inner-hero .back { margin-bottom:37px; }
  .article-layout { gap:0; }.aside-card { position:relative;top:auto;margin-bottom:60px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important; } }
