:root {
  --ink: #17242b;
  --muted: #5c6b73;
  --line: #d8e3e7;
  --soft: #f4fafb;

  --blue: #2f86b7;
  --blue-deep: #214b6b;
  --teal: #1f6b78;
  --teal-deep: #155360;
  --cyan: #35b9b1;
  --aqua: #77d7d0;

  --brand-gradient: linear-gradient(
    135deg,
    #214b6b 0%,
    #2f86b7 32%,
    #1f6b78 68%,
    #35b9b1 100%
  );
}

body {
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.tracking-tight {
  letter-spacing: -0.055em;
}

.max-copy {
  max-width: 680px;
}

.site-nav {
  backdrop-filter: blur(14px);
}

.navbar-brand {
  letter-spacing: -0.03em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
}

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

.nav-link {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--teal);
}

.btn-outline-dark {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline-dark:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  background-size: 220% 220%;
  animation: heroShift 18s ease infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255,255,255,.24);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35), transparent 82%);
}

.hero-shape {
  display: none;
}

@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero .display-3,
.hero .lead,
.hero .eyebrow,
.hero .hero-index span {
  color: #fff !important;
}

.hero .btn-light {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.hero .btn-light:hover {
  background: rgba(255,255,255,.22);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .875rem;
}

.eyebrow span {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-index span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: .95rem;
}

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

.unit-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  background: #fff;
}

.unit-card:hover {
  transform: translateY(-4px);
  border-color: #bdd2da;
  box-shadow: 0 18px 48px rgba(23,36,43,.12);
}

.unit-card a {
  color: inherit;
  text-decoration: none;
}

.unit-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 44px;
}

.unit-icon.blue {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.unit-icon.red {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.unit-icon.yellow {
  background: linear-gradient(135deg, var(--cyan), var(--aqua));
  color: #08343a;
}

.unit-card h3 {
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

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

.bg-soft {
  background: var(--soft);
  border-top: 1px solid #e4eef1;
  border-bottom: 1px solid #e4eef1;
}

.work-list {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) 1fr;
  gap: 24px;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 0;
}

.work-item:hover {
  background: #f7fbfc;
}

.work-item span {
  font-weight: 650;
}

.work-item em {
  color: var(--muted);
  font-style: normal;
}

.principle {
  border-left: 4px solid var(--line);
  padding: 4px 0 4px 18px;
}

.principle:nth-child(1) {
  border-color: var(--teal);
}

.principle p {
  color: var(--muted);
  margin: .45rem 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  background:
    linear-gradient(
      135deg,
      #eaf7fb 0%,
      #eef9f8 34%,
      #f7fbfc 68%,
      #e8f3f7 100%
    );
  border-bottom: 1px solid #dce9ee;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(47,134,183,.22) 0%, transparent 28%),
    linear-gradient(225deg, rgba(31,107,120,.18) 0%, transparent 34%),
    linear-gradient(315deg, rgba(53,185,177,.18) 0%, transparent 38%);
  mix-blend-mode: multiply;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.35), transparent);
}

.page-hero .container-xl {
  position: relative;
  z-index: 2;
}

.page-hero .display-5 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.page-hero .lead {
  font-size: 1.15rem;
  max-width: 42rem;
  color: #39535d;
}

.page-hero .text-secondary {
  color: #2f5662 !important;
}

.page-content {
  max-width: 960px;
}

.page-content h2,
.article-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.page-content p,
.page-content li,
.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body {
  max-width: 760px;
}

.article-body a,
.page-content a {
  color: var(--teal);
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
}

.post-card a {
  color: inherit;
  text-decoration: none;
}

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

.post-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  background: #fff;
}

.content-card p:last-child {
  margin-bottom: 0;
}

footer {
  color: var(--ink);
}

@media (max-width: 767px) {
  .hero .display-3 {
    font-size: 3rem;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .brand-lockup img {
    width: 30px;
    height: 30px;
  }

  .page-hero {
    padding: 5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}