:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #626260;
  --soft: #f1eee7;
  --paper: #fbfaf7;
  --line: #ddd6cb;
  --teal: #2d665e;
  --teal-dark: #204b45;
  --coral: #a95d43;
  --gold: #b8873a;
  --navy: #1d2826;
  --shadow: 0 18px 44px rgba(26, 24, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(221, 214, 203, 0.24) 1px, transparent 1px),
    var(--paper);
  background-size: 96px 96px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.hero {
  padding: 24px clamp(18px, 4vw, 64px) 74px;
  background: linear-gradient(180deg, #fffdf9 0%, #f3f0e9 100%);
  border-bottom: 1px solid var(--line);
}

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 64px;
  max-width: 1180px;
  padding-bottom: 18px;
}

.brand {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  width: 44px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #4f504d;
  font-size: 13px;
  font-weight: 760;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 86px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  margin: 0 auto;
  max-width: 1180px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 780px;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  max-width: 650px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 780;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(45, 102, 94, 0.18);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.project-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 720px;
  padding-top: 20px;
}

.project-meta div {
  min-width: 0;
}

.project-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta dd {
  font-size: 15px;
  font-weight: 750;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.demo-panel {
  background: #101211;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-video {
  aspect-ratio: 16 / 9;
  background: #101211;
  display: block;
  object-fit: contain;
  width: 100%;
}

.video-caption {
  background: #fffdf9;
  border-top: 1px solid var(--line);
  color: #565653;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
}

.profile-panel {
  align-self: stretch;
  display: flex;
}

.profile-card {
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: clamp(28px, 4vw, 42px);
}

.profile-photo-wrap {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  aspect-ratio: 1;
  height: auto;
  justify-content: center;
  margin-bottom: 28px;
  max-width: 248px;
  overflow: hidden;
  width: 100%;
}

.profile-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.profile-card h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.profile-card p {
  color: var(--muted);
  font-size: 17px;
}

.profile-stats {
  display: grid;
  border-top: 1px solid var(--line);
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  padding-top: 18px;
}

.profile-stats div {
  border-right: 1px solid var(--line);
  padding: 0 14px 0 0;
}

.profile-stats div:last-child {
  border-right: 0;
}

.profile-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 8px;
  text-transform: uppercase;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 78px clamp(18px, 4vw, 64px);
}

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

.overview {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.85fr 1fr;
}

.overview-copy {
  color: var(--muted);
  font-size: 17px;
}

.about {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.85fr 1fr;
}

.experience {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.75fr 1.25fr;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  padding: 24px;
}

.timeline span {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.project-intro {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(26px, 5vw, 60px);
  grid-template-columns: 0.9fr 1.1fr;
}

.project-kicker p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

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

.problem-solution article,
.feature-grid article,
.flow-card {
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  padding: 26px;
}

.problem-solution p,
.feature-grid p,
.flow-card p,
.role p {
  color: var(--muted);
}

.inline-link {
  color: var(--teal);
  font-weight: 800;
}

.workflow {
  background: var(--navy);
  color: #fff;
  max-width: none;
}

.workflow .section-heading,
.workflow .flow-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 1052px;
}

.workflow .eyebrow {
  color: #9bc9c0;
}

.flow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.flow-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.flow-card span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 32px;
}

.flow-card p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.stack {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.48);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stack-list span {
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #252b33;
  font-size: 13px;
  font-weight: 760;
  padding: 10px 14px;
}

.role,
.closing {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1fr;
}

.closing {
  background: #efebe2;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 72px;
  padding: 42px;
}

.closing h2 {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .about,
  .experience,
  .project-intro,
  .overview,
  .problem-solution,
  .role,
  .closing {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

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

@media (max-width: 640px) {
  .hero {
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 40px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: flex-end;
  }

  h1 {
    font-size: 42px;
  }

  .project-meta,
  .profile-stats,
  .flow-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats div {
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 16px 0;
    text-align: center;
  }

  .profile-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-bottom: 62px;
    padding-top: 62px;
  }

  .closing {
    margin-left: 18px;
    margin-right: 18px;
    padding: 28px;
  }
}
