/* ============================================================================
   SANDPIPER DIGITAL — SITE STYLESHEET
   Plain CSS, no preprocessor, no build step. Organized by section:
   1. Reset & base       5. Buttons & badges     9.  Cards & grids
   2. Custom properties  6. Header & navigation   10. FAQ accordion
   3. Layout helpers     7. Footer                11. Forms
   4. Typography         8. Decorative graphics   12. Page-specific sections
   ========================================================================= */

/* ---------------------------------------------------------------------- */
/* 1. Reset & base                                                         */
/* ---------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

::selection {
  background: var(--electric-400);
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* 2. Custom properties (design tokens)                                    */
/* ---------------------------------------------------------------------- */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --navy-950: #060b18;
  --navy-900: #0a1226;
  --navy-800: #0f1b34;
  --navy-700: #172749;
  --navy-600: #223464;

  --electric-300: #8ab4ff;
  --electric-400: #5b8def;
  --electric-500: #3468e0;
  --electric-600: #274fb8;

  --turquoise-300: #7ff0e0;
  --turquoise-400: #3fd9c4;
  --turquoise-500: #22b8a8;

  --mist-50: #f7f9fc;
  --mist-100: #eef2f8;
  --mist-200: #dde4ef;

  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 999px;

  --shadow-md: 0 4px 20px rgba(10, 18, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 18, 38, 0.12);
}

/* ---------------------------------------------------------------------- */
/* 3. Layout helpers                                                       */
/* ---------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 6rem;
  }
}

.section--dark {
  background: var(--navy-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

@media (max-width: 900px) {
  .service-hero-photo {
    width: 68%;
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .service-hero-photo {
    width: 85%;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }
}

.service-hero .container {
  position: relative;
  z-index: 1;
}

.section--mist {
  background: var(--mist-50);
}

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

.visually-hidden {
  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 {
  position: absolute;
  top: -3rem;
  left: 0.75rem;
  z-index: 100;
  background: var(--navy-950);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------------------------------------------------------------------- */
/* 4. Typography                                                           */
/* ---------------------------------------------------------------------- */

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-950);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--turquoise-300);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.eyebrow--dark {
  background: rgba(52, 104, 224, 0.1);
  color: var(--electric-600);
  border: 1px solid rgba(52, 104, 224, 0.2);
}

.section-heading {
  max-width: 42rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-top: 1rem;
}

.section-heading p {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy-700);
}

.section--dark .section-heading p {
  color: #cbd5e1;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-700);
}

.section--dark .lede {
  color: #cbd5e1;
}

.body-copy p + p {
  margin-top: 1.25rem;
}

/* ---------------------------------------------------------------------- */
/* 5. Buttons & badges                                                     */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--electric-400);
  outline-offset: 2px;
}

