:root {
  --bg: #edf4fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #102a45;
  --muted: #5a728d;
  --line: rgba(16, 42, 69, 0.1);
  --blue: #1f6fd1;
  --blue-deep: #0f4c92;
  --orange: #ff8a1e;
  --orange-soft: rgba(255, 138, 30, 0.14);
  --blue-soft: rgba(31, 111, 209, 0.12);
  --shadow: 0 24px 56px rgba(16, 74, 138, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 30, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(31, 111, 209, 0.18), transparent 24%),
    linear-gradient(180deg, #fafdff 0%, var(--bg) 100%);
}

body.has-open-lightbox {
  overflow: hidden;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
  opacity: 0.45;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 30px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(12, 52, 96, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.brand-copy strong,
.section-heading h2,
.hero h1,
.legal-shell h1 {
  font-family: "Gill Sans", "Avenir Next Condensed", "Trebuchet MS", "Noto Sans", sans-serif;
}

.brand-copy {
  display: grid;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.86rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a:hover {
  color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(21, 111, 207, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 14px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
}

.menu-toggle span:nth-child(3) {
  top: 32px;
}

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

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

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

.section-space {
  margin-top: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.section-heading p:last-child,
.hero-text,
.panel-card p,
.gallery-caption,
.legal-note,
.contact-note,
.footer-brand span,
.footer-links a,
.legal-page p,
.legal-page h2 {
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 28px;
  padding-top: 8px;
  justify-items: center;
}

.hero-copy {
  max-width: 960px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-text {
  width: min(80vw, 920px);
  margin: 18px auto 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, #ef6d00 100%);
  box-shadow: 0 16px 32px rgba(255, 138, 30, 0.24);
}

.button-secondary {
  border-color: rgba(21, 111, 207, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.hero-media,
.roles-grid,
.result-grid,
.timeline-grid,
.economy-grid,
.cases-grid {
  display: grid;
  gap: 18px;
}

.hero-media,
.roles-grid,
.result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-shot,
.role-card,
.result-card,
.timeline-card,
.panel-card,
.gallery-stage,
.gallery-thumb,
.contact-info,
.contact-form,
.legal-shell {
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-shot {
  overflow: hidden;
}

.media-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

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

.hero-shot img {
  aspect-ratio: 16 / 9;
}

.role-card,
.result-card,
.timeline-card,
.panel-card {
  padding: 26px;
}

.role-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  border-color: rgba(21, 111, 207, 0.12);
  background: transparent;
  box-shadow: none;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(21, 111, 207, 0.06);
}

.role-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(21, 111, 207, 0.12);
  border-radius: 18px;
  color: var(--blue-deep);
  font-size: 1.15rem;
  background: transparent;
}

.role-card h3,
.result-card h3,
.timeline-card h3,
.panel-card h3,
.contact-info h3 {
  margin: 0 0 12px;
  font-size: 1.34rem;
}

.role-card p,
.result-card p,
.timeline-card p,
.panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.result-card {
  display: grid;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 253, 0.92));
}

.result-card-accent {
  color: #fff;
  background: linear-gradient(160deg, rgba(15, 76, 146, 0.98) 0%, rgba(25, 110, 204, 0.9) 100%);
}

.result-card-accent p,
.result-card-accent .result-tag,
.result-card-accent .result-metric span {
  color: rgba(255, 255, 255, 0.88);
}

.result-tag {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 111, 207, 0.1);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-metric {
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 42, 69, 0.1);
}

.result-card-accent .result-metric {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.result-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  line-height: 1;
}

.result-metric span {
  color: var(--muted);
  line-height: 1.55;
}

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

.problem-table-shell {
  overflow: hidden;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.problem-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background:
    linear-gradient(160deg, rgba(15, 76, 146, 0.98) 0%, rgba(25, 110, 204, 0.9) 100%)
    right / 36% 100% no-repeat;
}

.problem-col-description {
  width: 28%;
}

.problem-col-issue {
  width: 36%;
}

.problem-col-solution {
  width: 36%;
}

.problem-table thead th {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(16, 42, 69, 0.08);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(236, 245, 255, 0.96));
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.problem-table thead th:nth-child(3) {
  background: transparent;
  color: #fff;
}

.problem-table tbody th,
.problem-table tbody td {
  padding: 22px;
  border-bottom: 1px solid rgba(16, 42, 69, 0.08);
  background-clip: padding-box;
  vertical-align: top;
  text-align: left;
}

.problem-table tbody tr:last-child th,
.problem-table tbody tr:last-child td {
  border-bottom: none;
}

.problem-table tbody th {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(247, 250, 253, 0.82);
}

.problem-table tbody td {
  color: var(--muted);
  line-height: 1.66;
}

.problem-table tbody td:nth-child(2) {
  background: rgba(16, 42, 69, 0.03);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.problem-table tbody td:nth-child(3) {
  background: transparent;
  color: #fff;
}

.case-card h3,
.reason-copy h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.case-card p,
.reason-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.reason-list {
  display: grid;
  gap: 68px;
}

.reason-row {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.reason-row-reverse {
  grid-template-columns: 0.98fr 1.02fr;
}

.reason-copy {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 12px 0;
}

.reason-number {
  display: block;
  margin-bottom: 18px;
  color: rgba(15, 76, 146, 0.98);
  font-size: clamp(2.9rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.reason-visual {
  overflow: hidden;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  min-height: 260px;
}

.reason-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reason-copy p + p {
  margin-top: 12px;
}

.timeline-card {
  display: grid;
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92) 100%);
}

.timeline-card .result-tag {
  justify-content: flex-start;
  justify-self: start;
  margin-top: 18px;
  margin-bottom: 14px;
}

.timeline-shot {
  overflow: hidden;
  min-height: 164px;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.timeline-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
}

.timeline-card h3 {
  margin-top: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.split-section > .section-heading {
  grid-column: 1 / -1;
}

.device-frame {
  padding: 18px;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.device-frame img {
  width: 100%;
  border-radius: 24px;
}

.driver-note {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 138, 30, 0.08), rgba(255, 255, 255, 0.96) 100%);
  box-shadow: var(--shadow);
}

.driver-note h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.driver-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

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

.feature-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
}

.economy-grid {
  grid-template-columns: 1fr 1fr 0.9fr;
}

.panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92) 100%);
}

.panel-card-accent {
  background: linear-gradient(180deg, rgba(255, 138, 30, 0.1), rgba(255, 255, 255, 0.95) 100%);
}

.accent-feature {
  padding: 34px;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(15, 76, 146, 0.98) 0%, rgba(25, 110, 204, 0.9) 100%);
  box-shadow: var(--shadow);
}

.accent-feature .eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.accent-feature h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
}

.accent-feature p:not(.eyebrow) {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.accent-feature p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 14px;
}

.accent-feature-media {
  max-width: 920px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.accent-feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.case-card {
  padding: 24px;
  border: 1px solid rgba(193, 52, 52, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92) 100%);
  box-shadow: 0 22px 48px rgba(193, 52, 52, 0.14);
}

.gallery {
  display: grid;
  gap: 18px;
}

.gallery-stage,
.gallery-thumb {
  overflow: hidden;
}

.gallery-stage-image,
.gallery-stage-video {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 18px 20px 20px;
  line-height: 1.55;
  border-top: 1px solid rgba(21, 111, 207, 0.08);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gallery-thumb {
  padding: 0;
  cursor: pointer;
  appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.gallery-thumb.is-active {
  border-color: rgba(255, 138, 30, 0.7);
  box-shadow: 0 16px 36px rgba(255, 138, 30, 0.18);
}

.gallery-thumb img,
.gallery-thumb video {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 24, 41, 0.84);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(10, 24, 41, 0.92);
  box-shadow: 0 32px 80px rgba(4, 15, 28, 0.36);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 76px);
  border-radius: 18px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(10, 24, 41, 0.62);
  cursor: pointer;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-section .section-heading {
  margin-bottom: 38px;
}

.contact-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 4px;
  padding-left: 0;
  padding-right: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-info h3 {
  margin: 0 0 6px;
}

.contact-link {
  display: grid;
  gap: 6px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(21, 111, 207, 0.1);
}

.contact-link:last-of-type {
  border-bottom: none;
}

.contact-link span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(21, 111, 207, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92) 100%);
  box-shadow: var(--shadow);
}

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

