:root {
  --ink: #0c1528;
  --muted: #69778c;
  --blue: #0b86f5;
  --blue-2: #58bdfd;
  --line: #d8e7f7;
  --surface: rgba(255, 255, 255, 0.76);
  --soft: #f3f9ff;
  --shadow: 0 22px 60px rgba(33, 104, 176, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(198, 226, 249, 0.6) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(circle at 78% 8%, #dff2ff 0, transparent 32%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 48%, #ffffff 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 66px;
  background: rgba(248, 252, 255, 0.84);
  border-bottom: 1px solid rgba(201, 224, 246, 0.74);
  backdrop-filter: blur(22px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  border-radius: 11px;
  background: linear-gradient(135deg, #006cdc, #37c1ff);
  box-shadow: inset -7px -6px 0 rgba(255, 255, 255, 0.35);
}

.brand-name {
  font-size: 19px;
}

.brand-name span {
  margin-left: 1px;
  font-size: 13px;
  color: #5f6f83;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 46px;
  color: #24334a;
  font-size: 14px;
  font-weight: 600;
}

.nav a,
.text-link {
  transition: color 0.2s ease;
}

.nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.header-cta,
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #0377e5, #0e9afc);
  box-shadow: 0 16px 34px rgba(0, 123, 231, 0.25);
}

.btn-secondary {
  min-width: 198px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(68, 125, 180, 0.11);
}

.menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
}

.menu-button span {
  width: 16px;
  height: 2px;
  margin: 2px 0;
  background: #40516a;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(450px, 0.82fr) 1.18fr;
  min-height: 570px;
  padding: 58px 0 0 9.8vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 45%, rgba(219, 239, 255, 0.72) 45% 100%),
    radial-gradient(circle at 72% 20%, rgba(123, 205, 255, 0.5), transparent 30%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  width: 100%;
  min-width: 0;
  max-width: 595px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 3.6vw, 61px);
  line-height: 1.03;
  letter-spacing: 0;
}

h1 span,
h2 span {
  color: var(--blue);
}

.hero-lead {
  max-width: 550px;
  margin-bottom: 28px;
  color: #627187;
  font-size: 18px;
  line-height: 1.58;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}

.play {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-size: 10px;
}

.trusted > span {
  display: block;
  margin-bottom: 14px;
  color: #8090a4;
  font-size: 12px;
}

.trusted {
  margin-top: 34px;
}

.trusted > div {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  color: #9cadbf;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 570px;
  overflow: hidden;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hero-visual.scene-ready .hero-fallback {
  opacity: 0;
}

#quantumScene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 570px;
  display: block;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px 0 0 -20%;
  background:
    linear-gradient(116deg, transparent 0 28%, rgba(255, 255, 255, 0.72) 28.15% 28.6%, transparent 28.8%),
    linear-gradient(147deg, transparent 0 46%, rgba(255, 255, 255, 0.72) 46.15% 46.55%, transparent 46.8%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px) 0 0 / 33.333% 100%,
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.92), transparent 38%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 31%, rgba(255, 255, 255, 0.95) 0 0.7%, transparent 1.3%),
    linear-gradient(154deg, transparent 24%, rgba(255, 255, 255, 0.78) 24.2% 24.55%, transparent 25%),
    linear-gradient(153deg, transparent 48%, rgba(255, 255, 255, 0.52) 48.2% 48.4%, transparent 48.7%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-signal {
  position: absolute;
  right: 13.8vw;
  top: 240px;
  width: 164px;
  padding: 23px;
  border-radius: 16px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-visual.scene-ready .hero-signal {
  opacity: 1;
}

.hero-signal strong,
.hero-signal small {
  display: block;
}

.hero-signal small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.signal-bars {
  display: block;
  width: 78px;
  height: 30px;
  margin-bottom: 18px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 10px);
  mask: linear-gradient(180deg, transparent 0, #000 35%, #000 70%, transparent 100%);
}

.strip {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 9.8vw;
}

.metrics article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
  padding: 0 42px;
  border-right: 1px solid var(--line);
}

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

.metric-icon,
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--blue);
  border-radius: 18px;
  background: linear-gradient(145deg, #eff9ff, #ffffff);
  box-shadow: inset 0 -8px 16px rgba(15, 142, 237, 0.08), 0 12px 24px rgba(24, 116, 202, 0.15);
  font-weight: 800;
}

.metrics strong {
  font-size: 25px;
}

.metrics p {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 28px 10.5vw 0;
}

.two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}

