:root {
  --page: #f8f8f6;
  --paper: #fbfaf8;
  --ink: #070707;
  --muted: #3f3f3d;
  --soft: #7b7b78;
  --line: rgba(12, 12, 12, 0.12);
  --line-strong: rgba(12, 12, 12, 0.18);
  --dark: #050607;
  --radius: 8px;
  --shadow: 0 22px 54px rgba(16, 18, 20, 0.08);
  --page-gutter: 40px;
  --block-gap: 21px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 17% 8%, rgba(0, 0, 0, 0.035), transparent 21rem),
    radial-gradient(circle at 78% 26%, rgba(180, 180, 176, 0.18), transparent 26rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.35;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 60px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  background: rgba(248, 248, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(198px, 17vw, 270px);
  height: auto;
}

.brand:focus-visible {
  outline: 2px solid #111;
  outline-offset: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  padding-left: clamp(16px, 2vw, 24px);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a,
.balroc-link,
.pill-button,
.circle-link {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.balroc-link:hover,
.balroc-link:focus-visible {
  color: #70706d;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 34px;
  font-size: 13px;
  font-weight: 560;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 36px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
}

.pill-button:hover,
.pill-button:focus-visible,
.circle-link:hover,
.circle-link:focus-visible {
  transform: translateY(-1px);
}

.pill-button-dark {
  color: #fff;
  background: #020202;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.pill-button-dark:hover,
.pill-button-dark:focus-visible {
  background: #191919;
}

.pill-button-outline {
  min-width: 198px;
  color: #111;
  border-color: rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.52);
}

.pill-button-outline:hover,
.pill-button-outline:focus-visible {
  border-color: rgba(0, 0, 0, 0.44);
  background: #fff;
}

.arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 52px var(--page-gutter) 20px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(45px, 4.35vw, 60px);
  font-weight: 600;
  line-height: 1.02;
}

.hero p {
  max-width: 500px;
  margin: 20px 0 24px;
  color: #373737;
  font-size: 16px;
  line-height: 1.35;
}

.bento-shell {
  width: min(calc(100% - 80px), 1490px);
  margin: 0 auto 34px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.23fr 1.04fr 1fr;
  gap: var(--block-gap);
  align-items: stretch;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
  min-width: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card::before {
  z-index: -1;
}

.card::after {
  z-index: 1;
  display: none;
}

.card-copy {
  position: relative;
  z-index: 2;
  max-width: 260px;
  padding: 23px 24px;
}

.kicker,
.card p.kicker,
.partner-strip p.kicker {
  margin: 0 0 30px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.card-light .kicker {
  color: #333;
}

.card-dark {
  color: #fff;
  background-color: #080808;
  border-color: rgba(255, 255, 255, 0.16);
}

.card-dark .kicker {
  color: rgba(255, 255, 255, 0.86);
}

.card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 510;
  line-height: 1.12;
}

.card p:not(.kicker) {
  margin: 14px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.36;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.88);
}

.circle-link {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  color: #303030;
  background: rgba(255, 255, 255, 0.52);
  font-size: 16px;
  line-height: 1;
}

.circle-link.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.18);
}

.circle-link:hover,
.circle-link:focus-visible {
  background: #fff;
  color: #070707;
}

.card-balroc {
  height: 270px;
  background-image: url("assets/balroc-art.jpg");
  background-size: cover;
  background-position: center;
}

.card-balroc::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(18, 1, 2, 1) 0%, rgba(21, 1, 2, 0.98) 52%, rgba(24, 1, 2, 0.58) 72%, transparent 90%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.1));
}

.card-balroc .card-copy {
  padding-top: 24px;
}

.card-balroc .kicker {
  margin-bottom: 70px;
}

.card-balroc h2 {
  font-size: 34px;
}

.card-build {
  height: 198px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    #fbfaf8;
}

.card-build .card-copy {
  max-width: 300px;
  padding-block: 20px;
}

.card-build .kicker {
  margin-bottom: 22px;
}

.capability-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #151515;
  font-size: 14px;
}

.capability-list li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mini-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
  border-color: rgba(0, 0, 0, 0.44);
}

.mini-icon.signal::before {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 50%;
}

.mini-icon.signal::after {
  width: 3px;
  height: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.42);
  transform: translateX(5px);
}

.mini-icon.data::before {
  width: 12px;
  height: 8px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 6px;
  transform: rotate(24deg);
}

.mini-icon.research::before {
  width: 12px;
  height: 1px;
  background: rgba(0, 0, 0, 0.48);
  transform: rotate(-42deg);
}

.mini-icon.research::after {
  width: 4px;
  height: 4px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 50%;
  transform: translate(4px, -4px);
}

.mini-icon.decision::before {
  width: 8px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 2px;
}

.mini-icon.decision::after {
  width: 10px;
  height: 1px;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(5px);
}

.network-figure {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  opacity: 0.9;
  background:
    radial-gradient(circle at 58% 40%, transparent 0 72px, rgba(0, 0, 0, 0.1) 73px, transparent 74px),
    linear-gradient(90deg, transparent 49%, rgba(0, 0, 0, 0.08) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 0, 0, 0.08) 50%, transparent 51%);
}

