:root {
  --paper: #f4f5f2;
  --white: #ffffff;
  --ink: #14181b;
  --ink-soft: #282e32;
  --muted: #626a70;
  --line: #d9ddda;
  --line-dark: #394045;
  --accent: #1558d6;
  --accent-dark: #0f46ae;
  --success: #1f6b43;
  --error: #ad2831;
  --container: 1200px;
  --header-height: 76px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin-bottom: 28px;
  max-width: 890px;
  font-size: 5.1rem;
  font-weight: 580;
}

h2 {
  margin-bottom: 0;
  max-width: 740px;
  font-size: 3.4rem;
  font-weight: 570;
}

h3 {
  font-size: 1.2rem;
  font-weight: 620;
}

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

:focus-visible {
  outline: 3px solid rgba(21, 88, 214, 0.35);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
}

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

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 730;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 13px 20px;
  background: var(--accent);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button--small {
  min-height: 42px;
  gap: 16px;
  padding: 9px 16px;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--line-dark);
  text-underline-offset: 5px;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(244, 245, 242, 0.94);
  transition: border-color 160ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.12rem;
  font-weight: 740;
  line-height: 1;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
}

.brand__mark::before,
.brand__mark::after,
.brand__mark span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  content: "";
}

.brand__mark::before {
  top: 3px;
  left: 3px;
}

.brand__mark::after {
  right: 3px;
  bottom: 3px;
}

.brand__mark span {
  top: 7px;
  left: 7px;
}

.site-nav,
.site-nav__links {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 42px;
}

.site-nav__links {
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.9rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav__links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  position: relative;
  min-height: min(820px, calc(90svh - var(--header-height)));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f3f2ee;
}

.hero__media,
.hero__media img,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center center;
}

.hero__veil {
  background: linear-gradient(90deg, rgba(244, 245, 242, 0.99) 0%, rgba(244, 245, 242, 0.96) 34%, rgba(244, 245, 242, 0.28) 65%, rgba(244, 245, 242, 0.05) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(820px, calc(90svh - var(--header-height)));
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 42px;
}

.hero__content {
  max-width: 760px;
}

.hero__lead {
  max-width: 670px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero__specialties {
  position: absolute;
  bottom: 36px;
  left: 24px;
  margin: 0;
  color: #4f575c;
  font-size: 0.8rem;
  font-weight: 610;
}

.section {
  padding: 124px 0;
}

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

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 76px;
}

.section-heading__intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--light .section-heading__intro {
  color: #aeb5b9;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.problem-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 104px;
  border-bottom: 1px solid var(--line-dark);
  padding: 26px 30px 26px 0;
  color: #dde1e3;
  font-size: 1.02rem;
}

.problem-list li:nth-child(odd) {
  border-right: 1px solid var(--line-dark);
}

.problem-list li:nth-child(even) {
  padding-left: 30px;
}

.problem-list li span {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.service {
  display: grid;
  min-height: 244px;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 38px 36px 38px 0;
}

.service:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service:nth-child(even) {
  padding-left: 36px;
}

.service__number,
.process-step__number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.79rem;
  font-weight: 700;
}

.service h3 {
  margin-bottom: 18px;
}

.service p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.examples-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(400px, 1.2fr);
  gap: clamp(64px, 10vw, 150px);
}

.examples-copy {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  align-self: start;
}

.examples-copy h2 {
  margin-bottom: 28px;
}

.examples-copy > p:last-child {
  max-width: 420px;
  color: var(--muted);
}

.examples-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.examples-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 1.03rem;
  font-weight: 560;
}

