:root {
  --bg: #05060a;
  --bg-soft: #090b13;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #9aa4b2;
  --muted-2: #6f7a89;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --orange: #fb923c;
  --shadow: 0 30px 120px rgba(0, 0, 0, .46);
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 92, 246, .30), transparent 32rem),
    radial-gradient(circle at 82% 2%, rgba(34, 211, 238, .20), transparent 34rem),
    radial-gradient(circle at 50% 48%, rgba(139, 92, 246, .10), transparent 44rem),
    linear-gradient(180deg, #080912 0%, #05060a 52%, #030409 100%);
  overflow-x: hidden;
}

body.theme-light {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --panel: rgba(255, 255, 255, .86);
  --panel-strong: rgba(255, 255, 255, .96);
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(15, 23, 42, .12);
  --line-strong: rgba(15, 23, 42, .22);
  --shadow: 0 24px 90px rgba(15, 23, 42, .12);
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .18), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, .10), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 72%);
}

body.theme-light::before {
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-aurora {
  position: fixed;
  z-index: 2;
  width: 32rem;
  height: 32rem;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,92,246,.18), rgba(34,211,238,.08) 38%, transparent 70%);
  filter: blur(4px);
  opacity: .95;
}

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
main {
  position: relative;
  z-index: 5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 18, .68);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 60px rgba(0,0,0,.26);
}

body.theme-light .site-header {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 50px rgba(15, 23, 42, .10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  color: #05060a;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #a78bfa 48%, #22d3ee);
  box-shadow: 0 0 36px rgba(139,92,246,.42);
  font-size: .8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: .91rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.site-nav a:hover { color: var(--text); }

.nav-pill {
  padding: .72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(255,255,255,.055);
}

.menu-button {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.menu-button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: .75rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  display: none;
  place-items: center;
}

.theme-icon-sun {
  display: grid;
}

body.theme-light .theme-icon-sun {
  display: none;
}

body.theme-light .theme-icon-moon {
  display: grid;
}

body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, .9);
}

.section-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 7rem 0 5rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(139,92,246,.34);
  color: #ded4ff;
  background: rgba(139,92,246,.105);
  border-radius: 999px;
  padding: .48rem .78rem;
  font-weight: 700;
  font-size: .82rem;
  box-shadow: inset 0 0 24px rgba(139,92,246,.09);
}

.pulse {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,211,153,.75);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin: 1.35rem 0 0;
  max-width: 760px;
  font-size: clamp(3.35rem, 7vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.085em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 690px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.18rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 55%);
  transition: opacity .22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  color: #05060a;
  background: linear-gradient(135deg, #ffffff, #c4b5fd 55%, #67e8f9);
  box-shadow: 0 20px 55px rgba(139,92,246,.25);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2.4rem;
}

.trust-row span {
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: .55rem .7rem;
  font-size: .86rem;
}

.hero-dashboard {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.glass-card,
.feature-card,
.portfolio-card,
.case-card,
.process-board,
.contact-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05)),
    rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.glass-card {
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    radial-gradient(circle at 72% 18%, rgba(34,211,238,.24), transparent 16rem),
    radial-gradient(circle at 10% 90%, rgba(139,92,246,.22), transparent 20rem);
  pointer-events: none;
}

.dashboard-top,
.code-preview,
.health-grid {
  position: relative;
  z-index: 2;
}

.dashboard-top {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .7rem 1rem;
  color: var(--muted);
}

.terminal-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 999px;
}

.dot-red { background: #fb7185; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-preview {
  margin: 1.1rem 0;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.35rem;
  background: rgba(0,0,0,.22);
  color: #e5e7eb;
  line-height: 1.8;
}

.code-preview p { margin: 0; }
.muted { color: #7b8494; }
.success { color: #86efac; }

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  margin-bottom: 1rem;
}

.dashboard-tabs button {
  min-height: 2.25rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.is-active {
  color: var(--text);
  border-color: rgba(34,211,238,.42);
  background: rgba(34,211,238,.12);
}

.dashboard-code-lines {
  display: grid;
  gap: .2rem;
}

.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: 1rem;
}

.health-grid div {
  min-height: 130px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.055);
}

.health-grid strong {
  display: block;
  font-size: 2.4rem;
  letter-spacing: -.06em;
}