.section-side {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.section-side h2,
.section-heading h2,
.split-panel h2,
.final-cta h2 {
  font-size: 32px;
  line-height: 1.06;
}

.text-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

.soft-card {
  min-height: 154px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.soft-card h3 {
  margin: 20px 0 10px;
  font-size: 17px;
}

.soft-card p,
.benefit-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.soft-card a {
  color: #8da2ba;
  font-weight: 800;
}

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

.case-card {
  position: relative;
  min-height: 194px;
  padding: 30px;
  overflow: hidden;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #06132c, #0b3672);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 162, 255, 0.8), transparent 64%);
}

.case-card span {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 800;
}

.case-card h3 {
  position: relative;
  z-index: 1;
  max-width: 290px;
  font-size: 17px;
  line-height: 1.42;
}

.case-card i {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  font-style: normal;
}

.urban {
  color: white;
  background:
    linear-gradient(135deg, rgba(27, 40, 60, 0.28), rgba(9, 28, 52, 0.5)),
    linear-gradient(120deg, #ced9e5, #7388a2);
}

.pulse {
  background:
    radial-gradient(circle at 70% 40%, rgba(13, 148, 255, 0.85), transparent 28%),
    linear-gradient(135deg, #030713, #002c60);
}

.benefits {
  padding-top: 70px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 28px;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-row article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.benefit-row span {
  color: var(--blue);
  font-weight: 800;
}

.benefit-row h3 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  margin-top: 54px;
  padding-top: 58px;
  padding-bottom: 58px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(230, 245, 255, 0.84));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expert-list {
  display: grid;
  gap: 12px;
}

.expert-list span {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.final-cta {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at 50% 0, #9edaff, transparent 42%);
}

.final-cta h2 {
  max-width: 720px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 64px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}

.page-hero {
  padding: 92px 10vw 42px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 78% 0, rgba(126, 204, 255, 0.42), transparent 34%);
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-hero {
  padding-top: 70px;
  padding-bottom: 30px;
}

.contact-hero + .contact-panel {
  padding-top: 34px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 54px 10vw;
}

.wide-card {
  min-height: 260px;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 54px 10vw;
}

.process article {
  counter-increment: step;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.process article::before {
  content: "0" counter(step);
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 54px 10vw;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  margin-bottom: 14px;
  padding: 16px 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.form-card textarea {
  min-height: 128px;
  resize: vertical;
}

.side-note,
.panel-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-heading.wide {
  max-width: 900px;
}

.centered-link {
  margin-left: 10.5vw;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-strip.compact {
  gap: 18px;
}

.brand-strip.big {
  gap: 14px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 14px 8px 10px;
  color: #7d8fa4;
  border: 1px solid rgba(198, 224, 247, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 113, 196, 0.08);
}

.brand-chip span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  color: var(--blue);
  border-radius: 9px;
  background: linear-gradient(145deg, #eef9ff, #ffffff);
  box-shadow: inset 0 -4px 10px rgba(11, 134, 245, 0.1);
  font-size: 11px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.department-grid article,
.info-stack article,
.tech-matrix article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.department-grid.dense article {
  min-height: 170px;
}

.department-grid span,
.info-stack span {
  color: var(--blue);
  font-weight: 800;
}

.department-grid h3,
.info-stack h3,
.tech-matrix h3 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.department-grid p,
.info-stack p,
.tech-matrix p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.image-cases {
  align-items: stretch;
}

.case-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #06132c;
  color: white;
  box-shadow: var(--shadow);
}

.case-tile img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.82;
}

.case-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 24, 0.1), rgba(3, 10, 24, 0.72));
}

.case-tile span,
.case-tile h3 {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
}

.case-tile span {
  top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-tile h3 {
  bottom: 22px;
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.tag-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tag-cloud span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  color: #23435e;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
}

.partners-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 38px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.team-preview,
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.person-card h3,
.person-card p {
  padding-left: 22px;
  padding-right: 22px;
}

.person-card h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.person-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.team-grid.full {
  grid-template-columns: 1fr;
}

.full-person {
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: stretch;
}

.full-person img {
  height: 100%;
  min-height: 280px;
  aspect-ratio: auto;
}

.full-person div {
  padding: 26px 4px 24px;
}

.full-person .role {
  color: var(--blue);
  font-weight: 800;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 54px;
}

.detail-card,
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.detail-card h2,
.contact-card h2,
.form-card h2 {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.12;
}

.detail-card p,
.detail-card li,
.case-full p,
.case-full li,
.contact-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.detail-card ul,
.case-full ul {
  padding-left: 18px;
  margin: 18px 0 0;
}

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

.tech-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.no-pad {
  padding: 0;
}

.case-showcase {
  display: grid;
  gap: 26px;
  padding-top: 54px;
}

.case-full {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.case-full.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.case-full.reverse img {
  order: 2;
}

.case-full img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.case-full h2 {
  font-size: 34px;
  line-height: 1.08;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.case-links a {
  padding: 12px 14px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 800;
}

.web-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.web-gallery img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-list a,
.contact-lines a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.project-list span,
.contact-lines span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-card label {
  display: block;
  color: #2a3a51;
  font-size: 13px;
  font-weight: 800;
}

.form-card button {
  border: 0;
  cursor: pointer;
}

.contact-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(228, 245, 255, 0.86)),
    url("assets/slides/slide-23.jpg") center / cover;
  background-blend-mode: screen;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.mini-brief {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.source-visuals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 42px;
}

.source-visuals img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 28px;
  }

  .nav {
    display: none;
  }

  body.nav-open .nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    justify-content: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav a {
    padding: 14px 16px;
    border-radius: 12px;
  }

  body.nav-open .nav a:hover {
    background: #eef8ff;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 54px 28px 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  #quantumScene {
    min-height: 420px;
  }

  .hero-signal {
    right: 24px;
    top: 180px;
  }

  .metrics,
  .two-col,
  .split-panel,
  .case-full,
  .case-full.reverse,
  .service-grid,
  .case-grid,
  .benefit-row,
  .page-grid,
  .contact-panel,
  .department-grid,
  .team-preview,
  .service-detail-grid,
  .project-list,
  .partners-panel,
  .source-visuals {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .split-panel,
  .case-full,
  .case-full.reverse {
    grid-template-columns: 1fr;
  }

  .case-full.reverse img {
    order: 0;
  }

  .full-person {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 34px 16px 0;
    min-height: auto;
  }

  h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn,
  .header-cta {
    width: 100%;
  }

  .btn-secondary {
    min-width: 0;
  }

  .hero-visual,
  #quantumScene {
    min-height: 340px;
  }

  .hero-signal {
    top: 150px;
    width: 146px;
    padding: 18px;
  }

  .metrics,
  .two-col,
  .split-panel,
  .case-full,
  .case-full.reverse,
  .service-grid,
  .case-grid,
  .benefit-row,
  .page-grid,
  .contact-panel,
  .department-grid,
  .team-preview,
  .team-grid,
  .service-detail-grid,
  .tech-matrix,
  .web-gallery,
  .project-list,
  .partners-panel,
  .source-visuals {
    grid-template-columns: 1fr;
  }

  .two-col > *,
  .split-panel > *,
  .case-full > *,
  .partners-panel > * {
    min-width: 0;
    width: 100%;
  }

  .metrics {
    padding: 20px 16px;
  }

  .metrics article {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .page-hero,
  .page-grid,
  .process,
  .contact-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 42px;
  }

  .page-hero {
    padding-top: 60px;
    padding-bottom: 34px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .section-side h2,
  .section-heading h2,
  .split-panel h2,
  .final-cta h2,
  .case-full h2 {
    font-size: 28px;
  }

  .soft-card,
  .detail-card,
  .contact-card,
  .department-grid article,
  .info-stack article,
  .tech-matrix article {
    padding: 22px;
    border-radius: 16px;
  }

  .case-full {
    padding: 14px;
    border-radius: 18px;
  }

  .case-full img {
    height: 240px;
    border-radius: 14px;
  }

  .full-person {
    grid-template-columns: 1fr;
  }

  .full-person img {
    min-height: 260px;
  }

  .person-card h3,
  .person-card p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .centered-link {
    margin-left: 16px;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 16px;
  }
}

/* Final layout polish: one spacing system for the whole site. */
:root {
  --page-x: clamp(24px, 9.6vw, 176px);
  --section-y: clamp(76px, 7.2vw, 118px);
  --section-y-tight: clamp(52px, 5vw, 82px);
  --grid-gap: clamp(16px, 1.55vw, 28px);
  --card-pad: clamp(22px, 2vw, 34px);
  --radius-lg: 22px;
  --radius-md: 18px;
}

.site-header {
  padding-inline: clamp(24px, 4vw, 66px);
}

.hero {
  padding-left: var(--page-x);
}

.section {
  padding: var(--section-y) var(--page-x) 0;
}

.section:first-child {
  padding-top: var(--section-y-tight);
}

.page-hero {
  padding: clamp(76px, 7vw, 116px) var(--page-x) clamp(52px, 5vw, 78px);
}

.visual-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  overflow: hidden;
}

.visual-page-hero .page-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.visual-page-hero .page-hero-copy > *:last-child {
  margin-bottom: 0;
}

.page-hero-art {
  width: 100%;
  height: auto;
  max-width: 520px;
  justify-self: end;
  aspect-ratio: 960 / 680;
  object-fit: contain;
  border: 1px solid rgba(155, 215, 255, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(219, 241, 255, 0.74)),
    var(--surface);
  box-shadow: 0 28px 70px rgba(10, 98, 176, 0.13);
  transform: translateZ(0);
  animation: pageHeroArtFloat 8s ease-in-out infinite;
}

@keyframes pageHeroArtFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.metrics {
  padding: clamp(24px, 2.5vw, 36px) var(--page-x);
}

.two-col {
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.service-grid,
.case-grid,
.department-grid,
.benefit-row,
.page-grid,
.team-preview,
.team-grid,
.service-detail-grid,
.tech-matrix,
.web-gallery,
.project-list,
.source-visuals {
  gap: var(--grid-gap);
}

.page-grid,
.process,
.contact-panel {
  padding: var(--section-y) var(--page-x) 0;
}

.section-heading {
  margin-bottom: clamp(28px, 3vw, 46px);
}

.section-heading.wide {
  max-width: 980px;
}

.section-side {
  position: sticky;
  top: 98px;
  padding: 0 0 34px;
}

.side-note,
.panel-note {
  margin-top: 18px;
}

.soft-card,
.detail-card,
.contact-card,
.department-grid article,
.info-stack article,
.tech-matrix article,
.person-card,
.project-list a,
.contact-lines a {
  border-radius: var(--radius-lg);
}

.soft-card,
.detail-card,
.contact-card,
.department-grid article,
.info-stack article,
.tech-matrix article {
  padding: var(--card-pad);
}

.soft-card {
  min-height: 188px;
}

.detail-card {
  min-height: 100%;
}

.detail-card h2,
.contact-card h2,
.form-card h2 {
  margin-top: 22px;
}

.detail-card ul,
.case-full ul {
  margin-top: 20px;
}

.detail-card li + li,
.case-full li + li {
  margin-top: 8px;
}

.split-panel,
.partners-panel,
.final-cta {
  margin-top: var(--section-y);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.split-panel {
  gap: clamp(34px, 4vw, 70px);
}

.partners-panel {
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
}

.case-showcase {
  gap: clamp(26px, 3vw, 42px);
  padding-top: var(--section-y);
}

.case-full {
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(18px, 2vw, 30px);
  border-radius: 28px;
}

.case-full img {
  height: clamp(300px, 25vw, 420px);
}

.team-preview .person-card,
.team-grid .person-card {
  height: 100%;
}

.person-card img {
  background: linear-gradient(135deg, #eef8ff, #ffffff);
}

.full-person {
  grid-template-columns: minmax(240px, 330px) 1fr;
}

.full-person div {
  padding: clamp(24px, 2.4vw, 38px) 10px clamp(22px, 2vw, 34px);
}

.brand-strip {
  gap: 12px;
}

.brand-strip.compact {
  gap: 12px;
}

.brand-chip {
  min-height: 40px;
  padding: 7px 13px 7px 9px;
}

.contact-card {
  background:
    radial-gradient(circle at 78% 4%, rgba(70, 181, 255, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 246, 255, 0.92));
}

.source-visuals {
  display: none;
}

.footer {
  margin-top: var(--section-y);
  padding: 34px var(--page-x);
}

@media (min-width: 1181px) {
  .menu-button {
    display: none;
  }
}

@media (max-width: 1180px) {
  :root {
    --page-x: 28px;
    --section-y: 76px;
    --section-y-tight: 50px;
    --grid-gap: 18px;
  }

  .hero {
    padding: 50px var(--page-x) 0;
  }

  .section-side {
    position: static;
    border-bottom: 0;
  }

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

  .full-person {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --page-x: 16px;
    --section-y: 58px;
    --section-y-tight: 38px;
    --grid-gap: 14px;
    --card-pad: 20px;
  }

  .site-header {
    padding-inline: var(--page-x);
  }

  .metrics,
  .two-col,
  .split-panel,
  .case-full,
  .case-full.reverse,
  .service-grid,
  .case-grid,
  .benefit-row,
  .page-grid,
  .contact-panel,
  .department-grid,
  .team-preview,
  .team-grid,
  .service-detail-grid,
  .tech-matrix,
  .web-gallery,
  .project-list,
  .partners-panel,
  .source-visuals {
    grid-template-columns: 1fr;
  }

  .two-col > *,
  .split-panel > *,
  .case-full > *,
  .partners-panel > * {
    min-width: 0;
    width: 100%;
  }

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

  .hero {
    padding: 34px var(--page-x) 0;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 248, 255, 0.95) 54%, rgba(218, 241, 255, 0.9) 100%),
      radial-gradient(circle at 75% 42%, rgba(123, 205, 255, 0.34), transparent 34%);
  }

  .hero-copy,
  .hero-copy h1,
  .hero-lead,
  .hero-actions,
  .trusted {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  body.nav-open .nav {
    z-index: 40;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(35, 83, 132, 0.22);
    backdrop-filter: none;
  }

  h1 {
    font-size: clamp(36px, 10vw, 43px);
    line-height: 1.05;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .hero-actions {
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .trusted > div {
    gap: 10px;
  }

  .brand-chip {
    min-height: 38px;
    font-size: 13px;
  }

  .hero-visual,
  #quantumScene {
    min-height: 300px;
  }

  .hero-signal {
    right: 18px;
    top: 122px;
    width: 138px;
    padding: 16px;
  }

  .metrics article {
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }

  .metric-icon,
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .two-col {
    gap: 22px;
  }

  .section-side {
    padding-bottom: 0;
  }

  .section-side h2,
  .section-heading h2,
  .split-panel h2,
  .final-cta h2,
  .case-full h2,
  .detail-card h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

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

  .case-tile,
  .case-tile img {
    min-height: 230px;
  }

  .case-full {
    gap: 18px;
  }

  .case-full img {
    height: 230px;
  }

  .full-person {
    grid-template-columns: 1fr;
  }

  .full-person div {
    padding: 22px 0 24px;
  }

  .full-person img {
    min-height: 250px;
    max-height: 320px;
  }

  .project-list a,
  .contact-lines a {
    padding: 16px;
  }

  .final-cta {
    min-height: 300px;
  }

  .footer {
    margin-top: 58px;
    padding: 30px var(--page-x);
  }
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) 1.15fr;
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  min-height: 620px;
  padding: clamp(68px, 7vw, 110px) var(--page-x) clamp(54px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(95, 196, 255, 0.25), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 255, 0.74));
}

.case-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
}

.case-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.64;
}

.case-hero img {
  width: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(209, 229, 247, 0.95);
  box-shadow: var(--shadow);
}

.case-hero > * {
  min-width: 0;
}

.case-hero,
.case-story-grid {
  overflow-wrap: anywhere;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.case-meta span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4e6380;
  font-size: 13px;
  font-weight: 800;
}

.case-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 0.92fr;
  gap: var(--grid-gap);
}

.case-story-grid article {
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.case-story-grid article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.case-story-grid h2 {
  margin: 16px 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.case-story-grid p,
.case-story-grid li {
  color: var(--muted);
  line-height: 1.64;
}

.case-story-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.case-story-grid li + li {
  margin-top: 9px;
}

.case-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.case-next a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .case-hero,
  .case-story-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .case-hero {
    padding: 54px var(--page-x) 42px;
  }

  .case-hero img {
    min-height: 250px;
    border-radius: 22px;
  }

  .case-next {
    flex-direction: column;
  }
}

/* Interactive polish and richer homepage sections. */
.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.section-heading > p:not(.section-kicker) {
  max-width: 740px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-grid .soft-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
}

.logo-chip {
  align-items: center;
  gap: 9px;
  color: #66758b;
}

.logo-chip b {
  font-weight: 800;
}

.logo-chip .logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  overflow: hidden;
  background: #eef7ff;
  box-shadow: inset 0 -7px 14px rgba(13, 126, 225, 0.08);
}

.logo-sber {
  border-radius: 50%;
  background: conic-gradient(from 225deg, #1ca85a 0 30%, #0fa9e6 30% 58%, #ffd633 58% 82%, #1ca85a 82% 100%);
}

.logo-sber::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: white;
}

.logo-sber::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 9px;
  top: 11px;
  width: 11px;
  height: 6px;
  border-left: 3px solid #1ca85a;
  border-bottom: 3px solid #1ca85a;
  transform: rotate(-45deg);
}

.logo-tbank {
  border-radius: 50%;
  background: #ffd42a;
}

.logo-tbank::after {
  content: "Т";
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  font-weight: 900;
  font-size: 15px;
  background: white;
}

.logo-vk {
  display: grid;
  place-items: center;
  color: white;
  background: #0077ff;
}

.logo-vk::after {
  content: "vk";
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.logo-rbc {
  background: linear-gradient(90deg, #00aeef 0 25%, #1db954 25% 50%, #ffd23f 50% 75%, #e5252a 75% 100%);
}

.logo-rbc::after {
  content: "РБК";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0c1528;
  font-size: 8px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
}

.logo-avito {
  background:
    radial-gradient(circle at 32% 33%, #00a1ff 0 18%, transparent 19%),
    radial-gradient(circle at 68% 33%, #8a3ffc 0 18%, transparent 19%),
    radial-gradient(circle at 32% 68%, #00c853 0 18%, transparent 19%),
    radial-gradient(circle at 68% 68%, #ffcf2e 0 18%, transparent 19%),
    #ffffff;
}

.logo-yandex {
  display: grid;
  place-items: center;
  color: #e32119;
  background: #fff;
  font-weight: 900;
}

.logo-yandex::after {
  content: "Я";
  font-size: 19px;
}

.logo-gcloud {
  background:
    radial-gradient(circle at 38% 60%, #4285f4 0 18%, transparent 19%),
    radial-gradient(circle at 55% 44%, #34a853 0 18%, transparent 19%),
    radial-gradient(circle at 68% 60%, #fbbc05 0 18%, transparent 19%),
    linear-gradient(180deg, transparent 48%, #ea4335 48% 65%, transparent 65%),
    #fff;
}

.logo-bitrix {
  display: grid;
  place-items: center;
  color: white;
  background: #2fc7f7;
}

.logo-bitrix::after {
  content: "24";
  font-weight: 900;
  font-size: 13px;
}

.logo-onec {
  display: grid;
  place-items: center;
  color: #e31e24;
  background: #ffdf00;
}

.logo-onec::after {
  content: "1C";
  font-weight: 900;
  font-size: 13px;
}

.logo-ads {
  background: linear-gradient(135deg, #4285f4 0 34%, #34a853 34% 60%, #fbbc05 60% 100%);
}

.logo-ads::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: white;
}

.logo-direct {
  display: grid;
  place-items: center;
  color: #111827;
  background: #ffcc00;
}

.logo-direct::after {
  content: "Д";
  font-weight: 900;
}

.logo-amo {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #00b5ff, #645cff);
}

.logo-amo::after {
  content: "amo";
  font-weight: 900;
  font-size: 9px;
}

.department-lab {
  background:
    radial-gradient(circle at 82% 12%, rgba(80, 188, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.5), rgba(255, 255, 255, 0));
}

.department-board,
.pain-grid,
.benefit-map,
.process-rail,
.review-grid {
  display: grid;
  gap: var(--grid-gap);
}

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

.dept-card,
.pain-grid article,
.benefit-map article,
.review-grid article {
  position: relative;
  min-height: 100%;
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid rgba(191, 218, 244, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.dept-wide {
  grid-column: 2 / span 2;
}

.dept-index,
.pain-grid span,
.benefit-map span,
.process-rail span {
  color: var(--blue);
  font-weight: 900;
}

.dept-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 24px 0 24px;
  color: #006fd6;
  border: 1px solid rgba(80, 176, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, #dff3ff, #ffffff);
  box-shadow: inset 0 -8px 16px rgba(15, 142, 237, 0.12), 0 14px 28px rgba(24, 116, 202, 0.18);
  font-size: 16px;
  font-weight: 900;
}

.dept-card h3,
.pain-grid h3,
.benefit-map h3,
.process-rail h3 {
  margin-bottom: 12px;
}

.dept-card p,
.pain-grid p,
.benefit-map p,
.process-rail p,
.review-grid p {
  color: var(--muted);
  line-height: 1.58;
}

.dept-card strong {
  color: var(--ink);
}

.dept-card ul {
  margin: 18px 0;
  padding-left: 18px;
  color: #47627f;
  line-height: 1.55;
}

.dept-card em,
.benefit-map small {
  display: block;
  color: #0b6ec7;
  font-style: normal;
  font-weight: 800;
}

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

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

.benefit-map article {
  display: grid;
  gap: 12px;
}

.process-line {
  padding-top: var(--section-y-tight);
}

.process-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.process-rail::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 27px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 134, 245, 0.45), transparent);
}

.process-rail article {
  position: relative;
  padding-top: 66px;
}

.process-rail span {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
}

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

.review-grid article::before {
  content: "M";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #0077df;
  border-radius: 14px;
  background: linear-gradient(145deg, #dff3ff, #ffffff);
  box-shadow: inset 0 -8px 16px rgba(15, 142, 237, 0.12), 0 12px 24px rgba(24, 116, 202, 0.16);
  font-weight: 900;
}

.review-grid article:nth-child(2)::before {
  content: "3D";
}

.review-grid article:nth-child(3)::before {
  content: "CRM";
}

.review-grid strong,
.review-grid span {
  display: block;
}

.review-grid strong {
  margin-top: 22px;
}

.review-grid span {
  margin-top: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.quiz-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: stretch;
  padding-top: var(--section-y);
}

.quiz-copy p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.quiz-copy {
  display: grid;
  align-content: center;
}

.quiz-benefits {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.quiz-benefits article {
  padding: 18px 20px;
  border: 1px solid rgba(191, 218, 244, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(33, 104, 176, 0.08);
}

.quiz-benefits span,
.quiz-head,
.quiz-step small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quiz-benefits strong {
  display: block;
  margin: 7px 0 4px;
}

.quiz-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quiz-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(191, 218, 244, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 4%, rgba(68, 178, 255, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-time {
  color: #6f8298;
}

.quiz-progress {
  height: 6px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5f2ff;
}

.quiz-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0377e5, #32b5ff);
  transition: width 0.25s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: grid;
  gap: 16px;
  align-content: start;
}

.quiz-step strong {
  display: block;
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.15;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

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

.quiz-step button,
.quiz-reset,
.quiz-back {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.quiz-step button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px 12px 12px;
  line-height: 1.25;
}

.quiz-step button span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--blue);
  background: linear-gradient(145deg, #eef9ff, #fff);
  box-shadow: inset 0 -7px 14px rgba(13, 126, 225, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.quiz-step button:hover {
  border-color: rgba(11, 134, 245, 0.55);
  box-shadow: 0 12px 28px rgba(33, 104, 176, 0.12);
  transform: translateY(-1px);
}

.quiz-result {
  display: none;
}

.quiz-card.is-complete .quiz-result {
  display: block;
}

.quiz-card.is-complete .quiz-step {
  display: none;
}

.quiz-card.is-complete {
  grid-template-rows: auto auto 1fr;
}

.quiz-card.is-complete .quiz-nav {
  display: none;
}

.quiz-result span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quiz-result h3 {
  margin: 12px 0;
  font-size: 28px;
}

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

.quiz-result-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.quiz-result-list li {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid rgba(191, 218, 244, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #38516c;
  font-weight: 700;
  line-height: 1.35;
}

.quiz-result-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(11, 134, 245, 0.1);
}

.quiz-brief-preview {
  margin: 18px 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(235, 247, 255, 0.84);
}

.quiz-brief-preview strong {
  display: block;
  margin-bottom: 7px;
}

.quiz-brief-preview p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.quiz-result .btn {
  margin-top: 8px;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(191, 218, 244, 0.82);
}

.quiz-nav span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.quiz-back {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
}

.quiz-back:disabled {
  cursor: default;
  opacity: 0.45;
}

.compact-cta {
  min-height: 320px;
  border-radius: 0;
}

.quiz-reset {
  display: inline-flex;
  min-height: 46px;
  margin-left: 10px;
  padding: 0 16px;
  align-items: center;
}

.person-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.team-preview .person-card img {
  width: 116px;
  height: 116px;
  margin: 0 0 24px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(36, 94, 154, 0.16);
}

.full-person img {
  border-radius: 50%;
  max-width: 260px;
  min-height: 0;
  margin: clamp(24px, 2vw, 34px);
  box-shadow: 0 24px 58px rgba(36, 94, 154, 0.18);
}

@media (max-width: 1180px) {
  .department-board,
  .pain-grid,
  .benefit-map,
  .process-rail,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dept-wide {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .department-board,
  .pain-grid,
  .benefit-map,
  .process-rail,
  .review-grid,
  .quiz-panel {
    grid-template-columns: 1fr;
  }

  .dept-wide {
    display: block;
    grid-column: auto;
  }

  .dept-wide .dept-icon {
    margin: 24px 0 24px;
  }

  .dept-wide h3,
  .dept-wide p,
  .dept-wide ul,
  .dept-wide em {
    margin-top: 0;
  }

  .dept-wide ul {
    margin: 18px 0;
  }

  .process-rail::before {
    display: none;
  }

  .process-rail article {
    padding-top: 0;
    padding-left: 74px;
    min-height: 62px;
  }

  .process-rail span {
    left: 0;
  }

  .quiz-reset {
    width: 100%;
    justify-content: center;
    margin: 12px 0 0;
  }

  .quiz-options.compact {
    grid-template-columns: 1fr;
  }

  .quiz-head,
  .quiz-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-nav span {
    text-align: left;
  }

  .quiz-back,
  .quiz-result .btn {
    width: 100%;
    justify-content: center;
  }

  .team-preview .person-card img {
    width: 96px;
    height: 96px;
  }

  .full-person img {
    max-width: 180px;
    margin: 24px auto 0;
  }
}

/* Interface rhythm pass: consistent grids, button baselines and mobile flow. */
.btn,
.header-cta,
.form-card button,
.text-link {
  white-space: nowrap;
}

.soft-card,
.detail-card,
.dept-card,
.pain-grid article,
.benefit-map article,
.review-grid article,
.department-grid article,
.project-list a,
.contact-lines a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.soft-card .text-link,
.detail-card .text-link,
.dept-card .text-link,
.project-list a .text-link {
  margin-top: auto;
}

.service-grid .soft-card,
.department-grid article,
.benefit-map article,
.pain-grid article,
.review-grid article {
  min-height: 100%;
}

.section-side,
.section-heading,
.page-hero,
.case-hero-copy,
.contact-card,
.form-card {
  min-width: 0;
}

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

.form-card label {
  margin: 0;
}

.form-card label:last-of-type,
.form-card button {
  grid-column: 1 / -1;
}

.form-card input,
.form-card textarea,
.form-card select {
  min-height: 52px;
  margin: 8px 0 0;
}

.form-card button {
  justify-self: start;
  margin-top: 4px;
}

.contact-panel {
  align-items: stretch;
}

.contact-card,
.form-card {
  height: 100%;
}

@media (min-width: 1181px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .form-card button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .btn,
  .header-cta,
  .form-card button,
  .text-link {
    white-space: normal;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .quiz-card {
    border-radius: 22px;
  }

  .quiz-step button {
    grid-template-columns: 38px 1fr;
    min-height: 64px;
    padding: 11px 14px 11px 11px;
    font-size: 14px;
  }

  .quiz-step button span {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero-copy h1 span {
    display: block;
    overflow-wrap: anywhere;
  }

  .trusted .brand-strip.compact {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-copy,
  .hero-copy h1,
  .hero-lead,
  .hero-actions,
  .trusted {
    max-width: min(100%, 358px);
  }

  .hero-lead {
    hyphens: auto;
  }
}

/* Launch audit fixes: accessibility, navigation, contact form states. */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

main [id],
#contact-form {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 252, 255, 0.9);
  box-shadow: 0 12px 34px rgba(33, 104, 176, 0.08);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

:focus-visible {
  outline: 3px solid rgba(11, 134, 245, 0.45);
  outline-offset: 3px;
}

.nav a[aria-current="page"] {
  color: var(--blue);
}

.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

html.nav-lock,
html.nav-lock body {
  overscroll-behavior: contain;
}

.page-hero .btn {
  margin-top: 20px;
}

.contact-hero {
  padding-top: clamp(46px, 5vw, 70px);
  padding-bottom: 26px;
}

.contact-hero + .contact-panel {
  padding-top: 30px;
}

.form-note,
.form-status,
.fallback-lines p,
.cta-note,
.case-disclaimer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-note {
  margin: -4px 0 22px;
}

.form-card .message-field,
.form-card .privacy-consent,
.form-status {
  grid-column: 1 / -1;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #40516a;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.privacy-consent a {
  color: var(--blue);
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-weight: 750;
}

.form-status[data-state="success"] {
  color: #0b7a45;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.form-card button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.fallback-lines {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(191, 218, 244, 0.86);
}

.fallback-lines p {
  margin: 0;
}

.fallback-lines strong,
.fallback-lines span {
  display: block;
}

.fallback-lines span {
  margin-top: 6px;
}

.case-disclaimer {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 0 var(--page-x);
  text-align: center;
}

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

@media (max-width: 1180px) {
  .menu-button {
    display: grid;
  }
}

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

  .page-hero .btn {
    width: 100%;
  }

  body.nav-open .nav {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

/* Premium interaction layer: motion and meaning without changing the visual system. */
.hero {
  --hero-x: 0;
  --hero-y: 0;
}

.hero-copy > *,
.hero-visual {
  animation: heroReveal 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero-visual {
  animation-delay: 0.18s;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-visual .hero-fallback,
.hero-visual #quantumScene,
.hero-signal,
.hero-orbit {
  transition: transform 0.45s ease;
}

.hero-visual .hero-fallback,
.hero-visual #quantumScene {
  transform: translate3d(calc(var(--hero-x) * 12px), calc(var(--hero-y) * 10px), 0);
}

.hero-signal {
  transform: translate3d(calc(var(--hero-x) * -18px), calc(var(--hero-y) * -12px), 0);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-orbit span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(191, 218, 244, 0.82);
  border-radius: 999px;
  color: #0b6ec7;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(33, 104, 176, 0.11);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
  opacity: 0.76;
  animation: softFloat 7s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes softFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.btn span,
.header-cta span,
.text-link {
  transition: transform 0.22s ease, color 0.22s ease;
}

.btn:hover span,
.header-cta:hover span,
.text-link:hover {
  transform: translateX(4px);
}

.soft-card,
.dept-card,
.pain-grid article,
.scan-card,
.case-proof-card,
.lab-card,
.benefit-map article,
.review-grid article,
.person-card,
.case-tile {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.soft-card:hover,
.dept-card:hover,
.pain-grid article:hover,
.scan-card:hover,
.case-proof-card:hover,
.lab-card:hover,
.benefit-map article:hover,
.review-grid article:hover,
.person-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 134, 245, 0.38);
  box-shadow: 0 28px 70px rgba(33, 104, 176, 0.16);
}

.case-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 74px rgba(9, 39, 82, 0.22);
}

.case-tile img {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.case-tile:hover img {
  transform: scale(1.045);
  opacity: 0.9;
}

.service-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  color: #3f5e7c;
  font-size: 12px;
  line-height: 1.4;
}

.service-meta span {
  padding: 9px 10px;
  border: 1px solid rgba(191, 218, 244, 0.76);
  border-radius: 12px;
  background: rgba(238, 248, 255, 0.72);
}

.service-meta b {
  color: var(--ink);
}

.soft-card a {
  margin-top: auto;
}

.quantum-growth {
  position: relative;
}

.growth-system {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.growth-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(11, 134, 245, 0.6), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s ease;
}

.growth-in-view .growth-line {
  transform: scaleX(1);
}

.growth-step {
  position: relative;
  z-index: 1;
  min-height: 210px;
  padding: 24px 18px;
  border: 1px solid rgba(191, 218, 244, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.growth-step span,
.scan-card span,
.case-proof-card dt {
  color: var(--blue);
  font-weight: 900;
}

.growth-step span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 1px solid rgba(191, 218, 244, 0.9);
  border-radius: 18px;
  background: linear-gradient(145deg, #eef9ff, #fff);
  box-shadow: inset 0 -8px 16px rgba(15, 142, 237, 0.08), 0 14px 28px rgba(24, 116, 202, 0.12);
}

.growth-step h3,
.scan-card h3,
.lab-card h3,
.case-proof-card h3 {
  margin: 0 0 10px;
}

.growth-step p,
.scan-card p,
.lab-card p,
.case-proof-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.scan-grid,
.case-proof-grid,
.lab-grid {
  display: grid;
  gap: var(--grid-gap);
}

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

.scan-card,
.case-proof-card,
.lab-card {
  position: relative;
  padding: clamp(22px, 2vw, 32px);
  border: 1px solid rgba(191, 218, 244, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.scan-card span {
  display: inline-flex;
  margin-bottom: 26px;
}

.case-proof {
  padding-top: var(--section-y-tight);
}

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

.case-proof-card {
  display: grid;
  gap: 18px;
}

.before-after {
  display: grid;
  gap: 10px;
}

.before-after span {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1px solid rgba(191, 218, 244, 0.78);
  border-radius: 14px;
  background: rgba(238, 248, 255, 0.74);
  color: #37536d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.before-after span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(11, 134, 245, 0.1);
}

.case-proof-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-proof-card dt {
  margin-top: 6px;
  font-size: 12px;
}

.case-brief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.case-brief-list article {
  padding: 14px;
  border: 1px solid rgba(191, 218, 244, 0.82);
  border-radius: 14px;
  background: rgba(238, 248, 255, 0.7);
}

.case-brief-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.case-brief-list p {
  margin: 0;
  color: #4d6681;
  font-size: 13px;
  line-height: 1.45;
}

.digital-lab {
  background:
    radial-gradient(circle at 12% 24%, rgba(80, 188, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 248, 255, 0.5));
}

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

.lab-card {
  overflow: hidden;
}

.lab-mock {
  display: grid;
  min-height: 118px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(191, 218, 244, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(11, 134, 245, 0.07) 1px, transparent 1px) 0 0 / 32px 100%,
    rgba(238, 248, 255, 0.8);
}

.lab-chat {
  align-content: end;
  gap: 8px;
}

.lab-chat span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: rgba(11, 134, 245, 0.16);
}

.lab-chat span:nth-child(1) {
  width: 70%;
}

.lab-chat span:nth-child(2) {
  width: 54%;
  margin-left: auto;
  background: rgba(11, 134, 245, 0.3);
}

.lab-chat span:nth-child(3) {
  width: 82%;
}

.lab-funnel {
  align-content: center;
  gap: 12px;
}

.lab-funnel span {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b86f5, #77ccff);
}

.lab-chart {
  grid-auto-flow: column;
  align-items: end;
  gap: 12px;
}

.lab-chart i {
  display: block;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #76d0ff, #0b86f5);
}

.lab-interface {
  grid-template-columns: 0.72fr 1fr;
  gap: 12px;
}

.lab-interface span {
  border-radius: 14px;
  background: rgba(11, 134, 245, 0.13);
}

.lab-interface span:first-child {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(11, 134, 245, 0.2), rgba(255, 255, 255, 0.72));
}

.scanner-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.scanner-summary article {
  padding: 14px;
  border: 1px solid rgba(191, 218, 244, 0.84);
  border-radius: 16px;
  background: rgba(238, 248, 255, 0.74);
}

.scanner-summary small,
.scanner-summary strong {
  display: block;
}

.scanner-summary small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.scanner-summary strong {
  margin-top: 6px;
  color: #193652;
  font-size: 13px;
  line-height: 1.35;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.section.reveal-ready {
  opacity: 1;
  transform: none;
  transition: none;
}

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

.section:target .reveal-ready {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .growth-system {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-line {
    display: none;
  }

  .scan-grid,
  .case-proof-grid,
  .lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-orbit {
    display: none;
  }

  .visual-page-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-hero-art {
    justify-self: start;
    width: min(100%, 420px);
    max-width: none;
    border-radius: 20px;
    animation-duration: 6.6s;
  }

  .growth-system,
  .scan-grid,
  .case-proof-grid,
  .lab-grid,
  .scanner-summary,
  .case-brief-list {
    grid-template-columns: 1fr;
  }

  .growth-step {
    min-height: auto;
  }

  .lab-mock {
    min-height: 98px;
  }
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }

  .page-hero-art {
    animation: none;
  }
}

/* Tablet and mobile adaptation pass. Keep the visual language, fix flow and hero image visibility. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
canvas {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .header-cta {
    width: auto;
    min-width: 194px;
    justify-self: end;
  }

  .visual-page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
    gap: 28px;
  }

  .page-hero-art {
    max-width: 430px;
    border-radius: 24px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 46px var(--page-x) 28px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-lead,
  .hero-actions,
  .hero-visual,
  .trusted {
    width: 100%;
    max-width: min(760px, calc(100vw - (var(--page-x) * 2)));
  }

  .hero-copy .eyebrow {
    order: 1;
    margin-bottom: -4px;
  }

  .hero-copy h1 {
    order: 2;
    margin-bottom: 0;
  }

  .hero-lead {
    order: 3;
    margin-bottom: 0;
  }

  .hero-actions {
    order: 4;
    margin-bottom: 0;
  }

  .hero-visual {
    order: 5;
    max-width: 100%;
    min-height: clamp(330px, 48vw, 470px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(191, 218, 244, 0.9);
    border-radius: 26px;
    background: linear-gradient(145deg, #e9f7ff, #ffffff);
    box-shadow: 0 24px 64px rgba(33, 104, 176, 0.16);
  }

  .trusted {
    order: 6;
    margin-top: 2px;
  }

  #quantumScene {
    display: none;
  }

  .hero-fallback,
  .hero-visual.scene-ready .hero-fallback {
    position: absolute;
    opacity: 1;
    transform: none;
  }

  .hero-fallback {
    object-position: 58% 50%;
  }

  .hero-visual::before,
  .hero-visual::after {
    opacity: 0.72;
  }

  .hero-signal {
    display: none;
  }

  .hero-orbit {
    display: none;
  }

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

  .metrics article {
    min-width: 0;
    padding: 20px 24px;
  }

  .metrics article:nth-child(2n) {
    border-right: 0;
  }

  .growth-system,
  .service-grid,
  .department-board,
  .pain-grid,
  .scan-grid,
  .case-grid,
  .case-proof-grid,
  .lab-grid,
  .benefit-map,
  .process-rail,
  .review-grid,
  .team-preview,
  .team-grid,
  .project-list,
  .service-detail-grid,
  .tech-matrix,
  .web-gallery,
  .privacy-content,
  .case-brief-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .split-panel,
  .partners-panel,
  .contact-panel,
  .page-grid,
  .case-full,
  .case-full.reverse,
  .quiz-panel {
    grid-template-columns: 1fr;
  }

  .section-side {
    position: static;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .visual-page-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-hero-art {
    justify-self: start;
    width: min(100%, 420px);
    max-width: none;
    border-radius: 20px;
    animation-duration: 6.6s;
  }
}

@media (max-width: 860px) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-lead,
  .hero-actions,
  .hero-visual,
  .trusted {
    max-width: 100%;
  }

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

  .department-board,
  .pain-grid,
  .scan-grid,
  .case-proof-grid,
  .lab-grid,
  .benefit-map,
  .process-rail,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .process-rail::before {
    display: none;
  }

  .process-rail article {
    padding-top: 0;
    padding-left: 74px;
    min-height: 64px;
  }

  .process-rail span {
    left: 0;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

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

  .hero {
    gap: 18px;
    padding-top: 30px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(34px, 10.2vw, 40px);
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .hero-visual {
    min-height: clamp(240px, 69vw, 318px);
    border-radius: 22px;
  }

  .hero-fallback {
    object-position: 59% 50%;
  }

  .hero-signal {
    width: 142px;
    padding: 14px;
    border-radius: 15px;
  }

  .signal-bars {
    width: 64px;
    height: 24px;
    margin-bottom: 12px;
  }

  .trusted {
    margin-top: 0;
  }

  .trusted > span {
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .trusted .brand-strip.compact,
  .brand-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .brand-chip {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .metrics,
  .growth-system,
  .service-grid,
  .case-grid,
  .team-preview,
  .team-grid,
  .project-list,
  .service-detail-grid,
  .tech-matrix,
  .web-gallery,
  .privacy-content,
  .case-brief-list,
  .scanner-summary,
  .quiz-options.compact {
    grid-template-columns: 1fr;
  }

  .metrics article {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section-heading h2,
  .section-side h2,
  .split-panel h2,
  .final-cta h2,
  .page-hero h1,
  .case-full h2 {
    overflow-wrap: anywhere;
  }

  .case-full img,
  .web-gallery img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .form-card form {
    grid-template-columns: 1fr;
  }

  .form-card button,
  .quiz-result .btn,
  .quiz-back,
  .quiz-reset {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 230px;
  }

  .hero-signal {
    width: 132px;
    padding: 12px;
    font-size: 13px;
  }

  .hero-signal small {
    font-size: 12px;
  }

  .brand-chip {
    padding-right: 10px;
    font-size: 12px;
  }
}

/* Mobile navigation and responsive polish override. Keep this at the end. */
.menu-button {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(33, 104, 176, 0.16);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: #40516a;
  transition: transform 0.22s ease, opacity 0.18s ease, background 0.22s ease;
  transform-origin: center;
}

body.nav-open .menu-button {
  background: linear-gradient(145deg, #eef9ff, #ffffff);
}

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

body.nav-open .menu-button span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

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

@keyframes mobileHeroBreath {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.02) rotate(0deg);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.06) rotate(-0.8deg);
    filter: saturate(1.08) brightness(1.03);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 68px;
  }

  .brand {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
  }

  .nav {
    grid-column: 1 / -1;
  }

  .header-cta {
    grid-column: 2;
    justify-self: end;
    width: auto;
    max-width: min(260px, 36vw);
  }

  .menu-button {
    grid-column: 3;
    justify-self: end;
    display: flex;
    z-index: 90;
    flex: 0 0 auto;
  }

  body.nav-open .nav {
    top: 76px;
    left: var(--page-x);
    right: var(--page-x);
    z-index: 85;
    animation: mobileNavDrop 0.22s ease both;
  }

  .hero-visual .hero-fallback,
  .hero-visual.scene-ready .hero-fallback {
    animation: mobileHeroBreath 5.8s ease-in-out infinite;
    transform-origin: 55% 48%;
    will-change: transform, filter;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 62px;
    padding-inline: var(--page-x);
  }

  .brand {
    grid-column: 1;
    max-width: calc(100vw - 88px);
    overflow: hidden;
  }

  .brand-name {
    white-space: nowrap;
  }

  .header-cta {
    display: none !important;
  }

  .menu-button {
    grid-column: 2;
    display: flex !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(191, 218, 244, 0.82);
    z-index: 120 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.94);
    transform: none;
  }

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

  body.nav-open .nav {
    top: 70px;
    left: 12px;
    right: 12px;
    padding: 10px;
    border-radius: 18px;
  }

  body.nav-open .nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
  }

  .hero {
    gap: 14px;
    padding-top: 24px;
  }

  .hero-copy h1 {
    margin-bottom: 0;
  }

  .hero-visual {
    order: 3;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .hero-lead {
    order: 4;
  }

  .hero-actions {
    order: 5;
  }

  .trusted {
    order: 6;
  }

  .hero-visual {
    min-height: clamp(252px, 72vw, 330px);
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-name span {
    font-size: 12px;
  }

  .hero-visual {
    min-height: 252px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-fallback,
  .hero-visual.scene-ready .hero-fallback {
    animation: none;
  }
}
