@layer reset, base, components, pages, responsive;

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  dl,
  dd {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }

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

  button,
  a {
    font: inherit;
  }
}

@layer base {
  :root {
    --paper: #f5f3ee;
    --paper-strong: #ebe8e0;
    --white: #fffefb;
    --ink: #14161b;
    --ink-soft: #525760;
    --line: #d8d5ce;
    --line-dark: #30343b;
    --accent: #3159d9;
    --accent-dark: #2344ad;
    --accent-soft: #dce4ff;
    --dark: #151920;
    --dark-soft: #212730;
    --success: #2d7d65;
    --radius-sm: 0.65rem;
    --radius: 1rem;
    --radius-lg: 1.4rem;
    --container: 74rem;
    --shadow: 0 1.4rem 3.5rem rgba(22, 25, 32, 0.08);
    --font-sans: Inter, Geist, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  body {
    min-width: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.menu-open {
    overflow: hidden;
  }

  a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }

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

  :focus-visible {
    outline: 0.2rem solid var(--accent);
    outline-offset: 0.22rem;
  }

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

  h1,
  h2,
  h3 {
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  h1 em,
  h2 em {
    color: var(--accent);
    font-style: normal;
  }

  .container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
  }

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

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    translate: 0 -160%;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: var(--ink);
    color: white;
    font-weight: 700;
    transition: translate 160ms ease;
  }

  .skip-link:focus {
    translate: 0;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
  }

  [data-reveal][data-visible="true"] {
    opacity: 1;
    translate: none;
  }
}

@layer components {
  .eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .eyebrow span {
    margin-inline: 0.3rem;
    color: #a6abb3;
  }

  .section-heading {
    max-width: 47rem;
  }

  .section-heading h2 {
    max-width: 43rem;
    margin-top: 1rem;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
  }

  .section-heading__text {
    max-width: 42rem;
    margin-top: 1.45rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
  }

  .section-heading--light h2,
  .section-heading--light .section-heading__text {
    color: var(--white);
  }

  .button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.82rem 1.18rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      color 180ms ease,
      translate 180ms ease;
  }

  .button svg,
  .text-link svg {
    width: 1.1rem;
    flex: 0 0 auto;
    transition: translate 180ms ease;
  }

  .button:hover,
  .button:focus-visible {
    translate: 0 -0.12rem;
  }

  .button:hover svg,
  .text-link:hover svg {
    translate: 0.18rem 0;
  }

  .button--primary,
  .button--nav {
    background: var(--accent);
    color: white;
  }

  .button--primary:hover,
  .button--nav:hover {
    background: var(--accent-dark);
  }

  .button--secondary {
    border-color: #c8c5bf;
    background: transparent;
    color: var(--ink);
  }

  .button--secondary:hover {
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
  }

  .button--light {
    background: var(--white);
    color: var(--ink);
  }

  .button--light:hover {
    background: var(--accent-soft);
  }

  .button--ghost-light {
    border-color: #626875;
    color: var(--white);
  }

  .button--ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }

  .button--text {
    min-height: auto;
    padding: 0.2rem 0;
    border-radius: 0;
    color: var(--accent);
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
  }

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

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(20, 22, 27, 0.1);
    background: rgba(245, 243, 238, 0.94);
    backdrop-filter: blur(0.7rem);
  }

  .header__inner {
    display: flex;
    min-height: 4.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 780;
    letter-spacing: -0.025em;
    text-decoration: none;
  }

  .brand__mark {
    display: grid;
    width: 2rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 0.45rem;
    background: var(--ink);
    color: white;
    font-size: 0.63rem;
    letter-spacing: -0.04em;
  }

  .brand__name span,
  .footer__brand span {
    color: var(--accent);
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.45rem;
  }

  .main-nav > a:not(.button) {
    position: relative;
    color: #343840;
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
  }

  .main-nav > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 0.12rem;
    background: var(--accent);
    content: "";
    scale: 0 1;
    transform-origin: right;
    transition: scale 180ms ease;
  }

  .main-nav > a:hover::after,
  .main-nav > a[aria-current="page"]::after {
    scale: 1;
    transform-origin: left;
  }

  .main-nav .button {
    min-height: 2.75rem;
    margin-left: 0.3rem;
    padding-inline: 1rem;
  }

  .menu-button {
    display: none;
  }

  .heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
  }

  .heading-row__link {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
  }

  .section-action {
    margin-top: 2.1rem;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .tag-list span {
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    color: #4d525b;
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.3;
  }

  .tag-list--large span {
    padding: 0.45rem 0.72rem;
    font-size: 0.78rem;
  }

  .site-footer {
    border-top: 1px solid var(--line-dark);
    background: var(--dark);
    color: #aeb4bf;
  }

  .footer__main {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 1fr;
    gap: 3rem;
    padding-block: 4.7rem;
  }

  .footer__brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 750;
    letter-spacing: -0.045em;
    text-decoration: none;
  }

  .footer__brand + p {
    margin-top: 0.3rem;
    color: #d7dbe1;
  }

  .footer__availability {
    max-width: 16rem;
    margin-top: 1.4rem;
    font-size: 0.85rem;
  }

  .footer__label {
    margin-bottom: 0.8rem;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .footer__nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .footer__nav a {
    color: #b9bec8;
    font-size: 0.83rem;
    text-decoration: none;
  }

  .footer__nav a:hover {
    color: white;
  }

  .footer__location p:not(.footer__label) {
    font-size: 0.83rem;
  }

  .footer__location p + p {
    margin-top: 0.4rem;
  }

  .footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.72rem;
  }
}

