:root {
  --black: #050505;
  --panel: #0d0d0d;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --red: #ed1c24;
  --paper: #f4f1eb;
  --ink: #151515;
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--black);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(0, 0, 0, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 210px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 180ms ease;
}

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

.header-cta,
.button,
.filter {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  color: var(--text);
  background: rgba(237, 28, 36, 0.12);
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.header-cta:hover,
.button:hover,
.filter:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(940px, calc(100% - 36px));
  margin: 0 0 clamp(46px, 8vh, 92px) clamp(18px, 6vw, 92px);
  padding-top: 150px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: white;
}

.eyebrow.red {
  color: var(--red);
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 6.2vw, 90px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy,
.split-copy p,
.contact-panel p,
.intro-grid p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  font-size: 18px;
}

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

.hero-strip {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(34px, 7vh, 84px);
  width: min(48vw, 720px);
  height: 14px;
  background: var(--red);
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid article {
  min-height: 245px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.intro-grid article:last-child {
  border-right: 0;
}

.intro-grid span {
  display: block;
  margin-bottom: 50px;
  color: var(--red);
  font-weight: 800;
}

.applications {
  background: var(--paper);
  color: var(--ink);
}

.applications .eyebrow,
.applications .split-copy p {
  color: var(--red);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.split-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.split-copy p:not(.eyebrow) {
  color: #4c4c4c;
}

.project-stack {
  display: grid;
  gap: 20px;
}

.project-stack figure {
  margin: 0;
  background: #111;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.project-stack img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.project-stack figure:nth-child(2) img {
  aspect-ratio: 16 / 10;
}

.project-stack figcaption {
  padding: 14px 18px;
  color: white;
  font-weight: 700;
}

.catalog {
  background: #070707;
}

.catalog-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.filter.is-active {
  background: var(--red);
  border-color: var(--red);
}

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

.product-card {
  display: grid;
  gap: 12px;
  padding: 10px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.product-card[hidden] {
  display: none;
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.22;
  overflow: hidden;
  border-radius: 4px;
  background: #ddd;
}

.product-image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18%;
  background: linear-gradient(0deg, #111 0%, rgba(17, 17, 17, 0.9) 54%, rgba(17, 17, 17, 0) 100%);
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-2%);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 2px 4px;
}

.product-meta strong {
  font-size: 15px;
}

.product-meta span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.contacts {
  background: var(--black);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-left: 12px solid var(--red);
  border-radius: var(--radius);
  background: #101010;
}

.contact-copy {
  max-width: 620px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-list a {
  color: var(--text);
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  transition: color 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius);
  background: #070707;
  border: 1px solid var(--line);
}

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

.contact-form span {
  color: var(--muted);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #141414;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background: #181818;
}

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

.contact-form .button {
  width: 100%;
  min-height: 52px;
  cursor: pointer;
}

.form-message {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  line-height: 1.45;
}

.form-message.success {
  color: #d8ffe5;
  background: rgba(29, 160, 75, 0.16);
  border: 1px solid rgba(75, 220, 125, 0.32);
}

.form-message.error {
  color: #ffd9d9;
  background: rgba(237, 28, 36, 0.14);
  border: 1px solid rgba(237, 28, 36, 0.36);
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #000;
}

.footer img {
  width: 180px;
}

.footer p {
  margin: 0;
  max-width: 520px;
  text-align: right;
}

.product-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0a0a;
  color: var(--text);
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.product-modal img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #eee;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.modal-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.modal-caption h3 {
  margin: 0;
}

.modal-caption a {
  color: var(--red);
  font-weight: 800;
}

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

  .brand img {
    width: 172px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  .intro-grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .intro-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-grid article:last-child {
    border-bottom: 0;
  }

  .split-copy {
    position: static;
  }

  .catalog-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-tools {
    justify-content: flex-start;
  }

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

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 14px;
  }

  .brand img {
    width: 145px;
  }

  .header-cta {
    display: none;
  }

  .nav {
    font-size: 13px;
    gap: 16px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 44px;
    padding-top: 138px;
  }

  .hero-copy {
    font-size: 16px;
    max-width: 315px;
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 40px;
    line-height: 1.03;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 260px;
  }

  .hero-strip {
    width: 68vw;
    height: 10px;
    bottom: 26px;
  }

  .section {
    padding-inline: 14px;
  }

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

  .modal-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}
