:root {
  --bg: #0f1115;
  --bg-soft: #151922;
  --text: #f2f4f8;
  --muted: #9aa3ad;
  --line: #1e2329;
  --accent: #d8e7ff;
  --accent-rgb: 216 231 255;
  --accent-soft: rgba(216, 231, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow-alpha: 0.18;
  --wipe-ms: 220ms;
  --reveal-ms: 600ms;
  --modal-ms: 150ms;
  --drift-ms: 12s;
  --glow-bg-ms: 120ms;
  --glow-rx: 520px;
  --glow-ry: 320px;

  /* JS updates these for a subtle cursor-follow glow */
  --mx: 30vw;
  --my: 10vh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 700px at 12% 0%, #1a1f28 0%, var(--bg) 55%, #0a0b0e 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  /* Subtle grid + vignette. Keeps the background from feeling flat. */
  background:
    radial-gradient(1200px 700px at 90% 20%, rgb(var(--accent-rgb) / 0.08), transparent 60%),
    radial-gradient(900px 520px at 20% 80%, rgba(255, 255, 255, 0.04), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(1200px 900px at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  background-size: auto, auto, 60px 60px, 60px 60px, auto;
  background-position: center, center, 0 0, 0 0, center;
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: -40px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(var(--glow-rx, 520px) var(--glow-ry, 320px) at var(--mx) var(--my), rgb(var(--accent-rgb) / var(--glow-alpha)), transparent 60%);
  filter: blur(2px);
  transition: background var(--glow-bg-ms) linear;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  /* Linear opacity prevents the wipe from "finishing early" visually and then waiting to navigate. */
  transition: opacity var(--wipe-ms) linear, transform var(--wipe-ms) cubic-bezier(0.2, 0.8, 0.2, 1);
  background:
    radial-gradient(1200px 700px at 30% 30%, rgb(var(--accent-rgb) / 0.10), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
  will-change: opacity, transform;
}

.page-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.page-wipe.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-wipe.enter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-wipe.entered {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 14, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

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

.brand img {
  height: 38px;
  width: auto;
}

.brand span {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 500;
  font-size: 0.95rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  opacity: 0.8;
}

.nav-more summary:hover,
.nav-more[open] summary {
  color: var(--text);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  min-width: 200px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.98);
  display: grid;
  gap: 6px;
  z-index: 200;
}

.nav-more-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-more-menu a:hover {
  color: var(--text);
  background: rgba(18, 20, 24, 0.65);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  opacity: 0.8;
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  min-width: 260px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.98);
  display: grid;
  gap: 10px;
  z-index: 220;
}

.nav-dropdown-title {
  font-weight: 700;
  color: var(--text);
}

.nav-dropdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-dropdown-pill {
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.65);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-pill:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--accent-rgb) / 0.55);
  color: var(--text);
}

.nav-dropdown-pill.active {
  border-color: var(--accent);
  color: var(--text);
}

.nav-dropdown-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

body[data-page="home"] .nav-links a[href="index.html"],
body[data-page="services"] .nav-links a[href="services.html"],
body[data-page="projects"] .nav-links a[href="projects.html"],
body[data-page="contact"] .nav-links a[href="contact.html"],
body[data-page="about"] .nav-links a[href="about.html"],
body[data-page="solutions"] .nav-links a[href="solutions.html"],
body[data-page="maintenance"] .nav-links a[href="maintenance.html"],
body[data-page="case-studies"] .nav-links a[href="case-studies.html"],
body[data-page="partners"] .nav-links a[href="partners.html"],
body[data-page="faq"] .nav-links a[href="faq.html"],
body[data-page="insights"] .nav-links a[href="insights.html"] {
  color: var(--text);
}

body[data-page="about"] .nav-more summary,
body[data-page="solutions"] .nav-more summary,
body[data-page="maintenance"] .nav-more summary,
body[data-page="case-studies"] .nav-more summary,
body[data-page="partners"] .nav-more summary,
body[data-page="faq"] .nav-more summary,
body[data-page="insights"] .nav-more summary {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgb(var(--accent-rgb) / 0.12);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgb(var(--accent-rgb) / 0.22);
  background: rgb(var(--accent-rgb) / 0.16);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
}

.hero {
  padding: 110px 0 70px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -140px 0 -80px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px 240px at 20% 35%, rgb(var(--accent-rgb) / 0.22), transparent 65%),
    radial-gradient(520px 280px at 70% 45%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(1px);
  animation: hero-drift var(--drift-ms) ease-in-out infinite;
}

@keyframes hero-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(42px, -18px, 0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 26px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #020304;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(200px 140px at 30% 30%, rgb(var(--accent-rgb) / 0.22), transparent 60%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--accent-rgb) / 0.55);
}

.btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-card {
  --lift: 0px;
  --rx: 0deg;
  --ry: 0deg;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 20, 24, 0.85), rgba(8, 9, 11, 0.9));
  box-shadow: 0 30px 60px var(--shadow);
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.hero-card:hover {
  --lift: -2px;
  border-color: rgb(var(--accent-rgb) / 0.7);
}

.hero-card h3 {
  margin: 0 0 10px;
}

.hero-card p {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 70px 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.65);
  border-radius: 16px;
  padding: 18px;
}

.stat .value {
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
}

.stat .label {
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  --lift: 0px;
  --rx: 0deg;
  --ry: 0deg;
  display: block;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
}

