:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #666666;
  --line: #e8e8e8;
  --soft: #f7f7f6;
  --accent: #d10000;
  --accent-dark: #9b0000;
  --max: 1180px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: break-word;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
}

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

.section-dots {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100vw;
  max-width: 100vw;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, height 180ms ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: 78px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

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

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

.language-toggle {
  width: 48px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  grid-area: 1 / 1;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  transform: translateY(6px);
}

.menu-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero {
  min-height: min(760px, calc(100svh - var(--header)));
  display: flex;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
  background: url("assets/minimal-hero.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: center;
}

.hero-grid > *,
.editorial-grid > *,
.approach-grid > *,
.contact-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(58px, 7.7vw, 104px);
  line-height: 0.95;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 720;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
}

.hero-lede {
  max-width: 510px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.hero-actions,
.form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.editorial-grid,
.approach-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
}

.text-column p,
.approach-statement p,
.contact-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

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

.proof-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.proof-list span,
.service-item span,
.process-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-list strong {
  font-size: 19px;
  line-height: 1.25;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 70px;
}

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

.service-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 26px;
  min-height: 184px;
  padding: 34px 34px 34px 0;
  border-bottom: 1px solid var(--line);
}

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

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

.service-item p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.approach {
  background: var(--ink);
  color: var(--bg);
}

.approach .eyebrow,
.approach .process-list span {
  color: #ff2a2a;
}

.approach-statement p,
.process-list p {
  color: #c9c9c9;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(140px, 0.45fr) 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list strong {
  font-size: 20px;
  line-height: 1.2;
}

.process-list p {
  margin-bottom: 0;
}

.geography {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
}

.geography::before,
.geography::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2));
  right: max(24px, calc((100vw - var(--max)) / 2));
  height: 1px;
  background: var(--line);
}

.geography::before {
  top: 50%;
  transform: translateY(-96px);
}

.geography::after {
  top: 50%;
  transform: translateY(112px);
}

.geography-inner {
  text-align: center;
}

.geography-inner .eyebrow {
  margin-bottom: 18px;
}

.geography-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 34px);
  margin: 0;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.03;
  font-weight: 760;
  white-space: nowrap;
}

.geography-line i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-bottom: 0.16em;
  background: var(--accent);
}

.geography-note {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.contact::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 24px;
  width: min(680px, 56vw);
  aspect-ratio: 1080 / 538;
  background: url("assets/sa-logo.png") center / contain no-repeat;
  opacity: 0.035;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 38px;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.18;
}

.contact-lines a {
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer .brand-text,
.site-footer p {
  color: #b8b8b8;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

@media (min-width: 941px) {
  html {
    scroll-padding-top: var(--header);
    scroll-snap-type: y mandatory;
  }

  main > .section {
    min-height: calc(100vh - var(--header));
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .section:not(.hero) {
    display: flex;
    align-items: center;
  }

  main > .contact {
    min-height: calc(100vh - var(--header) - 104px);
  }

  .site-footer {
    scroll-snap-align: end;
    scroll-snap-stop: always;
  }

  .section-dots {
    position: fixed;
    top: 50%;
    right: max(22px, calc((100vw - var(--max)) / 2 - 58px));
    z-index: 30;
    display: grid;
    gap: 14px;
    padding: 14px 8px;
    transform: translateY(-50%);
  }

  .section-dots::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    width: 1px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    transform: translateX(-50%);
  }

  .section-dots a {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
    border-radius: 50%;
    background: var(--bg);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .section-dots a:hover,
  .section-dots a:focus-visible,
  .section-dots a.is-active {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
    transform: scale(1.08);
  }
}

@media (max-width: 940px) {
  .geography::before,
  .geography::after {
    display: none;
  }

  .container {
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .header-actions {
    gap: 10px;
  }

  .section {
    padding: 84px 0;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 24px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 70px;
  }

  .hero-grid,
  .editorial-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-actions,
  .hero-lede {
    max-width: calc(100vw - 32px);
  }

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

  .service-item,
  .service-item:nth-child(even) {
    padding: 28px 0;
    border-right: 0;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  :root {
    --header: 70px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-actions .button {
    width: 50%;
    max-width: 50%;
    min-width: 240px;
    margin-inline: auto;
  }

  .proof-list li,
  .service-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-logo {
    width: 66px;
  }

  .geography-line {
    display: grid;
    gap: 14px;
    font-size: clamp(31px, 12vw, 56px);
    white-space: normal;
  }

  .geography-line i {
    width: 58px;
    height: 2px;
    margin: 0 auto;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
