:root {
  color-scheme: dark;
  --bg: #080b14;
  --bg-soft: #0e1322;
  --surface: rgba(18, 25, 43, 0.78);
  --surface-strong: #151d31;
  --surface-hover: #19233a;
  --text: #f5f7ff;
  --muted: #a6b0c5;
  --subtle: #747f96;
  --line: rgba(159, 178, 217, 0.16);
  --line-strong: rgba(159, 178, 217, 0.28);
  --accent: #8b7cff;
  --accent-blue: #4bc8ff;
  --accent-green: #5be6b2;
  --accent-warm: #ffca68;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max-width: 1180px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 40% -20%, rgba(66, 89, 181, 0.2), transparent 38%),
    linear-gradient(180deg, #090d18 0%, var(--bg) 40%, #070a11 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #05070d;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 10%;
  left: -18rem;
  background: var(--accent);
}

.ambient-two {
  top: 46%;
  right: -20rem;
  background: var(--accent-blue);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 20, 0.76);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #eef2ff;
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(139, 124, 255, 0.28), rgba(75, 200, 255, 0.1));
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

nav {
  display: none;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

nav a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-profile {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #e7ebf7;
}

main,
footer {
  width: min(calc(100% - 28px), var(--max-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 42px;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 76px 0 72px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #93a1bd;
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 16px rgba(91, 230, 178, 0.85);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(91, 230, 178, 0.3);
  border-radius: inherit;
  content: "";
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.65rem, 11vw, 5.5rem);
  font-weight: 760;
  letter-spacing: -0.064em;
  line-height: 0.98;
  text-wrap: balance;
}

.gradient-text {
  display: block;
  padding-bottom: 0.08em;
  background: linear-gradient(100deg, #a99eff 5%, #6dd3ff 52%, #6ee8bd 96%);
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.78;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(105deg, #7668ee, #397fbf);
  color: #fff;
  box-shadow: 0 12px 32px rgba(88, 93, 218, 0.24);
}

.button-primary:hover {
  box-shadow: 0 16px 38px rgba(88, 93, 218, 0.34);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(18, 25, 43, 0.58);
  color: #e9edf7;
}

.button-secondary:hover {
  border-color: rgba(139, 124, 255, 0.54);
  background: var(--surface-hover);
}

.verification-note {
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 0.76rem;
}

.verification-note::before {
  margin-right: 7px;
  color: var(--accent-green);
  content: "✓";
}

.identity-card {
  position: relative;
  width: min(100%, 360px);
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(139, 124, 255, 0.1), transparent 45%),
    rgba(16, 22, 38, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.identity-card::after {
  position: absolute;
  top: -40px;
  right: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(139, 124, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(139, 124, 255, 0.025),
    0 0 0 46px rgba(139, 124, 255, 0.02);
  content: "";
}

.avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
}

.avatar-wrap img,
.avatar-fallback {
  position: absolute;
  inset: 0;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #332b70, #14435c);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 780;
}

.avatar-wrap img[hidden],
.avatar-fallback[hidden] {
  display: none;
}

.pro-badge {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: -7px;
  padding: 4px 8px;
  border: 3px solid #111827;
  border-radius: 999px;
  background: var(--accent-warm);
  color: #241800;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.identity-card h2 {
  margin: 24px 0 2px;
  font-size: 1.38rem;
  letter-spacing: -0.03em;
}

.identity-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.identity-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.identity-focus li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #bfc8da;
  font-size: 0.68rem;
  font-weight: 630;
}

.text-link,
.project-links a {
  color: #b9b1ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.text-link:hover,
.project-links a:hover {
  color: #d8d3ff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 18, 31, 0.62);
}

.metrics a {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.metrics a:nth-child(even) {
  border-right: 0;
}

.metrics a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metrics a:hover {
  background: rgba(139, 124, 255, 0.06);
}

.metrics strong {
  color: #f3f5ff;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.metrics span {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 650;
}

.section {
  padding: 38px 0 112px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading .eyebrow,
.approach-copy .eyebrow,
.contact-section .eyebrow {
  margin-bottom: 11px;
}

.section-heading h2,
.approach-copy h2,
.contact-section h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.65rem);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.project-grid {
  display: grid;
  gap: 14px;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.72), rgba(12, 17, 30, 0.7));
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.project-card:hover {
  border-color: rgba(139, 124, 255, 0.33);
  background: linear-gradient(145deg, rgba(26, 35, 59, 0.82), rgba(14, 20, 34, 0.82));
  transform: translateY(-3px);
}

.project-featured {
  background:
    radial-gradient(circle at 100% 0, rgba(139, 124, 255, 0.14), transparent 35%),
    linear-gradient(145deg, rgba(22, 30, 52, 0.8), rgba(12, 17, 30, 0.76));
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.project-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(139, 124, 255, 0.3);
  border-radius: 10px;
  background: rgba(139, 124, 255, 0.1);
  color: #ccc6ff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.project-domain {
  color: #8894aa;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 11px;
  color: #f3f5fb;
  font-size: 1.35rem;
  font-weight: 710;
  letter-spacing: -0.035em;
}

.project-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.72;
}

.project-facts {
  display: grid;
  gap: 8px;
  margin: 21px 0 24px;
  padding: 0;
  color: #b5bed0;
  font-size: 0.76rem;
  list-style: none;
}

.project-facts li {
  position: relative;
  padding-left: 17px;
}

.project-facts li::before {
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  content: "";
  box-shadow: 0 0 8px rgba(91, 230, 178, 0.45);
}

.project-facts strong {
  color: #e9ecf6;
  font-weight: 740;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.expertise-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 18, 31, 0.52);
}

.expertise-grid article {
  min-height: 240px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.expertise-grid article:last-child {
  border-bottom: 0;
}

.expertise-grid article:hover {
  background: rgba(139, 124, 255, 0.045);
}

.expertise-number {
  display: block;
  margin-bottom: 42px;
  color: #746ad0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.expertise-grid h3 {
  margin: 0 0 11px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.expertise-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.7;
}

.approach-section {
  display: grid;
  gap: 45px;
}

.approach-copy > p:last-child {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
}

.pipeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 40px minmax(90px, 0.8fr) 1.5fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 21, 36, 0.6);
}

.pipeline li > span {
  color: #756bd1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.pipeline strong {
  color: #eef1f8;
  font-size: 0.84rem;
}

.pipeline small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
  padding: 38px 26px;
  border: 1px solid rgba(139, 124, 255, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0, rgba(75, 200, 255, 0.11), transparent 36%),
    radial-gradient(circle at 0 100%, rgba(139, 124, 255, 0.12), transparent 40%),
    rgba(17, 23, 39, 0.72);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.contact-section > div > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-actions {
  align-content: center;
  margin-top: 0;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.69rem;
}

footer p {
  margin: 0;
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #171e2e;
  color: #e7eaf3;
  font-size: 0.75rem;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 56px), var(--max-width));
  }

  nav {
    display: flex;
  }

  .hero {
    padding-top: 90px;
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metrics a {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metrics a:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .metrics a:last-child {
    border-right: 0;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-grid article {
    border-right: 1px solid var(--line);
  }

  .expertise-grid article:nth-child(even) {
    border-right: 0;
  }

  .expertise-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .contact-section {
    padding: 48px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    padding: 96px 0;
  }

  .identity-card {
    justify-self: end;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
    align-items: end;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-featured {
    grid-column: span 1;
  }

  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expertise-grid article:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .expertise-grid article:nth-child(3n) {
    border-right: 0;
  }

  .expertise-grid article:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .expertise-grid article:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .approach-section {
    grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1fr);
    gap: 68px;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contact-actions {
    justify-content: flex-end;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --text: #111827;
    --muted: #465266;
    --subtle: #667085;
    --line: #d8dee9;
    --line-strong: #c6cedc;
  }

  @page {
    size: A4;
    margin: 13mm;
  }

  body {
    background: #fff;
    color: #111827;
    font-size: 10.5pt;
  }

  body::before,
  .ambient,
  .site-header,
  .hero-actions,
  .verification-note,
  .identity-card,
  .contact-section,
  noscript {
    display: none !important;
  }

  main,
  footer {
    width: 100%;
    margin: 0;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 0 0 10mm;
  }

  .hero-copy {
    max-width: none;
  }

  .eyebrow,
  .project-domain {
    color: #5b50b6;
  }

  h1 {
    max-width: none;
    font-size: 31pt;
  }

  .gradient-text {
    display: inline;
    background: none;
    color: #4f46a5;
  }

  .hero-summary {
    max-width: 180mm;
    margin-top: 6mm;
    color: #465266;
    font-size: 10.5pt;
  }

  .metrics {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 10mm;
    border-color: #d8dee9;
    background: #fff;
    break-inside: avoid;
  }

  .metrics a,
  .metrics a:nth-child(even) {
    min-height: auto;
    padding: 4mm;
    border-right: 1px solid #d8dee9;
    border-bottom: 0;
  }

  .metrics a:last-child {
    border-right: 0;
  }

  .metrics strong {
    color: #111827;
    font-size: 17pt;
  }

  .section {
    padding: 4mm 0 9mm;
  }

  .section-heading {
    display: block;
    margin-bottom: 6mm;
  }

  .section-heading h2,
  .approach-copy h2 {
    font-size: 21pt;
  }

  .section-heading > p {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4mm;
  }

  .project-card,
  .project-featured {
    min-height: auto;
    padding: 5mm;
    border-color: #d8dee9;
    background: #fff;
    break-inside: avoid;
  }

  .project-card h3,
  .pipeline strong,
  .expertise-grid h3 {
    color: #111827;
  }

  .project-card > p,
  .project-facts,
  .pipeline small,
  .expertise-grid p,
  .approach-copy > p:last-child {
    color: #465266;
  }

  .project-links {
    display: none;
  }

  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
    border-color: #d8dee9;
    background: #fff;
  }

  .expertise-grid article {
    min-height: auto;
    padding: 5mm;
    border-color: #d8dee9 !important;
    break-inside: avoid;
  }

  .expertise-number {
    margin-bottom: 5mm;
  }

  .approach-section {
    display: block;
  }

  .pipeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 2mm;
    margin-top: 7mm;
  }

  .pipeline li {
    display: block;
    min-height: 31mm;
    padding: 3mm;
    border-color: #d8dee9;
    background: #fff;
    break-inside: avoid;
  }

  .pipeline strong,
  .pipeline small {
    display: block;
    margin-top: 2mm;
  }

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 4mm 0 0;
    border-color: #d8dee9;
    color: #667085;
  }
}