.health-grid span {
  color: var(--muted);
  font-size: .92rem;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  animation: spin 18s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(34,211,238,.8);
}

.orbit-one {
  width: 480px;
  height: 480px;
  right: 3%;
  top: 11%;
}

.orbit-two {
  width: 620px;
  height: 620px;
  right: -4%;
  top: 2%;
  animation-duration: 26s;
  animation-direction: reverse;
}

.orbit-three {
  width: 340px;
  height: 340px;
  right: 12%;
  top: 20%;
  animation-duration: 14s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo-strip {
  padding: 1rem 0 5rem;
}

.logo-strip p {
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.1rem;
}

.marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 1rem 0;
  animation: marquee 12s linear infinite;
  color: rgba(255,255,255,.55);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.tech-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 12rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.055);
}

.tech-icon,
.tech-logo-text strong {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
}

.tech-logo img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.tech-logo-text strong {
  color: #05060a;
  background: linear-gradient(135deg, #ff8700, #ffffff 52%, #8b5cf6);
  font-size: .68rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section-block {
  padding: 6.5rem 0;
}

.about-section {
  padding: 5rem 0 2rem;
}

.about-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    radial-gradient(circle at 18% 78%, rgba(34,211,238,.18), transparent 26rem),
    radial-gradient(circle at 78% 16%, rgba(139,92,246,.14), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 48%);
  pointer-events: none;
}

.about-image,
.about-copy {
  position: relative;
  z-index: 1;
}

.about-image {
  aspect-ratio: 4 / 5;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(0,0,0,.18);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.about-copy p {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.6rem;
}

.about-points span {
  color: #dbe2ea;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  padding: .6rem .78rem;
  font-size: .9rem;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2,
.showcase-copy h2,
.positioning-card h2,
.contact-card h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.35rem, 5.8vw, 5.35rem);
  line-height: .94;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.section-heading p,
.showcase-copy p,
.positioning-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

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

.feature-card {
  min-height: 390px;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  transform-style: preserve-3d;
}

.feature-card::before,
.portfolio-card::before,
.teaser-case::before,
.case-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.36), transparent 35%);
  transition: opacity .2s ease;
}

.feature-card:hover::before,
.portfolio-card:hover::before,
.teaser-case:hover::before,
.case-card:hover::before {
  opacity: 1;
}

.feature-index {
  color: var(--cyan);
  font-weight: 900;
}

.feature-card h3 {
  margin: 6rem 0 1rem;
  font-size: 1.6rem;
  letter-spacing: -.04em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.68;
}

.feature-card ul {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.feature-card li {
  color: #d7dce5;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  padding: .45rem .62rem;
  font-size: .84rem;
}

.split-showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 6.5rem 0;
}

