:root {
  --ink: #edf5ff;
  --ink-soft: #99bab8;
  --sky: #060a18;
  --cloud: #10172f;
  --sun: #44c8b8;
  --sand: #0c2026;
  --mint: #20c7c8;
  --brand-cyan: #20c7c8;
  --brand-teal: #23b8b1;
  --brand-green: #57be8d;
  --brand-deep: #138d97;
  --line: rgba(85, 211, 191, 0.12);
  --panel: rgba(10, 22, 28, 0.72);
  --panel-strong: rgba(6, 16, 22, 0.86);
  --shadow: 0 32px 90px rgba(2, 6, 18, 0.44);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

html[data-theme="light"] {
  --ink: #0e2c34;
  --ink-soft: #3f6268;
  --sky: #edf9f8;
  --cloud: #dff4f0;
  --sand: #f6fcfb;
  --line: rgba(19, 141, 151, 0.16);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(249, 255, 254, 0.96);
  --shadow: 0 28px 80px rgba(18, 55, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(32, 199, 200, 0.1), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(87, 190, 141, 0.08), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(19, 141, 151, 0.14), transparent 30%),
    linear-gradient(180deg, #050f13 0%, #08161a 30%, #09191d 60%, #060d10 100%);
  font-family: "Avenir Next", "Montserrat", "Segoe UI", sans-serif;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(32, 199, 200, 0.08), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(87, 190, 141, 0.06), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(19, 141, 151, 0.08), transparent 30%),
    linear-gradient(180deg, #f4fbf9 0%, #edf8f6 35%, #fbfffe 70%, #f2fbf9 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.space-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
}

.space-glow-one {
  top: -8rem;
  left: -10rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(32, 199, 200, 0.13), transparent 68%);
}

.space-glow-two {
  top: 6rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(87, 190, 141, 0.1), transparent 70%);
}

.space-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
}

html[data-theme="light"] .space-starfield {
  opacity: 0.08;
}

.thinking-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  overflow: visible;
}

html[data-theme="light"] .thinking-dots {
  opacity: 0.42;
}

.thinking-dots path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 0 18;
  filter: drop-shadow(0 0 10px rgba(32, 199, 200, 0.1));
}

html[data-theme="light"] .thinking-dots path {
  filter: drop-shadow(0 0 8px rgba(10, 77, 92, 0.16));
}

.thinking-dots-one path:nth-child(1) {
  stroke: rgba(32, 199, 200, 0.42);
  stroke-width: 5.5;
  animation: thought-flow 14s linear infinite;
}

.thinking-dots-one path:nth-child(2) {
  stroke: rgba(87, 190, 141, 0.32);
  stroke-width: 4.6;
  animation: thought-flow-reverse 18s linear infinite;
}

.thinking-dots-one path:nth-child(3) {
  stroke: rgba(35, 184, 177, 0.22);
  stroke-width: 4;
  animation: thought-flow 20s linear infinite;
}

.thinking-dots-two {
  opacity: 0.14;
}

html[data-theme="light"] .thinking-dots-two {
  opacity: 0.3;
}

.thinking-dots-two path:nth-child(1) {
  stroke: rgba(87, 190, 141, 0.24);
  stroke-width: 3.8;
  animation: thought-flow 24s linear infinite;
}

.thinking-dots-two path:nth-child(2) {
  stroke: rgba(32, 199, 200, 0.2);
  stroke-width: 3.8;
  animation: thought-flow-reverse 22s linear infinite;
}

html[data-theme="light"] .thinking-dots-one path:nth-child(1) {
  stroke: rgba(9, 86, 101, 0.52);
}

html[data-theme="light"] .thinking-dots-one path:nth-child(2) {
  stroke: rgba(18, 122, 120, 0.42);
}

html[data-theme="light"] .thinking-dots-one path:nth-child(3) {
  stroke: rgba(45, 137, 104, 0.34);
}

html[data-theme="light"] .thinking-dots-two path:nth-child(1) {
  stroke: rgba(18, 122, 120, 0.34);
}

html[data-theme="light"] .thinking-dots-two path:nth-child(2) {
  stroke: rgba(9, 86, 101, 0.32);
}

main,
.topbar,
.footer,
.scroll-progress {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-green) 100%);
  box-shadow: 0 0 18px rgba(32, 199, 200, 0.38);
}

