:root {
  color-scheme: dark;
  --page: #090d14;
  --page-2: #101620;
  --surface: rgba(18, 24, 34, 0.78);
  --surface-strong: rgba(24, 31, 43, 0.92);
  --surface-soft: rgba(147, 163, 184, 0.08);
  --ink: #c8ced7;
  --heading: #eef2f7;
  --muted: #9aa5b4;
  --soft: #778293;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --dark: #f0f4f8;
  --blue: #63a7ff;
  --blue-strong: #9dccff;
  --blue-deep: #0d4d9f;
  --nav-bg: rgba(15, 21, 31, 0.72);
  --nav-hover: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(18, 24, 34, 0.74);
  --card-bg-strong: rgba(27, 36, 50, 0.88);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #eef1f5;
  --page-2: #dce2ea;
  --surface: rgba(247, 248, 250, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(16, 18, 23, 0.04);
  --ink: #333333;
  --heading: #101217;
  --muted: #555d68;
  --soft: #707987;
  --line: rgba(16, 18, 23, 0.12);
  --line-strong: rgba(16, 18, 23, 0.18);
  --dark: #101217;
  --blue: #0f5fb8;
  --blue-strong: #073f85;
  --blue-deep: #0b4f9c;
  --nav-bg: rgba(255, 255, 255, 0.66);
  --nav-hover: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.74);
  --card-bg-strong: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(16, 18, 23, 0.14);
}

:root[data-theme="light"] .button-primary {
  color: #ffffff;
}

:root[data-theme="light"] .button-primary:hover {
  color: #ffffff;
}

:root[data-theme="light"] .project-featured {
  background:
    linear-gradient(150deg, rgba(16, 18, 23, 0.96), rgba(31, 39, 51, 0.95)),
    linear-gradient(145deg, rgba(15, 95, 184, 0.18), transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(99, 167, 255, 0.14) 0%, transparent 34%),
    linear-gradient(160deg, var(--page) 0%, var(--page-2) 52%, var(--page) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-strong);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  margin-left: 20px;
}

.brand-mark {
  width: 63px;
  height: 63px;
  object-fit: contain;
}

.brand-mark-light-theme {
  display: none;
}

:root[data-theme="light"] .brand-mark-dark-theme {
  display: none;
}

:root[data-theme="light"] .brand-mark-light-theme {
  display: block;
}

.header-actions {
  gap: 10px;
}

.nav {
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.nav a {
  min-width: 82px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.nav a:hover {
  background: var(--nav-hover);
  color: var(--dark);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.theme-toggle::before {
  content: "";
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(99, 167, 255, 0.22);
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(99, 167, 255, 0.68);
  transition: transform 180ms ease, background 180ms ease;
}

:root[data-theme="light"] .theme-toggle::after {
  transform: translateX(14px);
  background: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(15, 95, 184, 0.14);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 56px 0 64px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: 70px;
}

h2 {
  margin-bottom: 22px;
  font-size: 52px;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.lead {
  max-width: 740px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 23px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.button-primary {
  background: var(--blue);
  color: #07111f;
  box-shadow: 0 16px 34px rgba(99, 167, 255, 0.2);
}

.button-primary:hover {
  background: var(--blue-strong);
  color: #07111f;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-strong);
  color: var(--dark);
}

.profile-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(99, 167, 255, 0.1), transparent 42%),
    linear-gradient(145deg, var(--card-bg-strong), var(--surface));
  box-shadow: var(--shadow);
}

.profile-image-frame {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(145deg, #0c121c, #2c3a4e);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 850;
}

.profile-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.signal-strip > div {
  min-height: 128px;
  padding: 28px;
  background: var(--surface);
}

.metric {
  display: block;
  color: var(--heading);
  font-size: 34px;
  font-weight: 850;
  line-height: 1.1;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.split-section,
.work-section,
.approach-section,
.personal-section,
.contact-section {
  padding: 110px 0 0;
}

.split-section,
.approach-section,
.personal-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 56px;
  align-items: start;
}

.section-heading {
  max-width: 520px;
}

.section-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.expertise-grid article,
.project,
.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.expertise-grid article {
  padding: 26px;
}

.expertise-grid p,
.project p,
.work-card p,
.approach-list p,
.personal-section p {
  color: var(--muted);
}

.work-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.project {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 30px;
}

.project-featured {
  background:
    linear-gradient(150deg, rgba(6, 10, 17, 0.98), rgba(20, 30, 44, 0.96)),
    linear-gradient(145deg, rgba(99, 167, 255, 0.18), transparent);
}

.project-enterprise {
  background:
    linear-gradient(145deg, var(--card-bg-strong), var(--surface)),
    linear-gradient(135deg, rgba(99, 167, 255, 0.12), transparent);
}

.project-featured h3,
.project-featured p {
  color: #dce3ec;
}

.project-featured .project-kicker,
.project-featured a {
  color: var(--blue-strong);
}

.project-kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project h3 {
  font-size: 58px;
}

.project-enterprise h3 {
  font-size: 40px;
}

.project-footer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.project-footer p {
  margin-bottom: 8px;
  font-size: 14px;
}

.project-footer a {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 850;
}

.work-card {
  grid-column: span 2;
  min-height: 280px;
  padding: 26px;
}

.work-card h3 {
  font-size: 25px;
  line-height: 1.15;
}

.work-card p {
  margin-bottom: 0;
}

.approach-list {
  display: grid;
  gap: 12px;
}

.approach-list p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.approach-list strong {
  color: var(--heading);
}

.personal-section {
  align-items: center;
}

.personal-section p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 19px;
}

.personal-section a {
  font-weight: 850;
}

.contact-section {
  align-items: center;
  padding-bottom: 120px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    width: min(100% - 28px, 1180px);
  }

  .header-actions {
    gap: 8px;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    min-width: auto;
    padding-inline: 11px;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .split-section,
  .approach-section,
  .personal-section,
  .contact-section,
  .work-showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .lead {
    font-size: 20px;
  }

  .metric {
    font-size: 30px;
  }

  .project h3 {
    font-size: 42px;
  }

  .project-enterprise h3 {
    font-size: 34px;
  }

  .project,
  .work-card {
    grid-column: auto;
  }

  .profile-panel {
    min-height: auto;
  }

  .profile-image-frame {
    max-width: 280px;
  }

  .signal-strip,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .split-section,
  .work-section,
  .approach-section,
  .personal-section,
  .contact-section {
    padding-top: 78px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
    gap: 16px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
  }

  .signal-strip > div,
  .expertise-grid article,
  .project,
  .work-card {
    padding: 22px;
  }

  .work-card h3 {
    font-size: 22px;
  }
}