@layer pages {
  .hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .hero::before {
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    background-image:
      linear-gradient(rgba(20, 22, 27, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(20, 22, 27, 0.035) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    content: "";
    mask-image: linear-gradient(to right, black, transparent 70%);
    pointer-events: none;
  }

  .hero__grid {
    position: relative;
    display: grid;
    min-height: min(50rem, calc(100vh - 4.8rem));
    align-items: center;
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
    gap: clamp(3rem, 7vw, 7rem);
    padding-block: clamp(5rem, 9vw, 8rem);
  }

  .hero h1 {
    max-width: 48rem;
    margin-top: 1.2rem;
    font-size: clamp(3.25rem, 7vw, 6.65rem);
    line-height: 0.96;
  }

  .hero__lead {
    max-width: 42rem;
    margin-top: 1.8rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.7;
  }

  .hero__actions,
  .page-hero__actions,
  .final-cta__actions,
  .case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .hero__availability {
    display: flex;
    max-width: 36rem;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 2.2rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
  }

  .status-dot {
    width: 0.55rem;
    flex: 0 0 auto;
    aspect-ratio: 1;
    margin-top: 0.35rem;
    border: 0.16rem solid #afd9cb;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0.18rem rgba(45, 125, 101, 0.13);
  }

  .hero__availability strong,
  .hero__availability span {
    display: block;
  }

  .hero__availability strong {
    font-size: 0.78rem;
  }

  .hero__availability span {
    margin-top: 0.2rem;
    color: #777b83;
    font-size: 0.72rem;
  }

  .hero-system {
    position: relative;
    padding: 1.15rem;
    border: 1px solid #cac8c2;
    border-radius: var(--radius-lg);
    background: rgba(255, 254, 251, 0.82);
    box-shadow: var(--shadow);
  }

  .hero-system::before {
    position: absolute;
    z-index: -1;
    right: -1rem;
    bottom: -1rem;
    width: 74%;
    height: 66%;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    content: "";
  }

  .hero-system__heading,
  .project-visual__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #6d727b;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .hero-system__problem,
  .hero-system__result {
    position: relative;
    margin-top: 1rem;
    padding: 1.1rem;
    border-radius: 0.8rem;
  }

  .hero-system__problem {
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .hero-system__result {
    padding-right: 4rem;
    background: var(--dark);
    color: white;
  }

  .hero-system__result svg {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 2.4rem;
    color: #8db5ff;
    translate: 0 -50%;
  }

  .hero-system__label {
    display: block;
    margin-bottom: 0.35rem;
    color: #777c85;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.11em;
  }

  .hero-system strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-system__connector {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.55rem;
    margin-block: 0.7rem;
    color: #91959c;
    font-size: 0.55rem;
    text-align: center;
    text-transform: uppercase;
  }

  .hero-system__connector i {
    height: 1px;
    background: var(--line);
  }

  .hero-system__nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .hero-system__nodes span {
    padding: 0.75rem;
    border: 1px solid #cdd4ea;
    border-radius: 0.65rem;
    background: #f3f6ff;
    color: #38476e;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
  }

  .trust {
    background: var(--ink);
    color: white;
  }

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

  .trust__grid > div {
    min-width: 0;
    padding: 1.45rem 1.35rem;
    border-right: 1px solid #33363c;
  }

  .trust__grid > div:first-child {
    padding-left: 0;
  }

  .trust__grid > div:last-child {
    border-right: 0;
  }

  .trust span,
  .trust strong {
    display: block;
  }

  .trust span {
    color: #8f95a0;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .trust strong {
    margin-top: 0.3rem;
    font-size: 0.73rem;
    line-height: 1.45;
  }

  .services-grid {
    display: grid;
    margin-top: 3.5rem;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .service-card {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 254, 251, 0.34);
    transition: background-color 180ms ease;
  }

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

  .service-card__number {
    color: #989ba2;
    font-size: 0.67rem;
    font-weight: 800;
  }

  .service-card h3 {
    margin-top: 2.2rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  .service-card > p {
    max-width: 29rem;
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .service-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
    list-style: none;
  }

  .service-card li {
    padding: 0.25rem 0.48rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    color: #62666e;
    font-size: 0.64rem;
  }

  .diagnostic {
    padding-block: clamp(5rem, 9vw, 8rem);
    background: var(--dark);
    color: white;
  }

  .diagnostic__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr);
    gap: clamp(3rem, 8vw, 7rem);
  }

  .diagnostic__intro h2 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
  }

  .diagnostic__intro > p:not(.eyebrow) {
    margin-top: 1.5rem;
    color: #bdc2ca;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .diagnostic__intro .button {
    margin-top: 2rem;
  }

  .diagnostic__list {
    padding: clamp(1.3rem, 4vw, 2.5rem);
    border: 1px solid #333a44;
    border-radius: var(--radius-lg);
    background: var(--dark-soft);
  }

  .diagnostic__question {
    padding-bottom: 1rem;
    border-bottom: 1px solid #39404a;
    color: #8eb1ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .diagnostic__list ul {
    list-style: none;
  }

  .diagnostic__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding-block: 0.92rem;
    border-bottom: 1px solid #333a44;
    color: #dfe2e7;
    font-size: 0.84rem;
  }

  .diagnostic__list li:last-child {
    border-bottom: 0;
  }

  .diagnostic__list svg {
    width: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: #8eb1ff;
  }

  .projects-section {
    background: var(--white);
  }

  .projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3.5rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition:
      border-color 180ms ease,
      translate 180ms ease,
      box-shadow 180ms ease;
  }

  .project-card:hover {
    border-color: #b8b6b0;
    box-shadow: var(--shadow);
    translate: 0 -0.25rem;
  }

  .project-card__visual {
    display: block;
    padding: 0.7rem;
    text-decoration: none;
  }

  .project-card__body {
    padding: 1.2rem 1.25rem 1.4rem;
  }

  .project-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    color: #767a82;
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .project-card h3 {
    margin-top: 1rem;
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .project-card h3 a {
    text-decoration: none;
  }

  .project-card h3 a:hover {
    color: var(--accent);
  }

  .project-card__body > p {
    margin-top: 0.85rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .project-card .tag-list {
    margin-top: 1.1rem;
  }

  .project-card .text-link {
    margin-top: 1.3rem;
  }

  .project-visual {
    position: relative;
    display: flex;
    min-height: 13rem;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.95rem;
    background: #dde5ff;
  }

  .project-visual::before,
  .project-visual::after {
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.15;
  }

  .project-visual::before {
    top: 8%;
    right: -14%;
    width: 11rem;
    aspect-ratio: 1;
  }

  .project-visual::after {
    top: 18%;
    right: -4%;
    width: 7rem;
    aspect-ratio: 1;
  }

  .project-visual--blue {
    background: #dce5ff;
    color: #2346a7;
  }

  .project-visual--teal {
    background: #d9eee8;
    color: #1f6554;
  }

  .project-visual--amber {
    background: #f2e7ce;
    color: #7a5718;
  }

  .project-visual--violet {
    background: #e9e0f4;
    color: #664491;
  }

  .project-visual__top {
    position: relative;
    z-index: 1;
    color: currentColor;
    opacity: 0.8;
  }

  .project-visual__core {
    position: relative;
    z-index: 1;
  }

  .project-visual__index {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
  }

  .project-visual__name {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 720;
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .project-visual__path {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .project-visual__path i {
    width: 0.42rem;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
  }

  .project-visual__path i + i::before {
    display: block;
    width: 0.45rem;
    height: 1px;
    margin-left: -0.46rem;
    background: currentColor;
    content: "";
    opacity: 0.4;
    translate: 0 0.16rem;
  }

  .project-visual--large {
    min-height: clamp(18rem, 42vw, 29rem);
    margin-top: 3rem;
    padding: clamp(1.3rem, 3vw, 2rem);
  }

  .project-visual--large .project-visual__name {
    font-size: clamp(3rem, 7vw, 7rem);
  }

  .process-section {
    border-top: 1px solid var(--line);
  }

  .process-list {
    margin-top: 3.4rem;
    border-top: 1px solid var(--line);
    list-style: none;
  }

  .process-list li {
    display: grid;
    align-items: center;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    padding-block: 1.7rem;
    border-bottom: 1px solid var(--line);
  }

  .process-list__number {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
  }

  .process-list li > div {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(9rem, 0.55fr) 1fr;
    gap: 2rem;
  }

  .process-list h3 {
    font-size: 1.35rem;
  }

  .process-list p {
    max-width: 36rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
  }

  .ai-note {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    margin-top: 2.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #c7d2f2;
    border-radius: var(--radius);
    background: #edf1fc;
  }

  .ai-note__mark {
    display: grid;
    width: 2.9rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 0.7rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .ai-note p {
    color: #48526a;
    font-size: 0.82rem;
  }

  .ai-note strong {
    color: var(--ink);
  }

  .about-section {
    background: var(--paper-strong);
  }

  .about__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 9vw, 8rem);
  }

  .about__statement {
    position: relative;
  }

  .about__statement h2 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
  }

  .about__signature {
    display: grid;
    width: 5.5rem;
    aspect-ratio: 1;
    margin-top: 3rem;
    place-items: center;
    border: 1px solid #c4c0b6;
    border-radius: 50%;
    color: #8c8982;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.06em;
  }

  .about__copy {
    padding-top: 1.8rem;
  }

  .about__copy p {
    color: #4b4f56;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .about__copy .about__lead {
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.65;
  }

  .about__copy p + p {
    margin-top: 1.3rem;
  }

  .about__copy .text-link {
    margin-top: 1.8rem;
  }

  .engineering-preview {
    background: var(--white);
  }

  .stack-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3.5rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .stack-group {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }

  .stack-group h3 {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .stack-group ul {
    margin-top: 1rem;
    list-style: none;
  }

  .stack-group li {
    color: #555a62;
    font-size: 0.78rem;
  }

  .stack-group li + li {
    margin-top: 0.55rem;
  }

  .credentials-section {
    border-top: 1px solid var(--line);
  }

  .credentials__grid,
  .formation__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 9vw, 8rem);
  }

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

  .credentials-list article {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding-block: 1.35rem;
    border-bottom: 1px solid var(--line);
  }

  .credentials-list article > span {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
  }

  .credentials-list h3 {
    font-size: 1rem;
  }

  .credentials-list p {
    margin-top: 0.3rem;
    color: var(--ink-soft);
    font-size: 0.75rem;
  }

  .final-cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 10vw, 9rem);
    background: var(--accent);
    color: white;
  }

  .final-cta::after {
    position: absolute;
    top: -60%;
    right: -15%;
    width: 38rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
      0 0 0 6rem rgba(255, 255, 255, 0.035),
      0 0 0 12rem rgba(255, 255, 255, 0.025);
    content: "";
  }

  .final-cta__inner {
    position: relative;
    z-index: 1;
  }

  .final-cta .eyebrow {
    color: #d8e1ff;
  }

  .final-cta h2 {
    max-width: 58rem;
    margin-top: 1rem;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
  }

  .final-cta__inner > p:not(.eyebrow, .final-cta__note) {
    max-width: 42rem;
    margin-top: 1.5rem;
    color: #dfe6ff;
    font-size: 1.05rem;
  }

  .final-cta__note {
    margin-top: 1.6rem;
    color: #d2dcff;
    font-size: 0.75rem;
  }

  .page-hero {
    padding-block: clamp(5rem, 10vw, 9rem);
    border-bottom: 1px solid var(--line);
  }

  .page-hero__grid {
    display: grid;
    align-items: end;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(3rem, 8vw, 7rem);
  }

  .page-hero h1 {
    margin-top: 1rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
  }

  .page-hero__grid > p,
  .page-hero__grid > div:nth-child(2) > p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .page-hero--engineering {
    background: var(--dark);
    color: white;
  }

  .page-hero--engineering .page-hero__grid > div:nth-child(2) > p {
    color: #bac0ca;
  }

  .page-hero--engineering .button--secondary {
    border-color: #525966;
    color: white;
  }

  .project-index {
    background: var(--white);
  }

  .project-category + .project-category {
    margin-top: 6rem;
  }

  .project-category__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .project-category__heading p {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .project-category__heading span {
    color: #90939a;
    font-size: 0.65rem;
  }

  .project-category .projects-grid {
    margin-top: 1.5rem;
  }

  .archive-note {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 2rem;
    margin-top: 6rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .archive-note span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .archive-note p {
    max-width: 47rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
  }

  .compact-cta {
    padding-block: 4rem;
    border-top: 1px solid var(--line);
    background: var(--paper-strong);
  }

  .compact-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .compact-cta h2 {
    max-width: 44rem;
    margin-top: 0.7rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .compact-cta--dark {
    border-top-color: var(--line-dark);
    background: var(--dark);
    color: white;
  }

  .engineering-detail {
    background: var(--white);
  }

  .stack-grid--detail .stack-group {
    min-height: 16rem;
    background: var(--white);
  }

  .engineering-projects {
    background: var(--paper-strong);
  }

  .engineering-project-list {
    display: grid;
    margin-top: 3.5rem;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cbc7bd;
    border-left: 1px solid #cbc7bd;
  }

  .engineering-project-list article {
    min-width: 0;
    padding: 1.6rem;
    border-right: 1px solid #cbc7bd;
    border-bottom: 1px solid #cbc7bd;
  }

  .engineering-project-list article > span {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .engineering-project-list h3 {
    margin-top: 1.5rem;
    font-size: 1.6rem;
  }

  .engineering-project-list p {
    margin-top: 0.8rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
  }

  .engineering-project-list .tag-list,
  .engineering-project-list .text-link {
    margin-top: 1.2rem;
  }

  .formation-section {
    background: var(--white);
  }

  .case-hero {
    padding-block: 3rem clamp(5rem, 8vw, 7rem);
    border-bottom: 1px solid var(--line);
  }

  .back-link {
    display: inline-flex;
    color: #666b73;
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
  }

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

  .case-hero__grid {
    display: grid;
    align-items: end;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-top: 4rem;
  }

  .case-hero h1 {
    margin-top: 1rem;
    font-size: clamp(3.4rem, 8vw, 7rem);
  }

  .case-hero__lead {
    max-width: 46rem;
    margin-top: 1.2rem;
    color: var(--ink-soft);
    font-size: 1.15rem;
  }

  .case-facts {
    border-top: 1px solid var(--line);
  }

  .case-facts > div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .case-facts dt {
    color: #787c84;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .case-facts dd {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .case-section {
    padding-block: clamp(4rem, 8vw, 7rem);
    background: var(--white);
  }

  .case-section--alt {
    background: var(--paper-strong);
  }

  .case-section--dark {
    background: var(--dark);
    color: white;
  }

  .case-section--result {
    background: #e6ebf9;
  }

  .case-section__grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(3rem, 8vw, 7rem);
  }

  .case-section__grid > div:first-child > span {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
  }

  .case-section h2 {
    max-width: 19rem;
    margin-top: 0.8rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

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

  .case-copy p,
  .case-list {
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .case-section--dark .case-copy p,
  .case-section--dark .case-list {
    color: #c1c6ce;
  }

  .case-copy .case-lead {
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.65;
  }

  .case-section--dark .case-lead {
    color: white;
  }

  .case-copy h3 {
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .case-copy h3:not(:first-child) {
    margin-top: 2.2rem;
  }

  .case-copy h3 + p,
  .case-copy h3 + .tag-list {
    margin-top: 0.7rem;
  }

  .case-list {
    padding-left: 1.2rem;
  }

  .case-list li + li {
    margin-top: 0.8rem;
  }

  .case-architecture {
    display: grid;
    align-items: center;
    margin-top: 3rem;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    gap: 0.7rem;
  }

  .case-architecture span {
    padding: 0.7rem 0.8rem;
    border: 1px solid #414854;
    border-radius: 0.6rem;
    color: #d8dce2;
    font-size: 0.66rem;
    font-weight: 700;
  }

  .case-architecture i {
    height: 1px;
    background: #414854;
  }

  .case-transparency {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #c7cee1;
    font-size: 0.78rem !important;
  }

  .next-project {
    padding-block: 4rem;
    background: var(--paper);
  }

  .next-project p {
    color: #7b7f87;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .next-project a {
    display: grid;
    align-items: center;
    grid-template-columns: 10rem 1fr auto;
    gap: 2rem;
    margin-top: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
  }

  .next-project a > span {
    font-weight: 750;
  }

  .next-project a > strong {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
  }

  .next-project a svg {
    width: 1.5rem;
    color: var(--accent);
  }

  .not-found {
    display: grid;
    min-height: 65vh;
    place-items: center;
    text-align: center;
  }

  .not-found h1 {
    margin-top: 1rem;
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .not-found p:not(.eyebrow) {
    margin-top: 1rem;
    color: var(--ink-soft);
  }

  .not-found .button {
    margin-top: 2rem;
  }
}

@layer responsive {
  @media (max-width: 64rem) {
    .main-nav {
      gap: 0.9rem;
    }

    .hero__grid {
      grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
      gap: 3rem;
    }

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

    .trust__grid > div:nth-child(2) {
      border-right: 0;
    }

    .trust__grid > div:nth-child(-n + 2) {
      border-bottom: 1px solid #33363c;
    }

    .trust__grid > div:nth-child(3) {
      padding-left: 0;
    }

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

    .projects-grid .project-card:last-child:nth-child(odd) {
      grid-column: span 2;
    }

    .projects-grid .project-card:last-child:nth-child(odd) .project-card__visual {
      max-width: 52%;
      float: left;
    }

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

    .footer__main {
      grid-template-columns: 1.4fr repeat(3, 0.8fr);
      gap: 2rem;
    }
  }

  @media (max-width: 52rem) {
    .container {
      width: min(calc(100% - 2rem), var(--container));
    }

    .header__inner {
      min-height: 4.3rem;
    }

    .site-header {
      background: var(--paper);
      backdrop-filter: none;
    }

    .menu-button {
      position: relative;
      z-index: 1002;
      display: grid;
      width: 2.75rem;
      aspect-ratio: 1;
      padding: 0.75rem;
      place-content: center;
      gap: 0.35rem;
      border: 1px solid var(--line);
      border-radius: 0.65rem;
      background: var(--white);
      color: var(--ink);
      cursor: pointer;
    }

    .menu-button > span:not(.sr-only) {
      display: block;
      width: 1.05rem;
      height: 1px;
      background: currentColor;
      transition:
        rotate 180ms ease,
        translate 180ms ease;
    }

    .menu-button[aria-expanded="true"] > span:nth-child(2) {
      rotate: 45deg;
      translate: 0 0.2rem;
    }

    .menu-button[aria-expanded="true"] > span:nth-child(3) {
      rotate: -45deg;
      translate: 0 -0.2rem;
    }

    .main-nav {
      position: fixed;
      inset: 0;
      z-index: 1001;
      display: flex;
      visibility: hidden;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;
      gap: 0.25rem;
      padding: 5.5rem 1.5rem 2rem;
      background: var(--paper);
      opacity: 0;
      pointer-events: none;
      transition:
        opacity 180ms ease,
        visibility 180ms ease;
    }

    .main-nav[data-open="true"] {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }

    .main-nav > a:not(.button) {
      width: 100%;
      padding-block: 0.65rem;
      border-bottom: 1px solid var(--line);
      font-size: clamp(1.4rem, 7vw, 2.4rem);
      font-weight: 650;
      letter-spacing: -0.04em;
    }

    .main-nav > a:not(.button)::after {
      display: none;
    }

    .main-nav .button {
      width: 100%;
      min-height: 3.4rem;
      margin: 1rem 0 0;
    }

    .hero__grid,
    .diagnostic__grid,
    .about__grid,
    .credentials__grid,
    .formation__grid,
    .page-hero__grid,
    .case-hero__grid,
    .case-section__grid {
      grid-template-columns: 1fr;
    }

    .hero__grid {
      min-height: 0;
      gap: 4rem;
      padding-block: 5rem;
    }

    .hero h1 {
      font-size: clamp(3.2rem, 12vw, 5.7rem);
    }

    .diagnostic__grid {
      gap: 3rem;
    }

    .heading-row {
      align-items: flex-start;
      flex-direction: column;
      gap: 1.4rem;
    }

    .heading-row__link {
      margin-bottom: 0;
    }

    .process-list li > div {
      grid-template-columns: minmax(8rem, 0.5fr) 1fr;
    }

    .about__copy {
      padding-top: 0;
    }

    .engineering-project-list {
      grid-template-columns: 1fr;
    }

    .footer__main {
      grid-template-columns: 1.3fr 0.7fr 0.7fr;
    }

    .footer__location {
      grid-column: 1 / -1;
    }

    .page-hero__grid,
    .case-hero__grid {
      gap: 2.5rem;
    }

    .case-hero__grid {
      margin-top: 3rem;
    }

    .case-section__grid {
      gap: 2rem;
    }

    .case-section h2 {
      max-width: none;
    }
  }

  @media (max-width: 40rem) {
    .section {
      padding-block: 4.7rem;
    }

    .section-heading h2,
    .diagnostic__intro h2,
    .about__statement h2 {
      font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .hero__actions .button,
    .final-cta__actions .button,
    .page-hero__actions .button,
    .case-links .button {
      width: 100%;
    }

    .hero-system {
      padding: 0.8rem;
    }

    .services-grid,
    .projects-grid,
    .stack-grid {
      grid-template-columns: 1fr;
    }

    .projects-grid .project-card:last-child:nth-child(odd) {
      grid-column: auto;
    }

    .projects-grid .project-card:last-child:nth-child(odd) .project-card__visual {
      max-width: none;
      float: none;
    }

    .service-card h3 {
      margin-top: 1.5rem;
    }

    .process-list li {
      grid-template-columns: 2.7rem 1fr;
    }

    .process-list li > div {
      align-items: flex-start;
      grid-template-columns: 1fr;
      gap: 0.6rem;
    }

    .ai-note {
      align-items: flex-start;
      grid-template-columns: 1fr;
    }

    .credentials__grid,
    .formation__grid {
      gap: 2.5rem;
    }

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

    .footer__main > div:first-child,
    .footer__location {
      grid-column: 1 / -1;
    }

    .footer__bottom,
    .compact-cta__inner {
      align-items: flex-start;
      flex-direction: column;
    }

    .compact-cta__inner .button {
      width: 100%;
    }

    .archive-note {
      grid-template-columns: 1fr;
      gap: 0.7rem;
    }

    .case-facts > div {
      grid-template-columns: 5rem 1fr;
    }

    .case-architecture {
      grid-template-columns: 1fr;
    }

    .case-architecture i {
      width: 1px;
      height: 1rem;
      margin-inline: auto;
    }

    .next-project a {
      grid-template-columns: 1fr auto;
      gap: 0.7rem;
    }

    .next-project a > span {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 24.5rem) {
    .container {
      width: min(calc(100% - 1.5rem), var(--container));
    }

    .brand__name {
      font-size: 0.88rem;
    }

    .hero h1 {
      font-size: 2.8rem;
    }

    .hero__lead {
      font-size: 1rem;
    }

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

    .trust__grid > div {
      padding-inline: 0;
      border-right: 0;
      border-bottom: 1px solid #33363c;
    }

    .trust__grid > div:last-child {
      border-bottom: 0;
    }

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

    .project-visual__top {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.2rem;
    }

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

    .footer__main > div:first-child,
    .footer__location {
      grid-column: auto;
    }
  }

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

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

    [data-reveal] {
      opacity: 1;
      translate: none;
    }
  }
}