.btn--lg {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--primary {
  background: linear-gradient(90deg, var(--electric-500), var(--turquoise-500));
  color: #fff;
  box-shadow: 0 10px 30px rgba(52, 104, 224, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(52, 104, 224, 0.32);
}

.btn--secondary {
  background: #fff;
  color: var(--navy-900);
  border-color: rgba(10, 18, 38, 0.15);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--electric-400);
  color: var(--electric-600);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.btn--block {
  width: 100%;
}

.badge-concept {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--turquoise-300);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.icon {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* 6. Header & navigation                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 1.75rem;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1280px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current='page'] {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 18rem;
  /* This padding (not a transform offset) is what used to be a visual-only
     gap between the trigger and the panel below. Because it now lives
     inside this element's own box, the mouse never leaves the hoverable
     area while crossing it -- no more flicker moving from "Services"
     down into the menu. */
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}

.nav-item--dropdown:hover .nav-dropdown-panel,
.nav-item--dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-panel__inner {
  padding: 0.5rem;
  background: rgba(15, 27, 52, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
  transition: transform 0.15s ease;
}

.nav-item--dropdown:hover .nav-dropdown-panel__inner,
.nav-item--dropdown:focus-within .nav-dropdown-panel__inner {
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-actions {
  display: none;
}

@media (min-width: 1280px) {
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--turquoise-300);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  color: #fff;
}

@media (min-width: 1280px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 24, 0.99);
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__inner {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 500;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-services-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 500;
}

.mobile-services-toggle .icon {
  transition: transform 0.15s ease;
}

.mobile-services-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
}

.mobile-submenu.is-open {
  display: flex;
}

.mobile-submenu a {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.mobile-menu-bottom {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-bottom .nav-phone {
  padding-inline: 1rem;
}

/* Floating mobile consultation button */
.floating-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .floating-cta {
    display: none;
  }
}

.floating-cta .btn {
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------------- */
/* 7. Footer                                                               */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  display: block;
  height: 1.4rem;
  width: auto;
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 20rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--turquoise-300);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.footer-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-list a:hover {
  color: var(--turquoise-300);
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-contact-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-list a:hover {
  color: var(--turquoise-300);
}

.footer-cta {
  margin-top: 1.25rem;
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom-row {
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-bottom-links a:hover,
.footer-bottom-link-btn:hover {
  color: #cbd5e1;
}

.footer-bottom-link-btn {
  font: inherit;
  font-size: 0.8rem;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(203, 213, 225, 0.4);
}

/* ---------------------------------------------------------------------- */
/* 8. Decorative graphics                                                  */
/* ---------------------------------------------------------------------- */

.gradient-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gradient-mesh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 7s ease-in-out infinite;
}

.gradient-mesh .blob-1 {
  top: -6rem;
  left: -4rem;
  width: 24rem;
  height: 24rem;
  opacity: 0.4;
  background: radial-gradient(closest-side, var(--electric-500), transparent);
}

.gradient-mesh .blob-2 {
  top: 30%;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  opacity: 0.3;
  background: radial-gradient(closest-side, var(--turquoise-400), transparent);
  animation-delay: 1.5s;
}

.gradient-mesh .blob-3 {
  bottom: -2rem;
  left: 20%;
  width: 20rem;
  height: 20rem;
  opacity: 0.2;
  background: radial-gradient(closest-side, var(--electric-300), transparent);
  animation-delay: 3s;
}

.gradient-mesh .grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@property --tech-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes tech-spin {
  to {
    --tech-angle: 360deg;
  }
}

@keyframes tech-scan {
  0%,
  8% {
    transform: translateY(-115%);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  50% {
    transform: translateY(115%);
    opacity: 1;
  }
  58%,
  100% {
    transform: translateY(115%);
    opacity: 0;
  }
}

@keyframes tech-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes circuit-pad-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.tech-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .tech-frame {
    max-width: none;
  }
}

.tech-frame__ring {
  --tech-angle: 0deg;
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  background: conic-gradient(from var(--tech-angle), var(--electric-500), var(--turquoise-400) 35%, var(--electric-300) 65%, var(--electric-500) 100%);
  animation: tech-spin 7s linear infinite;
}

.tech-frame__ring::before {
  content: '';
  position: absolute;
  inset: -22%;
  border-radius: inherit;
  background: inherit;
  filter: blur(32px);
  opacity: 0.5;
  z-index: -1;
}

.tech-frame__photo-wrap {
  position: absolute;
  inset: 3px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.tech-frame__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.tech-frame__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  background-image: linear-gradient(rgba(127, 240, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 240, 224, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.tech-frame__scan {
  position: absolute;
  inset: -10% 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(127, 240, 224, 0) 42%,
    rgba(127, 240, 224, 0.45) 50%,
    rgba(127, 240, 224, 0) 58%,
    transparent 100%);
  animation: tech-scan 5.5s ease-in-out infinite;
}

.tech-frame__corners {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  pointer-events: none;
}

.tech-frame__corners .corner {
  fill: none;
  stroke: var(--turquoise-300);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(127, 240, 224, 0.6));
  animation: tech-pulse 3.4s ease-in-out infinite;
}

.tech-frame__corners .corner--tr {
  animation-delay: 0.5s;
}

.tech-frame__corners .corner--br {
  animation-delay: 1s;
}

.tech-frame__corners .corner--bl {
  animation-delay: 1.5s;
}

.tech-frame__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.tech-frame__circuit .circuit-trace {
  fill: none;
  stroke: var(--turquoise-400);
  stroke-width: 0.5;
  opacity: 0.45;
}

.tech-frame__circuit .circuit-pad {
  fill: var(--turquoise-300);
  filter: drop-shadow(0 0 3px rgba(127, 240, 224, 0.75));
  transform-box: fill-box;
  transform-origin: center;
  animation: circuit-pad-pulse 2.8s ease-in-out infinite;
}

.tech-frame__circuit .circuit-pulse {
  fill: #eafffb;
  filter: drop-shadow(0 0 4px rgba(127, 240, 224, 0.95));
}

.tech-frame__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(10, 18, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.tech-frame__chip .icon {
  color: var(--turquoise-300);
}

.tech-frame__chip--1 {
  top: 8%;
  left: -6%;
}

.tech-frame__chip--2 {
  bottom: 10%;
  right: -6%;
}

@media (max-width: 640px) {
  .tech-frame__chip {
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
  }

  .tech-frame__chip--1 {
    left: 0;
  }

  .tech-frame__chip--2 {
    right: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* 9. Cards & grids                                                        */
/* ---------------------------------------------------------------------- */

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
}

.glass-card--light {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 27, 52, 0.08);
}

.card {
  background: #fff;
  border: 1px solid rgba(10, 18, 38, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--electric-500), var(--turquoise-500));
  color: #fff;
}

/* Icons are rendered by render_icon() with an explicit width/height
   attribute per call site (historically 18-26px, inconsistent) — this
   overrides them all to one consistent, larger size so every feature-card
   icon actually fills its tile instead of floating small inside it. The
   two compact inline-list contexts below (contact info, deliverables)
   opt back out to their own smaller size, since they sit in tight rows
   next to text rather than as a standalone card feature. */
.icon-tile .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-tile--soft {
  background: rgba(52, 104, 224, 0.1);
  color: var(--electric-600);
}

.icon-tile--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--turquoise-300);
}

/* Service cards (home + hub) */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(10, 18, 38, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(52, 104, 224, 0.14);
  border-color: rgba(91, 141, 239, 0.3);
}

.service-card h3 {
  margin-top: 1.15rem;
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy-700);
  flex: 1;
}

.service-card-link {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--electric-600);
}

.service-card-link .icon {
  transition: transform 0.15s ease;
}

.service-card:hover .service-card-link .icon {
  transform: translateX(3px);
}

.service-card--row {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .service-card--row {
    flex-direction: column;
  }
}

/* Approach steps */

.approach-card {
  height: 100%;
  padding: 1.75rem;
  position: relative;
}

.approach-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--turquoise-300);
}

