:root {
  --paper: #f5f2eb;
  --paper-deep: #eae6dc;
  --ink: #11141a;
  --body: #424750;
  --muted: #6d727a;
  --line: #cbc8c0;
  --blue: #1652e8;
  --blue-deep: #0f3fbd;
  --white: #ffffff;
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: stretch;
  min-height: 78px;
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(245, 242, 235, 0.96);
}

.brand-link {
  display: flex;
  align-items: center;
  padding: 16px 24px;
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.12em;
  transform: skew(-7deg);
}

.brand-mark span {
  transform: translateX(-1px) skew(7deg);
}

.brand-mark::after {
  position: absolute;
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.78);
  content: "";
  transform: rotate(34deg) translateX(7px);
}

.brand-word {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-legal {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 0 clamp(24px, 4vw, 72px);
}

.site-nav a,
.header-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 30px 0 27px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.header-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  color: var(--blue);
  transition: background-color 180ms ease, color 180ms ease;
}

.header-link:hover {
  background: var(--blue);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 3fr) minmax(360px, 1.55fr);
  grid-template-rows: minmax(590px, auto) 92px;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-index {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 38px 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.index-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(38px, 5vw, 72px) clamp(34px, 4.8vw, 76px) 36px;
}

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

.hero h1 {
  max-width: 870px;
  margin: 28px 0 auto;
  font-size: clamp(54px, 6.2vw, 102px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 48px;
}

.hero-summary p {
  max-width: 590px;
  margin: 0;
  color: var(--body);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.42;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17, 20, 26, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 26, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.visual-ring {
  position: absolute;
  top: 68px;
  left: 50%;
  width: min(430px, 74vw);
  height: min(430px, 74vw);
  border: clamp(60px, 7vw, 96px) solid var(--blue);
  border-radius: 50%;
  transform: translateX(-46%);
  animation: ring-drift 9s ease-in-out infinite alternate;
}

.visual-line {
  position: absolute;
  top: 90px;
  left: 52%;
  width: 1px;
  height: 430px;
  background: var(--ink);
  transform: rotate(31deg);
}

.system-label {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 24px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 235, 0.92);
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-card {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 24px;
  width: min(285px, calc(100% - 40px));
  padding: 22px;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--blue);
  background: rgba(245, 242, 235, 0.96);
}

.visual-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-card strong {
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-facts {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  display: flex;
  gap: 28px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-facts span + span::before {
  margin-right: 28px;
  color: var(--blue);
  content: "•";
}

.services {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.section-index {
  padding: 36px 18px;
  border-right: 1px solid var(--line);
}

.section-index span,
.section-index h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 330px;
  padding: 38px clamp(24px, 3vw, 48px);
  transition: background-color 180ms ease, color 180ms ease;
}

.service-card + .service-card {
  border-left: 1px solid var(--line);
}

.service-kicker {
  margin: 0 0 48px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-card h3 {
  max-width: 280px;
  margin: 0;
  font-size: clamp(28px, 2.5vw, 42px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.service-card > p:last-child {
  max-width: 330px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.service-card:hover {
  background: var(--blue);
  color: var(--white);
}

.service-card:hover .service-kicker,
.service-card:hover > p:last-child {
  color: var(--white);
}

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.55fr;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--blue);
  color: var(--white);
}

.about > div {
  min-height: 420px;
  padding: clamp(42px, 5vw, 78px);
}

.about > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.about .eyebrow {
  color: var(--white);
}

.about h2 {
  max-width: 650px;
  margin: 50px 0 0;
  font-size: clamp(46px, 5.4vw, 84px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.about-copy .about-lead {
  margin-bottom: 24px;
  color: var(--white);
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.about-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-stat strong {
  font-size: clamp(72px, 9vw, 142px);
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.about-stat span {
  max-width: 120px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.approach {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.section-heading {
  padding: clamp(42px, 5vw, 76px);
}

.section-heading h2 {
  max-width: 500px;
  margin: 40px 0 0;
  font-size: clamp(40px, 4.3vw, 66px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

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

.principle {
  min-height: 370px;
  padding: 44px 28px;
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.principle h3 {
  margin: 110px 0 20px;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--ink);
  color: var(--white);
}

.contact > div {
  min-height: 470px;
  padding: clamp(42px, 5.5vw, 84px);
}

.contact > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.eyebrow-light {
  color: #7198ff;
}

.contact h2 {
  margin: 50px 0 0;
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-actions > p {
  max-width: 520px;
  margin: 0 0 48px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.025em;
  transition: color 160ms ease, padding 160ms ease;
}

.contact-link:hover {
  padding-right: 8px;
  color: #7198ff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr auto;
  gap: 30px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.footer-brand .brand-legal {
  display: none;
}

.footer-brand > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand > p + p {
  margin-top: 2px;
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}

.footer-contact a,
.footer-links a {
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.footer-contact a:hover,
.footer-links a:hover {
  border-bottom-color: var(--blue);
}

.footer-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.legal-hero {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr;
  gap: 36px;
  align-items: end;
  min-height: 380px;
  padding: clamp(42px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 118px);
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.legal-hero > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.6fr);
}

.legal-layout aside {
  padding: clamp(36px, 4vw, 64px);
  border-right: 1px solid var(--line);
}

.legal-layout aside p {
  max-width: 340px;
  margin: 0 0 28px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.legal-layout aside a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.legal-content {
  padding: clamp(36px, 6vw, 96px);
}

.legal-content section {
  max-width: 780px;
  padding: 0 0 48px;
}

.legal-content section + section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 22px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.legal-content p,
.legal-content li {
  color: var(--body);
  font-size: 17px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@keyframes ring-drift {
  from {
    transform: translateX(-46%) rotate(-2deg);
  }
  to {
    transform: translateX(-42%) rotate(3deg);
  }
}

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

  .site-nav {
    order: 3;
    grid-column: 1 / 3;
    justify-content: center;
    border-top: 1px solid var(--line);
  }

  .header-link {
    min-height: 78px;
  }

  .hero {
    grid-template-columns: 112px minmax(0, 1.7fr) minmax(310px, 1fr);
  }

  .hero-copy {
    padding: 46px 34px 32px;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .hero-summary .button {
    width: fit-content;
  }

  .services {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .about {
    grid-template-columns: 1.2fr 1fr;
  }

  .about-stat {
    grid-column: 1 / 3;
    min-height: 180px !important;
    flex-direction: row;
    align-items: end;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 0 !important;
  }

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

  .principle-grid {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / 4;
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    border-right: 0;
    border-left: 0;
  }

  .brand-link {
    flex: 1;
    min-width: 220px;
  }

  .brand-legal {
    display: none;
  }

  .header-link {
    min-height: 68px;
    padding: 0 18px;
    border-left: 0;
    font-size: 9px;
  }

  .header-link span {
    display: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding: 0 16px;
    gap: 30px;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 17px 0 14px;
    font-size: 9px;
  }

  .site-nav a::after {
    bottom: 10px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    border-right: 0;
    border-left: 0;
  }

  .hero-index {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .hero-copy {
    min-height: 540px;
    padding: 38px 20px 30px;
  }

  .hero h1 {
    margin-top: 26px;
    font-size: clamp(50px, 15.5vw, 78px);
    line-height: 0.92;
  }

  .hero-summary {
    gap: 26px;
    margin-top: 44px;
  }

  .hero-summary p {
    font-size: 18px;
  }

  .hero-summary .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .visual-ring {
    top: 48px;
    left: 55%;
    width: 330px;
    height: 330px;
    border-width: 68px;
  }

  .visual-line {
    top: 28px;
    height: 340px;
  }

  .visual-card {
    right: 18px;
    bottom: 20px;
    width: 250px;
  }

  .hero-facts {
    order: 4;
    min-height: 84px;
  }

  .hero-facts > div {
    flex-wrap: wrap;
    gap: 7px 18px;
  }

  .hero-facts span + span::before {
    margin-right: 18px;
  }

  .services {
    display: block;
    border-right: 0;
    border-left: 0;
  }

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

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

  .service-card {
    min-height: 280px;
  }

  .service-card + .service-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .about > div {
    min-height: auto;
    padding: 50px 22px;
  }

  .about > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 0;
  }

  .about h2 {
    margin-top: 40px;
    font-size: 54px;
  }

  .about-copy .about-lead {
    font-size: 22px;
  }

  .about-stat {
    grid-column: auto;
    min-height: 160px !important;
    padding: 32px 22px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
  }

  .about-stat strong {
    font-size: 86px;
  }

  .approach {
    border-right: 0;
    border-left: 0;
  }

  .section-heading {
    padding: 52px 22px;
  }

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

  .principle {
    min-height: 270px;
    padding: 32px 22px;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle h3 {
    margin-top: 70px;
  }

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

  .contact > div {
    min-height: auto;
    padding: 56px 22px;
  }

  .contact > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .contact h2 {
    font-size: 54px;
  }

  .contact-link {
    font-size: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 36px 20px;
    border-right: 0;
    border-left: 0;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .copyright {
    grid-column: 1 / 3;
  }

  .legal-page {
    border-right: 0;
    border-left: 0;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 22px;
  }

  .legal-hero h1 {
    margin: 32px 0 12px;
    font-size: 66px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-content {
    padding: 52px 22px;
  }
}

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

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