:root {
  --ink: #0b0b0d;
  --graphite: #5d5960;
  --graphite-2: #2a282d;
  --line: rgba(255, 255, 255, 0.16);
  --red: #c91517;
  --red-dark: #8f1114;
  --white: #ffffff;
  --mist: #f4f5f7;
  --steel: #d9dde3;
  --cyan: #09a8b7;
  --lime: #b8d448;
  --amber: #ffb340;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.16));
  transition: background 260ms ease, box-shadow 260ms ease, padding 260ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(11, 11, 13, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 44vw);
}

.brand__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  opacity: 0.82;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__media,
.parallax-band__bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.hero__media {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 13, 0.94) 0%, rgba(11, 11, 13, 0.68) 42%, rgba(11, 11, 13, 0.2) 100%),
    url("assets/hero.jpg");
}

.hero::before {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 44%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0), rgba(11, 11, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 120px);
}

.hero::after {
  position: absolute;
  content: "";
  right: -12vw;
  bottom: 11vh;
  width: 42vw;
  max-width: 620px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 21, 23, 0.34), transparent 62%);
  z-index: -1;
}

.hero__grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 160px 0 clamp(54px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.44fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

.hero__content {
  max-width: 810px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 900px;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.6vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.12;
}

.hero__lead,
.section__copy p,
.contact__info p,
.service-card p,
.process p,
.site-footer p {
  color: rgba(11, 11, 13, 0.72);
  font-size: 1rem;
  line-height: 1.72;
}

.hero__lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 34px rgba(201, 21, 23, 0.32);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 20px 44px rgba(201, 21, 23, 0.42);
}

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero__panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 11, 13, 0.48);
  backdrop-filter: blur(18px);
}

.hero__panel div {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__panel strong {
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
}

.hero__panel strong::after {
  content: "+";
  color: var(--red);
  font-size: 1.1rem;
  vertical-align: top;
}

.hero__panel span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--graphite-2);
}

.strip-card {
  min-height: 190px;
  padding: clamp(28px, 4vw, 52px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 21, 23, 0.16), rgba(9, 168, 183, 0.08)),
    var(--graphite-2);
}

.strip-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 900;
}

.strip-card p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.06rem, 1.6vw, 1.34rem);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.section__copy {
  max-width: 560px;
}

.signature {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.signature span {
  height: 3px;
  background: var(--red);
}

.signature p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.image-stack {
  position: relative;
  min-height: 560px;
}

.image-stack::before {
  position: absolute;
  content: "";
  inset: 42px 42px auto auto;
  width: 46%;
  height: 74%;
  border: 1px solid rgba(201, 21, 23, 0.42);
  border-radius: var(--radius);
}

.image-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  inset: 0 auto auto 0;
  width: 74%;
  height: 72%;
}

.image-stack img:last-child {
  right: 0;
  bottom: 0;
  width: 56%;
  height: 48%;
  border: 8px solid var(--mist);
}

.services {
  width: 100%;
  max-width: none;
  padding-inline: clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.services .section__heading {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

.services h2 {
  max-width: 980px;
}

.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite-2);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.02);
  transition: transform 600ms ease, filter 600ms ease;
}

.service-card::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.1), rgba(11, 11, 13, 0.88) 78%);
}

.service-card__body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 26px;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.08);
}

.parallax-band {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: var(--graphite-2);
}

.parallax-band__bg {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 13, 0.92), rgba(42, 40, 45, 0.72)),
    url("assets/method.jpg");
}

.parallax-band__content {
  width: min(1180px, calc(100% - 36px));
  padding: 84px 0;
}

.parallax-band h2 {
  max-width: 760px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.18);
}

.process div {
  min-height: 180px;
  padding: 26px;
  background: rgba(11, 11, 13, 0.62);
  backdrop-filter: blur(14px);
}

.process span {
  display: block;
  margin-bottom: 42px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.process p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.contact__info {
  position: sticky;
  top: 112px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 3px solid var(--red);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
}

.contact-list span {
  color: var(--graphite);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid rgba(11, 11, 13, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--graphite-2);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7dbe1;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 21, 23, 0.1);
}

.form-wide {
  grid-column: 1 / -1;
}

.captcha {
  display: grid;
  grid-template-columns: 1fr 48px minmax(120px, 0.48fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid #d7dbe1;
  border-radius: var(--radius);
  background: #f7f8fa;
}

.captcha div {
  display: grid;
  gap: 4px;
}

.captcha span {
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.captcha strong {
  font-size: 1.28rem;
}

.captcha__refresh {
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--graphite-2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.captcha__refresh:hover,
.captcha__refresh:focus-visible {
  transform: rotate(90deg);
  background: var(--red);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--red-dark);
  font-weight: 800;
}

.form-message.is-success {
  color: #0f7b5c;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer img {
  width: min(210px, 48vw);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1050px) {
  .hero__grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__panel div {
    grid-template-columns: 1fr;
  }

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

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

  .contact__info {
    position: static;
  }
}

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

  .brand {
    width: min(178px, 56vw);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(11, 11, 13, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px 12px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.8rem);
  }

  .hero__actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__panel,
  .intro-strip,
  .service-grid,
  .process,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    gap: 1px;
  }

  .image-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .image-stack::before {
    display: none;
  }

  .image-stack img,
  .image-stack img:first-child,
  .image-stack img:last-child {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
  }

  .service-card,
  .service-card img {
    min-height: 410px;
  }

  .captcha {
    grid-template-columns: 1fr 48px;
  }

  .captcha input {
    grid-column: 1 / -1;
  }
}

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

  .hero__media,
  .parallax-band__bg {
    transform: none !important;
  }
}
