:root {
  --blue-50: #E6F5FF;
  --blue-100: #B8E4FF;
  --blue-200: #8AD2FE;
  --blue-300: #5DC0FE;
  --blue-400: #2FAFFE;
  --blue-500: #019DFE;
  --blue-600: #0181D0;
  --blue-700: #015E96;
  --blue-800: #014875;
  --blue-900: #002C47;
  --blue-950: #001019;
  --text: #303943;
  --muted: #64717d;
  --line: rgba(1, 72, 117, 0.16);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 44, 71, 0.16);
  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  font-size: 18px;
  line-height: 1.55;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue-950);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 640px;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
}

h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

p {
  margin: 0;
}

.site-shell {
  width: var(--shell);
  margin: 0 auto;
}

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

.skip-link:focus {
  z-index: 1000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--blue-900);
  border-radius: 6px;
}

.utility-bar {
  color: var(--blue-900);
  background: var(--blue-50);
  border-bottom: 1px solid rgba(1, 94, 150, 0.12);
  font-size: 0.95rem;
  font-weight: 600;
}

.utility-bar__inner,
.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar__inner {
  min-height: 42px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--blue-800);
  border: 1px solid rgba(1, 94, 150, 0.22);
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  color: var(--blue-500);
  border-color: var(--blue-300);
  transform: translateY(-1px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.main-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(1, 94, 150, 0.1);
  backdrop-filter: blur(18px);
}

.main-nav__inner {
  min-height: 96px;
}

.brand img {
  width: clamp(128px, 14vw, 176px);
  margin: 10px 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--blue-900);
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-item > a:hover,
.nav-item.is-active > a {
  color: var(--blue-600);
  background: rgba(184, 228, 255, 0.32);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 210px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown a {
  padding: 10px 12px;
  color: var(--blue-900);
  border-radius: 6px;
}

.dropdown a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-900);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(780px, 92vh, 1040px);
  padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 8vw, 104px);
  background:
    linear-gradient(90deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, var(--blue-50), var(--white));
  background-size: 80px 80px, 80px 80px, auto;
}

.hero-section::before {
  position: absolute;
  inset: 13% auto auto 7%;
  width: 36%;
  height: 14px;
  content: "";
  background: repeating-linear-gradient(135deg, rgba(1, 72, 117, 0.16) 0 18px, transparent 18px 34px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(46px, 7vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 1120px;
  order: 2;
}

.hero-copy h1 {
  max-width: 1060px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue-600);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button-primary:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.button-secondary {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--blue-700);
  border-color: var(--blue-300);
}

.hero-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: clamp(540px, 56vw, 720px);
  order: 1;
  overflow: visible;
  perspective: 1700px;
  place-items: center;
}

.carousel-stage {
  position: relative;
  width: min(100%, 980px);
  height: clamp(500px, 52vw, 680px);
  transform-style: preserve-3d;
  animation: rotate-showcase 34s linear infinite;
}

.carousel-stage:hover,
.carousel-stage:focus-within {
  animation-play-state: paused;
}

