:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #111315;
  --panel-soft: #191b1e;
  --text: #f4f4f2;
  --muted: #b7b8b9;
  --dim: #7f8386;
  --line: rgba(255, 255, 255, 0.14);
  --silver: #d8d8d2;
  --accent: #c89f6a;
  --shadow: rgba(0, 0, 0, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  align-items: center;
  background: rgba(5, 6, 7, 0.74);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, min-height 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.94);
  min-height: 64px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #f1f1ec, #777b7e 45%, #f3f0e9);
  color: #0a0b0d;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transform: skew(-10deg);
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

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

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  display: none;
  height: 42px;
  position: relative;
  width: 42px;
}

.menu-button span {
  background: var(--text);
  height: 2px;
  left: 11px;
  position: absolute;
  right: 11px;
}

.menu-button span:first-child {
  top: 15px;
}

.menu-button span:last-child {
  bottom: 15px;
}

.hero {
  align-items: end;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 72px) 34px;
  position: relative;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.5) 48%, rgba(5, 6, 7, 0.2)),
    linear-gradient(0deg, rgba(5, 6, 7, 0.92), transparent 42%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

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

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

h1 {
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.9;
  margin-bottom: 22px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1;
  margin-bottom: 22px;
}

h3 {
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  font-size: clamp(17px, 2vw, 22px);
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.15em;
  min-height: 48px;
  padding: 0 20px;
  text-transform: uppercase;
  transition: background 180ms ease, border 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--silver);
  border-color: var(--silver);
  color: #070809;
}

.button.secondary:hover,
.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #070809;
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 70px;
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.hero-stats div {
  border-right: 1px solid var(--line);
  padding: 18px 20px 0 0;
}

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

.hero-stats strong {
  display: block;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-stats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-top: 5px;
  text-transform: uppercase;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin: 0 auto 54px;
  max-width: 1180px;
}

.section-heading .eyebrow {
  margin-top: 10px;
}

.section-heading.compact {
  display: block;
  max-width: 900px;
  text-align: center;
}

.promise {
  background: linear-gradient(180deg, #090a0b, #111315);
}

.promise-grid,
.service-grid {
  display: grid;
  gap: 1px;
  margin: 0 auto;
  max-width: 1180px;
}

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

.promise-grid article,
.service-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  min-height: 230px;
  padding: 32px;
}

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

.service-card {
  background: var(--panel);
}

.line-icon {
  display: block;
  height: 42px;
  margin-bottom: 26px;
  position: relative;
  width: 42px;
}

.line-icon::before,
.line-icon::after {
  border: 2px solid var(--silver);
  content: "";
  position: absolute;
}

.shield::before,
.alarm::before {
  border-radius: 18px 18px 22px 22px;
  height: 34px;
  left: 7px;
  transform: perspective(30px) rotateX(-10deg);
  width: 28px;
}

.eye::before {
  border-radius: 50%;
  height: 24px;
  left: 4px;
  top: 8px;
  width: 34px;
}

.eye::after {
  background: var(--silver);
  border: 0;
  border-radius: 50%;
  height: 8px;
  left: 17px;
  top: 18px;
  width: 8px;
}

.lock::before {
  border-radius: 5px;
  height: 22px;
  left: 8px;
  top: 17px;
  width: 26px;
}

.lock::after {
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  height: 16px;
  left: 13px;
  top: 3px;
  width: 16px;
}

.camera::before {
  border-radius: 3px;
  height: 22px;
  left: 3px;
  top: 11px;
  width: 28px;
}

.camera::after {
  border-left: 0;
  border-radius: 2px;
  height: 14px;
  right: 1px;
  top: 15px;
  transform: skewY(-12deg);
  width: 10px;
}

.keypad::before {
  border-radius: 4px;
  height: 36px;
  left: 9px;
  top: 3px;
  width: 24px;
}

.keypad::after {
  background:
    radial-gradient(circle, var(--silver) 2px, transparent 3px) 0 0 / 10px 10px;
  border: 0;
  height: 24px;
  left: 14px;
  top: 11px;
  width: 16px;
}

.network::before {
  border-radius: 50%;
  height: 8px;
  left: 16px;
  top: 3px;
  width: 8px;
}

.network::after {
  border-left: 2px solid var(--silver);
  border-radius: 0;
  border-right: 2px solid var(--silver);
  border-top: 2px solid var(--silver);
  height: 24px;
  left: 9px;
  top: 13px;
  width: 24px;
}

.showcase {
  align-items: stretch;
  background: #070809;
  display: grid;
  gap: 0;
  grid-template-columns: 0.75fr 1.25fr;
}

.showcase-copy {
  align-content: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  padding: clamp(44px, 6vw, 72px);
}

.showcase-copy h2 {
  font-size: clamp(34px, 4.8vw, 58px);
}

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

.image-grid img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-grid img:first-child {
  grid-row: span 2;
}

.contact {
  align-items: center;
  background:
    linear-gradient(rgba(5, 6, 7, 0.84), rgba(5, 6, 7, 0.92)),
    url("assets/nexen-overview.png") center / cover;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.contact > div:first-child {
  max-width: 720px;
}

.contact-panel {
  background: rgba(17, 19, 21, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px var(--shadow);
  padding: 12px;
}

.contact-panel a {
  border-bottom: 1px solid var(--line);
  display: block;
  padding: 20px;
}

.contact-panel a:last-child {
  border-bottom: 0;
}

.contact-panel span {
  color: var(--dim);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-panel strong {
  font-size: clamp(16px, 2vw, 22px);
  overflow-wrap: anywhere;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.18em;
  padding: 28px clamp(20px, 5vw, 72px);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .section-heading,
  .showcase,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .showcase-copy {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 14px 18px;
  }

  .menu-button {
    display: block;
    z-index: 22;
  }

  .site-nav {
    align-content: center;
    background: rgba(5, 6, 7, 0.98);
    display: grid;
    gap: 26px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    text-align: center;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 21;
  }

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

  .brand {
    letter-spacing: 0.15em;
  }

  .hero {
    min-height: 88vh;
    padding-top: 116px;
  }

  .hero-media img {
    object-position: 38% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.95), rgba(5, 6, 7, 0.56)),
      linear-gradient(0deg, rgba(5, 6, 7, 0.95), transparent 48%);
  }

  .hero-stats,
  .promise-grid,
  .service-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-bottom: 16px;
  }

  .image-grid img:first-child {
    grid-row: auto;
  }

  .section {
    padding-block: 70px;
  }

  .promise-grid article,
  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
