:root {
  --page: #f5f7f8;
  --surface: #ffffff;
  --ink: #172431;
  --navy: #0e263e;
  --muted: #5e6b76;
  --accent: #315f85;
  --accent-light: #91afc8;
  --line: #d8dfe5;
  --line-dark: rgba(224, 233, 241, 0.2);
  --header-height: 4.75rem;
  --container: 72rem;
  --side-padding: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(to right, rgba(14, 38, 62, 0.025) 1px, transparent 1px);
  background-size: 5rem 100%;
}

::selection {
  background: #c8dbea;
  color: var(--navy);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

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

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 540;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3.25rem, 6.7vw, 6.25rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.22rem;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: min(100% - (2 * var(--side-padding)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #5b8db4;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(14, 38, 62, 0.11);
  background: rgba(245, 247, 248, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 690;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.brand-mark circle {
  fill: var(--navy);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.15rem);
}

.primary-nav a {
  position: relative;
  color: #31414f;
  font-size: 0.88rem;
  font-weight: 560;
  text-decoration: none;
}

.primary-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:not(.nav-contact):hover::after,
.primary-nav a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 0.48rem 0.8rem;
  border: 1px solid #9ba9b5;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.nav-contact:hover {
  border-color: var(--accent);
  background: rgba(49, 95, 133, 0.06);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  min-height: calc(78svh - var(--header-height));
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 9vh, 7.5rem);
}

.hero-copy {
  max-width: 46rem;
  animation: reveal 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow,
.section-index,
.item-number {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.6rem;
}

.hero-subtitle {
  margin-bottom: 1.6rem;
  color: var(--accent);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 680;
  letter-spacing: 0.045em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-subtitle span {
  padding-inline: 0.38rem;
  color: var(--accent-light);
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 0.8rem;
  color: #293b4b;
  font-size: clamp(1.16rem, 1.7vw, 1.38rem);
  line-height: 1.6;
}

.hero-support {
  max-width: 41rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 640;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-1px);
}

.text-link {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration-color: #9eb2c2;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--accent);
}

.quant-figure {
  position: relative;
  width: 100%;
  margin: 0;
  padding-left: clamp(1rem, 3vw, 2.4rem);
  border-left: 1px solid var(--line);
  animation: reveal 750ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.quant-figure::before {
  position: absolute;
  top: 0;
  left: -3px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.quant-figure svg {
  width: 100%;
  height: auto;
}

.figure-main {
  fill: none;
  stroke: url(#lineFade);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.figure-thin {
  fill: none;
  stroke: #315f85;
  stroke-opacity: 0.34;
  stroke-width: 1;
}

.figure-thin--light {
  stroke-dasharray: 4 8;
  stroke-opacity: 0.22;
}

.figure-guide {
  fill: none;
  stroke: #315f85;
  stroke-dasharray: 2 9;
  stroke-opacity: 0.14;
  stroke-width: 1;
}

.figure-nodes circle {
  fill: var(--page);
  stroke: #315f85;
  stroke-width: 1.5;
}

.quant-figure figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  color: #667581;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-bordered {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(3.75rem, 0.18fr) minmax(0, 1fr);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 42rem;
}

.section-heading > div > p {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--compact {
  margin-bottom: 3.25rem;
}

.section-index {
  margin-top: 0.68rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-item {
  min-height: 20rem;
  padding: 1.5rem clamp(1.25rem, 2.4vw, 2rem) 2rem;
  border-right: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.expertise-item:first-child {
  padding-left: 0;
}

.expertise-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.expertise-item:hover {
  background: rgba(255, 255, 255, 0.42);
}

.expertise-item .item-number {
  display: block;
  margin-bottom: 4.75rem;
}

.expertise-item p {
  color: var(--muted);
}

.research-section {
  background: var(--surface);
}

.research-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 10vw, 9rem);
}

.research-intro {
  position: sticky;
  top: calc(var(--header-height) + 3rem);
}

.research-intro > p:last-child {
  max-width: 29rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.research-list {
  border-top: 1px solid var(--line);
}

.research-item {
  display: grid;
  min-height: 11rem;
  align-items: start;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-block: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.research-item p {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
}

.research-marker {
  position: relative;
  width: 2rem;
  height: 2rem;
  margin-top: 0.05rem;
}

.research-marker::before,
.research-marker::after {
  position: absolute;
  content: "";
  background: #aabac7;
}

.research-marker::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.research-marker::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.research-marker span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.section-dark {
  background: var(--navy);
  color: #c8d4de;
}

.section-dark h2,
.section-dark h3 {
  color: #f5f8fa;
}

.section-dark .section-index {
  color: #90b4d2;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 11vw, 10rem);
}

.about-copy {
  max-width: 45rem;
}

.about-copy > p:not(.about-lead) {
  max-width: 40rem;
}

.about-lead {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  font-weight: 430;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.founder-block {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.founder-title h3 {
  margin-bottom: 0.3rem;
}

.founder-title p {
  color: #8ca8be;
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-block > p {
  margin-bottom: 0;
}

.principles-section {
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principles-grid article {
  padding: 2rem clamp(1.25rem, 2.5vw, 2.25rem) 0;
  border-right: 1px solid var(--line);
}

.principles-grid article:first-child {
  padding-left: 0;
}

.principles-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.principles-grid h3 {
  position: relative;
  padding-top: 1rem;
}

.principles-grid h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  content: "";
  background: var(--accent);
}

.principles-grid p {
  max-width: 18rem;
  color: var(--muted);
}

.contact-section {
  background: #eaf0f4;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(3rem, 10vw, 9rem);
}

.contact-details > p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.email-link {
  display: inline-block;
  margin-bottom: 3.5rem;
  color: var(--navy);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  text-decoration-color: #7898b2;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.email-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-details address {
  color: #52616d;
  font-size: 0.95rem;
  font-style: normal;
}

.contact-details address strong {
  color: var(--navy);
}

.privacy-section {
  padding-block: 2.2rem;
  border-top: 1px solid #d2dce4;
  background: #eaf0f4;
}

.privacy-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 0.75fr);
  gap: 2rem;
}

.privacy-layout h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.privacy-layout p {
  max-width: 42rem;
  margin-bottom: 0;
  color: #5c6b77;
  font-size: 0.88rem;
}

.site-footer {
  padding-block: 1.7rem;
  background: #091b2d;
  color: #aebcc8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p,
.footer-inner a {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.25rem;
}

.footer-inner a {
  color: #d6e0e7;
  text-decoration-color: #51697b;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 60rem) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 5.25rem 4rem;
  }

  .quant-figure {
    width: min(100%, 39rem);
    justify-self: end;
  }

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

  .expertise-item,
  .expertise-item:first-child,
  .expertise-item:last-child {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .expertise-item .item-number {
    margin-bottom: 2rem;
  }

  .research-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .research-intro {
    position: static;
  }

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

  .principles-grid article,
  .principles-grid article:first-child,
  .principles-grid article:last-child {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 44rem) {
  :root {
    --header-height: 7rem;
  }

  .header-inner {
    min-height: var(--header-height);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .primary-nav a {
    font-size: 0.875rem;
  }

  .nav-contact {
    padding: 0;
    border: 0;
  }

  .nav-contact:hover {
    background: transparent;
  }

  .hero-grid {
    padding-block: 4rem 3.25rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-subtitle span {
    padding-inline: 0.15rem;
  }

  .quant-figure {
    padding-left: 0.8rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading .section-index {
    margin: 0;
  }

  .founder-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .email-link {
    font-size: clamp(1.06rem, 5vw, 1.4rem);
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 24rem) {
  .brand {
    font-size: 0.875rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .nav-contact {
    border: 1px solid ButtonText;
  }

  .research-marker span,
  .principles-grid h3::before {
    background: ButtonText;
  }
}
