:root {
  --ink: #111d19;
  --muted: #62706a;
  --line: #dce8e2;
  --paper: #fbfdfb;
  --soft: #edf5f1;
  --deep: #0d604e;
  --deep-2: #083a31;
  --deep-3: #06271f;
  --blue: #dcecf8;
  --coral: #e96f51;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(10, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(220, 232, 226, 0.9);
  background: rgba(251, 253, 251, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

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

.nav-cta {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--white) !important;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-slider {
  display: block;
  min-height: 86vh;
  animation: none;
  background: var(--deep-3);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 1800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}

.hero-home,
.hero-clinic {
  background-image: url("assets/raims-agency-hero.png");
}

.hero-clinic {
  background-image: url("assets/clinic-growth-system-hero.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(13, 96, 78, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(5, 22, 18, 0.9), rgba(5, 22, 18, 0.62), rgba(5, 22, 18, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding: 74px 0;
  color: var(--white);
  animation: heroContentIn 900ms ease both;
}

.hero-slide:not(.is-active) .hero-content {
  animation: none;
}

.hero-controls {
  position: absolute;
  right: clamp(18px, 6vw, 76px);
  bottom: clamp(20px, 5vh, 44px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 20, 16, 0.48);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-arrow:hover {
  transform: scale(1.08);
  background: var(--deep);
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(42px, 6.7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.hero-actions,
.inline-cta {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.inline-cta {
  display: flex;
}

.button {
  min-height: 46px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(6, 39, 31, 0.18);
}

.button-primary {
  color: var(--white);
  background: var(--deep);
}

.button-primary:hover {
  background: var(--deep-2);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  color: var(--deep);
  border-color: rgba(13, 96, 78, 0.35);
  background: var(--white);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.lead-copy,
.split p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.case-grid,
.pricing-grid,
.process-grid,
.faq-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.feature,
.case-card,
.price-card,
.process-grid article,
.faq-grid article,
.industry-grid article,
.system-card,
.proof-panel,
.before-after article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature:hover,
.case-card:hover,
.price-card:hover,
.process-grid article:hover,
.faq-grid article:hover,
.industry-grid article:hover,
.system-card:hover,
.proof-panel:hover,
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 96, 78, 0.28);
  box-shadow: 0 26px 58px rgba(10, 42, 35, 0.16);
}

.feature p,
.case-card p,
.price-card p,
.process-grid p,
.faq-grid p,
.industry-grid p,
.system-card p,
.service-list span,
.check-list,
.before-after li,
.footer p {
  color: var(--muted);
}

.feature-number,
.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--deep);
  font-weight: 900;
  font-size: 13px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list article {
  min-height: 152px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-list-detailed article {
  min-height: 230px;
}

.service-list strong,
.service-list span,
.service-list a {
  display: block;
}

.service-list strong {
  margin-bottom: 8px;
}

.service-list a {
  margin-top: 18px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
}

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

.solution-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.slider-window {
  overflow: hidden;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card {
  min-width: 100%;
  min-height: 470px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(13, 96, 78, 0.22);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 241, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(220, 236, 248, 0.85), transparent 36%);
  box-shadow: var(--shadow);
}

.solution-card h3 {
  max-width: 780px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.solution-card p {
  max-width: 840px;
  color: var(--muted);
  font-size: 19px;
}

.solution-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  max-width: 900px;
  margin: 22px 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.slider-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.slider-button:hover {
  transform: scale(1.06);
  color: var(--white);
  background: var(--deep);
}

.slider-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 96, 78, 0.25);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--deep);
}

.system-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  overflow: hidden;
}

.system-card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.system-card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.mockup {
  height: 178px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mockup-a {
  background: linear-gradient(135deg, #ffffff 0 35%, #dcecf8 35% 60%, #0d604e 60% 100%);
}

.mockup-b {
  background: linear-gradient(135deg, #ffffff 0 28%, #edf5f1 28% 62%, #e96f51 62% 100%);
}

.mockup-c {
  background: linear-gradient(135deg, #ffffff 0 30%, #14201d 30% 56%, #dcecf8 56% 100%);
}

.tag {
  color: var(--deep) !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  margin: 8px 0;
  color: var(--deep) !important;
  font-size: 30px;
  font-weight: 950;
}

.price-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.price-highlight {
  border-color: rgba(13, 96, 78, 0.45);
}

.split,
.proof-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
}

.check-list {
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
}

.check-list li {
  margin-bottom: 10px;
}

.large-checks {
  font-size: 20px;
}

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

.before-after ul {
  margin: 0;
  padding-left: 20px;
}

.cta-section {
  color: var(--white);
  background: var(--deep-3);
}

.cta-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.audit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
}

.audit-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.audit-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(160px, 0.8fr));
  gap: clamp(28px, 4vw, 64px);
  padding: 64px clamp(18px, 5vw, 72px) 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 148, 116, 0.34), transparent 32%),
    radial-gradient(circle at 88% 100%, rgba(233, 111, 81, 0.12), transparent 34%),
    linear-gradient(135deg, #063329, #031d18 74%);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.footer-main {
  max-width: 460px;
}

.footer .footer-brand,
.footer-links a,
.footer-links span {
  color: var(--white);
}

.footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.footer-links a:hover {
  color: #9fe5d1;
}

.footer-address,
.social-placeholders {
  color: rgba(255, 255, 255, 0.68) !important;
}

.social-placeholders {
  font-size: 0 !important;
}

.social-placeholders::after {
  content: "Instagram / Facebook / X / YouTube / Behance / Dribbble";
  font-size: 14px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-note {
  margin: 0;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 26px;
}

.legal-page p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.service-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: var(--service-hero-image);
  background-position: center;
  background-size: cover;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding: 72px 0;
  color: var(--white);
}

.service-hero-content h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.service-hero-content p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.service-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-page-card,
.outcome-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-page-card:hover,
.outcome-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 96, 78, 0.28);
  box-shadow: 0 26px 58px rgba(10, 42, 35, 0.16);
}

