:root {
  color-scheme: light;
  --violet: #713b87;
  --orange: #d85f2d;
  --yellow: #f3bf23;
  --ink: #252229;
  --muted: #635d68;
  --paper: #ffffff;
  --soft: #f7f5f7;
  --line: #dfd9e2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 247, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  position: relative;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.brand-logo,
.brand-logo-compact {
  display: block;
  flex: none;
}

.brand-logo {
  height: 54px;
  width: 190px;
}

.brand-logo-compact {
  display: none;
  height: 46px;
  width: 46px;
}

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

nav a,
.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
.back-link:hover,
.footer-links a:hover {
  color: var(--orange);
}

.contact-link {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 9px 14px;
}

.brand:focus-visible,
nav a:focus-visible,
.back-link:focus-visible,
.footer-links a:focus-visible,
.legal-footer a:focus-visible,
.contact a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.hero {
  height: min(720px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: rgba(255, 255, 255, 0.18);
  content: "";
  inset: 0;
  position: absolute;
}

.hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-content {
  left: max(24px, calc((100vw - var(--max)) / 2));
  max-width: 520px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

.hero h1 {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.96;
  margin-bottom: 24px;
}

.hero-copy {
  color: #303638;
  font-size: 20px;
  max-width: 440px;
}

.primary-action {
  align-items: center;
  background: var(--violet);
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 28px;
  margin-top: 16px;
  padding: 14px 18px;
  text-decoration: none;
}

.primary-action:hover {
  background: var(--orange);
}

.intro,
.technology {
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: var(--max);
  padding: 96px 24px;
}

.intro h2,
.technology h2,
.contact h2,
.legal-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 0;
}

.intro > p,
.technology-copy,
.contact > p {
  color: var(--muted);
  font-size: 18px;
}

.categories {
  background: var(--violet);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
}

.categories article {
  min-height: 330px;
  padding: 54px 38px;
}

.categories article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.category-number {
  color: var(--yellow);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 64px;
}

.categories h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 16px;
}

.categories p {
  color: #efe7f2;
  margin-bottom: 0;
}

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

.technology-copy p:last-child {
  border-left: 3px solid var(--yellow);
  color: var(--ink);
  margin: 34px 0 0;
  padding-left: 24px;
}

.contact {
  margin: 0 auto;
  max-width: 850px;
  padding: 110px 24px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 24px;
}

.contact a {
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  margin-top: 18px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

footer {
  align-items: center;
  background: var(--soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto 1fr;
  padding: 40px max(24px, calc((100vw - var(--max)) / 2));
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a,
footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  text-decoration: none;
}

footer p {
  text-align: right;
}

.legal-page {
  background: var(--soft);
}

.legal-content {
  background: white;
  margin: 48px auto;
  max-width: 900px;
  padding: 72px 80px;
}

.legal-content h1 {
  margin-bottom: 42px;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  margin: 46px 0 12px;
}

.legal-content p,
.legal-content dd {
  color: var(--muted);
}

.legal-content dl {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.legal-content dl div {
  display: grid;
  gap: 18px;
  grid-template-columns: 180px 1fr;
  padding: 14px 0;
}

.legal-content dl div + div {
  border-top: 1px solid var(--line);
}

.legal-content dt {
  font-weight: 700;
}

.legal-content dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 900px;
}

.legal-footer a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .brand-logo {
    display: none;
  }

  .brand-logo-compact {
    display: block;
  }

  nav a:not(.contact-link) {
    display: none;
  }

  .contact-link {
    padding: 7px 11px;
  }

  .hero {
    height: 670px;
    min-height: 0;
  }

  .hero img {
    object-position: 62% center;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.48);
  }

  .hero-content {
    bottom: 48px;
    left: 20px;
    max-width: calc(100% - 40px);
    top: auto;
    transform: none;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-copy {
    font-size: 17px;
    max-width: 330px;
  }

  .intro,
  .technology {
    gap: 30px;
    grid-template-columns: 1fr;
    padding: 70px 20px;
  }

  .categories {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .categories article {
    min-height: auto;
    padding: 40px 0;
  }

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

  .category-number {
    margin-bottom: 28px;
  }

  .contact {
    padding: 78px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 36px 20px;
  }

  footer p {
    text-align: left;
  }

  .legal-content {
    margin: 20px;
    padding: 48px 24px;
  }

  .legal-content dl div {
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .legal-footer {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    margin: 0 20px;
  }
}

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