:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --ink: #121417;
  --muted: #5e6872;
  --line: #d8dee2;
  --line-strong: #9aa7ae;
  --teal: #087f8c;
  --red: #c53b3b;
  --amber: #b87812;
  --green: #287a4f;
  --shadow: 0 18px 45px rgba(18, 20, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration-color: rgba(8, 127, 140, 0.45);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--teal);
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 248, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a {
  border: 1px solid transparent;
  min-height: 40px;
  padding: 9px 11px;
  text-decoration: none;
}

nav a:hover {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 8px;
}

.section-band {
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  min-height: calc(100vh - 64px);
  align-items: center;
}

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

.eyebrow {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 14px;
}

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

h3 {
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.role {
  color: var(--red);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.positioning {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1.12;
  max-width: 900px;
}

.intro {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 780px;
}

.actions,
.links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.links a,
.contact-links a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button.muted {
  color: var(--muted);
}

.proof-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}

.proof-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.proof-panel dl,
.project-details {
  margin: 0;
}

.proof-panel div,
.project-details div {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

dt {
  color: var(--ink);
  font-weight: 800;
}

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

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-intro {
  color: var(--muted);
  max-width: 720px;
}

.implementation-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.implementation-steps li {
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 12px;
  min-height: 112px;
  padding: 16px 0 0;
}

.implementation-steps span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.implementation-steps strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gim-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.project-card.gim-card img {
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.project-card img {
  aspect-ratio: 16 / 9;
  background: #e8ecef;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.project-body {
  padding: clamp(20px, 3vw, 30px);
}

.project-topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-topline span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 5px 9px;
}

.project-topline span:first-child {
  border-color: rgba(8, 127, 140, 0.28);
  color: var(--teal);
}

.summary {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
}

.project-details {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.project-subsection {
  border-left: 3px solid var(--teal);
  margin: 0 0 18px;
  padding-left: 16px;
}

.project-subsection h4 {
  font-size: 1rem;
  margin: 0 0 7px;
}

.project-subsection p {
  color: var(--muted);
  margin-bottom: 8px;
}

.project-subsection p:last-child {
  margin-bottom: 0;
}

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

.signal-list li + li {
  margin-top: 8px;
}

.stack-grid,
.two-column {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack-grid > div,
.two-column > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.stack-grid p,
.two-column p,
.text-column p {
  color: var(--muted);
}

.split {
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.text-column {
  max-width: 780px;
}

.experience-grid {
  display: grid;
  gap: 18px;
}

.experience-grid > article {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.experience-grid p,
.experience-list {
  color: var(--muted);
}

.experience-list {
  margin: 0;
  padding-left: 20px;
}

.experience-list li + li {
  margin-top: 7px;
}

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

.contact {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.contact-links {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .gim-card {
    display: block;
  }

  .project-card.gim-card img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

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

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

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

  nav {
    justify-content: flex-start;
  }

  nav a {
    min-height: 42px;
    padding-left: 0;
  }

  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stack-grid,
  .two-column,
  .implementation-steps {
    grid-template-columns: 1fr;
  }

  .implementation-steps li {
    min-height: 0;
    padding-bottom: 8px;
  }

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