:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --paper: #101010;
  --surface: #1a1a1a;
  --surface-raised: #242424;
  --red: #f51d25;
  --red-dark: #b90d15;
  --line: #373737;
  --max-width: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Inter, "Helvetica Neue", Arial, sans-serif; line-height: .98; letter-spacing: -.055em; }
h1 { max-width: 12ch; margin-bottom: 1.25rem; font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; }
.container { width: min(100% - 3rem, var(--max-width)); margin-inline: auto; }
.narrow-content { max-width: 45rem; }
section[id] { scroll-margin-top: 6rem; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--red); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: rgba(16, 16, 16, .96); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: auto; height: 2.6rem; }
.navigation { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.navigation a { text-decoration: underline; }
.navigation a:hover { color: var(--red); text-decoration: none; }
.site-footer a { text-underline-offset: .25em; }
.hero { display: grid; min-height: min(44rem, 75vh); place-items: center start; overflow: hidden; background: radial-gradient(circle at 85% 50%, #301012 0, var(--paper) 38%); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 25rem); align-items: center; gap: 3rem; padding-block: 7rem; }
.eyebrow { margin-bottom: .75rem; color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy { max-width: 35rem; margin-bottom: 2rem; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section-muted { background: var(--surface); }
.section-intro { max-width: 45rem; margin-bottom: 2.5rem; color: #d0d0d0; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.has-scroll-animations .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .55s ease-out, transform .55s ease-out; }
.has-scroll-animations .reveal.is-visible { opacity: 1; transform: translateY(0); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 16rem; padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.service-card:hover { background: var(--surface-raised); }
.service-number { margin-bottom: 2.5rem; color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.service-card p:last-child { margin-bottom: 0; color: #d0d0d0; }
.service-card:nth-child(2) { transition-delay: .08s; }
.service-card:nth-child(3) { transition-delay: .16s; }
.service-card:nth-child(4) { transition-delay: .24s; }
.hero-mark { width: min(100%, 22rem); height: auto; filter: drop-shadow(0 0 3rem rgba(245, 29, 37, .22)); }
.button { display: inline-block; padding: .8rem 1.2rem; border: 2px solid var(--red); background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { border-color: #fff; background: #fff; color: #111; }
.button-secondary { background: transparent; color: var(--red); }
.button-secondary:hover { border-color: var(--red); background: var(--red); color: #fff; }
.social-sidebar { position: fixed; z-index: 4; top: 50%; right: 1.25rem; transform: translateY(-50%); }
.social-links { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.social-links a { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.social-links a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.social-links img { width: 1.65rem; height: 1.65rem; }
.contact-links { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-links a { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--surface-raised); font-weight: 700; text-decoration: none; }
.contact-links a:hover { border-color: var(--red); background: var(--red); }
.contact-links img { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { border-top: 1px solid var(--line); font-size: .9rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-scroll-animations .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 36rem) {
  .header-content, .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
  .hero-content { padding-block: 5rem; }
}

@media (max-width: 48rem) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-mark { width: min(70vw, 20rem); }
  .services-grid { grid-template-columns: 1fr; }
  .social-sidebar { top: auto; right: 50%; bottom: 1rem; transform: translateX(50%); }
  .social-links { display: flex; padding: .5rem; border: 1px solid var(--line); border-radius: 2rem; background: rgba(16, 16, 16, .96); }
  .social-links a { width: 2.75rem; height: 2.75rem; border: 0; }
  .social-links img { width: 1.45rem; height: 1.45rem; }
}