.carousel-card {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: clamp(180px, 18vw, 270px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
  border: 1px solid rgba(184, 228, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 44, 71, 0.22);
  transform:
    translate(-50%, -50%)
    rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
    translateZ(clamp(330px, 34vw, 520px));
  transform-style: preserve-3d;
  transition: transform 260ms ease, filter 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
  backface-visibility: hidden;
}

.carousel-card img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-card:is(:hover, :focus) {
  filter: brightness(1.04);
  box-shadow: 0 26px 70px rgba(0, 157, 254, 0.28);
}

@keyframes rotate-showcase {
  from {
    transform: rotateX(-6deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-6deg) rotateY(-360deg);
  }
}

.section-pad {
  padding: clamp(68px, 8vw, 118px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.section-copy p:not(.eyebrow) {
  max-width: 770px;
  margin-top: 20px;
  color: var(--muted);
}

.impact-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--blue-950);
  border: 1px solid rgba(93, 192, 254, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.impact-panel div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(184, 228, 255, 0.14);
}

.impact-panel div:last-child {
  border-bottom: 0;
}

.impact-panel span {
  grid-row: span 2;
  color: var(--blue-300);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.impact-panel strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.34rem;
}

.impact-panel p {
  color: var(--blue-100);
}

.services-teaser {
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  border-top: 1px solid rgba(1, 94, 150, 0.1);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

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

.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100%;
  padding: 0 0 4px;
}

.service-visual {
  display: grid;
  height: clamp(180px, 19vw, 236px);
  margin-bottom: 24px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    var(--white);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-visual svg {
  width: 86px;
  height: 86px;
  fill: none;
  stroke: var(--blue-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.service-card p {
  margin-top: 14px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 24px;
  color: var(--blue-700);
  font-weight: 800;
}

.text-link::after {
  width: 32px;
  height: 1px;
  margin-left: 10px;
  content: "";
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 46px;
}

.content-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
}

.brand-mark-panel,
.service-orbit {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    var(--blue-50);
  background-size: 36px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-mark-panel span {
  position: absolute;
  width: 70%;
  height: 120px;
  border: 18px solid var(--blue-500);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 100% 0 0 0;
  transform: rotate(16deg);
}

.brand-mark-panel span:nth-child(2) {
  width: 54%;
  border-color: var(--blue-600);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: translateY(38px) rotate(16deg);
}

.brand-mark-panel span:nth-child(3) {
  width: 38%;
  border-color: var(--blue-300);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: translateY(74px) rotate(16deg);
}

.text-stack {
  border-top: 1px solid var(--line);
}

.text-stack .site-shell {
  display: grid;
  gap: 48px;
}

.text-stack article {
  max-width: 980px;
}

.text-stack h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.text-stack p,
.legal-content p {
  margin-top: 16px;
  color: var(--muted);
}

.service-orbit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
}

.service-orbit span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
}

.service-detail-section {
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  border-top: 1px solid var(--line);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-detail {
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 44, 71, 0.08);
}

.service-detail .service-visual {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 26px;
}

.service-detail h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  text-align: center;
}

.service-detail p {
  margin-top: 18px;
  color: var(--muted);
}

.contact-intro {
  padding-bottom: 0;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
  gap: clamp(30px, 6vw, 72px);
}

.contact-form,
.coverage-panel {
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 44, 71, 0.08);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form h2,
.coverage-panel h2,
.legal-content h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--blue-50);
  border: 1px solid rgba(1, 94, 150, 0.16);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

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

.coverage-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    var(--blue-50);
  background-size: 42px 42px;
}

.coverage-panel p {
  color: var(--muted);
}

.coverage-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.coverage-map span {
  display: grid;
  min-height: 112px;
  place-items: center;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.thank-you-section {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: clamp(76px, 10vw, 140px) 0;
  background: linear-gradient(180deg, var(--blue-50), var(--white));
}

.thank-you-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}

.thank-you-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.24rem;
}

.thank-you-copy a {
  color: var(--blue-700);
  font-weight: 800;
}

.wave-illustration {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.wave-illustration__head {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 34%;
  aspect-ratio: 1;
  background: var(--blue-100);
  border: 8px solid var(--blue-900);
  border-radius: 50%;
  transform: translateX(-50%);
}

.wave-illustration__body {
  position: absolute;
  right: 20%;
  bottom: 10%;
  left: 20%;
  height: 48%;
  background: var(--blue-700);
  border-radius: 44% 44% 8px 8px;
}

.wave-illustration__arm {
  position: absolute;
  top: 34%;
  right: 9%;
  width: 34%;
  height: 18px;
  background: var(--blue-500);
  border-radius: 999px;
  transform-origin: left center;
  animation: wave-arm 1.4s ease-in-out infinite;
}

.wave-illustration__hand {
  position: absolute;
  top: 28%;
  right: 4%;
  width: 44px;
  aspect-ratio: 1;
  background: var(--blue-100);
  border: 5px solid var(--blue-900);
  border-radius: 50%;
  animation: wave-hand 1.4s ease-in-out infinite;
}

@keyframes wave-arm {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(12deg); }
}

@keyframes wave-hand {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(18deg); }
}

.page-hero {
  padding: clamp(80px, 12vw, 150px) 0;
  background:
    linear-gradient(90deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(1, 94, 150, 0.08) 1px, transparent 1px),
    var(--blue-50);
  background-size: 76px 76px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.2rem;
}

.page-hero a {
  color: var(--blue-700);
  font-weight: 800;
}

