/* ============================================================
   ZLB Digital — marketing site styles
   Clean daylight theme: white base, blue accents throughout,
   with a small dark "screen" for the city-network map.
   ============================================================ */

:root {
  --bg-base: #FFFFFF;
  --bg-surface: #F3F7FC;

  --accent-blue-deep: #0B3C91;
  --accent-blue: #2A5FF0;
  --accent-blue-bright: #5B93FF;

  --text-primary: #0B1F3A;
  --text-muted: #56708C;
  --border-subtle: #D7E4F3;
  --text-on-accent: #FFFFFF;

  /* Dedicated dark background for the city-map "screen" element only. */
  --map-bg: #0F1E30;

  --grad-primary: linear-gradient(115deg, #123FAE 0%, #2A5FF0 50%, #5B93FF 100%);
  --grad-warm: linear-gradient(115deg, #0B3C91 0%, #2A5FF0 100%);
  --grad-heading: linear-gradient(92deg, #0B1F3A 0%, #1D4ED8 100%);
  --grad-divider: linear-gradient(
    90deg,
    transparent,
    rgba(42, 95, 240, 0.35),
    rgba(11, 60, 145, 0.22),
    transparent
  );

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg-base);
  background-image: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    #EAF2FD 0%,
    #FFFFFF 60%
  );
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over the whole page for texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gradient-text {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Focus + skip link ---------- */

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent-blue);
  color: var(--text-on-accent);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
  z-index: 100;
}

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

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-image: var(--grad-primary);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--text-on-accent);
  box-shadow: 0 12px 34px -10px rgba(42, 95, 240, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background-position 0.5s var(--ease);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 18px 44px -10px rgba(42, 95, 240, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue-deep);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-mark {
  width: 26px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(42, 95, 240, 0.35));
}

.site-nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background-image: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 0.72rem 1.2rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 780px);
  padding-block: clamp(3.5rem, 10vw, 6rem) clamp(3rem, 7vw, 4.5rem);
}

.hero__bg {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.blob-sky {
  width: 52vw;
  height: 52vw;
  top: -16vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(91, 147, 255, 0.55), transparent 66%);
  opacity: 0.8;
  animation: drift1 24s ease-in-out infinite alternate;
}

.blob-azure {
  width: 46vw;
  height: 46vw;
  top: -6vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(42, 95, 240, 0.45), transparent 66%);
  opacity: 0.7;
  animation: drift2 30s ease-in-out infinite alternate;
}

.blob-navy {
  width: 34vw;
  height: 34vw;
  bottom: -8vw;
  left: 22vw;
  background: radial-gradient(circle, rgba(11, 60, 145, 0.4), transparent 66%);
  opacity: 0.55;
  animation: drift3 26s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 31, 58, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 45%, #000 20%, transparent 75%);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.35) 60%,
    rgba(255, 255, 255, 0.92) 100%
  );
}

.hero-inner {
  max-width: 900px;
}

.hero-inner h1 {
  font-size: clamp(2.55rem, 7vw, 5rem);
  letter-spacing: -0.038em;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  color: var(--text-muted);
  max-width: 56ch;
}

.accent-phrase {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-services {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-services li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-services svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Section scaffold ---------- */

.services,
.service-area,
.faq,
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 11vw, 8rem);
  border-top: 1px solid transparent;
  border-image: var(--grad-divider) 1;
}

.services::before,
.service-area::before,
.faq::before,
.contact::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.services::before {
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
  top: -180px;
  right: -160px;
}

.service-area::before {
  background: radial-gradient(circle, var(--accent-blue-deep), transparent 70%);
  bottom: -200px;
  left: -180px;
  opacity: 0.14;
}

.faq::before {
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
  bottom: -200px;
  right: -160px;
  opacity: 0.1;
}

.contact::before {
  background: radial-gradient(circle, var(--accent-blue-bright), transparent 70%);
  top: -160px;
  left: 15%;
  opacity: 0.14;
}