.network-figure::before {
  content: "";
  position: absolute;
  inset: 48px 36px 34px 0;
  background:
    linear-gradient(26deg, transparent 49.6%, rgba(0, 0, 0, 0.1) 50%, transparent 50.4%),
    linear-gradient(134deg, transparent 49.5%, rgba(0, 0, 0, 0.1) 50%, transparent 50.5%);
}

.node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e32626;
}

.n1 { left: 23%; top: 68%; }
.n2 { left: 40%; top: 46%; }
.n3 { left: 57%; top: 66%; }
.n4 { left: 58%; top: 39%; }
.n5 { left: 78%; top: 26%; }
.n6 { left: 77%; top: 52%; background: #1d1d1d; }

.card-research {
  height: 214px;
  background-image: url("assets/research-art.jpg");
  background-size: cover;
  background-position: center;
}

.card-research::after {
  display: block;
  background: linear-gradient(90deg, #fbfaf8 0%, #fbfaf8 54%, rgba(251, 250, 248, 0.94) 62%, rgba(251, 250, 248, 0) 78%);
}

.card-research .kicker,
.card-insights .kicker {
  margin-bottom: 22px;
}

.card-research .circle-link,
.card-insights .circle-link {
  bottom: 26px;
}

.card-culture {
  height: 254px;
  background-image: url("assets/culture-art.jpg");
  background-size: cover;
  background-position: center;
}

.card-culture::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 1) 0%, rgba(7, 7, 7, 0.98) 58%, rgba(7, 7, 7, 0.5) 76%, transparent 91%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.08));
}

.card-culture .kicker {
  margin-bottom: 24px;
}

.card-infra {
  height: 270px;
  background-image: url("assets/infrastructure-art.jpg");
  background-size: cover;
  background-position: center;
}

.card-infra::after {
  display: block;
  background:
    linear-gradient(90deg, rgba(5, 18, 23, 1) 0%, rgba(5, 18, 23, 0.98) 58%, rgba(5, 18, 23, 0.48) 76%, transparent 91%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.06));
}

.card-infra .kicker {
  margin-bottom: 44px;
}

.card-insights {
  height: 198px;
  background-image: url("assets/work-art.jpg");
  background-size: cover;
  background-position: center;
}

.card-insights::after {
  display: block;
  background: linear-gradient(90deg, #fbfaf8 0%, #fbfaf8 50%, rgba(251, 250, 248, 0.94) 60%, rgba(251, 250, 248, 0) 76%);
}

.partner-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(250px, 0.95fr) auto;
  align-items: center;
  gap: 24px;
  width: min(792px, 100%);
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 22px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 248, 0.88);
  box-shadow: var(--shadow);
}

.partner-strip .kicker {
  margin-bottom: 7px;
  color: #676762;
  font-size: 8px;
}

.partner-strip h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 510;
  line-height: 1.1;
}

.partner-strip p {
  margin: 0;
  color: #343434;
  font-size: 13px;
  line-height: 1.25;
}

.partner-strip .pill-button {
  min-height: 32px;
  padding-inline: 18px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .main-nav {
    display: none;
  }

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

  .bento-stack:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 860px) {
  .header-actions {
    gap: 18px;
  }

  .balroc-link {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .bento-shell {
    width: min(calc(100% - 56px), 680px);
  }

  .bento-grid,
  .bento-stack:first-child {
    grid-template-columns: 1fr;
  }

  .partner-strip {
    grid-template-columns: 1fr;
  }

  .partner-strip .pill-button {
    justify-self: start;
  }
}

@media (max-width: 540px) {
  .site-header {
    height: 58px;
    padding-inline: 28px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(48vw, 190px);
  }

  .header-actions .pill-button {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .header-actions .pill-button span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    padding: 40px 28px 28px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .hero p {
    font-size: 15px;
  }

  .pill-button-outline {
    width: min(100%, 240px);
  }

  .card {
    height: auto;
    min-height: 232px;
  }

  .card-copy {
    padding: 20px;
  }

  .card-balroc,
  .card-infra {
    min-height: 252px;
  }

  .card-build {
    min-height: 245px;
  }

  .network-figure {
    width: 55%;
    opacity: 0.5;
  }

  .circle-link {
    right: 20px;
    bottom: 20px;
  }
}


/* Layout safeguards */
.card-copy,
.partner-strip > * {
  min-width: 0;
}

.card h2,
.card p,
.partner-strip h2,
.partner-strip p {
  overflow-wrap: anywhere;
}

.card:has(.circle-link) .card-copy {
  max-width: min(260px, calc(100% - 72px));
}

.pill-button:focus-visible,
.circle-link:focus-visible,
.main-nav a:focus-visible,
.balroc-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 540px) {
  :root {
    --page-gutter: 28px;
  }

  .bento-shell {
    width: calc(100% - 56px);
  }

  .card:has(.circle-link) .card-copy {
    max-width: calc(100% - 64px);
  }

  .partner-strip {
    padding: 20px;
  }
}