.portfolio-list {
  overflow: hidden;
}

.portfolio-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  margin-bottom: clamp(72px, 10vw, 136px);
}

.portfolio-feature:last-child {
  margin-bottom: 0;
}

.portfolio-feature--reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.05fr);
}

.portfolio-feature--reverse .portfolio-gallery,
.portfolio-feature--reverse .video-card {
  order: 2;
}

.portfolio-feature--reverse .portfolio-copy {
  order: 1;
  text-align: right;
}

.portfolio-gallery {
  display: grid;
  gap: 14px;
}

.portfolio-main-image,
.portfolio-thumbs button,
.video-card {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 44, 71, 0.1);
}

.portfolio-main-image {
  aspect-ratio: 1.18 / 1;
}

.portfolio-main-image img,
.portfolio-thumbs img,
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease, filter 260ms ease;
}

.portfolio-main-image span,
.video-card__label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(0, 44, 71, 0.84);
  border: 1px solid rgba(184, 228, 255, 0.36);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
}

.portfolio-main-image:hover img,
.portfolio-thumbs button:hover img,
.video-card:hover img {
  filter: brightness(0.78);
  transform: scale(1.03);
}

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

.portfolio-thumbs button {
  aspect-ratio: 1 / 1;
}

.portfolio-copy h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.portfolio-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

.portfolio-link {
  margin-top: 28px;
}

.video-card {
  aspect-ratio: 16 / 9;
}

.video-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 16, 25, 0.1), rgba(0, 16, 25, 0.44));
}

.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(72px, 9vw, 110px);
  aspect-ratio: 1;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(184, 228, 255, 0.72);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, background 220ms ease;
}

.play-button::before {
  width: 0;
  height: 0;
  margin-left: 6px;
  content: "";
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--blue-700);
}

.video-card:hover .play-button {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.06);
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 46px);
}

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

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 25, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1120px, 100%);
  max-height: min(88vh, 860px);
  place-items: center;
}

.lightbox__close {
  position: absolute;
  z-index: 4;
  top: -18px;
  right: -18px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--blue-950);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 2rem;
  line-height: 1;
}

.lightbox__figure {
  display: grid;
  width: 100%;
  margin: 0;
  gap: 12px;
}

.lightbox__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

.lightbox__caption {
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.lightbox__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  color: var(--blue-950);
  cursor: pointer;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  font-size: 2.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: -26px;
}

.lightbox__nav--next {
  right: -26px;
}

.lightbox__video-wrap {
  width: min(1120px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-950);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox__video {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 8vw, 104px);
  padding: clamp(56px, 8vw, 96px) 0;
}

.footer-brand img {
  width: min(340px, 100%);
}

.footer-info h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.footer-info p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
}

.footer-info a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue-700);
  font-weight: 800;
}

.footer-legal {
  padding: 20px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: center;
}

.footer-legal .site-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-legal a {
  color: var(--blue-700);
}

.footer-dashboard-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-dashboard-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-dashboard-link:hover,
.footer-dashboard-link:focus {
  color: #ffffff;
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

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

@media (max-width: 1040px) {
  .hero-copy {
    max-width: 100%;
  }

  .hero-showcase {
    min-height: 560px;
  }

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

  .service-card {
    max-width: 720px;
  }

  .portfolio-feature,
  .portfolio-feature--reverse {
    grid-template-columns: 1fr;
  }

  .portfolio-feature--reverse .portfolio-gallery,
  .portfolio-feature--reverse .video-card,
  .portfolio-feature--reverse .portfolio-copy {
    order: initial;
    text-align: left;
  }

  .content-split__grid,
  .contact-grid,
  .thank-you-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 840px) {
  body {
    font-size: 17px;
  }

  .main-nav__inner {
    min-height: 78px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .nav-item > a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    display: grid;
    visibility: visible;
    margin: 0 0 8px 14px;
    padding: 0;
    opacity: 1;
    border: 0;
    box-shadow: none;
    transform: none;
  }

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

  .hero-showcase {
    min-height: 460px;
    overflow: hidden;
  }

  .carousel-stage {
    width: 100%;
    height: 420px;
  }

  .carousel-card {
    width: 150px;
    transform:
      translate(-50%, -50%)
      rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
      translateZ(245px);
  }

  .intro-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .utility-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

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

  .button {
    width: 100%;
  }

  .form-row,
  .coverage-map {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 380px;
  }

  .carousel-stage {
    height: 350px;
  }

  .carousel-card {
    width: 112px;
    transform:
      translate(-50%, -50%)
      rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
      translateZ(182px);
  }

  .portfolio-thumbs {
    gap: 8px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .lightbox__nav--prev {
    left: 4px;
  }

  .lightbox__nav--next {
    right: 4px;
  }
}

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

  .carousel-stage {
    animation: none;
  }
}

.dashboard-page {
  min-height: 100vh;
  background: #f2f4f6;
}

.dashboard-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.dashboard-login__panel {
  display: grid;
  width: min(460px, 100%);
  gap: 18px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-login__panel img {
  width: 180px;
  margin: 0 auto 6px;
}

.dashboard-login__panel h1 {
  font-size: 2.25rem;
  text-align: center;
}

.dashboard-login__panel label,
.dashboard-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 800;
}

.dashboard-login__panel input,
.dashboard-form input,
.dashboard-form textarea {
  min-height: 50px;
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--blue-50);
  border: 1px solid rgba(1, 94, 150, 0.16);
  border-radius: 6px;
  font: inherit;
}

