:root {
  --bg: #fcfbf8;
  --bg-soft: #f3f0eb;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --panel-soft: rgba(0, 0, 0, 0.03);
  --text: #111111;
  --muted: #5b5b5b;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #d62828;
  --accent-bright: #ff5a5a;
  --accent-soft: rgba(214, 40, 40, 0.12);
  --steel: #171717;
  --steel-light: #707070;
  --shadow: 0 20px 46px rgba(0, 0, 0, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --display: "Bahnschrift", "Aptos Display", "Franklin Gothic Demi", sans-serif;
  --body: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fcfbf8 44%, #f3f0eb 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(45deg, rgba(17, 17, 17, 0.06) 25%, transparent 25%, transparent 75%, rgba(17, 17, 17, 0.06) 75%),
    linear-gradient(45deg, rgba(17, 17, 17, 0.06) 25%, transparent 25%, transparent 75%, rgba(17, 17, 17, 0.06) 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.2), transparent 45%);
}

body::after {
  background:
    linear-gradient(125deg, transparent 0 74%, rgba(214, 40, 40, 0.15) 74% 76%, transparent 76% 100%);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.site-header::after {
  content: none;
}

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

.brand-mirror {
  justify-self: end;
  pointer-events: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 360px;
  height: 64px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark::after {
  content: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 24px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: #111111;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

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

main {
  display: grid;
  gap: 40px;
  margin-top: 28px;
}

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

.hero {
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.contact-copy,
.contact-form {
  position: relative;
}

.hero-copy {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 244, 0.98)),
    linear-gradient(145deg, rgba(214, 40, 40, 0.08), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background:
    linear-gradient(90deg, var(--accent) 0 32%, #111111 32% 64%, #ffffff 64% 100%);
}

.hero-copy::after {
  content: none;
}

.hero-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-visual {
  grid-column: span 6;
  display: flex;
}

.visual-main,
.stat-card,
.service-card,
.contact-card,
.contact-form,
.cta-band {
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow);
}

.visual-main {
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.visual-slides {
  position: absolute;
  inset: 0;
}

.visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.visual-slide.is-active {
  opacity: 1;
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.visual-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(17, 17, 17, 0.22)),
    linear-gradient(120deg, rgba(214, 40, 40, 0.08), transparent 36%);
}

.visual-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.visual-arrow,
.visual-dot {
  pointer-events: auto;
}

.visual-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  color: #111111;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.visual-arrow:hover,
.visual-arrow:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.24);
}

.visual-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.visual-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.visual-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.stat-card strong,
.service-card h3 {
  font-family: var(--display);
}

.stat-card p,
.section-heading p,
.service-card p,
.contact-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #111111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.98;
}

h1 {
  max-width: 9ch;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.34rem;
}

.hero-text {
  max-width: 42ch;
  margin: 18px 0 0;
  font-size: 1rem;
  color: #484848;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ab1d1d);
  box-shadow: 0 16px 28px rgba(214, 40, 40, 0.24);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(17, 17, 17, 0.14);
  background: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(17, 17, 17, 0.26);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px rgba(214, 40, 40, 0.14);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.98)),
    linear-gradient(160deg, rgba(214, 40, 40, 0.06), transparent);
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.capabilities,
.contact {
  display: grid;
  gap: 22px;
  padding: 8px 0;
}

.section-heading {
  max-width: 64ch;
}

.section-heading p:last-child {
  margin-top: 14px;
}

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

.service-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 240, 0.98)),
    linear-gradient(150deg, rgba(214, 40, 40, 0.06), transparent);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 68%);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 24px;
  transform: rotate(16deg);
  opacity: 0.15;
  background:
    linear-gradient(45deg, #111111 25%, #ffffff 25%, #ffffff 50%, #111111 50%, #111111 75%, #ffffff 75%, #ffffff 100%);
  background-size: 18px 18px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.96), rgba(45, 45, 45, 0.96));
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(214, 40, 40, 0.08), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 240, 0.98));
}

.cta-band .eyebrow {
  color: var(--accent);
}

.cta-band .button-primary {
  flex-shrink: 0;
}

.contact {
  align-items: start;
}

.contact-copy {
  grid-column: span 5;
}

.contact-form {
  grid-column: span 7;
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.98)),
    linear-gradient(150deg, rgba(214, 40, 40, 0.04), transparent);
}

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

.contact-form-full {
  grid-column: 1 / -1;
}

.contact-card {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.02);
}

.contact-card p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(91, 91, 91, 0.86);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(214, 40, 40, 0.24);
  border-color: rgba(214, 40, 40, 0.46);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 0;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note.is-success {
  color: #155c2f;
}

.form-note.is-error {
  color: #8c1717;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 28px 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  transition: transform 180ms ease;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  transform: translateY(-2px);
}

.footer-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .contact-copy,
  .contact-form {
    grid-column: 1 / -1;
  }

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

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

}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .brand-mirror {
    display: none;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1 / -1;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-mark {
    width: 88px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .site-header {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .brand {
    display: block;
  }

  .brand-mark {
    width: 260px;
    height: 50px;
  }

  .hero-mark {
    width: 76px;
    top: 16px;
    right: 16px;
  }

  .hero-copy,
  .cta-band,
  .contact-form,
  .service-card {
    padding: 22px;
  }

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

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    align-items: center;
    text-align: center;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-full {
    grid-column: auto;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .visual-main {
    min-height: 340px;
  }
}
