html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 10;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  pointer-events: none;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(70px);
    opacity: 0;
  }
}

.red-glow {
  text-shadow: 0 0 40px rgba(237, 28, 36, 0.3), 0 0 80px rgba(237, 28, 36, 0.12);
}

.red-glow-box {
  box-shadow: 0 0 28px rgba(237, 28, 36, 0.16), 0 0 60px rgba(237, 28, 36, 0.06);
}

.corners-brand {
  border-radius: 15px 0 15px 0;
}

.corners-brand-sm {
  border-radius: 10px 0 10px 0;
}

.corners-brand-lg {
  border-radius: 20px 0 20px 0;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.82)),
    url("images/14631.jpg") center/cover no-repeat;
  opacity: 0.14;
  filter: grayscale(100%) brightness(0.35) contrast(0.8);
  pointer-events: none;
  z-index: 1;
}

.diagonal-line::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: linear-gradient(15deg, transparent 48%, rgba(237, 28, 36, 0.06) 49%, rgba(237, 28, 36, 0.06) 51%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.page-hero {
  position: relative;
  min-height: clamp(34rem, 88vh, 50rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero > .relative {
  width: 100%;
  min-width: 0;
}

.page-hero .max-w-2xl,
.page-hero .max-w-3xl,
.page-hero .max-w-4xl {
  min-width: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -14rem;
  height: 24rem;
  background: radial-gradient(circle at center, rgba(237, 28, 36, 0.22), rgba(237, 28, 36, 0));
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.22;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #d5a00f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.page-kicker::before {
  content: '';
  width: 2.75rem;
  height: 1px;
  background: currentColor;
}

.section-shell {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.section-label {
  color: #d5a00f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.content-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(11, 11, 11, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px 0 20px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ed1c24, rgba(213, 160, 15, 0.6));
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 28, 36, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.metric-card {
  padding: 1.25rem;
}

.metric-value {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: #999999;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px 0 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080808;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.media-frame img,
.media-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-frame .frame-fill-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center;
}

.media-frame .frame-show-full-image {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center;
  background: #080808;
}

.contact-summary-heading {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-summary-list .feature-list li {
  line-height: 1.8;
}

@media (max-width: 767px) {
  .page-hero {
    min-height: clamp(32rem, 82vh, 44rem);
  }

  .page-hero .page-kicker {
    justify-content: center;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9.8vw, 2.8rem) !important;
    line-height: 0.96;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .page-hero h1 span {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .page-hero p {
    max-width: 100%;
  }

  .page-hero .max-w-2xl,
  .page-hero .max-w-3xl,
  .page-hero .max-w-4xl {
    width: min(100%, 21.5rem);
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .page-hero .mt-10.flex {
    width: 100%;
    max-width: 100%;
    align-items: center;
    margin-inline: auto;
  }

  .page-hero .mt-10.flex > a,
  .page-hero .mt-10.flex > button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.95rem 1rem;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.14em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 479px) {
  .page-hero h1 {
    font-size: clamp(1.6rem, 7.6vw, 1.95rem) !important;
    line-height: 0.94;
  }

  .page-hero .max-w-2xl,
  .page-hero .max-w-3xl,
  .page-hero .max-w-4xl {
    width: min(100%, 21.5rem);
  }

  .page-hero .mt-10.flex > a,
  .page-hero .mt-10.flex > button {
    padding: 0.9rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
}

.video-embed {
  aspect-ratio: 16 / 9;
}

.stacked-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-self: stretch;
}

.stacked-images .media-frame {
  height: 100%;
}

.feature-list,
.split-list,
.allowed-list,
.blocked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li,
.split-list li,
.allowed-list li,
.blocked-list li {
  position: relative;
  padding-left: 1.25rem;
  color: #d1d5db;
}

.feature-list li + li,
.split-list li + li,
.allowed-list li + li,
.blocked-list li + li {
  margin-top: 0.7rem;
}

.feature-list li::before,
.split-list li::before,
.allowed-list li::before,
.blocked-list li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
}

.feature-list li::before,
.allowed-list li::before {
  background: #d5a00f;
  box-shadow: 0 0 14px rgba(213, 160, 15, 0.35);
}

.split-list li::before {
  background: #ed1c24;
  box-shadow: 0 0 14px rgba(237, 28, 36, 0.35);
}

.blocked-list li::before {
  background: rgba(237, 28, 36, 0.88);
  box-shadow: 0 0 14px rgba(237, 28, 36, 0.35);
}

.service-overview-card,
.case-study-card,
.product-card,
.dump-card {
  overflow: hidden;
}

.form-input {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 15px 0 15px 0;
  background: #111111;
  color: #ffffff;
  padding: 14px 18px;
  font-family: 'Arial', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #ed1c24;
  box-shadow: 0 0 15px rgba(237, 28, 36, 0.2);
}

.form-input::placeholder {
  color: #666666;
}

.service-overview-card img,
.case-study-card img {
  filter: grayscale(100%);
  transition: transform 0.7s ease, filter 0.35s ease;
}

.service-overview-card:hover img,
.case-study-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.card-link:hover,
.card-link:focus-visible {
  color: #ed1c24;
}

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

.note-panel {
  border: 1px solid rgba(213, 160, 15, 0.22);
  border-radius: 16px 0 16px 0;
  background: rgba(213, 160, 15, 0.08);
}

.heritage-timeline {
  position: relative;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.heritage-timeline::before {
  content: none;
}

.heritage-timeline::-webkit-scrollbar {
  display: none;
}

.heritage-timeline-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 22rem);
  gap: 1.25rem;
  min-width: max-content;
  padding: 1.5rem 1rem 1rem 0;
}

.heritage-timeline-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.heritage-timeline-arrow {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 160, 15, 0.22);
  border-radius: 12px 0 12px 0;
  background: rgba(213, 160, 15, 0.05);
  color: rgba(213, 160, 15, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.heritage-timeline-arrow:hover,
.heritage-timeline-arrow:focus-visible {
  border-color: rgba(213, 160, 15, 0.38);
  background: rgba(213, 160, 15, 0.09);
  color: #d5a00f;
  transform: translateY(-1px);
}

.heritage-timeline-arrow .material-icons {
  font-size: 1.15rem;
}

.timeline-card {
  position: relative;
  min-height: 100%;
  padding-top: 3.6rem;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-select: none;
}

.timeline-card::before {
  content: none;
}

.timeline-year {
  position: absolute;
  top: 0.95rem;
  left: 2rem;
  color: #d5a00f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .heritage-image-offset-intro-frame {
    margin-top: 100px;
  }

  .heritage-image-offset {
    margin-top: 50px;
  }
}

.heritage-ruler-wrap {
  margin-top: 2rem;
}

.heritage-ruler {
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.heritage-ruler-track {
  position: relative;
  height: 3.25rem;
}

.heritage-ruler-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 1.45rem;
  height: 1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.5), rgba(213, 160, 15, 0.65));
  opacity: 1;
}

.heritage-ruler-track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0.62rem;
  height: 2rem;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.5), rgba(213, 160, 15, 0.65));
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 calc(14.285% - 1px),
    #000 calc(14.285% - 1px) calc(14.285% + 1px),
    transparent calc(14.285% + 1px) 14.285%
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent 0 calc(14.285% - 1px),
    #000 calc(14.285% - 1px) calc(14.285% + 1px),
    transparent calc(14.285% + 1px) 14.285%
  );
  opacity: 1;
  pointer-events: none;
}