.examples-list li span {
  color: var(--accent);
  font-size: 1.2rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.process-step {
  min-height: 250px;
  border-right: 1px solid var(--line);
  padding: 28px 28px 32px 0;
}

.process-step:not(:first-child) {
  padding-left: 28px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step__number {
  display: block;
  margin-bottom: 68px;
}

.process-step h3 {
  margin-bottom: 16px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section--about {
  border-top: 1px solid var(--line);
  background: #e9ece8;
}

.about-copy {
  max-width: 640px;
}

.about-copy > p {
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.about-copy__principle {
  margin-top: 44px;
  border-top: 1px solid #c9ceca;
  padding-top: 20px;
  color: var(--ink) !important;
  font-weight: 650;
}

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

.contact-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1.28fr);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.contact-copy h2 {
  margin-bottom: 28px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 460px;
  color: #bac0c3;
  font-size: 1.08rem;
}

.contact-copy__note {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 14px;
  margin-top: 38px !important;
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
  font-size: 0.9rem !important;
}

.contact-copy__note span {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--accent);
}

.contact-copy > a {
  display: inline-block;
  margin-top: 18px;
  color: var(--white);
  font-weight: 650;
  text-underline-offset: 5px;
}

.contact-form {
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 42px;
  background: #1b2023;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #edf0f1;
  font-size: 0.88rem;
  font-weight: 620;
}

.form-field label span,
.field-meta {
  color: #99a1a5;
  font-weight: 450;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #50585d;
  border-radius: 2px;
  padding: 13px 14px;
  background: #15191c;
  color: var(--white);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
}

.form-field textarea {
  min-height: 154px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #788187;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #75a1f2;
  outline: 2px solid rgba(47, 111, 231, 0.28);
  outline-offset: 0;
}

.form-field [aria-invalid="true"] {
  border-color: #e36a72;
}

.field-error {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  color: #ff969d;
  font-size: 0.79rem;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.75rem;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 24px;
}

.form-submit p {
  max-width: 300px;
  margin: 0;
  color: #99a1a5;
  font-size: 0.73rem;
  line-height: 1.5;
}

.form-submit a {
  color: #cdd2d4;
}

.form-status {
  margin-top: 24px;
  border-left: 3px solid currentColor;
  padding: 12px 16px;
  background: #14181b;
}

.form-status[data-type="success"] {
  color: #82d9ad;
}

.form-status[data-type="error"] {
  color: #ff969d;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.site-footer {
  background: #0d1012;
  color: var(--white);
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
}

.site-footer__top {
  min-height: 190px;
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 48px;
}

.brand--footer {
  margin-bottom: 18px;
}

.site-footer p {
  margin: 0;
  color: #969ea2;
  font-size: 0.88rem;
}

.site-footer__contact {
  text-align: right;
}

.site-footer__contact a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  align-items: center;
  border-top: 1px solid #2c3236;
  padding-top: 20px;
  padding-bottom: 24px;
}

.site-footer__bottom nav {
  display: flex;
  gap: 24px;
}

.site-footer__bottom a {
  color: #b8bec1;
  font-size: 0.8rem;
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: var(--white);
}

.legal-page,
.not-found {
  min-height: 70vh;
}

.legal-page__inner {
  max-width: 900px;
  padding-top: 72px;
  padding-bottom: 120px;
}

.back-link {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--muted);
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.legal-page__header {
  margin-bottom: 72px;
}

.legal-page__header h1,
.not-found h1 {
  max-width: 780px;
  font-size: 4.5rem;
}

.legal-page__header > p:last-child {
  color: var(--muted);
}

.legal-sections section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.legal-sections h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.legal-sections p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.not-found__inner {
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 100px;
}

.not-found__inner > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  :root {
    --header-height: 68px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    min-height: calc(100svh - var(--header-height));
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px;
    border-top: 1px solid var(--line);
    padding: 28px 24px 40px;
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__links a {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    font-size: 1.25rem;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero__media img {
    object-position: 58% center;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(244, 245, 242, 0.99) 0%, rgba(244, 245, 242, 0.9) 56%, rgba(244, 245, 242, 0.22) 100%);
  }

  .hero__content {
    max-width: 680px;
  }

  .section-heading,
  .examples-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .examples-layout,
  .about-layout,
  .contact-layout {
    gap: 48px;
  }

  .section-heading__intro {
    max-width: 620px;
  }

  .examples-copy,
  .contact-copy {
    position: static;
  }

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

  .process-step {
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  h1 {
    margin-bottom: 18px;
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero {
    min-height: calc(92svh - var(--header-height));
  }

  .hero__inner {
    min-height: calc(92svh - var(--header-height));
    justify-content: flex-start;
    padding-top: 44px;
    padding-bottom: 70px;
  }

  .hero__media img {
    object-position: 68% bottom;
  }

  .hero__veil {
    background: linear-gradient(180deg, rgba(244, 245, 242, 1) 0%, rgba(244, 245, 242, 0.98) 53%, rgba(244, 245, 242, 0.52) 76%, rgba(244, 245, 242, 0.18) 100%);
  }

  .hero__lead {
    margin-bottom: 24px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero__specialties {
    right: 16px;
    bottom: 22px;
    left: 16px;
    line-height: 1.5;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    gap: 28px;
    margin-bottom: 48px;
  }

  .problem-list,
  .services-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .problem-list li,
  .problem-list li:nth-child(even),
  .service,
  .service:nth-child(even),
  .process-step,
  .process-step:not(:first-child) {
    min-height: 0;
    border-right: 0;
    padding: 24px 0;
  }

  .service {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .process-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 6px 14px;
  }

  .process-step__number {
    grid-row: 1 / 3;
    margin: 3px 0 0;
  }

  .process-step h3,
  .process-step p {
    grid-column: 2;
  }

  .process-step h3 {
    margin-bottom: 8px;
  }

  .examples-layout,
  .about-layout,
  .contact-layout {
    gap: 42px;
  }

  .contact-form {
    border-right: 0;
    border-left: 0;
    padding: 32px 0 0;
    background: transparent;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit .button {
    width: 100%;
  }

  .site-footer__top,
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .site-footer__contact {
    text-align: left;
  }

  .site-footer__bottom nav {
    flex-wrap: wrap;
  }

  .back-link {
    margin-bottom: 48px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
