:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #5f676b;
  --line: #dfe4df;
  --accent: #9b1010;
  --accent-2: #005b70;
  --soft: #eaf1ed;
  --shadow: 0 18px 55px rgba(31, 45, 38, 0.1);
  --radius: 8px;
  --font: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #4b5459;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav a {
  padding: 8px 10px;
  text-decoration: none;
  color: #30383c;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--accent);
}
/*
.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}*/

.hero,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(48px, 8vw, 92px) 0;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-2);
  color: white;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.24);
}

.btn-secondary {
  background: var(--paper);
  border: 1px solid var(--line);
  color: #1d3238;
}

.hero-panel {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(0.15);
}

.hero-panel div {
  display: grid;
  gap: 4px;
  padding: 14px 4px 2px;
}

.hero-panel span {
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section-soft {
  width: 100%;
  max-width: none;
  padding: 76px clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.section-soft > * {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

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

.work-card,
.pipeline-grid article,
.approach-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(31, 45, 38, 0.06);
}

.work-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.work-media {
  min-height: 250px;
  background: #eef1f1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.work-card-large .work-media {
  border-radius: var(--radius) 0 0 var(--radius);
}

.work-media img,
.work-media video {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.work-media-plain {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(155, 16, 16, 0.09), transparent 58%),
    linear-gradient(160deg, #ffffff, #e9f2f0);
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
}

.work-body {
  padding: 24px;
}

.tag,
.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-body h3,
.pipeline-grid h3,
.approach-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.08;
}

.work-body p,
.pipeline-grid p,
.approach-grid p,
.footer p {
  color: var(--muted);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-list span {
  padding: 5px 9px;
  background: #f3f5f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #394349;
  font-size: 12px;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.pipeline-grid article,
.approach-grid article {
  padding: 22px;
}

.status {
  color: var(--accent-2);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #edf4f2;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent-2);
  font-weight: 700;
}

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

  .topbar nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

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

  .work-card-large,
  .work-grid,
  .pipeline-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .work-card-large .work-media {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .topbar nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar nav a {
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

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

  h1 {
    font-size: 42px;
  }

  .section {
    padding: 52px 0;
  }

  .section-soft {
    padding: 52px 14px;
  }

  .work-body,
  .pipeline-grid article,
  .approach-grid article {
    padding: 18px;
  }

  .footer {
    flex-direction: column;
  }
}

.brand {
  min-width: 0;
}

.brand span {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