.mini-list {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

.mini-list span {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: #dbe2ea;
  background: rgba(255,255,255,.045);
}

.case-stack {
  display: grid;
  gap: 1rem;
  perspective: 1000px;
}

.case-card {
  min-height: 190px;
  padding: 1.35rem;
  border-radius: 1.55rem;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}

.case-card:nth-child(2) { transform: translateX(2.2rem); }
.case-card:nth-child(3) { transform: translateX(4.4rem); }

.case-card:hover {
  transform: translateX(0) translateY(-6px) scale(1.015);
  border-color: var(--line-strong);
}

.case-card span {
  color: var(--cyan);
  font-weight: 800;
}

.case-card h3 {
  margin: 2.2rem 0 .75rem;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.case-card p {
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-section {
  padding-top: 7rem;
}

.portfolio-teaser {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.portfolio-teaser::before {
  content: "";
  position: absolute;
  inset: auto 8% -45% 45%;
  height: 18rem;
  background: radial-gradient(circle, rgba(34,211,238,.26), transparent 70%);
  pointer-events: none;
}

.portfolio-teaser > * {
  position: relative;
  z-index: 1;
}

.portfolio-teaser-copy h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.3rem, 5.5vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.portfolio-teaser-copy p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.portfolio-teaser-list {
  display: grid;
  gap: .75rem;
}

.teaser-case {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 4.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: #dbe2ea;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
    rgba(255,255,255,.035);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  transform-style: preserve-3d;
}

.teaser-case span {
  position: relative;
  z-index: 1;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 900;
}

.teaser-case:hover {
  border-color: var(--line-strong);
}

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

.portfolio-card {
  min-height: 330px;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  transform-style: preserve-3d;
}

.portfolio-card:hover {
  border-color: var(--line-strong);
}

.portfolio-card span {
  color: var(--cyan);
  font-weight: 900;
  font-size: .86rem;
}

.portfolio-card h3 {
  margin: 3.5rem 0 .85rem;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.portfolio-card p {
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-card ul {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.portfolio-card li,
.portfolio-tags span {
  color: #d7dce5;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  padding: .45rem .62rem;
  font-size: .84rem;
}

.priority-card {
  grid-column: span 2;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
}

.process-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  overflow: hidden;
}

.process-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), rgba(139,92,246,.7), transparent);
}

.process-board article {
  position: relative;
  z-index: 2;
  min-height: 240px;
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.10);
}

.process-board span {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #05060a;
  font-weight: 900;
}

.process-board h3 {
  margin: 4.2rem 0 .75rem;
  font-size: 1.35rem;
}

.process-board p {
  color: var(--muted);
  line-height: 1.65;
}

.positioning {
  padding: 5rem 0;
}

.positioning-card {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.positioning-grid div {
  min-height: 180px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  border-radius: 1.25rem;
}

.positioning-grid strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: .7rem;
}

.contact-section {
  padding: 5rem 0 7rem;
}

.contact-card {
  text-align: left;
  border-radius: 2.4rem;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: auto 12% -35% 12%;
  height: 18rem;
  background: radial-gradient(circle, rgba(139,92,246,.45), transparent 70%);
  pointer-events: none;
}

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

.contact-card p {
  max-width: 720px;
  margin: 1.3rem 0 0;
}

.contact-actions {
  justify-content: flex-start;
}

.project-check {
  max-width: 860px;
  margin: 1.6rem 0 0;
  text-align: left;
}

.project-check > span {
  display: block;
  color: #dbe2ea;
  font-weight: 800;
  margin-bottom: .75rem;
}

.project-check div {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.project-check button {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  padding: .75rem .95rem;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.project-check button:first-child {
  color: #05060a;
  background: linear-gradient(135deg, #ffffff, #c4b5fd 55%, #67e8f9);
}

.project-check button:hover,
.project-check button.is-active {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(34,211,238,.42);
  background: rgba(34,211,238,.10);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 2rem 0 0;
  text-align: left;
}

.form-status {
  display: none;
  max-width: 860px;
  margin: 1.4rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  color: #dbe2ea;
  background: rgba(255,255,255,.055);
  text-align: left;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-sent {
  border-color: rgba(52,211,153,.45);
  background: rgba(52,211,153,.10);
}

.form-status.is-error,
.form-status.is-limited {
  border-color: rgba(251,113,133,.45);
  background: rgba(251,113,133,.10);
}

.spam-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: .55rem;
  color: #dbe2ea;
  font-weight: 800;
  letter-spacing: -.02em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  color: var(--text);
  background: rgba(0,0,0,.22);
  padding: 1rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(34,211,238,.7);
  background: rgba(0,0,0,.30);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}

.contact-form ::placeholder {
  color: var(--muted-2);
}

.form-context {
  margin: -.2rem 0 .2rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(34,211,238,.18);
  border-radius: 1rem;
  color: #cbd5e1;
  background: rgba(34,211,238,.07);
  font-size: .94rem;
  line-height: 1.6;
}

.site-footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 9, .72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
}

.footer-inner strong {
  display: block;
  font-size: 1.05rem;
}

.footer-inner p {
  margin: .35rem 0 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .9rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-inner a:hover {
  color: var(--text);
}

.legal-main {
  min-height: 70vh;
}

.legal-hero {
  padding: 6rem 0 2rem;
}

.legal-hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.08em;
}

.legal-hero p {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-content {
  max-width: 900px;
  margin-bottom: 6rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 2.4rem 0 .8rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.5rem 0 .55rem;
  font-size: 1.1rem;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-content a {
  color: #dcd4ff;
  overflow-wrap: anywhere;
}

body.theme-light .page-noise {
  opacity: .07;
}

body.theme-light .cursor-aurora {
  background: radial-gradient(circle, rgba(139,92,246,.16), rgba(14,165,233,.13) 38%, transparent 70%);
  opacity: .72;
}

body.theme-light .status-pill,
body.theme-light .eyebrow {
  color: #5b21b6;
  background: rgba(139, 92, 246, .10);
  border-color: rgba(139, 92, 246, .22);
}

body.theme-light .nav-pill,
body.theme-light .btn-secondary,
body.theme-light .trust-row span,
body.theme-light .health-grid div,
body.theme-light .dashboard-tabs button,
body.theme-light .tech-logo,
body.theme-light .about-points span,
body.theme-light .feature-card li,
body.theme-light .mini-list span,
body.theme-light .teaser-case,
body.theme-light .portfolio-card li,
body.theme-light .portfolio-tags span,
body.theme-light .project-check button,
body.theme-light .form-status {
  color: #334155;
  background: rgba(255, 255, 255, .74);
  border-color: rgba(15, 23, 42, .12);
}

body.theme-light .glass-card,
body.theme-light .feature-card,
body.theme-light .portfolio-card,
body.theme-light .case-card,
body.theme-light .process-board,
body.theme-light .contact-card,
body.theme-light .legal-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .70)),
    rgba(255, 255, 255, .72);
}

body.theme-light .hero-dashboard::before,
body.theme-light .about-card::before,
body.theme-light .portfolio-teaser::before,
body.theme-light .contact-card::before {
  opacity: .55;
}

body.theme-light .marquee,
body.theme-light .portfolio-tags,
body.theme-light .positioning-grid div {
  background: rgba(255, 255, 255, .66);
}

body.theme-light .positioning-grid div {
  border-color: rgba(15, 23, 42, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

body.theme-light .orbit {
  border-color: rgba(15, 23, 42, .16);
}

body.theme-light .orbit::after {
  background: #0ea5e9;
  box-shadow: 0 0 24px rgba(14,165,233,.55);
}

body.theme-light .marquee-track,
body.theme-light .tech-logo {
  color: #334155;
}

body.theme-light .code-preview {
  color: #e5e7eb;
  background: rgba(15, 23, 42, .92);
  border-color: rgba(15, 23, 42, .14);
}

body.theme-light .muted {
  color: #9ca3af;
}

body.theme-light .about-image,
body.theme-light .process-board article {
  background: rgba(255, 255, 255, .68);
  border-color: rgba(15, 23, 42, .12);
}

body.theme-light .feature-card::before,
body.theme-light .portfolio-card::before,
body.theme-light .teaser-case::before,
body.theme-light .case-card::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(14, 165, 233, .20), transparent 36%);
}

body.theme-light .contact-form label,
body.theme-light .project-check > span,
body.theme-light .form-context {
  color: #334155;
}

body.theme-light .contact-form input,
body.theme-light .contact-form select,
body.theme-light .contact-form textarea {
  color: #0f172a;
  background: rgba(255, 255, 255, .82);
  border-color: rgba(15, 23, 42, .14);
}

body.theme-light .contact-form input:focus,
body.theme-light .contact-form select:focus,
body.theme-light .contact-form textarea:focus {
  background: #ffffff;
}

body.theme-light .form-context {
  background: rgba(14, 165, 233, .08);
}

body.theme-light .site-footer {
  background: rgba(255, 255, 255, .76);
}

body.theme-light .legal-content a {
  color: #5b21b6;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-showcase,
  .about-card,
  .portfolio-teaser {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    min-height: auto;
  }

  .about-image {
    min-height: auto;
    max-height: 520px;
  }

  .expertise-grid,
  .portfolio-grid,
  .process-board,
  .positioning-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .priority-card {
    grid-column: auto;
  }

  .case-card:nth-child(2),
  .case-card:nth-child(3) {
    transform: none;
  }

  .process-line { display: none; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 1.4rem;
    align-items: flex-start;
  }

  .brand-text { display: none; }

  .menu-button { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(8,9,18,.96);
  }

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

  .legal-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .legal-nav a:not(.nav-pill) {
    display: none;
  }

  .site-nav a {
    padding: .85rem;
  }

  .legal-nav .nav-pill {
    padding: .72rem 1rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .cursor-aurora { display: none; }

  .legal-hero {
    padding-top: 4rem;
  }
}

body.theme-light .site-nav.is-open {
  background: rgba(255, 255, 255, .96);
}