.contact-form label span {
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(21, 111, 207, 0.16);
  border-radius: 16px;
  outline: none;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 111, 207, 0.08);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(203, 47, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(203, 47, 47, 0.08);
}

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

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.button-submit {
  width: 100%;
  margin-top: 4px;
}

.button-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.button-submit:disabled {
  pointer-events: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-status.is-visible {
  opacity: 1;
}

.form-status.is-success {
  color: #12714a;
}

.form-status.is-error {
  color: #b23b3b;
}

.legal-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-note a,
.footer-links a,
.legal-back {
  color: var(--blue-deep);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 24px 8px 0;
  border-top: 1px solid rgba(21, 111, 207, 0.12);
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.legal-page {
  background:
    radial-gradient(circle at top left, rgba(255, 138, 30, 0.14), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
}

.legal-shell {
  width: min(860px, calc(100% - 32px));
  margin: 32px auto;
  padding: 32px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 700;
}

.legal-shell h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.legal-shell h2 {
  margin: 24px 0 10px;
  font-size: 1.2rem;
}

.legal-shell p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .hero-media,
  .roles-grid,
  .result-grid,
  .timeline-grid,
  .economy-grid,
  .cases-grid,
  .contact-layout,
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .reason-row {
    grid-template-columns: 1fr;
  }

  .panel-card-accent,
  .device-frame {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 100%);
  }

  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 28px;
    padding: 14px 16px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .topnav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(21, 111, 207, 0.12);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(244, 249, 255, 0.72);
  }

  .hero-media,
  .roles-grid,
  .result-grid,
  .timeline-grid,
  .economy-grid,
  .cases-grid,
  .contact-layout,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .problem-table-shell {
    overflow-x: auto;
  }

  .problem-table {
    min-width: 760px;
  }

  .hero-text {
    width: 100%;
  }

  .section-space {
    margin-top: 70px;
  }

  .role-card,
  .result-card,
  .timeline-card,
  .panel-card,
  .contact-info,
  .contact-form,
  .legal-shell {
    padding: 22px;
  }

  .gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 10px;
    margin: 0 -4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .gallery-thumb {
    scroll-snap-align: start;
    flex: 0 0 auto;
    border-radius: 18px;
  }

  .gallery-thumb img,
  .gallery-stage-image {
    aspect-ratio: 4 / 3;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

  .topbar,
  .role-card,
  .result-card,
  .timeline-card,
  .panel-card,
  .contact-info,
  .contact-form,
  .legal-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
}