.approach-card .icon-tile {
  margin-top: 1rem;
}

.approach-card h3 {
  margin-top: 1.15rem;
}

.approach-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Portfolio */

.portfolio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  box-shadow: var(--shadow-md);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card__media {
  position: relative;
  height: 11rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: var(--navy-950);
  background-size: cover;
  background-position: top center;
  padding: 0.75rem 1rem;
}

.portfolio-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.55) 0%, rgba(6, 11, 24, 0) 35%, rgba(6, 11, 24, 0) 60%, rgba(6, 11, 24, 0.75) 100%);
  pointer-events: none;
}

.portfolio-card__category {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.portfolio-card__media .badge-concept {
  position: relative;
  z-index: 1;
}

.portfolio-card__desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy-700);
}

.portfolio-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card__body h2 {
  font-size: 1.1rem;
}

.portfolio-card__body dl {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.portfolio-card__body dt {
  display: inline;
  font-weight: 600;
  color: var(--navy-900);
}

.portfolio-card__body dd {
  display: inline;
  margin: 0 0 0.75rem 0;
}

.portfolio-card__body dd::after {
  content: '';
  display: block;
}

.portfolio-tags {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(52, 104, 224, 0.1);
  color: var(--electric-600);
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-notice {
  margin-bottom: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(217, 158, 20, 0.35);
  background: #fdf6e3;
  color: #7a5b0a;
  padding: 1.1rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* 10. FAQ accordion                                                       */
/* ---------------------------------------------------------------------- */

.faq-list {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  background: #fff;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(10, 18, 38, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-950);
}

@media (min-width: 640px) {
  .faq-question {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
  }
}

.faq-question .icon {
  color: var(--electric-600);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.2s ease, opacity 0.2s ease;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--navy-700);
}

@media (min-width: 640px) {
  .faq-answer p {
    padding: 0 2rem 1.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* 11. Forms                                                               */
/* ---------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
}

.form-field .required {
  color: var(--electric-600);
}

.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='tel'],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(10, 18, 38, 0.14);
  background: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--electric-400);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.25);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #dc2626;
}

.form-error-text {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
}

.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-700);
  font-weight: 400;
  margin-bottom: 0;
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.25rem;
}

@media (min-width: 480px) {
  .form-checkbox-group {
    grid-template-columns: 1fr 1fr;
  }
}

.form-checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--navy-700);
  font-weight: 400;
  margin-bottom: 0;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.form-consent input {
  margin-top: 0.2rem;
}

.form-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
}

.form-alert--error {
  background: #fef2f2;
  color: #b91c1c;
}

.form-alert--success {
  padding: 3.5rem 2rem;
  flex-direction: column;
  text-align: center;
  background: rgba(34, 184, 168, 0.06);
  border: 1px solid rgba(34, 184, 168, 0.25);
  border-radius: var(--radius-xl);
}

.form-alert--success .icon {
  color: var(--turquoise-500);
  width: 3rem;
  height: 3rem;
}

.form-alert--success h3 {
  margin-top: 1rem;
}

.form-alert--success p {
  margin-top: 0.5rem;
  max-width: 24rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info-card {
  background: #fff;
  border: 1px solid rgba(10, 18, 38, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.contact-info-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-list .icon-tile--soft {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
}

.contact-info-list .icon-tile--soft .icon {
  width: 1rem;
  height: 1rem;
}

.contact-info-list a:hover {
  color: var(--electric-600);
}

.contact-info-list .contact-sub {
  color: var(--navy-700);
  font-style: italic;
}

.contact-notice-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-notice-title + p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.3fr;
  }
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-card {
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .contact-form-card {
    padding: 2.5rem;
  }
}

.contact-form-card h2 {
  font-size: 1.15rem;
}

.plain-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.plain-fieldset legend {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* 12. Page-specific sections                                              */
/* ---------------------------------------------------------------------- */

/* Hero */

.hero {
  padding-block: 4rem 6rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 5rem 8rem;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  margin-top: 1.5rem;
  max-width: 34rem;
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 34rem;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-stats {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hero-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.hero-stats dd {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

/* Local focus grid */

.local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .local-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.local-cities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.local-city-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  background: var(--mist-50);
  padding: 1.4rem 1rem;
  text-align: center;
}

.local-city-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-950);
}

.local-city-card span {
  font-size: 0.75rem;
  color: var(--navy-700);
}

/* AI section */

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-card {
  padding: 1.5rem;
}

.ai-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.ai-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Final CTA */

.final-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950) 60%);
}

.final-cta .container {
  position: relative;
  text-align: center;
}

.final-cta h2 {
  max-width: 34rem;
  margin-inline: auto;
}

.final-cta p {
  margin-top: 1.25rem;
  max-width: 30rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: #cbd5e1;
}

.final-cta .btn {
  margin-top: 2.5rem;
}

/* Breadcrumb */

.breadcrumb {
  font-size: 0.8rem;
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: #cbd5e1;
}

/* Service detail page */

.service-hero-icon {
  margin-top: 1.5rem;
}

.service-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .service-body-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.deliverables-box {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  background: var(--mist-50);
  padding: 1.75rem;
  align-self: start;
}

.deliverables-box h2 {
  font-size: 1.15rem;
}

.related-service-card {
  display: block;
  padding: 1.5rem;
}

.related-service-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.related-service-card .service-card-link {
  margin-top: 0.75rem;
}

.deliverables-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.deliverables-list .icon-tile--soft {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-full);
  margin-top: 0.1rem;
}