.card:hover {
  --lift: -4px;
  border-color: var(--accent);
  background: rgba(20, 24, 32, 0.88);
}

.card h3 {
  margin-top: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theme-switch button {
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.65);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-switch button:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--accent-rgb) / 0.55);
  color: var(--text);
}

.theme-switch button.active {
  border-color: var(--accent);
  color: var(--text);
}

.mini-label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.55);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--accent-rgb) / 0.55);
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.list {
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin-bottom: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(18, 20, 24, 0.55);
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding-top: 10px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.footer strong {
  color: var(--text);
}

.contact-panel {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(18, 20, 24, 0.7);
  transform-style: preserve-3d;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.modal.open,
.modal.closing {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--modal-ms) ease;
}

.modal-dialog {
  position: relative;
  width: min(980px, 92vw);
  max-height: min(84vh, 860px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 20, 24, 0.92), rgba(8, 9, 11, 0.94));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  padding: 22px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform var(--modal-ms) ease, opacity var(--modal-ms) ease;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal.open .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal.closing .modal-backdrop {
  opacity: 0;
}

.modal.closing .modal-dialog {
  transform: translateY(10px);
  opacity: 0;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-top h2 {
  margin: 0;
  line-height: 1.1;
}

.modal-close {
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.6);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.ba {
  --pos: 56%;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0f1115;
  overflow: hidden;
  min-height: 280px;
}

.ba::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgb(var(--accent-rgb) / 0.65);
  transform: translateX(-1px);
  pointer-events: none;
}

.ba::before {
  content: "";
  position: absolute;
  left: var(--pos);
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.88);
  border: 1px solid rgb(var(--accent-rgb) / 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ba-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-before {
  background-image:
    radial-gradient(900px 600px at 20% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(700px 380px at 60% 60%, rgba(0, 0, 0, 0.65), transparent 70%);
}

.ba-after {
  background-image:
    radial-gradient(900px 600px at 25% 30%, rgb(var(--accent-rgb) / 0.18), transparent 62%),
    linear-gradient(135deg, rgb(var(--accent-rgb) / 0.10), transparent 62%),
    radial-gradient(700px 380px at 60% 60%, rgba(0, 0, 0, 0.65), transparent 70%);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-range {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: calc(100% - 28px);
  appearance: none;
  background: transparent;
  height: 28px;
}

.ba-range:focus {
  outline: none;
}

.ba-range::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid #0f1115;
  margin-top: -9.5px;
  box-shadow: 0 10px 30px rgb(var(--accent-rgb) / 0.22);
}

.ba-range::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.ba-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid #0f1115;
  box-shadow: 0 10px 30px rgb(var(--accent-rgb) / 0.22);
}

.ba-labels {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(242, 244, 248, 0.85);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.meta {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(18, 20, 24, 0.55);
}

.meta p {
  color: var(--muted);
  margin-top: 0;
}

.meta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.form {
  display: grid;
  gap: 14px;
}

.input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1115;
  color: var(--text);
  font-family: inherit;
}

.input::placeholder {
  color: #707781;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-ms) ease, transform var(--reveal-ms) ease;
}

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

[data-accent="cyan"] {
  --accent: #59f0ff;
  --accent-rgb: 89 240 255;
  --accent-soft: rgba(89, 240, 255, 0.14);
}

[data-accent="amber"] {
  --accent: #ffb200;
  --accent-rgb: 255 178 0;
  --accent-soft: rgba(255, 178, 0, 0.14);
}

[data-accent="ice"] {
  --accent: #d8e7ff;
  --accent-rgb: 216 231 255;
  --accent-soft: rgba(216, 231, 255, 0.12);
}

[data-accent="violet"] {
  --accent: #9b7bff;
  --accent-rgb: 155 123 255;
  --accent-soft: rgba(155, 123, 255, 0.14);
}

[data-accent="rose"] {
  --accent: #ff4fd8;
  --accent-rgb: 255 79 216;
  --accent-soft: rgba(255, 79, 216, 0.14);
}

[data-accent="emerald"] {
  --accent: #41f5a7;
  --accent-rgb: 65 245 167;
  --accent-soft: rgba(65, 245, 167, 0.14);
}

html[data-motion="calm"] {
  --glow-alpha: 0;
  --reveal-ms: 0ms;
  --drift-ms: 0s;
}

html[data-motion="calm"] .hero::before {
  animation: none;
}

html[data-motion="dynamic"] {
  --glow-alpha: 0.22;
  --reveal-ms: 700ms;
  --drift-ms: 9s;
}

html[data-transition="fast"] {
  --wipe-ms: 160ms;
}

html[data-transition="smooth"] {
  --wipe-ms: 320ms;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    background: rgba(10, 11, 14, 0.98);
    border: 1px solid var(--line);
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    width: 220px;
  }

  .nav-more-menu {
    position: static;
    border: 0;
    background: transparent;
    padding: 0 0 0 8px;
    min-width: auto;
  }

  .nav-more summary::after {
    content: "";
  }

  .nav-dropdown-menu {
    position: static;
    border: 0;
    background: transparent;
    padding: 0 0 0 8px;
    min-width: auto;
  }

  .nav-dropdown summary::after {
    content: "";
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-cta {
    display: none;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-wipe {
    display: none;
  }

  .hero::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav-cta,
  .card {
    transition: none;
  }

  body::after {
    transition: none;
  }
}

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