html[data-theme="light"] .scroll-progress {
  background: rgba(19, 141, 151, 0.06);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0.75rem auto 0;
  height: 100px;
  padding: 0 1rem;
  border: 1px solid rgba(85, 211, 191, 0.14);
  border-radius: 999px;
  background: rgba(6, 16, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 44px rgba(2, 6, 18, 0.34);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: height 240ms ease, margin-top 240ms ease, background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(18, 55, 61, 0.1);
}

.topbar.is-scrolled {
  margin-top: 0.4rem;
  height: 86px;
  background: rgba(6, 16, 22, 0.84);
  box-shadow: 0 16px 54px rgba(2, 6, 18, 0.4);
}

html[data-theme="light"] .topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(18, 55, 61, 0.12);
}

html[data-theme="light"] .brand img {
  filter: saturate(1.02) contrast(1.02);
}

.brand img,
.footer-logo {
  width: 156px;
}

.brand,
.menu-toggle,
.site-nav,
.theme-toggle,
.button-nav {
  position: relative;
  z-index: 1;
}

.button-nav {
  min-height: 2.75rem;
  padding-inline: 1.05rem;
  font-size: 0.92rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(32, 199, 200, 0.08);
  border-color: rgba(85, 211, 191, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(232, 241, 255, 0.82);
}

html[data-theme="light"] .site-nav {
  color: rgba(18, 51, 59, 0.82);
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a:focus-visible {
  color: #10313a;
}

html[data-theme="light"] .site-nav.is-open {
  background: rgba(255, 255, 255, 0.94);
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(32, 199, 200, 0.08);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--ink);
  background: rgba(32, 199, 200, 0.12);
  box-shadow: inset 0 0 0 1px rgba(85, 211, 191, 0.1);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #20c7c8 0%, #57be8d 100%);
  color: #04101f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding-top: 3rem;
}

[data-parallax] {
  --parallax-shift: 0px;
}

[data-parallax]:not(.reveal) {
  transform: translate3d(0, var(--parallax-shift), 0);
  will-change: transform;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[data-theme="light"] .eyebrow {
  color: #4b7178;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.9rem);
}

.hero-intro-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-intro-strip span {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(85, 211, 191, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 247, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
}

.lead,
.section-heading p,
.capability-card p,
.contact-copy p,
.service-card p,
.project-copy p,
.insight-card p,
.about-card p {
  color: var(--ink-soft);
  line-height: 1.7;
}

html[data-theme="light"] .lead,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .capability-card p,
html[data-theme="light"] .contact-copy p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .project-copy p,
html[data-theme="light"] .insight-card p,
html[data-theme="light"] .about-card p,
html[data-theme="light"] .service-card ul,
html[data-theme="light"] .project-points,
html[data-theme="light"] .footer {
  color: #3f6268;
}

.lead {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #20c7c8 0%, #57be8d 100%);
  color: #042026;
  box-shadow: 0 18px 30px rgba(32, 199, 200, 0.24);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.25rem 0 0;
}

.hero-stats div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .hero-stats div,
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .hero-intro-strip span,
html[data-theme="light"] .hero-product-pills span,
html[data-theme="light"] .social-links a,
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .hero-intro-strip span,
html[data-theme="light"] .hero-product-pills span,
html[data-theme="light"] .social-links a,
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .theme-toggle {
  color: #17373f;
  border-color: rgba(19, 141, 151, 0.14);
}

.hero-stats dt {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

html[data-theme="light"] .hero-stats dt {
  color: #52767b;
}

.hero-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38rem;
}

.hero-cosmos {
  position: absolute;
  inset: -2rem -3rem -3rem;
  pointer-events: none;
}

.hero-orbit-ring {
  position: absolute;
  border: 1px solid rgba(85, 211, 191, 0.08);
  border-radius: 50%;
}

.hero-orbit-ring-one {
  top: 2rem;
  left: 2rem;
  width: 24rem;
  height: 24rem;
}

.hero-orbit-ring-two {
  right: 1rem;
  bottom: 0;
  width: 16rem;
  height: 16rem;
}

.hero-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(31rem, 100%);
  padding: 1rem;
  border: 1px solid rgba(85, 211, 191, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.08), transparent 24%),
    linear-gradient(155deg, rgba(6, 15, 19, 0.94), rgba(9, 28, 34, 0.86));
  box-shadow: 0 38px 90px rgba(2, 6, 18, 0.42);
}

html[data-theme="light"] .hero-product-card {
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.05), transparent 24%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(238, 250, 247, 0.88));
  box-shadow: 0 28px 64px rgba(18, 55, 61, 0.12);
}