.deliverables-list .icon-tile--soft .icon {
  width: 0.8125rem;
  height: 0.8125rem;
}

/* Our Approach detail page */

.approach-detail-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  background: var(--mist-50);
}

@media (min-width: 1024px) {
  .approach-detail-step {
    grid-template-columns: auto 1fr;
    padding: 2.5rem;
  }
}

.approach-detail-step + .approach-detail-step {
  margin-top: 2rem;
}

.approach-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.approach-detail-meta .approach-number {
  color: var(--electric-600);
}

@media (min-width: 1024px) {
  .approach-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.approach-detail-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.approach-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--navy-700);
}

.approach-detail-list li::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--electric-500);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* About page */

.about-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr auto;
  }
}

.about-photo-placeholder {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-inline: auto;
}

.about-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .about-photo-placeholder {
    width: 18rem;
    height: 18rem;
  }
}

.about-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .about-body-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-value-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 18, 38, 0.08);
  background: var(--mist-50);
  padding: 1.5rem;
}

.about-value-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.about-value-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-700);
  line-height: 1.6;
}

/* Legal pages */

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--navy-900);
}

.legal-content p {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: var(--navy-700);
}

.legal-content ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-top: 0.4rem;
  line-height: 1.7;
  color: var(--navy-700);
}

.legal-content a {
  color: var(--electric-600);
}

