* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cp-ink-900);
  font-family: var(--cp-font-sans);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 252, 0.98)),
    repeating-linear-gradient(
      -24deg,
      rgba(18, 40, 81, 0.018) 0,
      rgba(18, 40, 81, 0.018) 14px,
      transparent 14px,
      transparent 42px
    );
}

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

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

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.hero,
.section {
  width: min(calc(100% - 40px), var(--cp-content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup-mark {
  width: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(9, 17, 39, 0.08);
}

.brand-lockup-wordmark {
  width: min(286px, 24vw);
  min-width: 190px;
  flex: 0 1 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--cp-ink-700);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a,
.header-cta,
.button,
.brace-mode {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.header-cta:hover,
.button:hover,
.brace-mode:hover {
  transform: translateY(-1px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 680;
}

.header-cta {
  border-color: var(--cp-border);
  background: rgba(255, 255, 255, 0.8);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 46px 0 70px;
}

.eyebrow,
.section-kicker,
.research-label,
.brace-readout-kicker {
  margin: 0;
  color: var(--cp-ink-700);
  font-family: var(--cp-font-wide);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 0;
  max-width: 10ch;
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 520;
  letter-spacing: 0;
}

.hero-text {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--cp-ink-700);
  font-size: 20px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button-primary {
  background: linear-gradient(90deg, var(--cp-cyan), var(--cp-blue), var(--cp-violet));
  color: white;
  box-shadow: 0 18px 44px rgba(36, 119, 255, 0.22);
}

.button-secondary {
  border-color: var(--cp-border);
  background: rgba(255, 255, 255, 0.84);
}

.hero-markers {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.hero-markers div {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--cp-border-strong);
}

.hero-markers strong {
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-markers span {
  color: var(--cp-ink-600);
  font-size: 15px;
  line-height: 1.6;
}

.hero-stage {
  position: relative;
  min-height: 760px;
  border: 1px solid rgba(36, 119, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 255, 0.98)),
    linear-gradient(135deg, rgba(0, 184, 255, 0.04), rgba(109, 53, 255, 0.05));
  overflow: hidden;
}

.stage-grid,
.hero-stage::before,
.hero-stage::after {
  position: absolute;
  inset: 0;
  content: "";
}

.stage-grid {
  background:
    linear-gradient(rgba(18, 40, 81, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 40, 81, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 94%);
}

.hero-stage::before {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0));
}

.hero-stage::after {
  background:
    linear-gradient(0deg, rgba(245, 248, 252, 0.96), rgba(245, 248, 252, 0) 26%),
    linear-gradient(90deg, rgba(245, 248, 252, 0.7), rgba(245, 248, 252, 0) 24%);
}

.stage-ring {
  position: absolute;
  border: 1px solid rgba(36, 119, 255, 0.12);
  border-radius: 999px;
}

.stage-ring-a {
  inset: 82px 66px auto auto;
  width: 260px;
  height: 260px;
}

.stage-ring-b {
  inset: auto auto 112px 52px;
  width: 330px;
  height: 330px;
}

.stage-mark {
  position: absolute;
  top: 120px;
  left: 96px;
  width: min(320px, 60%);
  padding: 14px;
  border: 1px solid rgba(36, 119, 255, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 54px rgba(7, 12, 26, 0.08);
}

.stage-node {
  position: absolute;
  width: 220px;
  padding: 20px 0 0;
  border-top: 1px solid var(--cp-border-strong);
}

.stage-node span {
  display: block;
  color: var(--cp-ink-600);
  font-family: var(--cp-font-wide);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stage-node strong {
  display: block;
  margin-top: 10px;
  color: var(--cp-ink-900);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 560;
}

.stage-node-a {
  top: 86px;
  right: 54px;
}

.stage-node-b {
  right: 54px;
  bottom: 246px;
}

.stage-node-c {
  left: 54px;
  bottom: 96px;
}

.section {
  padding: 108px 0 0;
}

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

.section-heading h2 {
  margin: 18px 0 0;
  max-width: 14ch;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--cp-ink-700);
  font-size: 18px;
  line-height: 1.72;
}

.mission-grid,
.research-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

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

.mission-grid article,
.research-card {
  border: 1px solid var(--cp-border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--cp-shadow-soft);
}

.mission-grid article {
  min-height: 220px;
  padding: 28px 26px;
}

.mission-grid h3,
.research-card h3,
.brace-readout h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 560;
}

.mission-grid p,
.research-card p,
.brace-readout p {
  margin: 16px 0 0;
  color: var(--cp-ink-700);
  font-size: 16px;
  line-height: 1.72;
}

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

.research-card {
  min-height: 280px;
  padding: 28px;
}

.research-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.74)),
    linear-gradient(135deg, rgba(0, 184, 255, 0.04), rgba(109, 53, 255, 0.05));
}

.research-logo {
  width: 240px;
  margin-top: 22px;
}

.pulse-grid article {
  min-height: 210px;
}

.brace-lab {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.brace-console,
.brace-readout {
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-soft);
}

.brace-console {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 251, 255, 0.76)),
    linear-gradient(135deg, rgba(0, 184, 255, 0.05), rgba(109, 53, 255, 0.05));
}

