:root {
  color-scheme: light;
  --bg: #f2efe8;
  --bg-elevated: rgba(255, 255, 255, 0.76);
  --bg-strong: rgba(255, 255, 255, 0.9);
  --surface: #fcfaf6;
  --surface-strong: #ffffff;
  --border: rgba(28, 32, 38, 0.12);
  --border-strong: rgba(28, 32, 38, 0.2);
  --text: #13171d;
  --muted: #5e646f;
  --accent: #0e6cff;
  --accent-soft: rgba(14, 108, 255, 0.12);
  --accent-strong: #024dc2;
  --glow: rgba(14, 108, 255, 0.18);
  --shadow: 0 20px 70px rgba(20, 24, 30, 0.1);
  --shadow-soft: 0 12px 34px rgba(20, 24, 30, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1220px;
  --nav-height: 92px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-elevated: rgba(17, 24, 33, 0.72);
  --bg-strong: rgba(18, 24, 34, 0.9);
  --surface: #101720;
  --surface-strong: #151d28;
  --border: rgba(209, 219, 234, 0.12);
  --border-strong: rgba(209, 219, 234, 0.2);
  --text: #edf2fb;
  --muted: #9aa6b8;
  --accent: #7cc4ff;
  --accent-soft: rgba(124, 196, 255, 0.12);
  --accent-strong: #cce7ff;
  --glow: rgba(124, 196, 255, 0.18);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--glow), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 145, 77, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 92%, #c8d2de 8%));
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
  opacity: 0.25;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent),
    var(--surface-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.brand-name,
.brand-person,
.brand-tag,
.site-nav a,
.theme-toggle,
.button,
.eyebrow,
.project-kicker,
.project-index,
.metric-label,
.timeline-title,
.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-person {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand-person::before {
  content: "\2022";
  margin-right: 8px;
  color: var(--muted);
}

.brand-tag {
  color: var(--muted);
  font-size: 0.67rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.theme-toggle-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fbff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px var(--glow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.button-secondary,
.button-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.button-ghost {
  min-height: 44px;
}

.section {
  padding: 72px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: end;
  padding-top: 58px;
}

.hero-copy,
.hero-panel,
.project-card,
.content-panel,
.timeline-panel,
.capability-card,
.contact-card,
.metric {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-strong), var(--surface));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 4vw, 48px);
}

.hero-copy::before,
.hero-panel::before,
.project-card::before,
.content-panel::before,
.timeline-panel::before,
.capability-card::before,
.contact-card::before,
.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 42%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 6.1rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-summary {
  max-width: 62ch;
  margin-top: 22px;
  font-size: 1.06rem;
}

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

.hero-panel {
  min-height: 100%;
  padding: 24px;
}

.signal-card {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) - 8px);
  background: rgba(0, 0, 0, 0.03);
}

.signal-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.signal-label {
  font-size: 0.72rem;
  font-weight: 700;
}

.signal-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-grid li {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.metric {
  padding: 26px 24px;
}

.metric-value {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 286px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.project-featured {
  min-height: 286px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-kicker,
.project-index {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.project-card p {
  margin-top: 14px;
  max-width: 54ch;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.78rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.content-panel,
.timeline-panel,
.contact-card {
  padding: 28px;
}

.content-panel {
  display: grid;
  gap: 18px;
}

.timeline-panel {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-title {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
}

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

.capability-card {
  padding: 24px;
}

.capability-card p {
  margin-top: 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact-copy {
  max-width: 58ch;
}

.contact-name {
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.email-display {
  width: 100%;
  margin-top: 12px;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .metrics,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header,
  .header-actions,
  .site-nav {
    align-items: stretch;
  }

  .site-header,
  .header-actions {
    flex-direction: column;
  }

  .site-nav {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .brand-line {
    flex-wrap: wrap;
    gap: 4px;
  }

  .brand-person::before {
    content: "";
    margin-right: 0;
  }

  .site-nav a {
    padding-inline: 0;
  }

  .theme-toggle,
  .button-ghost {
    width: 100%;
  }

  .theme-toggle-track,
  .button-ghost {
    justify-content: center;
  }

  .section {
    padding-top: 56px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy,
  .hero-panel,
  .project-card,
  .content-panel,
  .timeline-panel,
  .capability-card,
  .contact-card,
  .metric {
    border-radius: 20px;
  }

  h1 {
    max-width: 11ch;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}