/* naveenlabs.tech: the same product system as the tool sites (Trust, Radar, Blueprints, Chat).
   Quiet surfaces, precise type; the one moving element is the live-projects orbit in the hero. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --bg: #FAFAFB; --surface: #FFFFFF; --surface-2: #F2F4F6; --ink: #151A21; --ink-2: #3C4550; --muted: #66707C;
  --rule: rgba(21, 26, 33, 0.09); --rule-2: rgba(21, 26, 33, 0.16);
  --accent: #151A21; --ok: #0A7A55;
  --trust: #087A4E; --radar: #8F5300; --blueprints: #5252E6; --chat: #6A4AE8; --finance: #7048B6;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -12px rgba(16, 24, 40, 0.18);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px; --gutter: clamp(20px, 4vw, 48px);
  --r-md: 12px; --r-lg: 18px;
}
/* Dark theme (set by theme.js from the saved choice or the system setting). */
  :root[data-theme="dark"] {
    --bg: #0D1015; --surface: #151A21; --surface-2: #1B212A; --ink: #ECEFF3; --ink-2: #C3CAD3; --muted: #939DA9;
    --rule: rgba(236, 239, 243, 0.09); --rule-2: rgba(236, 239, 243, 0.16);
    --accent: #ECEFF3; --ok: #4CC496;
    --trust: #3DDC97; --radar: #F5A623; --blueprints: #8B8BFF; --chat: #9F86FF; --finance: #B497F0;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); }
.bar-inner, main, .foot { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bar-inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { border-radius: 6px; }
.sections { display: flex; gap: 4px; }
.sections a, .social a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.sections a:hover, .social a:hover { color: var(--ink); background: var(--surface-2); }
.social { display: flex; gap: 4px; margin-left: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
h1 { margin: 0; font-size: clamp(42px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 650; text-wrap: balance; }
.role { margin: 14px 0 0; font-size: 21px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.lede { margin: 24px 0 32px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--ink); color: var(--bg); border: 1px solid transparent; transition: transform 120ms ease, background-color 120ms ease; }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn:active { transform: scale(0.98); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule-2); box-shadow: var(--shadow-1); }
.btn-quiet:hover { background: var(--surface-2); }

/* Live projects window */
.window { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.window-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.systems { display: grid; grid-template-columns: 1fr; }
.system {
  position: relative; height: clamp(250px, 30vw, 330px);
  --orbit1-d: clamp(104px, 12vw, 136px); --orbit2-d: clamp(168px, 19.5vw, 216px);
  --orbit1-r: calc(var(--orbit1-d) / 2); --orbit2-r: calc(var(--orbit2-d) / 2);
}
.system + .system { border-left: 1px solid var(--rule); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid var(--rule-2); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-1 { width: var(--orbit1-d); height: var(--orbit1-d); }
.orbit-2 { width: var(--orbit2-d); height: var(--orbit2-d); border-style: dashed; }
.sun { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--rule-2); z-index: 1; }
.sun-label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

/* The track rotates from its start angle; the planet counter-rotates so its label stays upright.
   Standalone `rotate` is animated (not `transform`) so the sweep follows the ring. */
.orbit-track { position: absolute; top: 50%; left: 50%; width: 0; height: 0; rotate: var(--start); transform: translateX(var(--r)); animation: revolve 60s linear infinite; }
@keyframes revolve { to { rotate: calc(var(--start) + 360deg); } }
.planet { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 2; transform-origin: 0 0; rotate: calc(-1 * var(--start)); animation: counter 60s linear infinite; color: var(--c, var(--ink)); }
@keyframes counter { to { rotate: calc(-1 * (var(--start) + 360deg)); } }
.planet-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); transition: box-shadow 150ms ease; }
.planet-label { position: absolute; top: 11px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.planet:hover .planet-dot, .planet:focus-visible .planet-dot { box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 22%, transparent); }
.planet:hover .planet-label { color: var(--c); }
.planet-mark { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 2px 8px rgba(0, 0, 0, 0.18); transition: box-shadow 150ms ease; }
.planet:hover .planet-mark, .planet:focus-visible .planet-mark { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 28%, transparent), 0 2px 8px rgba(0, 0, 0, 0.18); }
.planet.has-mark .planet-label { top: 17px; }
.is-trust { --c: var(--trust); } .is-radar { --c: var(--radar); } .is-blueprints { --c: var(--blueprints); }
.is-chat { --c: var(--chat); } .is-finance { --c: var(--finance); }

/* Sections */
.block { padding: 56px 0 8px; border-top: 1px solid var(--rule); }
h2 { margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
h3 { margin: 32px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.block-lede { margin: 0; color: var(--muted); font-size: 16px; }

.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.project:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--rule)); box-shadow: var(--shadow-1); }
.project-dot { grid-row: 1; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--c); }
.project-mark { grid-row: 1; margin-top: 2px; border-radius: 6px; }
.project-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.project-text { grid-column: 2; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.project-host { grid-column: 2; margin-top: 4px; font-size: 13.5px; color: var(--c); font-weight: 500; }

.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 900px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }

.contacts { list-style: none; margin: 16px 0 0; padding: 0; max-width: 640px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.contacts li + li { border-top: 1px solid var(--rule); }
.contacts a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; transition: background-color 120ms ease; }
.contacts a:hover { background: var(--surface-2); }
.contact-label { font-size: 14px; color: var(--muted); }
.contact-value { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; text-align: right; }

main { padding-bottom: 64px; }
.foot { position: relative; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot p { margin: 0; }
.foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }
.disclaimer { font-size: 13px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .system { height: 290px; --orbit1-d: 124px; --orbit2-d: 200px; }
}
@media (max-width: 640px) {
  .sections { display: none; }
  .bar-inner { gap: 10px; }
  .social a { padding: 6px 8px; font-size: 14px; }
  .systems { grid-template-columns: 1fr; }
  .system + .system { border-left: 0; border-top: 1px solid var(--rule); }
  .projects { grid-template-columns: 1fr; }
  .contacts a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-value { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-track, .planet { animation: none; }
  * { transition: none !important; }
}

.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; margin-left: 8px;
  border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 16px; height: 16px; }
/* The icon shows the theme a click switches to: a moon in light mode, a sun in dark mode. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