.legal-date {
  font-size: 0.85rem;
  color: var(--navy-700);
}

.legal-notice {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(217, 158, 20, 0.35);
  background: #fdf6e3;
  color: #7a5b0a;
  padding: 1.1rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 404 */

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.not-found .container {
  position: relative;
  text-align: center;
}

.not-found .lede {
  max-width: 32rem;
}

.not-found-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .not-found-actions {
    flex-direction: row;
  }
}

/* Trust / positioning section */

.trust-grid {
  margin-top: 4rem;
}

.trust-card {
  text-align: center;
}

.trust-card .icon-tile {
  margin-inline: auto;
}

.trust-card h3 {
  margin-top: 1.25rem;
}

.trust-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-700);
  line-height: 1.6;
}

/* Utility spacing */

.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 4rem; }

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 30rem; }
.max-w-lg { max-width: 34rem; }
.max-w-xl { max-width: 40rem; }

.grid--1col {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* 13. Scroll-reveal animation                                             */
/* ---------------------------------------------------------------------- */

/* Elements start hidden/offset, then animate in once JS marks them
   .is-visible (via IntersectionObserver in main.js). If JS never runs for
   any reason, the no-js fallback below keeps everything visible. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealed group — each direct child gets a small
   additional delay so grids/lists cascade in rather than popping at once.
   The group itself is observed too (see main.js) so this actually fires. */
.reveal-group.is-visible > * {
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

/* Sticky header gains a shadow + slightly more opaque background once the
   page has scrolled, a small cue that separates it from the content behind. */
.site-header {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 11, 24, 0.95);
  box-shadow: 0 8px 24px rgba(10, 18, 38, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------- */
/* 14. Glossary term popups                                                */
/* ---------------------------------------------------------------------- */

.glossary-term {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--electric-600);
  text-decoration: underline;
  text-decoration-color: rgba(52, 104, 224, 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
}

.glossary-term:hover,
.glossary-term:focus-visible {
  text-decoration-color: currentColor;
}

.glossary-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.glossary-modal.is-open {
  display: flex;
}

.glossary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(2px);
}

.glossary-modal__panel {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: rgba(15, 27, 52, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.75rem;
  color: #fff;
}

.glossary-modal__panel h3 {
  color: var(--turquoise-300);
  padding-right: 2rem;
  margin-bottom: 0.75rem;
}

.glossary-modal__panel p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.glossary-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.glossary-modal__close:hover,
.glossary-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Cookie consent banner + preferences modal */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  padding: 1rem;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__panel {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  background: rgba(15, 27, 52, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
}

@media (min-width: 768px) {
  .cookie-banner__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-banner__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
  color: var(--turquoise-300);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-banner .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(2px);
}

.cookie-modal__panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(15, 27, 52, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.75rem;
  color: #fff;
}

.cookie-modal__panel h3 {
  color: var(--turquoise-300);
  padding-right: 2rem;
  margin-bottom: 0.5rem;
}

.cookie-modal__intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-modal__intro a {
  color: var(--turquoise-300);
}

.cookie-modal__category {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 0.9rem;
}

.cookie-modal__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__category-head label {
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-modal__category input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--turquoise-400);
}

.cookie-modal__category p {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.cookie-modal__actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-modal .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-modal .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cookie-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
