:root {
  --paper: #f7f5f0;
  --white: #fffdfa;
  --ink: #17191c;
  --muted: #60646b;
  --line: rgba(23, 25, 28, 0.14);
  --red: #c8101e;
  --red-dark: #8d0712;
  --steel: #dfe5e8;
  --charcoal: #24282d;
  --shadow: 0 24px 70px rgba(25, 28, 32, 0.16);
  --font-display: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 25, 28, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, var(--paper), #eceff0 46%, #f8f8f5);
  font-family: var(--font-display);
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 38px rgba(31, 34, 38, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  color: var(--white);
  background: var(--red);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);
  font-size: 14px;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 21px;
  color: var(--red);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  color: #34383d;
}

.nav a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 130px max(22px, calc((100vw - 1180px) / 2)) 140px;
  background: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8vw -22vh auto;
  width: 52vw;
  height: 68vh;
  background: var(--red);
  clip-path: polygon(28% 0, 100% 0, 74% 100%, 0 100%);
  opacity: 0.95;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.04);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.78;
}

.lead {
  max-width: 620px;
  color: #383d43;
  font-size: clamp(17px, 1.6vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 18px 38px rgba(200, 16, 30, 0.22);
}

.button.ghost {
  background: rgba(255, 253, 250, 0.74);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(23, 25, 28, 0.92);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-strip div {
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 13px;
}

.section {
  padding: 112px max(22px, calc((100vw - 1180px) / 2));
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head .index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font: 900 42px/1 Georgia, serif;
}

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

.intro-card {
  min-height: 270px;
  padding: 34px;
  background: rgba(255, 253, 250, 0.86);
}

.intro-card h3::before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-bottom: 24px;
  background: var(--red);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.tech-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(23, 25, 28, 0.94), rgba(23, 25, 28, 0.86)),
    url("assets/air-ground-soft.webp") center / cover;
}

.tech-section p {
  color: rgba(255, 255, 255, 0.68);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: 54px;
  align-items: start;
}

.tech-stack {
  display: grid;
  gap: 14px;
}

.tech-stack div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tech-stack span {
  color: var(--red);
  font: 900 28px/1 Georgia, serif;
}

.air-ground {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 34px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

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

.air-ground div {
  padding: 18px 22px 18px 0;
}

.product-section {
  background: #f4f2ee;
}

.product-hero {
  margin-bottom: 34px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card,
.case-card {
  background: var(--white);
  border: 1px solid rgba(23, 25, 28, 0.1);
  box-shadow: 0 18px 46px rgba(31, 34, 38, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.product-card div,
.case-card div {
  padding: 26px;
}

.cases-section {
  background: #ffffff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.case-card {
  grid-column: span 2;
  overflow: hidden;
}

.case-card.wide {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: center;
}

.case-card.wide img {
  height: 100%;
  aspect-ratio: auto;
}

.contact-section {
  padding: 118px max(22px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(23, 25, 28, 0.9), rgba(23, 25, 28, 0.3)),
    url("assets/hero-winking.webp") center / cover;
}

.contact-panel {
  width: min(680px, 100%);
  padding: 46px;
  color: var(--white);
  background: rgba(23, 25, 28, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px max(22px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
}

.js .reveal {
  opacity: 1;
  transform: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.intro-card:hover,
.product-card:hover,
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(31, 34, 38, 0.13);
}

@media (max-width: 880px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    align-items: flex-start;
    padding: 10px 12px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    font-size: 12px;
  }

  .nav a {
    padding: 6px 7px;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 330px;
  }

  .hero::after {
    width: 78vw;
    height: 44vh;
  }

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

  .hero-strip div {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .intro-grid,
  .split,
  .air-ground,
  .product-grid,
  .case-card.wide {
    grid-template-columns: 1fr;
  }

  .intro-card {
    min-height: 0;
  }

  .air-ground div {
    padding: 8px;
  }

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

  .case-card,
  .case-card.wide {
    grid-column: span 1;
  }

  .case-card.wide img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .contact-panel {
    padding: 30px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
  }

  .brand-mark {
    width: 42px;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-hero,
  .air-ground {
    padding: 10px;
  }
}