html[data-theme="light"] .hero-product-copy p:last-of-type {
  color: #42666c;
}

.hero-product-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 199, 200, 0.1), transparent 70%);
}

.hero-product-card > * {
  position: relative;
  z-index: 1;
}

.hero-product-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(85, 211, 191, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    url("./assets/backgrounds/plainstarbg.png") center/cover;
}

html[data-theme="light"] .hero-product-media {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    url("./assets/backgrounds/plainstarbg.png") center/cover;
}

.hero-product-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-product-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(85, 211, 191, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 31, 0.82);
  color: #f2f7ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-product-badge {
  background: rgba(6, 17, 22, 0.74);
}

.hero-product-copy {
  padding: 0.25rem 0.2rem 0.1rem;
}

.hero-product-copy h2,
.capability-card h2,
.service-card h3,
.project-copy h3,
.insight-card h3,
.about-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.02em;
}

.hero-product-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.hero-product-copy p:last-of-type {
  margin: 0.8rem 0 0;
  color: rgba(230, 238, 255, 0.8);
  line-height: 1.65;
}

.hero-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.hero-product-pills span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(85, 211, 191, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 247, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
}

.capability-rail-section {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}

.capability-rail-copy {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.capability-rail-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.service-rail {
  position: relative;
  margin-top: 2.5rem;
  height: var(--capability-scroll-height, auto);
}

.service-rail-sticky {
  position: sticky;
  top: 7.9rem;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 9.5rem);
  padding-top: 0.75rem;
  overflow: hidden;
}

.capability-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  padding-top: 0;
}

.capability-card,
.service-card,
.insight-card,
.about-card,
.contact-panel,
.project-card {
  border: 1px solid rgba(85, 211, 191, 0.08);
  background: var(--panel);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .capability-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .insight-card,
html[data-theme="light"] .about-card,
html[data-theme="light"] .contact-panel,
html[data-theme="light"] .project-card,
html[data-theme="light"] .ai-feature-card {
  border-color: rgba(19, 141, 151, 0.12);
}

.capability-card,
.service-card,
.insight-card,
.about-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.capability-card {
  min-height: 100%;
  padding: 1rem 1rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.capability-card p:last-child {
  margin: 0.85rem 0 0;
}

.capability-card::after,
.service-card::after,
.insight-card::after,
.about-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 199, 200, 0.08), transparent 68%);
  pointer-events: none;
}

.capability-visual {
  display: block;
  width: 100%;
  height: 11.5rem;
  margin: -1rem -1rem 1.1rem;
  width: calc(100% + 2rem);
  object-fit: cover;
  object-position: center;
  border-radius: 24px 24px 18px 18px;
  border-bottom: 1px solid rgba(85, 211, 191, 0.1);
  box-shadow: 0 18px 30px rgba(2, 6, 18, 0.22);
}


.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.section-heading .eyebrow::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(32, 199, 200, 0.9), transparent);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.service-grid {
  display: flex;
  gap: 1.35rem;
  width: max-content;
  will-change: transform;
}

.service-card {
  flex: 0 0 min(23rem, calc(100vw - 4rem));
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(85, 211, 191, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(228, 239, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

html[data-theme="light"] .service-kicker {
  background: rgba(19, 141, 151, 0.08);
  color: #20474e;
}

.service-card h3,
.project-copy h3,
.insight-card h3,
.about-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.service-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ai-feature-card {
  padding: 1.4rem;
  border: 1px solid rgba(85, 211, 191, 0.08);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ai-feature-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.ai-feature-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ai-feature-image {
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(8, 18, 40, 0.24);
}

.ai-feature-card-primary {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 200, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(6, 16, 22, 0.96), rgba(9, 33, 39, 0.88));
  color: #fff;
}

html[data-theme="light"] .ai-feature-card-primary,
html[data-theme="light"] .project-card--text,
html[data-theme="light"] .about-card-large,
html[data-theme="light"] .contact-panel {
  color: #f4fffd;
}

html[data-theme="light"] .ai-feature-card-primary {
  background:
    radial-gradient(circle at top right, rgba(32, 199, 200, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(10, 60, 66, 0.96), rgba(16, 112, 112, 0.86));
}

.ai-feature-card-primary::after {
  content: "";
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -2rem;
  bottom: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 190, 141, 0.14), transparent 70%);
}

.ai-feature-card-primary p,
.ai-feature-card-primary h3,
.ai-feature-card-primary .eyebrow {
  color: inherit;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.project-card--text {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.08), transparent 26%),
    linear-gradient(140deg, rgba(6, 16, 22, 0.96), rgba(9, 31, 36, 0.88));
  color: #fff;
}

html[data-theme="light"] .project-card--text {
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.08), transparent 26%),
    linear-gradient(140deg, rgba(11, 57, 62, 0.96), rgba(17, 98, 93, 0.86));
}

