:root {
  --ink: #06122f;
  --muted: #536071;
  --line: #dce2ea;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --accent: #ec1d24;
  --accent-dark: #ba1117;
  --teal: #006c78;
  --green: #1d7a45;
  --shadow: 0 20px 60px rgba(6, 18, 47, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.button svg,
.pill-grid svg {
  width: 18px;
  height: 18px;
}

.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.secondary,
.nav-button {
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(46px, 7vw, 96px) clamp(18px, 6vw, 84px) 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.category {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
}

.lede,
.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-name {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-panel {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel h2 {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.pill-grid {
  display: grid;
  gap: 12px;
}

.pill-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.proof-strip {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: 54px clamp(18px, 6vw, 84px);
  background: var(--ink);
  color: #fff;
}

.proof-strip h2 {
  max-width: 760px;
}

.proof-gallery {
  display: grid;
  gap: 12px;
}

.proof-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 38px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.about-intro {
  display: grid;
  gap: 24px;
}

.portrait {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 860px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-media {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 14px;
  background: var(--soft);
}

.project-media > img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  object-position: center top;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(6, 18, 47, 0.08);
}

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

.project-gallery img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: top left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-body {
  padding: clamp(24px, 4vw, 44px);
}

.project-body p,
.project-body li {
  color: var(--muted);
  line-height: 1.65;
}

.project-body ul,
.stack-card ul {
  padding-left: 18px;
}

.project-body li::marker,
.stack-card li::marker {
  color: var(--accent);
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  padding: 7px 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 78px);
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.stack-card {
  min-height: 230px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stack-card h3 {
  min-height: 44px;
  font-size: 1rem;
}

.stack-card li {
  margin-bottom: 10px;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
}

.process-step {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-step span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.process-step p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  background: var(--ink);
  color: #fff;
}

.contact-section .section-copy {
  color: #c8d0dc;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #dce2ea;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.form-status {
  min-height: 24px;
  color: #dce2ea;
}

.routing-page h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.routing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.routing-grid article {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.routing-grid h2 {
  font-size: 1rem;
}

.routing-grid p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .hero,
  .about-section,
  .project-card,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .proof-strip,
  .stack-grid,
  .process-grid,
  .routing-grid {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 260px;
  }

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