@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #10131b;
  --surface: #171b25;
  --line: #303643;
  --ink: #f3f4fb;
  --muted: #b4bdce;
  --accent: #a7b4ff;
  --bright: #c5ceff;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); line-height: 1.06; font-weight: 700; letter-spacing: -.065em; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.035em; }
em { color: var(--accent); font-style: normal; }
.wrap, .header { width: min(82rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; left: 1rem; top: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--bright); color: var(--bg); }

.header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: .65rem; font: 800 1.45rem/1 Manrope, sans-serif; letter-spacing: -.055em; }
.brand svg { width: 2rem; fill: none; stroke: var(--accent); stroke-width: 2.7; }
.brand-light { margin-left: .2em; font-weight: 500; }
.brand-dot, .footer-brand span { color: var(--accent); }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); color: var(--muted); font-size: .95rem; }
.header nav a:hover, .text-link:hover, .footer a:hover { color: var(--bright); }
.nav-contact { border: 1px solid var(--line); border-radius: .4rem; padding: .6rem .85rem; color: var(--ink); }
.small-plus { margin-left: .5rem; color: var(--accent); }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 7vw, 6rem); }
.eyebrow, .stack-label, .service-category, .founder-field {
  color: var(--accent);
  font: 500 .78rem/1.4 var(--mono);
  letter-spacing: .08em;
}
.eyebrow { margin-bottom: 1rem; }
.hero .eyebrow { display: flex; align-items: center; gap: .75rem; }
.line { width: 1.5rem; min-width: .8rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.6rem, 7.05vw, 7.25rem); font-weight: 700; line-height: .99; letter-spacing: -.085em; }
.hero-description { max-width: 27rem; margin-block: 1.6rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; min-height: 3rem; padding: .7rem 1rem; border-radius: .4rem; font-weight: 700; font-size: .95rem; }
.button span { font: 500 1.2rem/1 var(--mono); }
.primary, .light { background: var(--bright); color: #111526; }
.primary:hover, .light:hover { background: #e6eaff; }
.text-link { padding-block: .35rem; border-bottom: 1px solid #6b7592; font-size: .95rem; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.08;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #414b68;
  border-radius: .65rem;
  background: radial-gradient(ellipse at 48% 44%, #303f74, transparent 64%), #161d30;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#a7b4ff18 1px, transparent 1px), linear-gradient(90deg, #a7b4ff18 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  mask-image: radial-gradient(ellipse, #000 24%, transparent 82%);
}
.art-label, .art-bottom { position: absolute; inset-inline: 1.05rem; display: flex; align-items: center; justify-content: space-between; color: #bac5ee; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; }
.art-label { top: 1rem; }
.art-bottom { bottom: .8rem; }
.art-bottom span:last-child { color: var(--bright); font-size: 1.2rem; }
.orbit {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid #9dacff65;
  border-radius: 50%;
  transform: rotateX(55deg) rotate(25deg);
}
.orbit-one { width: 61%; transform: rotateX(55deg) rotate(-25deg); }
.orbit-two { border-style: dashed; }
.orbit-signal { position: absolute; inset: -1px; }
.orbit-signal::before { content: ''; position: absolute; top: 0; left: 50%; translate: -50% -50%; width: .55rem; aspect-ratio: 1; border-radius: 50%; background: #e5eaff; box-shadow: 0 0 .85rem .18rem #879eff; }
.system { position: absolute; inset: 0; display: grid; place-items: center; perspective: 65rem; }
.plate {
  grid-area: 1 / 1;
  position: relative;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid #8398e6;
  border-radius: 10%;
  transform: translateY(var(--layer-offset)) rotateX(54deg) rotateZ(-35deg);
  box-shadow: 0 .35rem 0 #293961, 0 1rem 2rem #0b102577;
}
.plate-back { --layer-offset: 22%; background: #182747; border-color: #4d6192; }
.plate-mid { --layer-offset: 5%; background: #243761; border-color: #6178b2; }
.plate-front { --layer-offset: -15%; background: linear-gradient(145deg, #4965a4, #212d50 70%); }
.plate-lines { position: absolute; inset: 7%; border: 1px dashed #aabaff70; border-radius: 8%; }
.chip { position: absolute; inset: 26%; display: grid; place-items: center; border: 1px solid #d4ddff; border-radius: 14%; background: linear-gradient(145deg, #849cf5, #485eaa); box-shadow: 0 0 1.4rem #8da4ff88; }
.chip svg { width: 60%; fill: none; stroke: #f1f3ff; stroke-width: 4; }
.art-tag { position: absolute; padding: .3rem .5rem; border: 1px solid #6577a1; border-radius: .25rem; background: #171e32; color: #d3dcf9; font: 500 .69rem/1.3 var(--mono); }
.tag-app { top: 27%; right: 6%; }
.tag-sys { top: 56%; left: 7%; }
.tag-sec { right: 9%; bottom: 18%; }

.stack-bar { border-block: 1px solid var(--line); background: var(--surface); }
.stack-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4rem); padding-block: 1.25rem; }
.stack-label { max-width: 9rem; }
.technologies { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .65rem; }
.technology { display: grid; justify-items: center; gap: .4rem; color: var(--muted); text-align: center; font-size: .9rem; }
.technology img { width: 1.55rem; height: 1.55rem; object-fit: contain; filter: grayscale(1) brightness(1.15); opacity: .82; }
.technology:hover img { filter: none; opacity: 1; }

.section { padding-block: clamp(3.6rem, 8vw, 7rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: end; gap: 1.1rem 2rem; margin-bottom: 2rem; }
.section-heading > p, .service p, .approach-intro, .principles p, .founder-info > p:not(.eyebrow) { color: var(--muted); }
.section-heading > p { max-width: 24rem; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.service { display: flex; flex-direction: column; padding: clamp(1rem, 2.4vw, 1.9rem); border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.service:hover { border-color: #6978ae; }
.service-top { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; margin-bottom: 1rem; }
.service-icon, .principle-mark { display: grid; place-items: center; flex: 0 0 2.55rem; width: 2.55rem; height: 2.55rem; border: 1px solid #48557a; border-radius: .35rem; background: #222b43; color: var(--bright); font: 500 1.15rem/1 var(--mono); }
.service h3, .principles h3 { margin-bottom: .45rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: 1rem; }
.service .tags { margin-top: auto; }
.tags span { border: 1px solid #414b61; border-radius: .25rem; padding: .2rem .45rem; color: #c7d0e3; font-size: .78rem; }

.approach { padding-block: clamp(3.6rem, 8vw, 7rem); border-block: 1px solid var(--line); background: #151b2a; }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.75rem, 7vw, 6rem); align-items: start; }
.approach-intro { max-width: 26rem; margin-block: 1.2rem; }
.principles article { display: flex; align-items: flex-start; gap: .9rem; padding-block: 1rem; border-top: 1px solid #394359; }
.principles article:last-child { border-bottom: 1px solid #394359; }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.founder { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.founder-monogram { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; min-height: 9rem; padding: 1.25rem; background: #28365a; isolation: isolate; }
.founder-monogram > span:first-child { color: #d4ddff; font: 700 clamp(3rem, 7vw, 5.5rem)/1 Manrope, sans-serif; letter-spacing: -.08em; }
.mukund { background: #263c45; }
.mukund > span:first-child { color: #c4e3ec; }
.monogram-grid { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(120deg, transparent 0 20px, #e5ecff20 20px 21px); mask-image: linear-gradient(to right, transparent 20%, #000); }
.founder-field { color: #e0e6f9; }
.founder-info { padding: clamp(1rem, 3vw, 2rem); }
.founder-info .eyebrow { margin-bottom: .5rem; }
.founder-info h3 { margin-bottom: .55rem; }

.contact { padding: clamp(1.2rem, 4vw, 3.3rem); border: 1px solid #6274aa; border-radius: .65rem; background: radial-gradient(ellipse at top right, #394b82, transparent 72%), #242f54; }
.contact-top, .contact-bottom, .email-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.25rem; }
.contact-top { margin-bottom: .7rem; }
.contact .eyebrow { margin: 0; color: #d4ddff; }
.contact-symbol { color: var(--accent); font-size: 2rem; line-height: 1; }
.contact-bottom { margin-block: 1.05rem 1.5rem; }
.contact-bottom p { color: #d8def3; }
.email-row { border-top: 1px solid #7485b1; padding-top: .75rem; }
.email-row a { overflow-wrap: anywhere; }
.email-row button, .motion-toggle { border: 1px solid #7180a7; background: transparent; border-radius: .35rem; padding: .45rem .7rem; font-size: .9rem; }
.email-row button:hover, .motion-toggle:hover { background: #ffffff15; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.footer-brand { color: var(--ink); }
.motion-toggle[hidden] { display: none; }

@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header { justify-content: center; min-height: 4.5rem; }
  .menu-toggle { position: absolute; right: 0; display: flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
  .menu-toggle span { width: 20px; height: 2px; border-radius: 1px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { visibility: hidden; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; align-items: stretch; padding: .85rem; gap: .25rem; border: 1px solid var(--line); border-radius: 0 0 .55rem .55rem; background: var(--surface); }
  .header nav.open { display: grid; }
  .header nav a { padding: .65rem .8rem; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 1.2rem 3rem; }
  .hero-art { order: -1; aspect-ratio: 1.42; }
  .plate { width: 41%; }
  .orbit { width: 67%; }
  .orbit-one { width: 54%; }
  .hero h1 { font-size: clamp(2.85rem, 9.5vw, 5.75rem); }
  .hero-description { margin-block: 1rem 1.15rem; }
  .stack-inner, .section-heading, .approach-grid, .founders { grid-template-columns: minmax(0, 1fr); }
  .stack-label { max-width: none; }
  .technologies { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: .85rem; }
  .footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .footer-brand, .footer p { grid-column: 1 / -1; }
  .footer > a:last-child { grid-column: 2; justify-self: end; }
}

@media (max-width: 480px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .art-label, .art-bottom { inset-inline: .65rem; font-size: .65rem; }
  .art-tag { font-size: .6rem; padding: .2rem .35rem; }
  .tag-sec { bottom: 17%; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .system { animation: system-float 7s ease-in-out infinite; }
  .motion-enabled .orbit-signal { animation: orbit-travel 10s linear infinite; }
  .motion-enabled .motion-reveal { animation: soft-reveal .55s ease-out both; animation-delay: var(--reveal-delay, 0ms); }
  .motion-tab-hidden * { animation-play-state: paused !important; }
}

@keyframes system-float { 50% { translate: 0 -.45rem; } }
@keyframes orbit-travel { to { rotate: 1turn; } }
@keyframes soft-reveal { from { opacity: .7; translate: 0 .4rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:has(.motion-paused) { scroll-behavior: auto; }
