:root {
  color-scheme: light;
  --ink: #101923;
  --muted: #586a7d;
  --line: #d8e2ec;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --navy: #123250;
  --navy-dark: #091827;
  --brand: #378add;
  --brand-dark: #1565c0;
  --teal: #149a9a;
  --accent: #c98a2e;
  --shadow: 0 22px 60px rgba(16, 25, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfd;
  line-height: 1.55;
}

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

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 226, 236, 0.82);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  letter-spacing: 0;
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 12px 26px rgba(55, 138, 221, 0.22);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.github-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

main {
  flex: 1;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 48px;
  align-items: center;
}

.hero.compact {
  display: block;
  max-width: 900px;
  padding-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.eyebrow.small {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.eyebrow.small::before {
  width: 22px;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 0.99;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.intro {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 760;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button.primary {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(55, 138, 221, 0.22);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 138, 221, 0.55);
}

.slideshow-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0e2235;
  box-shadow: var(--shadow);
}

.browser-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(216, 226, 236, 0.18);
  background: rgba(9, 24, 39, 0.9);
  color: #c8ddf0;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(200, 221, 240, 0.5);
}

.preview-url {
  min-width: 0;
  padding: 5px 12px;
  border: 1px solid rgba(200, 221, 240, 0.22);
  border-radius: 999px;
  color: #dceaf6;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slides {
  position: relative;
  height: 430px;
}

.slide {
  position: absolute;
  inset: 0;
  color: #ffffff;
  opacity: 0;
  animation: heroSlides 30s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
.slide:nth-child(4) { animation-delay: 18s; }
.slide:nth-child(5) { animation-delay: 24s; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.02);
  background: #eef3f7;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 39, 0.5), rgba(9, 24, 39, 0.08) 54%, rgba(9, 24, 39, 0.02));
}

.slide-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 360px;
  padding: 16px;
  border: 1px solid rgba(200, 221, 240, 0.2);
  border-radius: 8px;
  background: rgba(9, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.slide-caption b {
  display: block;
  margin-bottom: 6px;
  font-size: 23px;
  line-height: 1.1;
}

.slide-caption span {
  color: #dceaf6;
  font-size: 14px;
}

@keyframes heroSlides {
  0% { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100% { opacity: 0; }
}

.section {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.section.alt {
  background: var(--soft);
}

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

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
}

.section-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

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

.card,
.work-card,
.feature,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(16, 25, 35, 0.05);
}

.work-card,
.module-card {
  min-height: 194px;
  padding: 24px;
}

.work-card strong,
.module-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 16px;
}

.work-card p,
.module-card p,
.feature p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature {
  padding: 28px;
}

.feature.flush {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.feature p {
  margin-bottom: 22px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
}

.profile-list,
.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-list li,
.meta-list li {
  display: grid;
  grid-template-columns: minmax(136px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-list b,
.meta-list b {
  color: var(--ink);
  font-weight: 760;
  white-space: nowrap;
}

.profile-list span,
.meta-list span {
  min-width: 0;
  text-align: left;
}

.details-stack {
  display: grid;
  gap: 12px;
}

.content-stack,
.project-stack,
.feature-list {
  display: grid;
  gap: 18px;
}

.prose-panel,
.project-card,
.feature-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(16, 25, 35, 0.05);
}

.prose-panel,
.project-card {
  padding: 28px;
}

.prose-panel p,
.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.prose-panel p:last-child,
.project-card p:last-child,
.feature p:last-child {
  margin-bottom: 0;
}

.prose-panel h2,
.project-card h2 {
  margin: 0 0 16px;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.feature-row h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feature-row p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

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

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

.project-meta div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.project-meta dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 760;
}

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

.featured-project {
  border-color: rgba(55, 138, 221, 0.38);
}

.bulleted {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
}

.bulleted li {
  margin-bottom: 8px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 760;
}

details p,
details ul {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

details li {
  margin: 0 0 7px 18px;
}

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

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 64px rgba(16, 25, 35, 0.16);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
}

.shot.tall img {
  aspect-ratio: 4 / 3;
}

.shot-body {
  padding: 18px;
}

.shot-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.shot-body span {
  color: var(--muted);
  font-size: 14px;
}

.enterprise-band {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.enterprise-band .section-title p,
.enterprise-band .module-card p {
  color: #c8ddf0;
}

.enterprise-band .module-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 221, 240, 0.18);
  box-shadow: none;
}

.enterprise-band .module-card strong {
  color: #ffffff;
}

footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--brand-dark);
  font-weight: 680;
}

@media (max-width: 900px) {
  .nav {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .work-grid,
  .module-grid,
  .stat-grid,
  .shot-grid,
  .project-meta {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .project-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 12px;
  }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .nav,
  .hero,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .profile-list li,
  .meta-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .slides {
    height: 330px;
  }

  .slideshow-card {
    min-height: 330px;
  }
}