.form-error {
  color: #b4232b;
  font-weight: 800;
  text-align: center;
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px min(5vw, 72px);
  background: var(--white);
}

.dashboard-header a:first-child {
  grid-column: 2;
}

.dashboard-header img {
  width: 190px;
}

.dashboard-header div {
  justify-self: end;
  text-align: right;
}

.dashboard-header h1 {
  font-size: 2.1rem;
  text-transform: uppercase;
}

.dashboard-header div a {
  color: var(--blue-700);
  font-weight: 800;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  padding: clamp(28px, 5vw, 64px);
}

.dashboard-tabs {
  position: sticky;
  top: 24px;
  display: grid;
  align-self: start;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(0, 16, 25, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 16, 25, 0.1);
}

.dashboard-tabs a {
  padding: 13px 16px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 700;
}

.dashboard-tabs a.is-active,
.dashboard-tabs a:hover {
  color: var(--white);
  background: var(--blue-500);
}

.dashboard-tabs .dashboard-edit-site {
  margin-top: 28px;
  color: var(--white);
  background: var(--blue-700);
  border: 4px solid var(--blue-500);
  box-shadow: 0 10px 22px rgba(0, 44, 71, 0.18);
  text-align: center;
}

.dashboard-tabs .dashboard-edit-site:hover {
  background: var(--blue-900);
}

.dashboard-workspace {
  display: grid;
  gap: 30px;
}

.dashboard-add {
  width: fit-content;
  background: var(--white);
}

.dashboard-empty {
  min-height: 220px;
  display: grid;
  align-items: center;
}

.dashboard-empty h2 {
  max-width: 960px;
  color: var(--muted);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.dashboard-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
  border: 1px solid rgba(0, 16, 25, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 16, 25, 0.09);
}

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

.editing-note {
  justify-self: end;
  color: var(--muted);
  font-weight: 700;
}

.editing-note strong {
  color: var(--blue-600);
}

.dashboard-help {
  color: var(--muted);
  font-weight: 700;
}

.upload-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.upload-box {
  position: relative;
  display: grid;
  width: 140px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(0, 16, 25, 0.24);
}

.upload-box span {
  color: var(--muted);
  font-size: 4rem;
  line-height: 1;
}

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.checkbox-label input {
  width: 20px;
  min-height: 20px;
}

.dashboard-actions,
.dashboard-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
}

.button-danger {
  color: var(--white);
  background: #ff5359;
  border-color: #ff5359;
}

.button-danger:hover {
  background: #d9363e;
  border-color: #d9363e;
}

.dashboard-assets {
  margin-top: 34px;
  padding-top: 44px;
  border-top: 3px solid rgba(0, 16, 25, 0.42);
}

.dashboard-assets h2 {
  color: var(--muted);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.dashboard-assets > p {
  color: var(--muted);
}

.dashboard-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.dashboard-asset-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(0, 16, 25, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0, 16, 25, 0.09);
}

.dashboard-asset-card h3 {
  color: var(--muted);
  font-size: 1.8rem;
}