.heritage-ruler-progress {
  position: absolute;
  top: 1.45rem;
  left: 0;
  width: var(--heritage-progress, 0%);
  height: 1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(237, 28, 36, 0.34), rgba(213, 160, 15, 0.92));
  box-shadow: 0 0 14px rgba(213, 160, 15, 0.14);
  pointer-events: none;
}

.heritage-ruler-thumb {
  position: absolute;
  top: 0.4rem;
  left: calc((100% - 0.95rem) * var(--heritage-progress-ratio, 0) + var(--heritage-thumb-nudge, 0px));
  width: 0.95rem;
  height: 2.7rem;
  border: 1px solid rgba(213, 160, 15, 0.45);
  border-radius: 10px 0 10px 0;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(9, 9, 9, 0.98));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.heritage-ruler-thumb::before {
  content: '';
  position: absolute;
  inset: 0.45rem auto 0.45rem 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(213, 160, 15, 0.9);
  border-radius: 9999px;
}

.heritage-timeline.is-dragging,
.heritage-ruler.is-dragging {
  cursor: grabbing;
}

.heritage-timeline.is-dragging {
  scroll-snap-type: none;
}

.cta-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(237, 28, 36, 0.28);
  border-radius: 24px 0 24px 0;
  background: linear-gradient(125deg, rgba(237, 28, 36, 0.18), rgba(10, 10, 10, 0.96) 42%, rgba(213, 160, 15, 0.12));
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: auto -10% -65% -10%;
  height: 12rem;
  background: radial-gradient(circle at center, rgba(213, 160, 15, 0.3), rgba(213, 160, 15, 0));
  pointer-events: none;
}

.counter {
  display: inline-block;
}

@media (max-width: 1023px) {
  .page-hero {
    min-height: 32rem;
  }
}

@media (min-width: 1024px) {
  .heritage-timeline-track {
    grid-auto-columns: minmax(18rem, 22rem);
  }

  .timeline-card:nth-child(even) {
    margin-top: 2.5rem;
  }

  .product-card > .grid,
  .dump-card > .grid {
    height: 100%;
    min-height: 100%;
    align-items: stretch;
  }

  .product-card .media-frame,
  .dump-card .media-frame {
    align-self: stretch;
    height: 100%;
    min-height: 100%;
  }
}

@media (max-width: 767px) {
  .section-shell {
    padding: 4rem 0;
  }

  .heritage-timeline-track::before {
    top: calc(2.35rem - 20px);
  }

  .heritage-timeline-track {
    grid-auto-columns: minmax(15.5rem, 76vw);
    gap: 1rem;
    padding: 1.5rem 0.5rem 1rem 0;
  }

  .timeline-card {
    padding-top: 3.35rem;
  }

  .timeline-year {
    left: 1.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
  }

  .heritage-timeline-nav {
    gap: 0.6rem;
  }

  .heritage-timeline-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }

  .heritage-ruler-wrap {
    margin-top: 1.6rem;
  }

  .stacked-images,
  .split-card-grid {
    grid-template-columns: 1fr;
  }

  .page-kicker {
    letter-spacing: 0.22em;
  }
}
