/*
Theme Name: NextGen Smart Home Updated
Theme URI: https://ng-home.ru/
Author: NextGen
Description: Updated NextGen smart home theme with mobile fixes and audience tabs.
Version: 1.0.4
Text Domain: nextgen-upload-ready
*/

:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef2ed;
  --text: #202421;
  --muted: #68706a;
  --line: rgba(32, 36, 33, 0.11);
  --accent: #3f7f6e;
  --accent-dark: #245849;
  --accent-soft: #dce9e4;
  --danger: #a8483e;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px -42px rgba(32, 36, 33, 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Satoshi", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(32, 36, 33, 0.06) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  opacity: 0.18;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(247, 248, 245, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 18px 52px -42px rgba(32, 36, 33, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 12px 15px;
  border-radius: 999px;
  color: #4f5751;
  font-size: 14px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
}

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

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

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

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
  scroll-margin-top: 118px;
}

main {
  scroll-margin-top: 118px;
}

.hero {
  min-height: calc(100dvh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding-top: 74px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 730;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-lead,
.section-heading p,
.why-intro p,
.request-copy p,
.wiring-card p,
.service-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    color 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
  will-change: transform;
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #fbfffc;
  background: var(--text);
  box-shadow: 0 18px 34px -24px rgba(32, 36, 33, 0.7);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
  border-color: rgba(63, 127, 110, 0.32);
  background: #fff;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 520px);
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 237, 0.72)),
    var(--surface);
  box-shadow: var(--shadow);
}

.visual-panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -170px;
  top: -120px;
  border-radius: 50%;
  background: rgba(63, 127, 110, 0.13);
  filter: blur(8px);
}

.panel-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.6s var(--ease) infinite;
}