.dashboard-asset-card__body {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  margin-top: 16px;
}

.dashboard-asset-card__body img {
  width: 128px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.dashboard-asset-card__body a {
  color: var(--blue-700);
  font-weight: 800;
}

.hero-manager {
  gap: 26px;
}

.hero-row {
  display: grid;
  grid-template-columns: 44px 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.hero-row strong {
  color: var(--muted);
  font-size: 1.8rem;
}

.hero-row__fields {
  display: grid;
  gap: 12px;
}

.hero-row__fields .button {
  width: fit-content;
}

.hero-delete {
  margin-top: -18px;
  margin-left: 212px;
}

.dashboard-toast {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 16, 25, 0.62);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-align: center;
  animation: toast-fade 1s ease forwards;
  pointer-events: none;
}

.dashboard-toast span {
  display: block;
}

@keyframes toast-fade {
  0%, 72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 920px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    position: static;
  }

  .dashboard-asset-grid,
  .dashboard-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-header {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .dashboard-header a:first-child {
    grid-column: auto;
    justify-self: center;
  }

  .dashboard-header div {
    justify-self: center;
    text-align: center;
  }

  .dashboard-main {
    padding: 18px;
  }

  .upload-row,
  .dashboard-asset-card__body,
  .hero-row {
    grid-template-columns: 1fr;
  }

  .hero-delete {
    margin-left: 0;
  }
}

.editing-mode {
  padding-top: 104px;
}

.editing-toolbar {
  position: fixed;
  z-index: 190;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 18px clamp(18px, 4vw, 38px);
  background: rgba(245, 247, 249, 0.96);
  border-bottom: 1px solid rgba(0, 16, 25, 0.18);
  box-shadow: 0 8px 18px rgba(0, 16, 25, 0.08);
  backdrop-filter: blur(14px);
}

.editing-mode .main-nav {
  top: 104px;
}

.editing-toolbar strong {
  display: block;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
}

.editing-toolbar a {
  color: var(--blue-700);
  font-weight: 700;
}

.editing-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.editing-toolbar .button {
  min-width: 220px;
}

.editing-toolbar .button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

[data-editable="text"] {
  position: relative;
  border-radius: 4px;
}

.editing-mode [data-editable="text"] {
  cursor: text;
  min-height: 1em;
  white-space: pre-line;
}

.editing-mode [data-editable="text"]::before {
  position: absolute;
  z-index: 6;
  top: 0;
  left: -48px;
  width: 38px;
  height: 38px;
  content: "";
  opacity: 0;
  background: var(--blue-500) url("/assets/images/pencil_edit_icon.png") center / 22px 22px no-repeat;
  box-shadow: 0 8px 20px rgba(0, 44, 71, 0.14);
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(4px);
}

.editing-mode [data-editable="text"]:hover,
.editing-mode [data-editable="text"]:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 6px;
}

.editing-mode [data-editable="text"]:hover::before,
.editing-mode [data-editable="text"]:focus::before {
  opacity: 1;
  transform: translateY(0);
}

.editing-mode .impact-panel [data-editable="text"]::before {
  left: -54px;
}

.editing-mode .service-card [data-editable="text"]::before,
.editing-mode .service-detail [data-editable="text"]::before,
.editing-mode .text-stack [data-editable="text"]::before {
  top: -44px;
  left: 0;
}

.editing-mode .hero-section {
  scroll-margin-top: 120px;
}

.editing-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.editable-delete-block {
  position: absolute;
  z-index: 720;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #ffffff;
  font: 800 14px/1 var(--font-display);
  background: #ff565c;
  border: 2px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 44, 71, 0.2);
  cursor: pointer;
}

.editable-delete-block.is-visible {
  display: grid;
}

.editable-delete-block:hover,
.editable-delete-block:focus {
  background: #d94046;
  outline: 2px solid rgba(255, 86, 92, 0.35);
  outline-offset: 2px;
}

.editing-toast {
  z-index: 700;
}

@media (max-width: 760px) {
  .editing-mode {
    padding-top: 168px;
  }

  .editing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editing-mode .main-nav {
    top: 168px;
  }

  .editing-toolbar__actions,
  .editing-toolbar .button {
    width: 100%;
  }

  .editing-mode [data-editable="text"]::before {
    left: 0;
    top: -44px;
  }

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