.brace-console-logo {
  width: 220px;
}

.brace-modes {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.brace-mode {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cp-border);
  background: transparent;
  color: var(--cp-ink-700);
  cursor: pointer;
}

.brace-mode.is-active {
  background: var(--cp-midnight);
  border-color: var(--cp-midnight);
  color: white;
}

.brace-channels {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.brace-channels span {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--cp-border);
  color: var(--cp-ink-700);
  font-size: 15px;
  line-height: 1.4;
}

.brace-readout {
  position: relative;
  min-height: 440px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(9, 17, 39, 0.96), rgba(12, 21, 44, 0.98));
  color: white;
  overflow: hidden;
}

.brace-readout::before,
.brace-readout::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
}

.brace-readout::before {
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brace-readout::after {
  bottom: -140px;
  left: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(0, 184, 255, 0.12);
}

.brace-readout-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
}

.brace-readout h3,
.brace-readout p,
.brace-readout-list {
  position: relative;
  z-index: 1;
}

.brace-readout p {
  color: rgba(255, 255, 255, 0.78);
}

.brace-readout-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.brace-readout-list li {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.contact-section {
  padding-bottom: 84px;
}

@media (max-width: 1180px) {
  .hero,
  .brace-lab,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .section-heading h2 {
    max-width: 14ch;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

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

  .hero-stage {
    min-height: 680px;
  }

  .stage-mark {
    left: 50%;
    top: 138px;
    width: min(280px, calc(100% - 112px));
    transform: translateX(-50%);
  }

  .stage-node-a,
  .stage-node-b,
  .stage-node-c {
    width: min(220px, calc(100% - 56px));
  }

  .stage-node-a {
    top: 42px;
    left: 28px;
    right: auto;
  }

  .stage-node-b {
    right: 28px;
    bottom: 156px;
  }

  .stage-node-c {
    left: 28px;
    bottom: 70px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section {
    width: calc(100% - 22px);
  }

  .site-header {
    padding: 14px 0;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-lockup-mark {
    width: 40px;
    border-radius: 12px;
  }

  .brand-lockup-wordmark {
    width: min(228px, calc(100vw - 92px));
    min-width: 0;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .header-cta,
  .button {
    min-height: 44px;
  }

  .hero {
    gap: 28px;
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-text,
  .section-heading p {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 620px;
  }

  .stage-mark {
    top: 150px;
    width: min(244px, calc(100% - 112px));
    padding: 10px;
  }

  .stage-node {
    width: 156px;
  }

  .stage-node strong {
    font-size: 18px;
  }

  .mission-grid article,
  .research-card,
  .brace-console,
  .brace-readout {
    padding: 22px;
  }

  .brace-modes {
    flex-wrap: wrap;
  }
}
