:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef4f7;
  --text: #15202b;
  --muted: #5f6f7a;
  --line: #dbe5ea;
  --accent: #0f6c81;
  --accent-strong: #0b4f67;
  --accent-soft: #dff2f6;
  --shadow: 0 20px 50px rgba(19, 44, 58, 0.11);
  --radius: 8px;
  --max: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1518;
  --surface: #131e23;
  --surface-muted: #18282f;
  --text: #eef7f8;
  --muted: #a4b6bd;
  --line: #28414a;
  --accent: #58c7d8;
  --accent-strong: #91e1eb;
  --accent-soft: #17343c;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 108, 129, 0.07), transparent 340px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.skip-link {
  background: var(--accent-strong);
  color: #ffffff;
  left: 1rem;
  padding: 0.65rem 0.85rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0.9rem 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  font-weight: 750;
  min-width: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--text);
  border-radius: 7px;
  color: var(--bg);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.nav-actions a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

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

.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.theme-icon {
  background: currentColor;
  border-radius: 50%;
  box-shadow: inset -0.35rem -0.25rem 0 0 var(--surface);
  height: 1rem;
  width: 1rem;
}

:root[data-theme="dark"] .theme-icon {
  box-shadow: 0 0 0 0.22rem var(--surface), 0 0 0 0.33rem currentColor;
  height: 0.62rem;
  width: 0.62rem;
}

.section-shell {
  margin: 0 auto;
  max-width: var(--max);
  padding: 5rem 1.25rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4.25rem);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  min-height: auto;
  padding-bottom: 4.5rem;
  padding-top: 6rem;
  position: relative;
}

.hero-copy {
  min-width: 0;
}

.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  border-radius: var(--radius);
  inset: 4rem 1.25rem auto auto;
  height: 58%;
  max-height: 460px;
  opacity: 0.42;
  position: absolute;
  width: min(52vw, 620px);
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, black 25%, black 68%, transparent);
}

.eyebrow,
.card-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.55rem, 5vw, 5.1rem);
  line-height: 0.98;
  margin-bottom: 1.35rem;
  max-width: 760px;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  max-width: 690px;
}

.hero-actions,
.contact-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
}

.button-primary {
  background: var(--accent-strong);
  color: #ffffff;
}

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

.hero-card,
.capability-card,
.project-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  align-self: center;
  display: grid;
  gap: 1.35rem;
  padding: 1rem;
}

.profile-photo {
  aspect-ratio: 1;
  background: var(--surface-muted);
  border-radius: var(--radius);
  height: auto;
  object-fit: cover;
  object-position: center 34%;
  width: 100%;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 0;
}

.split-section {
  align-items: start;
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.capability-card,
.project-card {
  box-shadow: none;
  padding: 1.25rem;
}

.capability-card p,
.project-card p,
.timeline-content p,
.contact-section p,
.site-footer p {
  color: var(--muted);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  gap: 2rem;
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: grid;
  gap: 0.2rem;
}

.timeline-meta span {
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-meta strong {
  font-size: 1rem;
}

.timeline-content p {
  margin-bottom: 0;
  max-width: 720px;
}

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

.project-card {
  display: grid;
  gap: 1.1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 750;
  padding: 0.24rem 0.62rem;
}

.project-links {
  margin-top: 0;
}

.project-links a {
  color: var(--accent-strong);
  font-weight: 800;
}

.contact-section {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 2rem;
}

.contact-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-section p {
  margin-bottom: 0;
  max-width: 620px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--max);
  padding: 1.6rem 1.25rem 2.5rem;
}

.site-footer p {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 1080px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    overflow-x: auto;
    padding-bottom: 0.15rem;
    width: 100%;
  }

  .hero,
  .split-section,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
    padding-top: 3.4rem;
  }

  .blueprint {
    height: 330px;
    width: calc(100% - 2.5rem);
  }

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    gap: 0.8rem;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-shell {
    padding: 3.6rem 1rem;
  }

  .nav {
    padding: 0.85rem 1rem;
  }

  .brand {
    width: 100%;
  }

  .nav-actions {
    gap: 0.8rem;
  }

  .nav-actions a {
    font-size: 0.9rem;
  }

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

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

  .hero-card {
    align-items: center;
    gap: 0.9rem;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 0.8rem;
  }

  .profile-photo {
    width: 96px;
  }

  .hero-card .card-title {
    font-size: 1rem;
  }

  .contact-section {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.25rem;
  }
}
