:root {
  color-scheme: light dark;
  --accent: #ca402b;
  --accent-hover: #a8341f;
  --background: #ffffff;
  --surface: #faf7f4;
  --ink: #161616;
  --muted: #595959;
  --line: #e7e4e1;
  --header: #ffffff;
  --shadow: 0 18px 50px rgb(22 22 22 / 8%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 80px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  background: var(--header);
  border-bottom: 8px solid var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.hero {
  min-height: min(720px, calc(100vh - 80px));
  padding: clamp(4rem, 9vw, 8rem) 5vw;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 25%, rgb(202 64 43 / 10%), transparent 35%),
    linear-gradient(135deg, var(--background), var(--surface));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.card-number {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.lede {
  max-width: 56ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 350;
}

.primary-action {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.3rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  min-width: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: rgb(202 64 43 / 8%);
  filter: blur(30px);
}

.hero-art img {
  position: relative;
  width: min(100%, 680px);
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 24px 24px rgb(22 22 22 / 14%));
}

.services {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
}

.section-heading {
  max-width: 1400px;
  margin: 0 auto 2.5rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 350;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 290px;
  padding: clamp(1.5rem, 2.5vw, 2.3rem);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--background);
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  position: relative;
  z-index: 1;
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  transform: translateY(-4px);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.service-card p {
  margin-bottom: 2rem;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #161616;
  color: #f4f4f4;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

footer a:hover,
footer a:focus-visible {
  color: #e85a44;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
  }

  .hero-art {
    max-width: 560px;
    margin: -3rem auto 0;
  }

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

@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
  }

  .brand span {
    max-width: 18ch;
    line-height: 1.25;
  }

  .hero {
    min-height: 0;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-art {
    margin-top: -1rem;
  }

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

  .service-card {
    min-height: 240px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e85a44;
    --accent-hover: #ff755f;
    --background: #111111;
    --surface: #1a1a1a;
    --ink: #f4f4f4;
    --muted: #b8b8b8;
    --line: #303030;
    --header: #0d0d0d;
    --shadow: 0 18px 50px rgb(0 0 0 / 35%);
  }

  .brand img {
    filter: grayscale(1) brightness(0) invert(1);
  }
}

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

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