.project-card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card--text .project-copy,
.project-card--text .eyebrow,
.project-card--text h3,
.project-card--text p {
  color: inherit;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-copy {
  padding: 1.7rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.about-card-large {
  background:
    linear-gradient(140deg, rgba(6, 16, 22, 0.96), rgba(9, 33, 39, 0.88)),
    linear-gradient(180deg, transparent, transparent);
  color: #fff;
}

html[data-theme="light"] .about-card-large {
  background:
    linear-gradient(140deg, rgba(11, 57, 62, 0.96), rgba(17, 98, 93, 0.84)),
    linear-gradient(180deg, transparent, transparent);
}

html[data-theme="light"] .ai-feature-card-primary p,
html[data-theme="light"] .project-card--text .project-copy p,
html[data-theme="light"] .project-card--text .project-points,
html[data-theme="light"] .about-card-large p,
html[data-theme="light"] .contact-copy p,
html[data-theme="light"] .contact-details p,
html[data-theme="light"] .contact-details a {
  color: rgba(244, 255, 253, 0.92);
}

html[data-theme="light"] .contact-details strong {
  color: #ffffff;
}

.about-card-large p,
.about-card-large h3 {
  color: inherit;
}

.contact-panel {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(6, 17, 22, 0.92), rgba(9, 27, 31, 0.86));
}

html[data-theme="light"] .contact-panel {
  background:
    radial-gradient(circle at top right, rgba(87, 190, 141, 0.06), transparent 24%),
    linear-gradient(145deg, rgba(12, 66, 70, 0.95), rgba(18, 105, 98, 0.84));
}

.contact-details {
  display: grid;
  gap: 0.4rem;
  margin: 1.5rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-links a {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-actions {
  margin-top: 1.25rem;
}

.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 3rem;
  color: var(--ink-soft);
  text-align: center;
}

html[data-theme="light"] .footer {
  color: #54757b;
}

.footer-logo {
  margin: 0 auto 1rem;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, calc(34px + var(--parallax-shift, 0px)), 0) scale(0.985);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, var(--parallax-shift, 0px), 0) scale(1);
}

@keyframes thought-flow {
  from {
    stroke-dashoffset: 0;
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }

  to {
    stroke-dashoffset: -220;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes thought-flow-reverse {
  from {
    stroke-dashoffset: 0;
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 6px, 0);
  }

  to {
    stroke-dashoffset: 220;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 960px) {
  .hero,
  .contact-panel,
  .about-layout,
  .ai-layout,
  .service-grid,
  .insight-grid,
  .project-grid,
  .capability-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 24rem;
  }

  .hero-cosmos {
    inset: -1rem -1rem -2rem;
  }

  .hero-product-card {
    width: 100%;
  }

  .service-rail {
    height: auto !important;
  }

  .service-rail-sticky {
    position: static;
    min-height: 0;
    overflow: visible;
  }

  .capability-band {
    display: grid;
    width: 100%;
    gap: 1.15rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1rem;
    transform: none !important;
    will-change: auto;
  }

  .service-card {
    flex-basis: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 28px;
    height: 100px;
    padding: 0 0.9rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid rgba(85, 211, 191, 0.22);
    border-radius: 24px;
    background: rgba(5, 18, 26, 0.94);
    box-shadow: var(--shadow);
  }

  html[data-theme="light"] .site-nav {
    border-color: rgba(19, 141, 151, 0.12);
    background: rgba(255, 255, 255, 0.94);
  }

  .site-nav.is-open {
    display: flex;
  }

  .button-nav {
    display: none;
  }

  .theme-toggle {
    order: 3;
    min-height: 2.5rem;
    padding-inline: 0.9rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-product-badge {
    left: 0.75rem;
    right: 0.75rem;
    justify-content: center;
  }

  .space-shooting-star {
    width: 12rem;
    right: -1rem;
  }

  .thinking-dots {
    opacity: 0.22;
  }

  .hero h1,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.1vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-progress-bar,
  .topbar,
  [data-parallax]:not(.reveal),
  .reveal,
  .reveal.is-visible,
  .thinking-dots-one path,
  .thinking-dots-two path {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}