.cabinet {
  position: relative;
  margin-top: 34px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.cabinet::before {
  content: "";
  position: absolute;
  inset: 50% 24px auto;
  height: 1px;
  background: var(--line);
}

.module {
  position: relative;
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(32, 36, 33, 0.1);
  border-radius: 22px;
  background: #fbfcfa;
}

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

.module span {
  position: relative;
  font-weight: 720;
}

.module i {
  width: 46px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.75;
  animation: scan 3.2s var(--ease) infinite;
}

.module.muted i {
  background: linear-gradient(90deg, #aeb8b0, transparent);
}

.solution-panel {
  min-height: auto;
}

.solution-flow {
  position: relative;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.flow-step {
  position: relative;
  padding: 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 16px;
  border: 1px solid rgba(32, 36, 33, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.flow-step:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
}

.flow-step span {
  grid-row: span 2;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 820;
}

.flow-step h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.result-card {
  margin-top: 14px;
  padding: 24px;
  border-radius: 28px;
  color: #f8fbf8;
  background:
    linear-gradient(135deg, rgba(32, 36, 33, 0.96), rgba(36, 88, 73, 0.9)),
    var(--text);
}

.result-card p {
  margin: 0 0 10px;
  color: rgba(248, 251, 248, 0.68);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  max-width: 420px;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.result-card ul {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.result-card li {
  position: relative;
  padding-left: 20px;
  color: rgba(248, 251, 248, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.result-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.scenario-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #46504a;
  font-size: 13px;
  font-weight: 720;
}

.signal-map {
  position: relative;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.signal-map span {
  min-height: 58px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: #4f5751;
  transform: translateX(calc(var(--i) * 12px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 660px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
}

.service-card {
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(32, 36, 33, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 50px -42px rgba(32, 36, 33, 0.38);
  transition: transform 0.36s var(--ease), border-color 0.36s var(--ease), background 0.36s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 127, 110, 0.22);
  background: #fff;
}

.service-card.tall {
  grid-row: span 2;
}

.service-card.wide {
  grid-column: 1 / -1;
}

.accent-card {
  background: var(--accent-soft);
}

.service-media {
  overflow: hidden;
  height: clamp(160px, 20vw, 260px);
  margin: calc(clamp(24px, 4vw, 38px) * -1) calc(clamp(24px, 4vw, 38px) * -1) 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 22px 22px;
  background: var(--surface-soft);
}

.service-card.tall .service-media {
  height: clamp(270px, 38vw, 520px);
}

.service-card.wide {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 30px;
}

.service-card.wide .service-media {
  grid-row: span 3;
  height: 240px;
  margin: calc(clamp(24px, 4vw, 38px) * -1) 0 calc(clamp(24px, 4vw, 38px) * -1) calc(clamp(24px, 4vw, 38px) * -1);
  border-radius: var(--radius-lg) 22px 22px var(--radius-lg);
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50%) center;
  transition: transform 0.55s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.035);
}

.service-media-contain {
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.045);
}

.service-media-contain img {
  object-fit: contain;
  object-position: center;
}

.card-index {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.why-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: 120px;
}

.why-intro p {
  margin-top: 24px;
}

.benefit-list {
  border-top: 1px solid var(--line);
}

.benefit-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.benefit-item span {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.benefit-item p {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.034em;
}

.process-list {
  counter-reset: item;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-layout {
  display: block;
}

.process-list li {
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.process-list li:nth-child(2n) {
  transform: translateY(26px);
}

.process-list li:hover {
  background: #fff;
  transform: translateY(-3px);
}

.process-list li:nth-child(2n):hover {
  transform: translateY(20px);
}

.process-list span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.audience-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-grid span {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #46504a;
  font-weight: 680;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.audience-grid span:hover {
  transform: translateY(-3px);
  background: #fff;
}

.wiring-card {
  padding: clamp(30px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  border-radius: 42px;
  color: #f8fbf8;
  background:
    linear-gradient(135deg, rgba(32, 36, 33, 0.96), rgba(36, 88, 73, 0.92)),
    var(--text);
  box-shadow: 0 28px 70px -48px rgba(32, 36, 33, 0.8);
}

.wiring-card .eyebrow,
.wiring-card p {
  color: rgba(248, 251, 248, 0.76);
}

.wiring-card h2 {
  color: #fff;
}

.wiring-card p {
  margin-bottom: 0;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.proof-copy p,
.article-content p,
.case-details p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.proof-copy p {
  margin-top: 24px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(32, 36, 33, 0.1);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.case-details {
  padding: clamp(22px, 4vw, 34px);
}

.case-details span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.case-details h3 {
  margin-bottom: 12px;
}

.expand-card {
  margin-top: 18px;
}

.expand-card summary {
  width: fit-content;
  min-height: 46px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(63, 127, 110, 0.28);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.expand-card summary:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(63, 127, 110, 0.42);
}

.expand-card summary:active {
  transform: translateY(1px) scale(0.98);
}

.expand-content {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: revealDetails 0.42s var(--ease);
}

.expand-content p {
  margin-bottom: 16px;
}

.expand-content p:last-child {
  margin-bottom: 0;
}

.expand-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 24px;
}

.expand-content h3:first-child {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 760;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--text);
  transform: translateX(3px);
}

.article-card {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(32, 36, 33, 0.09);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 242, 237, 0.72));
  box-shadow: var(--shadow);
}

.article-content ul {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.article-content li {
  position: relative;
  padding-left: 26px;
  color: #46504a;
  line-height: 1.55;
}

.article-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.request-copy {
  position: sticky;
  top: 120px;
}

.request-copy p {
  margin-top: 24px;
}

.request-form {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--accent-dark);
  font-size: 15px;
  line-height: 1.45;
}

.form-status:not(:empty) {
  padding: 14px 16px;
  border: 1px solid rgba(63, 127, 110, 0.18);
  border-radius: 18px;
  background: rgba(220, 233, 228, 0.62);
}

.form-status.is-error {
  color: var(--danger);
  border-color: rgba(168, 72, 62, 0.2);
  background: rgba(168, 72, 62, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field-full,
.form-submit {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 730;
}

.field small {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(32, 36, 33, 0.12);
  border-radius: 18px;
  background: rgba(247, 248, 245, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

input,
select {
  height: 54px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  min-height: 128px;
  padding: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(63, 127, 110, 0.46);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 127, 110, 0.1);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(168, 72, 62, 0.46);
}

.form-submit {
  position: relative;
  margin-top: 4px;
  width: 100%;
}

.button-loader {
  display: none;
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.request-form.is-loading .button-text {
  opacity: 0.58;
}

.request-form.is-loading .button-loader {
  display: inline-block;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  padding: 28px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-contacts {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.footer-contacts a {
  width: fit-content;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.site-footer a:not(.brand) {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.site-footer a:not(.brand):hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--index, 0) * 80ms);
}

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 127, 110, 0.24);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(63, 127, 110, 0);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.58;
  }
  50% {
    transform: translateX(22px);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes revealDetails {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .hero,
  .why-section,
  .audience-section,
  .wiring-card,
  .proof-section,
  .article-card,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .visual-panel {
    min-height: auto;
  }

  .why-intro,
  .request-copy {
    position: static;
  }

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

  .process-list li:nth-child(2n),
  .process-list li:nth-child(2n):hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 104px;
  }

  .site-header {
    top: 10px;
    width: min(1180px, calc(100% - 20px));
    align-items: flex-start;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s var(--ease);
  }

  .site-nav.is-open {
    max-height: 260px;
  }

  .site-nav a {
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.58);
  }

  .section {
    width: min(1180px, calc(100% - 28px));
    padding: 76px 0;
    scroll-margin-top: 104px;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

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

  .visual-panel {
    padding: 16px;
    border-radius: 30px;
  }

  .cabinet {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 24px;
  }

  .cabinet::before {
    display: none;
  }

  .module {
    min-height: 88px;
  }

  .flow-step {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .flow-step span {
    grid-row: auto;
  }

  .result-card {
    padding: 22px;
  }

  .signal-map span {
    transform: none;
  }

  .service-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .proof-section {
    gap: 24px;
  }

  .service-card.tall,
  .service-card.wide,
  .field-full,
  .form-submit {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card.wide {
    display: flex;
  }

  .service-card.wide .service-media {
    height: 180px;
    margin: calc(clamp(24px, 4vw, 38px) * -1) calc(clamp(24px, 4vw, 38px) * -1) 28px;
    border-radius: var(--radius-lg) var(--radius-lg) 22px 22px;
  }

  .service-card.tall .service-media,
  .service-media {
    height: 190px;
  }

  .card-index {
    margin-bottom: 22px;
  }

  .benefit-item {
    min-height: 82px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .benefit-item p {
    font-size: 24px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 132px;
  }

  .audience-grid span {
    width: 100%;
    border-radius: 18px;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

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

/* SpaceX-inspired visual direction for NextGen */
:root {
  --bg: #080a0c;
  --surface: rgba(14, 16, 19, 0.86);
  --surface-soft: #12161b;
  --text: #f4f7f8;
  --muted: rgba(244, 247, 248, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #d7e3df;
  --accent-dark: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --danger: #ff8f7e;
  --radius-lg: 6px;
  --radius-md: 4px;
  --shadow: none;
}

body {
  background:
    radial-gradient(circle at 76% 4%, rgba(255, 255, 255, 0.11), transparent 24rem),
    linear-gradient(180deg, #07090b 0%, #0d1013 46%, #07090b 100%);
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.34;
}

.site-header {
  position: fixed;
  left: max(20px, calc((100vw - 1180px) / 2));
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 18px;
  width: auto;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(5, 7, 9, 0.58);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.brand small,
.site-nav a,
.hero-lead,
.section-heading p,
.why-intro p,
.request-copy p,
.wiring-card p,
.service-card p,
.proof-copy p,
.article-content p,
.case-details p,
.flow-step p,
.field small,
.footer-contacts,
.site-footer a:not(.brand) {
  color: var(--muted);
}

.brand strong,
.site-nav a:hover,
.site-footer a:not(.brand):hover {
  color: #fff;
}

.site-nav a {
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.menu-toggle {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span:not(.sr-only) {
  background: #fff;
}

.section {
  width: min(1240px, calc(100% - 40px));
  padding: 124px 0;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: -16px 0 0;
  padding: 150px max(28px, calc((100vw - 1240px) / 2)) 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  align-items: end;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.96) 0%, rgba(5, 7, 9, 0.68) 44%, rgba(5, 7, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.28) 0%, rgba(5, 7, 9, 0.84) 100%),
    url("assets/process-strip.jpg") center / cover no-repeat;
  filter: saturate(0.9) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 22%;
  background: linear-gradient(180deg, transparent, #080a0c);
}

.eyebrow {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
}

h1,
h2,
h3 {
  color: #fff;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  font-size: clamp(48px, 7.8vw, 98px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 840;
}

h2 {
  max-width: 920px;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.052em;
  font-weight: 840;
}

h3 {
  letter-spacing: -0.02em;
}

.button {
  min-height: 54px;
  border-radius: 0;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-primary {
  color: #080a0c;
  background: #fff;
  box-shadow: none;
}

.button-primary:hover {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.button-secondary:hover {
  color: #080a0c;
  border-color: #fff;
  background: #fff;
}

.visual-panel,
.service-card,
.wiring-card,
.case-card,
.article-card,
.request-form,
.site-footer,
.request-section,
.proof-section,
.audience-section,
.why-section {
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(8, 10, 12, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.visual-panel {
  padding: 20px;
}

.visual-panel::before {
  display: none;
}

.panel-top,
.live-dot,
.flow-step span,
.card-index,
.process-list span,
.case-details span {
  color: #fff;
}

.live-dot::before {
  background: #fff;
}

.flow-step,
.result-card,
.audience-grid span,
.process-list li,
.form-status:not(:empty),
.expand-card summary {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: none;
}

.flow-step:hover,
.service-card:hover,
.process-list li:hover,
.audience-grid span:hover,
.expand-card summary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.36);
}

.result-card {
  background: rgba(255, 255, 255, 0.09);
}

.scenario-strip span {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.service-grid {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.045);
}

.accent-card {
  background: rgba(255, 255, 255, 0.08);
}

.service-card.tall,
.service-card.wide {
  grid-row: auto;
  grid-column: auto;
}

.service-card.wide {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.service-media,
.service-card.tall .service-media,
.service-card.wide .service-media {
  height: 270px;
  margin: calc(clamp(24px, 4vw, 38px) * -1) calc(clamp(24px, 4vw, 38px) * -1) 28px;
  border-radius: 6px 6px 0 0;
  filter: grayscale(0.16) contrast(1.12);
}

.service-card.wide .service-media {
  grid-row: auto;
}

.why-section,
.audience-section,
.proof-section,
.request-section {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.benefit-list {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.benefit-item {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.benefit-item span,
.article-content li::before,
.result-card li::before {
  background: #fff;
}

.wiring-card {
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.74) 46%, rgba(8, 10, 12, 0.22) 100%),
    url("assets/generated/wiring-section-realistic-panel.webp") center / cover no-repeat;
}

.case-card img {
  filter: grayscale(0.08) contrast(1.08) brightness(0.82);
}

.article-card {
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.96), rgba(8, 10, 12, 0.62)),
    url("assets/preza-images/web/nextgen-15-054-08-764-large.webp") center / cover no-repeat;
}

.article-content li {
  color: rgba(255, 255, 255, 0.82);
}

input,
select,
textarea {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

select option {
  color: #111;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.site-footer {
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-top-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1020px) {
  .hero {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-visual {
    justify-self: stretch;
  }

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

@media (max-width: 760px) {
  .site-header {
    left: 10px;
    right: 10px;
    width: auto;
    top: 10px;
    border-radius: 0;
    align-items: flex-start;
  }

  .site-nav a {
    background: rgba(255, 255, 255, 0.07);
  }

  .hero {
    min-height: 100dvh;
    padding: 128px 14px 62px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .service-media,
  .service-card.tall .service-media,
  .service-card.wide .service-media {
    height: 220px;
  }
}

.service-media.service-media-contain {
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.045);
}

.service-media.service-media-contain img {
  object-fit: contain;
  object-position: center;
}

.process-layout {
  display: block;
}

.process-list {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1020px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}

.scenario-strip {
  flex-wrap: nowrap;
  gap: 6px;
}

.scenario-strip span {
  padding: 9px clamp(7px, 0.7vw, 10px);
  white-space: nowrap;
  font-size: clamp(10px, 0.86vw, 12px);
}

@media (max-width: 760px) {
  .scenario-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .wiring-card {
    background:
      linear-gradient(180deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.78) 58%, rgba(8, 10, 12, 0.38) 100%),
      url("assets/generated/wiring-section-realistic-panel.webp") 58% center / cover no-repeat;
  }
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.article-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inner-page main {
  padding-top: 72px;
}

.page-hero {
  width: min(1240px, calc(100% - 40px));
  min-height: min(760px, calc(100dvh - 40px));
  padding: 142px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.page-hero-copy {
  max-width: 840px;
}

.page-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.52;
}

.page-hero-media {
  position: relative;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(8, 10, 12, 0.18)),
    linear-gradient(90deg, rgba(8, 10, 12, 0.24), transparent 42%);
  pointer-events: none;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.08) brightness(0.82);
}

.longread {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.86fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding-top: 70px;
}

.article-aside {
  position: sticky;
  top: 130px;
  padding-top: 8px;
}

.article-aside span,
.work-card span,
.works-stats span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-aside p {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
  line-height: 1.58;
}

.article-body {
  max-width: 840px;
}

.article-body .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-body h2 {
  margin-top: 72px;
  font-size: clamp(30px, 4vw, 54px);
}

.article-body p,
.article-body li,
.works-note p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.72;
}

.article-body ul {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 22px;
}

.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.article-body figure {
  margin: 46px 0 8px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.04);
}

.article-body figure img {
  width: 100%;
  max-height: 700px;
  display: block;
  object-fit: contain;
}

.article-body figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.longread-cta,
.works-note {
  margin-top: 78px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.longread-cta h2 {
  margin-top: 0;
}

.works-intro {
  padding-top: 18px;
  padding-bottom: 36px;
}

.works-stats {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 12px;
}

.works-stats div {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.works-stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.works-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding-top: 58px;
}

.work-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.085);
}

.work-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  align-items: stretch;
}

.work-card figure {
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.work-card-large figure {
  min-height: 520px;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.035);
}

.work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.08) brightness(0.82);
  transition: transform 0.55s var(--ease);
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-card-large img {
  height: auto;
  max-height: 500px;
  object-fit: contain;
  filter: contrast(1.05) brightness(0.92);
}

.work-card > div {
  padding: clamp(24px, 4vw, 42px);
}

.work-card h2,
.work-card h3 {
  margin-top: 16px;
}

.work-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.62;
}

.work-card ul {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.work-card li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.works-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 1020px) {
  .page-hero,
  .longread,
  .work-card-large,
  .works-note {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .page-hero-media {
    min-height: 360px;
  }

  .article-aside {
    position: static;
  }

  .works-stats,
  .works-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .inner-page main {
    padding-top: 40px;
  }

  .page-hero {
    width: min(1240px, calc(100% - 28px));
    padding-top: 112px;
    padding-bottom: 36px;
  }

  .page-hero-media,
  .work-card figure {
    min-height: 250px;
  }

  .work-card-large figure {
    min-height: 330px;
  }

  .longread,
  .works-gallery,
  .works-note {
    width: min(1180px, calc(100% - 28px));
  }

  .article-body h2 {
    margin-top: 50px;
  }

  .article-body p,
  .article-body li,
  .work-card p,
  .works-note p {
    font-size: 16px;
  }

  .works-stats div {
    min-height: 130px;
  }
}

.process-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.process-list li {
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
}

.process-list li:nth-child(2n),
.process-list li:nth-child(2n):hover {
  transform: none;
}

.process-list li:hover {
  transform: translateY(-4px);
}

.process-list figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.process-list img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.08) brightness(0.82);
  transition: transform 0.55s var(--ease);
}

.process-list li:hover img {
  transform: scale(1.035);
}

.process-list span {
  padding: 18px 18px 0;
}

.process-list p {
  margin: auto 0 0;
  padding: 14px 18px 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.18;
  letter-spacing: -0.016em;
}

@media (max-width: 1180px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: auto;
  }
}

.audience-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
  line-height: 1.62;
}

.audience-cards {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}

.audience-cards article {
  min-height: 310px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.audience-cards article:first-child {
  grid-row: span 2;
}

.audience-cards article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.085);
}

.audience-cards span {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.audience-cards h3 {
  margin: 34px 0 18px;
  font-size: clamp(27px, 3vw, 40px);
}

.audience-cards p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.62;
}

.audience-cards small {
  margin-top: 28px;
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1020px) {
  .audience-cards,
  .audience-cards article:first-child {
    grid-template-columns: 1fr;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .audience-cards article {
    min-height: auto;
  }

  .audience-cards h3 {
    margin-top: 26px;
  }
}

.wiring-card {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: start;
  gap: clamp(36px, 7vw, 110px);
}

.wiring-card > div {
  max-width: 620px;
}

.wiring-card > p {
  max-width: 520px;
  justify-self: end;
  align-self: center;
  padding: 22px 0 0;
}

@media (max-width: 1020px) {
  .wiring-card {
    grid-template-columns: 1fr;
  }

  .wiring-card > p {
    max-width: 760px;
    justify-self: start;
    align-self: start;
    padding-top: 0;
  }
}

.article-hero {
  min-height: auto;
  padding-bottom: clamp(28px, 5vw, 46px);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  gap: clamp(40px, 6vw, 96px);
}

.article-hero .page-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.3vw, 96px);
  line-height: 0.9;
}

.article-hero .page-hero-copy p:not(.eyebrow) {
  max-width: 790px;
}

.article-hero .page-hero-media {
  min-height: 430px;
  max-width: 520px;
  justify-self: end;
}

.article-hero + .longread {
  padding-top: clamp(24px, 4vw, 46px);
}

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

.aside-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.48;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.article-body {
  max-width: 960px;
}

.article-note,
.comparison-card,
.planning-grid article,
.article-steps article,
.article-result {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.article-note {
  margin: 44px 0 0;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(198, 222, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.article-note strong,
.comparison-card span,
.planning-grid span,
.article-steps span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-note p {
  margin: 16px 0 0;
}

.comparison-grid {
  margin: 42px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-card {
  padding: clamp(24px, 3vw, 34px);
}

.comparison-card h3,
.planning-grid h3,
.article-steps h3 {
  margin: 18px 0 16px;
  font-size: clamp(21px, 1.85vw, 29px);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.comparison-card.muted-card {
  background: rgba(255, 255, 255, 0.032);
}

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

.article-image-grid figure {
  margin: 0;
}

.article-image-grid figure img {
  height: 280px;
  object-fit: cover;
}

.planning-grid,
.article-steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.planning-grid article,
.article-steps article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 30px);
}

.planning-grid p,
.article-steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

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

.article-result {
  margin-top: 58px;
  padding: clamp(28px, 5vw, 46px);
}

.article-result h2 {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.longread .article-aside[data-reveal],
.longread .article-body[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .article-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .article-hero .page-hero-media {
    min-height: 360px;
    max-width: none;
    justify-self: stretch;
  }

  .comparison-grid,
  .planning-grid,
  .article-steps {
    grid-template-columns: 1fr;
  }

  .planning-grid article,
  .article-steps article {
    min-height: auto;
  }

  .comparison-card h3,
  .planning-grid h3,
  .article-steps h3 {
    font-size: clamp(22px, 4.4vw, 34px);
  }
}

@media (max-width: 760px) {
  .article-hero .page-hero-copy h1 {
    font-size: clamp(42px, 15vw, 74px);
    line-height: 0.92;
  }

  .article-hero .page-hero-media {
    min-height: 260px;
  }

  .article-hero + .longread {
    padding-top: 18px;
  }

  .article-image-grid {
    grid-template-columns: 1fr;
  }

  .article-image-grid figure img {
    height: 220px;
  }

  .article-note,
  .comparison-card,
  .planning-grid article,
  .article-steps article,
  .article-result {
    padding: 22px;
  }
}

/* Mobile containment patch: keeps the SpaceX-style layout inside the viewport. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.admin-bar .site-header {
    top: 56px;
  }

  .site-header {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 10px;
    gap: 10px;
  }

  .brand,
  .brand span,
  .hero-copy,
  .hero-visual,
  .visual-panel,
  .solution-panel,
  .result-card,
  .service-card,
  .wiring-card,
  .case-card,
  .article-card,
  .request-form,
  .page-hero-copy,
  .page-hero-media,
  .article-body,
  .article-aside,
  .work-card,
  .works-note {
    min-width: 0;
    max-width: 100%;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
  }

  .site-nav a {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section,
  .page-hero,
  .longread,
  .works-gallery,
  .works-note {
    width: min(100% - 28px, 1180px);
    max-width: calc(100vw - 28px);
  }

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

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 120px 14px 58px;
    overflow: hidden;
  }

  .page-hero,
  .article-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  h1,
  h2,
  h3,
  .result-card strong,
  .article-content,
  .case-details,
  .request-copy,
  .proof-copy,
  .audience-copy,
  .article-body {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
    letter-spacing: -0.035em;
  }

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

  .service-grid,
  .why-section,
  .audience-section,
  .wiring-card,
  .proof-section,
  .article-card,
  .request-section,
  .service-card.wide,
  .request-form,
  .works-stats,
  .works-gallery,
  .work-card-large,
  .works-note,
  .comparison-grid,
  .planning-grid,
  .article-steps {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    display: flex;
    min-width: 0;
  }

  .service-card.wide .service-media {
    width: auto;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li:nth-child(2n),
  .process-list li:nth-child(2n):hover,
  .signal-map span {
    transform: none;
  }

  .audience-cards,
  .audience-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audience-cards article:first-child {
    grid-row: auto;
  }

  .proof-section,
  .request-section {
    gap: 26px;
  }

  .scenario-strip {
    flex-wrap: wrap;
  }

  .scenario-strip span {
    white-space: normal;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section,
  .page-hero,
  .longread,
  .works-gallery,
  .works-note {
    width: min(100% - 24px, 1180px);
    max-width: calc(100vw - 24px);
  }
}

.audience-tabs-section {
  display: block;
}

.audience-tabs {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.audience-tab-list {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.audience-tab {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.audience-tab:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.audience-tab.is-active {
  color: #080a0c;
  border-color: #fff;
  background: #fff;
}

.audience-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(26px, 5vw, 54px);
}

.audience-panel.is-active {
  display: grid;
}

.audience-panel > div:first-child > span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.audience-panel h3 {
  max-width: 820px;
  margin: 22px 0 24px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.94;
}

.audience-panel p,
.audience-panel li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.62;
}

.audience-panel ul {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.audience-panel li {
  position: relative;
  padding-left: 22px;
}

.audience-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.audience-summary {
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(198, 222, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
}

.audience-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .audience-tab-list {
    flex-wrap: wrap;
  }

  .audience-tab {
    flex: 1 1 220px;
  }

  .audience-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .audience-tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audience-tab {
    width: 100%;
  }

  .audience-panel {
    padding: 22px;
  }

  .audience-panel h3 {
    font-size: clamp(30px, 10vw, 44px);
  }
}

.hero-copy h1 {
  font-size: clamp(46px, 7.4vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

@media (max-width: 760px) {
  .hero-copy h1 {
    font-size: clamp(40px, 14vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
}