.section-head {
  position: relative;
  max-width: 48ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Services cards ---------- */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card-grid > li {
  display: flex;
}

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 2.25rem 1.9rem;
  border-radius: 20px;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(
        150deg,
        rgba(42, 95, 240, 0.35),
        rgba(91, 147, 255, 0.16) 45%,
        rgba(11, 60, 145, 0.22)
      )
      border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 24px 50px -34px rgba(11, 36, 64, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  outline-offset: 4px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--cx, 50%) var(--cy, 0%),
    rgba(42, 95, 240, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service-card:hover,
.service-card:focus-visible {
  transform: scale(1.04) translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 34px 64px -30px rgba(42, 95, 240, 0.3);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-num {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.16;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-image: var(--grad-primary);
  color: var(--text-on-accent);
  box-shadow: 0 10px 24px -10px rgba(42, 95, 240, 0.5);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Service area / map ---------- */

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 5rem);
  align-items: center;
}

.area-copy h2 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
}

.area-copy > p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.area-list {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.area-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-image: var(--grad-primary);
  box-shadow: 0 0 10px rgba(42, 95, 240, 0.55);
}

.map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.map-orb {
  position: relative;
  padding: 16px;
  border-radius: 50%;
}

.map-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    var(--accent-blue),
    var(--accent-blue-bright),
    var(--accent-blue-deep),
    var(--accent-blue)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
  animation: spin 20s linear infinite;
}

.map-frame {
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 40px 90px -40px rgba(11, 36, 64, 0.35),
    0 0 80px -26px rgba(42, 95, 240, 0.4);
}

.city-map {
  display: block;
  width: 100%;
  height: 100%;
}

.map-node {
  fill: var(--accent-blue-bright);
  cursor: pointer;
  transition: r 0.18s var(--ease), fill 0.18s var(--ease);
}

.map-node-hit {
  fill: transparent;
  cursor: pointer;
}

.map-node.is-active {
  r: 7;
  fill: #FFFFFF;
}

.map-label {
  fill: #93A6BC;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--map-bg);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill 0.16s var(--ease);
}

.map-label.is-bright {
  fill: #EDF4FA;
}

.map-node-group:focus-visible {
  outline: none;
}

.map-node-group:focus-visible .map-node {
  r: 7;
  fill: #FFFFFF;
}

.map-node-group:focus-visible .map-label {
  fill: #EDF4FA;
}

.map-caption {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  position: relative;
  display: grid;
  gap: 0.9rem;
  max-width: 780px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1.3rem 1.6rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(42, 95, 240, 0.35);
  box-shadow: 0 20px 40px -30px rgba(11, 36, 64, 0.3);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-blue);
  transition: transform 0.24s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 62ch;
}

/* ---------- Contact ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 5rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.contact-copy p {
  margin-top: 1.2rem;
  color: var(--text-muted);
  max-width: 44ch;
  font-size: 1.05rem;
}

.contact-cta {
  margin-top: 2rem;
}

.contact-form {
  position: relative;
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.1rem;
  border: 1px solid transparent;
  background: linear-gradient(
        160deg,
        rgba(243, 247, 252, 0.92),
        rgba(232, 240, 250, 0.75)
      )
      padding-box,
    linear-gradient(150deg, rgba(42, 95, 240, 0.35), rgba(91, 147, 255, 0.18))
      border-box;
  backdrop-filter: blur(12px);
  box-shadow: 0 50px 90px -50px rgba(11, 36, 64, 0.35);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  resize: vertical;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(42, 95, 240, 0.18);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.3rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid transparent;
  border-image: var(--grad-divider) 1;
  padding-block: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.footer-nav {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

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

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.footer-social a:hover {
  color: var(--accent-blue-deep);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.6rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-group.in > * {
  opacity: 1;
  transform: none;
}

.reveal-group.in > *:nth-child(2) {
  transition-delay: 0.09s;
}

.reveal-group.in > *:nth-child(3) {
  transition-delay: 0.18s;
}

.reveal-group.in > *:nth-child(4) {
  transition-delay: 0.27s;
}

/* ---------- Keyframes ---------- */

@keyframes drift1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, 4vw, 0) scale(1.18);
  }
}

@keyframes drift2 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5vw, 6vw, 0) scale(1.12);
  }
}

@keyframes drift3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, -5vw, 0) scale(1.22);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-inner h1 {
    max-width: 100%;
  }

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

  .area-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 0.75rem;
    min-height: 64px;
  }

  .wordmark {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .wordmark-mark {
    width: 22px;
  }

  .header-cta {
    margin-left: auto;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .map-frame {
    width: min(400px, 88vw);
  }

  .map-label {
    font-size: 12px;
  }

  .aurora-blob {
    filter: blur(60px);
  }
}

/* ---------- Reduced motion ---------- */

@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;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