.service-page-card p,
.outcome-grid p {
  color: var(--muted);
}

.service-page-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.service-detail-grid p {
  color: var(--muted);
  font-size: 18px;
}

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

.portfolio-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-name-bar {
  overflow: hidden;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portfolio-name-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 14px 0;
  animation: portfolioMarquee 38s linear infinite;
}

.portfolio-name-track span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-card,
.testimonial-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.portfolio-card {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-card:hover,
.portfolio-card:focus-visible,
.testimonial-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 96, 78, 0.28);
  box-shadow: 0 26px 58px rgba(10, 42, 35, 0.16);
}

.portfolio-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.portfolio-card span,
.testimonial-grid span {
  display: block;
  margin: 18px 22px 6px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 0;
  padding: 0 22px 24px;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.portfolio-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 20, 16, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.portfolio-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.portfolio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.portfolio-modal-gallery {
  padding: 10px;
  background: var(--soft);
}

.portfolio-modal-gallery img {
  width: 100%;
  height: min(560px, 58vh);
  object-fit: cover;
  border-radius: 6px;
}

.portfolio-modal-gallery img:first-child {
  height: min(560px, 58vh);
}

.portfolio-modal-body {
  padding: clamp(24px, 4vw, 42px);
}

.portfolio-modal-body span {
  display: block;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-modal-body h3 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
}

.portfolio-modal-body p {
  max-width: 760px;
  color: var(--muted);
}

.portfolio-modal-quote {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--deep);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 18px;
  font-weight: 700;
}

.portfolio-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-grid article {
  padding: 24px;
}

.testimonial-grid p {
  color: var(--muted);
  font-size: 18px;
}

.testimonial-grid strong {
  display: block;
  margin-top: 18px;
}

.testimonial-grid span {
  margin: 4px 0 0;
}

.cta-section a {
  color: var(--white);
}

@media (max-width: 980px) {
  .feature-grid,
  .case-grid,
  .pricing-grid,
  .process-grid,
  .faq-grid,
  .industry-grid,
  .systems-grid,
  .service-list,
  .split,
  .proof-strip,
  .before-after,
  .footer {
    grid-template-columns: 1fr;
  }

  .service-page-grid,
  .service-detail-grid,
  .outcome-grid,
  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-modal-gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-modal-gallery img,
  .portfolio-modal-gallery img:first-child {
    height: 240px;
    grid-row: auto;
  }

  .portfolio-name-track {
    animation-duration: 28s;
  }
}

@media (max-width: 980px) {
  .system-card-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 8px;
    padding: 12px;
    text-align: center;
  }

  .site-header.nav-open .nav,
  .nav-simple {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-slider {
    min-height: 86vh;
  }

  .hero-overlay {
    background: rgba(5, 22, 18, 0.7);
  }

  .hero-content {
    margin: 0 auto;
    padding: 54px 0 118px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 20px;
    justify-content: space-between;
  }

  .trust-band,
  .audit-form {
    grid-template-columns: 1fr;
  }

  .audit-form .full {
    grid-column: auto;
  }

  .brand-text {
    white-space: normal;
  }

  .solution-slider {
    grid-template-columns: 1fr;
  }

  .slider-button {
    display: none;
  }

  .solution-card {
    min-height: 560px;
  }

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

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

@keyframes heroDrift {
  from {
    background-position: center center;
  }
  to {
    background-position: 56% center;
  }
}

@keyframes portfolioMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

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