:root {
  --paper: #f2efe7;
  --paper-bright: #faf8f2;
  --ink: #151515;
  --muted: #66635d;
  --rule: #c7c2b7;
  --accent: #315ee7;
}

* {
  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;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-180%);
}

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

.not-found {
  min-height: 100svh;
  padding-block: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.not-found h1 {
  max-width: 1100px;
  margin: 48px 0;
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.not-found a {
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.shell {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.wordmark span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-nav > a:not(.language-link) {
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}

.header-nav > a:not(.language-link):hover {
  border-color: currentColor;
}

.language-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  min-height: min(790px, calc(100svh - 86px));
  padding-block: clamp(54px, 7vw, 108px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.eyebrow,
.project-index,
.project-category,
.capability-index {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1360px;
  margin: clamp(52px, 9vh, 104px) 0;
  font-size: clamp(3.8rem, 9.2vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.primary-link {
  min-width: 280px;
  padding: 19px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 160ms ease;
}

.primary-link:hover {
  background: var(--accent);
}

.section {
  padding-block: clamp(88px, 10vw, 150px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) 1.35fr;
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(54px, 7vw, 94px);
}

.section-intro h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.65rem, 6.6vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.project-list {
  border-top: 1px solid var(--ink);
}

.project-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1.15fr) minmax(260px, 1fr) 32px;
  gap: 32px;
  align-items: end;
  padding-block: clamp(32px, 4vw, 54px);
  border-bottom: 1px solid var(--rule);
  transition: padding 180ms ease, color 180ms ease;
}

.project-row:hover {
  padding-inline: 14px;
  color: var(--accent);
}

.project-row h3 {
  margin: 10px 0 0;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.project-description {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.project-row:hover .project-description,
.project-row:hover .project-category,
.project-row:hover .project-index {
  color: currentColor;
}

.project-arrow {
  color: var(--accent);
  font-size: 1.55rem;
}

.capabilities {
  background: var(--ink);
  color: var(--paper-bright);
}

.section-intro-light .eyebrow,
.capability-card > p,
.capability-index {
  color: #aaa69d;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #494949;
  border-bottom: 1px solid #494949;
}

.capability-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #494949;
}

.capability-card:last-child {
  border-right: 0;
}

.capability-card h3 {
  margin: auto 0 20px;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.capability-card > p:last-child {
  max-width: 380px;
  margin: 0;
  line-height: 1.55;
}

.principles {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) 1.35fr;
  gap: 48px;
}

.principles h2 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.principles ol {
  grid-column: 2;
  padding: 0;
  margin: clamp(56px, 8vw, 112px) 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.principles li {
  padding-block: 20px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  letter-spacing: -0.025em;
}

.principles li span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact {
  padding-block: clamp(86px, 10vw, 150px) 64px;
  background: var(--accent);
  color: white;
}

.contact .eyebrow {
  color: #dce4ff;
}

.contact h2 {
  max-width: 1180px;
  margin: clamp(42px, 7vw, 86px) 0;
  font-size: clamp(3.5rem, 8.2vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.contact-bottom {
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 48px;
  align-items: end;
  border-top: 1px solid rgb(255 255 255 / 55%);
}

.contact-bottom p {
  max-width: 560px;
  margin: 0;
  color: #e5eaff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.contact-bottom a {
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .header-nav > a:not(.language-link) {
    display: none;
  }

  .project-row {
    grid-template-columns: 48px 1fr 1fr 24px;
    gap: 22px;
  }

  .capability-card {
    min-height: 330px;
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1440px);
  }

  .site-header {
    min-height: 72px;
  }

  .hero {
    min-height: calc(100svh - 72px);
    padding-block: 38px 26px;
  }

  .hero h1 {
    margin-block: 46px;
    font-size: clamp(3.25rem, 17.2vw, 5.8rem);
  }

  .hero-bottom,
  .section-intro,
  .principles,
  .contact-bottom {
    grid-template-columns: 1fr;
  }

  .primary-link {
    width: 100%;
    min-width: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-intro {
    gap: 30px;
    padding-bottom: 50px;
  }

  .project-row {
    grid-template-columns: 40px 1fr;
    align-items: start;
  }

  .project-description {
    grid-column: 2;
  }

  .project-arrow {
    display: none;
  }

  .project-row h3 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .capability-card {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #494949;
  }

  .capability-card:last-child {
    border-bottom: 0;
  }

  .principles {
    gap: 34px;
  }

  .principles ol {
    grid-column: 1;
    margin-top: 24px;
  }

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

  .contact-bottom {
    align-items: start;
  }

  .contact-bottom a {
    width: fit-content;
    word-break: break-word;
  }

  .site-footer {
    min-height: 150px;
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .site-footer > p:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
