/* ==========================================================================
   Ember & Echo Multimedia -- design system
   Grey-blue, modern, clean, professional.
   Styles every class emitted by scripts/generate_site.py, site-wide.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand blues */
  --blue-900: #10233d;
  --blue-800: #163257;
  --blue-700: #1d4373;
  --blue-600: #275a94;
  --blue-500: #3b73b3;
  --blue-400: #6493c4; 
  --blue-300: #96b8d9;
  --blue-200: #c4d8ea;
  --blue-100: #e6eff8;
  --blue-50:  #f3f7fc;

  /* Blue-tinted greys (slate) */
  --grey-900: #131a24;
  --grey-800: #1f2a37;
  --grey-700: #33404f;
  --grey-600: #4b5a6b;
  --grey-500: #66798c;
  --grey-400: #8b9aab;
  --grey-300: #b6c1cc;
  --grey-200: #dbe2e8;
  --grey-100: #eef2f5;
  --grey-50:  #f7f9fb;

  /* Semantic surface tokens (light theme) */
  --bg: #ffffff;
  --bg-subtle: var(--grey-50);
  --bg-muted: var(--grey-100);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --grid-bg: var(--blue-100);
  --border: var(--grey-200);
  --border-strong: var(--grey-300);

  --text: var(--grey-900);
  --text-muted: var(--grey-600);
  --text-faint: var(--grey-500);

  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: var(--blue-100);
  --accent-strong: var(--blue-800);
  --on-accent: #ffffff;
  --focus-ring: var(--blue-400);

  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --sticky-cta-height: 4.25rem;

  --shadow-sm: 0 1px 2px rgba(19, 26, 36, 0.06);
  --shadow-md: 0 12px 28px rgba(19, 26, 36, 0.08);
  --shadow-lg: 0 24px 56px rgba(19, 26, 36, 0.14);

  --container: 78rem;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --bg-subtle: #111a28;
    --bg-muted: #16212f;
    --surface: #131d2b;
    --surface-raised: #172232;
    --border: #263548;
    --border-strong: #33455c;

    --text: #eef2f6;
    --text-muted: #a9b8c9;
    --text-faint: #8194a8;

    --accent: var(--blue-400);
    --accent-hover: var(--blue-300);
    --accent-soft: rgba(100, 147, 196, 0.16);
    --accent-strong: var(--blue-200);
    --on-accent: #0d1420;
    --focus-ring: var(--blue-300);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

/* Any element given an explicit `display` elsewhere in this file (grid, flex,
   etc.) would otherwise outrank the UA stylesheet's [hidden] { display: none }
   at equal specificity. Without this, toggling the `hidden` attribute via JS
   silently does nothing on components like .form-success or .quote-form. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  padding-bottom: var(--sticky-cta-height);
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

::-webkit-scrollbar {
  width: 0.7rem;
  height: 0.7rem;
}

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg-subtle);
  border-radius: var(--radius-pill);
  background: var(--grey-300);
}

h1,
h2,
h3,
h4,
p {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 48rem) {
  h1 {
    max-width: 22ch;
  }
}

h1 span {
  color: var(--accent);
}

h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  max-width: 62ch;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.65;
}

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

address {
  font-style: normal;
}

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

/* --------------------------------------------------------------------------
   3. Layout shells
   -------------------------------------------------------------------------- */

.home-page,
.location-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.location-page {
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   4. Header & nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(13, 20, 32, 0.86);
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--text);
}

/* Mobile-first: small, fixed-height icon box that can never overflow the
   header. object-fit: contain means the SVG scales down/up cleanly and is
   never cropped or stretched, at any viewport width. */
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 1.9rem;
  max-width: 2.4rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.logo-mark img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 48rem) {
  .logo-mark {
    height: 2.35rem;
    max-width: 2.8rem;
  }
}

nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

nav[aria-label="Primary"] a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.button.is-loading::after {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: button-spin 700ms linear infinite;
}

.button-secondary.is-loading::after {
  border-color: rgba(39, 90, 148, 0.35);
  border-top-color: var(--accent);
}

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

@media (min-width: 48rem) {
  .button {
    width: auto;
  }
}

.button-primary {
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  color: var(--on-accent);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-button {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--text-faint);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Hero (home page)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  padding: 2.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-800), var(--blue-600) 45%, var(--blue-500), var(--blue-700));
  background-size: 200% 200%;
  animation: hero-gradient-shift 12s ease infinite;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    28rem circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.16),
    transparent 65%
  );
  content: "";
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  animation: hero-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero h1 {
  color: #fff;
}

.hero h1 span {
  color: var(--blue-100);
}

.hero .hero-text {
  color: var(--blue-100);
}

.hero .button-primary {
  background: #fff;
  color: var(--accent-strong);
}

.hero .button-primary:hover {
  background: var(--blue-100);
  color: var(--accent-strong);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 42rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.media-stage {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 13rem 6rem 6rem;
  gap: 0.85rem;
}

@media (min-width: 48rem) {
  .media-stage {
    grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.6fr);
    grid-template-rows: minmax(11rem, 1fr) minmax(7rem, 0.55fr);
    min-height: 20rem;
  }
}

/* Short/landscape phones -- the two-column layout that would put the
   decorative media-stage beside the copy instead of below it doesn't kick
   in until 48rem/64rem wide, so a landscape phone (e.g. ~52rem wide but
   only ~24rem tall) still stacks copy + media-stage vertically, growing
   well past the viewport and getting covered by the sticky CTA bar. Drop
   the purely decorative media-stage and tighten the copy on short
   viewports rather than trying to force a cramped two-column layout. */
@media (max-height: 32rem) {
  .hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .media-stage {
    display: none;
  }
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.frame-video {
  background:
    linear-gradient(145deg, var(--blue-700), var(--blue-900));
}

@media (min-width: 48rem) {
  .frame-video {
    grid-row: span 2;
  }
}

.status-dot {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.play-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 1.6rem solid transparent;
  border-bottom: 1.6rem solid transparent;
  border-left: 2.4rem solid #fff;
  transform: translate(-35%, -50%);
  opacity: 0.92;
}

.frame-audio {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 1rem;
  background: var(--bg-muted);
}

.frame-audio span {
  width: 100%;
  border-radius: var(--radius-sm);
  background: var(--blue-400);
}

.frame-audio span:nth-child(1) { height: 32%; }
.frame-audio span:nth-child(2) { height: 68%; }
.frame-audio span:nth-child(3) { height: 46%; }
.frame-audio span:nth-child(4) { height: 90%; }
.frame-audio span:nth-child(5) { height: 56%; }

.frame-social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: var(--surface);
}

.frame-social strong {
  color: var(--accent-strong);
  font-size: 2.4rem;
  line-height: 1;
}

.frame-social span {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. Intro strip
   -------------------------------------------------------------------------- */

.intro-strip {
  display: grid;
  gap: 0;
  margin: 0 0 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-strip p {
  max-width: none;
  margin: 0;
  padding: 1rem 0;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   9. Section shells (shared padding + headings)
   -------------------------------------------------------------------------- */

.section-block,
.development-section,
.advantage-section,
.include-section,
.package-section,
.work-section,
.industry-section,
.locations-preview,
.expert-section,
.belief-section,
.quote-section,
.contact-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.centered-heading {
  justify-items: center;
  text-align: center;
}

.centered-heading p {
  max-width: 42rem;
}

/* --------------------------------------------------------------------------
   9b. Color-block sections -- brand color used as full section backgrounds,
   not just accents, alternating with white sections for rhythm down the page.
   -------------------------------------------------------------------------- */

.development-section,
.locations-preview {
  padding: 3rem 1.5rem;
  border-top: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-800), var(--blue-600) 70%, var(--blue-500));
}

.development-section .section-heading h2,
.locations-preview .section-heading h2 {
  color: #fff;
}

.development-section .section-heading p,
.locations-preview .section-heading p {
  color: var(--blue-100);
}

.development-section .button-secondary,
.locations-preview .button-secondary {
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   10. Card grids (services / development / include / industries)
   -------------------------------------------------------------------------- */

.service-grid,
.development-grid,
.work-grid,
.include-grid,
.package-grid,
.industry-grid,
.location-card-grid {
  display: grid;
  gap: 1.1rem;
}

.service-grid article,
.industry-grid article,
.location-card-grid article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-grid article:hover,
.industry-grid article:hover,
.location-card-grid article:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: scale(1.015);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.02rem;
}

.service-grid p,
.work-item p,
.industry-grid p,
.location-card-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.development-grid article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-50), var(--surface) 55%);
}

.development-grid span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.development-grid h3 {
  margin-bottom: 0.4rem;
}

.development-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   11. Advantage / metrics
   -------------------------------------------------------------------------- */

.advantage-section {
  display: grid;
  gap: 2rem;
}

.advantage-copy p {
  font-size: 1.05rem;
}

.metrics-grid {
  display: grid;
  gap: 1rem;
}

.metrics-grid article {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-strong);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.metrics-grid span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   12. Include grid
   -------------------------------------------------------------------------- */

.include-grid article {
  display: grid;
  min-height: 9rem;
  align-content: start;
  gap: 0.3rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
}

.include-grid span {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.include-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   13. Pricing packages
   -------------------------------------------------------------------------- */

.package-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--pk-border);
  border-radius: var(--radius-lg);
  background: var(--pk-bg);
  box-shadow: var(--shadow-md);
  color: var(--pk-text);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.package-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

/* Tier palettes: baby blue -> grey blue -> dark blue. Every colour a card uses
   comes from these variables, so the three cards can only differ by palette. */
.tier-foundation {
  --pk-bg: linear-gradient(165deg, #e3f0fb, #cfe3f5);
  --pk-border: #aac7e2;
  --pk-text: #10233d;
  --pk-muted: #2b4666;
  --pk-accent: #275a94;
  --pk-line: rgba(16, 35, 61, 0.16);
  --pk-btn-bg: #163257;
  --pk-btn-text: #ffffff;
  --pk-btn-hover: #10233d;
}

.tier-growth {
  --pk-bg: linear-gradient(165deg, #adbfd1, #96abc1);
  --pk-border: #7b93ae;
  --pk-text: #0f2036;
  --pk-muted: #182f49;
  --pk-accent: #10233d;
  --pk-line: rgba(15, 32, 54, 0.22);
  --pk-btn-bg: #163257;
  --pk-btn-text: #ffffff;
  --pk-btn-hover: #10233d;
}

.tier-authority {
  --pk-bg: linear-gradient(160deg, #163257, #10233d);
  --pk-border: #163257;
  --pk-text: #ffffff;
  --pk-muted: #dbe7f3;
  --pk-accent: #96b8d9;
  --pk-line: rgba(255, 255, 255, 0.18);
  --pk-btn-bg: #ffffff;
  --pk-btn-text: #163257;
  --pk-btn-hover: #e6eff8;
}

/* Type: the name matches the h3 used by the timeline cards above, the label
   matches their step label, and all body copy shares one size and line height. */
.package-tier-label {
  color: var(--pk-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.package-card h3 {
  margin: 0;
  color: var(--pk-text);
}

.package-card p {
  margin: 0;
  color: var(--pk-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 48rem) {
  .package-card .package-tagline {
    min-height: calc(3 * 1.55em);
  }
}

.package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: var(--pk-text);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.package-price span {
  color: var(--pk-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.package-card p.package-term {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pk-line);
  font-size: 0.82rem;
  font-weight: 700;
}

.package-card ul {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.package-card li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--pk-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.package-card li::before {
  position: absolute;
  left: 0;
  color: var(--pk-accent);
  content: "\2713";
  font-weight: 800;
}

.package-card .button {
  margin-top: auto;
  border-color: var(--pk-btn-bg);
  background: var(--pk-btn-bg);
  color: var(--pk-btn-text);
}

.package-card .button:hover {
  border-color: var(--pk-btn-hover);
  background: var(--pk-btn-hover);
}

.featured-package {
  position: relative;
}

.featured-package::before {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #163257;
  color: #ffffff;
  content: "Recommended";
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.work-item {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.015);
}

/* The timeline cards above the packages share the same gap and body type. */
.package-section .development-grid {
  margin-bottom: 1.1rem;
}

.package-section .development-grid p {
  line-height: 1.55;
}

.package-note {
  max-width: none;
  margin-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   13b. One-time services flip card (home page). A real toggle button, not a
   hover: hover-triggered flips shimmer when the card turns out from under the
   pointer. Without JS both faces simply stack; with reduced motion the faces
   swap instantly instead of turning.
   -------------------------------------------------------------------------- */

.flip-card-inner {
  display: grid;
  gap: 1.1rem;
}

.flip-face {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--pk-border);
  border-radius: var(--radius-lg);
  background: var(--pk-bg);
  box-shadow: var(--shadow-md);
  color: var(--pk-text);
}

.flip-front {
  --pk-bg: linear-gradient(165deg, #e3f0fb, #cfe3f5);
  --pk-border: #aac7e2;
  --pk-text: #10233d;
  --pk-muted: #2b4666;
  --pk-accent: #275a94;
  --pk-line: rgba(16, 35, 61, 0.16);
}

.flip-back {
  --pk-bg: linear-gradient(160deg, #163257, #10233d);
  --pk-border: #163257;
  --pk-text: #ffffff;
  --pk-muted: #dbe7f3;
  --pk-accent: #96b8d9;
  --pk-line: rgba(255, 255, 255, 0.18);
}

.flip-eyebrow {
  color: var(--pk-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flip-face h3 {
  margin: 0;
  color: var(--pk-text);
}

.flip-columns {
  display: grid;
  gap: 1.5rem;
}

.flip-columns h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--pk-line);
}

.flip-face ul,
.flip-face ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.flip-face li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--pk-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.flip-face ul li::before {
  position: absolute;
  left: 0;
  color: var(--pk-accent);
  content: "\2713";
  font-weight: 800;
}

.flip-steps {
  counter-reset: flip-step;
  list-style: none;
}

.flip-steps li::before {
  position: absolute;
  left: 0;
  color: var(--pk-accent);
  content: counter(flip-step) ".";
  counter-increment: flip-step;
  font-weight: 800;
}

.flip-steps strong {
  color: var(--pk-text);
}

.flip-face p.flip-note {
  max-width: none;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--pk-line);
  color: var(--pk-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.flip-note strong {
  color: var(--pk-text);
}

.flip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.flip-face .button {
  border-color: #163257;
  background: #163257;
  color: #ffffff;
}

.flip-face .button:hover {
  border-color: #10233d;
  background: #10233d;
}

.flip-back .button {
  border-color: #ffffff;
  background: #ffffff;
  color: #163257;
}

.flip-back .button:hover {
  border-color: #e6eff8;
  background: #e6eff8;
}

.flip-back .button.button-outline {
  background: transparent;
  color: #ffffff;
}

.flip-back .button.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.flip-toggle {
  display: none;
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 40rem) {
  .flip-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* JS on: stack both faces in one grid cell and turn the card in 3D */
.js-flip .flip-toggle {
  display: inline-flex;
}

.js-flip .flip-card {
  perspective: 1800px;
}

.js-flip .flip-card-inner {
  position: relative;
  gap: 0;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.4, 0.2, 0.2, 1);
}

.js-flip .flip-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: visibility 0s linear 350ms;
}

.js-flip .flip-back {
  transform: rotateY(180deg);
  visibility: hidden;
}

.js-flip .flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.js-flip .flip-card.is-flipped .flip-front {
  visibility: hidden;
}

.js-flip .flip-card.is-flipped .flip-back {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .js-flip .flip-card-inner,
  .js-flip .flip-face {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   14. Work / portfolio grid
   -------------------------------------------------------------------------- */

.work-item {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grid-bg);
  box-shadow: var(--shadow-sm);
}

.work-item h3 {
  margin-bottom: 0.3rem;
}

.work-item::before {
  display: block;
  min-height: 9rem;
  margin: -1.1rem -1.1rem 1.1rem;
  content: "";
}

.work-item.launch::before {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
}

.work-item.audio::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 0.4rem, transparent 0.4rem 0.9rem),
    linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.work-item.event::before {
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.5) 0 10%, transparent 11%),
    linear-gradient(135deg, var(--grey-700), var(--blue-800));
}

/* --------------------------------------------------------------------------
   15. Industries
   -------------------------------------------------------------------------- */

.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.industry-tabs span {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.industry-tabs span:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   16. Locations preview & link grids (also used for every interior hub list)
   -------------------------------------------------------------------------- */

.location-link-grid {
  display: grid;
  gap: 0.65rem;
}

.location-link-grid a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--grid-bg);
  color: var(--text);
  font-weight: 600;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.location-link-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.city-market-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-market-links a {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--grid-bg);
  color: var(--text);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. Interior page hero (location-page / location-hero / location-section)
   -------------------------------------------------------------------------- */

.location-hero {
  padding: 2.5rem 0 2rem;
}

.location-hero p {
  font-size: 1.05rem;
}

/* Blog section (index / category / post) -- same brand color-block treatment
   used on the homepage hero, contained within the page rather than full-bleed. */
.location-hero.gradient-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-800), var(--blue-600) 45%, var(--blue-500), var(--blue-700));
  background-size: 200% 200%;
  animation: hero-gradient-shift 12s ease infinite;
}

@keyframes hero-gradient-shift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Cursor-glow spotlight -- position driven by --mx/--my custom properties,
   set from JS on pointer devices only (see main.js). Static/no-op otherwise. */
.location-hero.gradient-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    28rem circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.16),
    transparent 65%
  );
  content: "";
  pointer-events: none;
}

.location-hero.gradient-hero > * {
  position: relative;
  z-index: 1;
}

.location-hero > div {
  animation: hero-enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-hero h1 {
  color: #fff;
}

.gradient-hero p {
  color: var(--blue-100);
}

.gradient-hero .breadcrumbs a {
  color: var(--blue-100);
}

.gradient-hero .breadcrumbs a:hover {
  color: #fff;
}

.gradient-hero .breadcrumbs span[aria-current="page"] {
  color: #fff;
}

.gradient-hero .metrics-grid {
  margin-top: 1.75rem;
}

.gradient-hero .metrics-grid article {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.gradient-hero .metrics-grid strong {
  color: #fff;
}

.gradient-hero .metrics-grid span {
  color: var(--blue-100);
}

@media (min-width: 48rem) {
  .location-hero.gradient-hero {
    padding: 3.5rem 3rem;
  }
}

/* Same short/landscape-phone fix as the homepage .hero -- see the comment
   next to .hero's version of this rule. */
@media (max-height: 32rem) {
  .location-hero.gradient-hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .gradient-hero h1 {
    font-size: 1.85rem;
  }

  .gradient-hero .metrics-grid {
    display: none;
  }
}

.location-section {
  padding: 1rem 0 3rem;
}

/* --------------------------------------------------------------------------
   18. Expert list
   -------------------------------------------------------------------------- */

.expert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.expert-list span {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--grid-bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   19. Belief statement
   -------------------------------------------------------------------------- */

.belief-section {
  display: grid;
  justify-items: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-800), var(--blue-600));
  text-align: center;
}

.belief-section h2 {
  max-width: 22ch;
  color: #fff;
}

.belief-section .button-primary {
  background: #fff;
  color: var(--accent-strong);
}

.belief-section .button-primary:hover {
  background: var(--blue-100);
}

/* --------------------------------------------------------------------------
   20. Quote form & contact
   -------------------------------------------------------------------------- */

.quote-section {
  display: grid;
  gap: 2rem;
}

.quote-copy p {
  font-size: 1.05rem;
}

.quote-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}

.quote-form fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quote-form legend {
  padding: 0 0.4rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.quote-form label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}

.quote-form input[type="radio"] {
  width: auto;
  margin-right: 0.4rem;
  accent-color: var(--accent);
}

.quote-form input:not([type="radio"]),
.quote-form textarea,
.quote-form select {
  padding: 0.8rem 0.95rem;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: var(--text-faint);
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  border-color: var(--accent);
}

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

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label,
.quote-form > label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.required {
  margin-left: 0.15rem;
  color: var(--accent);
}

.field-error {
  display: none;
  color: #c0362c;
  font-size: 0.82rem;
  font-weight: 600;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea,
.form-field.is-invalid select {
  border-color: #c0362c;
  animation: field-shake 260ms ease;
}

.form-field.is-invalid .field-error {
  display: block;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-0.3rem); }
  75% { transform: translateX(0.3rem); }
}

.char-counter {
  justify-self: end;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.form-success {
  display: grid;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  text-align: center;
}

/* Honeypot -- present in the DOM and in tab order removed, but positioned
   off-screen (not display:none) since some bots skip fields hidden that way. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cf-turnstile {
  margin-top: 0.25rem;
}

.form-top-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(192, 54, 44, 0.1);
  color: #c0362c;
  font-size: 0.88rem;
  font-weight: 600;
}

.nap-block {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.8;
}

.form-success h3 {
  color: var(--accent-strong);
}

.contact-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.contact-section p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   20b. Contact methods
   -------------------------------------------------------------------------- */

.contact-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.contact-method-grid article {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
  box-shadow: var(--shadow-sm);
}

.contact-method-grid span:first-child {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-method-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.25rem;
}

.contact-method-grid strong a {
  color: var(--accent-strong);
}

.contact-method-grid strong a:hover {
  color: var(--accent);
}

.contact-method-grid p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   20c. FAQ accordion
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--grid-bg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}

.faq-icon::before {
  width: 0.9rem;
  height: 0.15rem;
}

.faq-icon::after {
  width: 0.15rem;
  height: 0.9rem;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 1.25rem;
  transition: grid-template-rows 220ms ease, padding 220ms ease;
}

.faq-answer > p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  padding: 0 1.25rem 1.1rem;
}

/* --------------------------------------------------------------------------
   20d. Scroll reveal
   -------------------------------------------------------------------------- */

/* Hidden-until-scrolled only applies once main.js confirms it's running (see
   the js-reveal class it adds). Without that class -- JS blocked, erroring,
   or disabled -- .reveal content stays visible by default, never trapped
   invisible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

/* Staggered children -- same progressive-enhancement gate as .reveal, but
   fades in each direct child in sequence rather than the block as a whole. */
.js-reveal .stagger > * {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js-reveal .stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }
.stagger > *:nth-child(7) { transition-delay: 360ms; }
.stagger > *:nth-child(8) { transition-delay: 420ms; }
.stagger > *:nth-child(9) { transition-delay: 480ms; }
.stagger > *:nth-child(10) { transition-delay: 540ms; }
.stagger > *:nth-child(n + 11) { transition-delay: 600ms; }

/* --------------------------------------------------------------------------
   20e. Copy-to-clipboard toast
   -------------------------------------------------------------------------- */

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 60;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--grey-900);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  /* The footer columns start 1.5rem off to the side and slide in on scroll
     (see .footer-col--left/right below). Without this clip that starting
     offset made every page scroll sideways on a phone. `clip` (unlike
     `hidden`) doesn't create a scroll container, so sticky elements still work. */
  overflow-x: clip;
  max-width: none;
  margin-top: 2rem;
  background: linear-gradient(165deg, var(--blue-900), var(--grey-900) 75%);
  color: var(--blue-100);
}

.footer-cta {
  display: grid;
  gap: 1.25rem;
  padding: 2.75rem 1.25rem;
  border-bottom: 1px solid rgba(230, 239, 248, 0.14);
}

.footer-cta h2 {
  margin-bottom: 0.4rem;
  color: #fff;
}

.footer-cta p {
  max-width: 34rem;
  color: var(--blue-200);
}

.footer-cta .button-primary {
  width: auto;
  justify-self: start;
}

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

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.footer-col-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 30rem) {
  .footer-col-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 40rem) {
  .footer-col-links {
    position: relative;
    padding-left: 3rem;
  }

  .footer-col-links::before {
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--blue-400), transparent);
    animation: footer-divider-pulse 3.2s ease-in-out infinite;
    content: "";
  }
}

@keyframes footer-divider-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
}

/* Directional reveal -- overrides the default .reveal translateY with a
   slide from the outer edge, left column from the left, right from the
   right, so the two halves settle in from opposite directions. */
.js-reveal .footer-col--left.reveal {
  transform: translateX(-1.5rem);
}

.js-reveal .footer-col--right.reveal {
  transform: translateX(1.5rem);
}

.js-reveal .footer-col--left.reveal.is-visible,
.js-reveal .footer-col--right.reveal.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .footer-col-links::before {
    animation: none;
    opacity: 0.6;
  }
}

.footer-brand .site-logo,
.footer-col-brand .site-logo {
  color: #fff;
}

.footer-brand .site-logo:hover,
.footer-col-brand .site-logo:hover {
  color: #fff;
}

.footer-brand p,
.footer-col-brand p {
  max-width: 24rem;
  color: var(--blue-200);
  font-size: 0.92rem;
}

.footer-phone {
  display: inline-flex;
  margin-top: 0.9rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-phone:hover {
  color: var(--blue-200);
}

.footer-links {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
  align-content: start;
}

.footer-links h3 {
  margin-bottom: 0.2rem;
  color: var(--blue-300);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--blue-100);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

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

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-links address,
.footer-col-brand address {
  color: var(--blue-200);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links address a,
.footer-col-brand address a {
  color: var(--blue-100);
}

.footer-col-brand address {
  margin-top: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid rgba(230, 239, 248, 0.14);
}

.copyright {
  margin: 0;
  color: var(--blue-300);
  font-size: 0.85rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(230, 239, 248, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(230, 239, 248, 0.08);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(230, 239, 248, 0.18);
  transform: scale(1.06);
}

@media (min-width: 40rem) {
  .footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 3rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 48rem) {
  .home-page,
  .location-page {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .site-header {
    padding: 1rem 2rem;
  }

  .site-footer {
    grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(0, 0.8fr));
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    align-items: center;
    gap: 3rem;
    padding: 4rem 3rem;
  }

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

  .intro-strip p + p {
    padding-left: 1.25rem;
    border-left: 1px solid var(--border);
  }

  .section-heading,
  .quote-section,
  .contact-section {
    grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  }

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

  .advantage-section {
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
  }

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

  .service-grid,
  .development-grid,
  .work-grid,
  .industry-grid,
  .location-link-grid,
  .location-card-grid,
  .package-grid,
  .contact-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .include-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   22b. Feature list -- checkmark bullets for "what's included" style lists
   -------------------------------------------------------------------------- */

.feature-list {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "\2713";
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   23. Photo slots -- a styled gradient placeholder that swaps for a real
   photo the moment one is uploaded at the expected filename (see main.js).
   -------------------------------------------------------------------------- */

.photo-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
}

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

.photo-slot .photo-slot-label {
  position: absolute;
  inset: auto 0 0 0;
  display: none;
  padding: 0.6rem 0.9rem;
  background: rgba(16, 35, 61, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.photo-slot.is-missing img {
  display: none;
}

.photo-slot.is-missing .photo-slot-label {
  display: block;
}

.photo-grid {
  display: grid;
  gap: 1rem;
}

.photo-hero {
  aspect-ratio: 16 / 7;
}

/* Photo shape modifiers (kept in the stylesheet: the site's CSP blocks inline style attributes) */
.photo-slot.ratio-screenshot {
  aspect-ratio: 1866 / 1008;
}

.photo-slot.ratio-composite {
  aspect-ratio: 2048 / 1320;
}

.photo-slot.ratio-portrait {
  aspect-ratio: 1600 / 2404;
}

.before-after-grid figure.is-wide {
  grid-column: 1 / -1;
}

.development-grid.is-two-up {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-bottom: 1.25rem;
}

.case-study-meta.is-labelled {
  align-items: center;
  margin: 1.5rem 0 0.5rem;
}

.before-after-grid {
  display: grid;
  gap: 1rem;
}

.before-after-grid figure {
  margin: 0;
}

.before-after-grid figcaption {
  margin-top: 0.5rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-study-meta span {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (min-width: 40rem) {
  .before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* --------------------------------------------------------------------------
   25. Shop -- product catalog cards, price tags, Shopify buy buttons
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

.product-card .photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.product-card-body h3 {
  margin: 0;
}

.product-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.product-price {
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 800;
}

.product-price .price-from {
  margin-right: 0.3rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card .button {
  margin-top: auto;
}

.product-detail {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-detail-price {
  color: var(--accent-strong);
  font-size: 2.2rem;
  font-weight: 800;
}

.product-detail-price .price-from {
  display: block;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shopify-note {
  margin-top: 0.75rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* "Coming soon" state for the shop -- a page-level disclaimer plus a pill that
   stands in for the price and buy button until the store opens. */
.coming-soon-notice,
.opinion-notice {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
}

.coming-soon-notice strong,
.opinion-notice strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-soon-notice p,
.opinion-notice p {
  max-width: none;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* One fixed-size pill everywhere: same height, padding and type, sized to its
   text and never stretched or wrapped by the container it sits in. */
.location-section .opinion-notice {
  margin-top: 1.5rem;
}

.coming-soon-badge,
.development-grid .coming-soon-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  min-height: 2rem;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid var(--blue-300);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Product cards: badge and button are pinned to the bottom as a pair, so they
   line up across every card in a row no matter how long the description is. */
.product-card-body .coming-soon-badge {
  margin-top: auto;
}

.product-card-body .coming-soon-badge + .button {
  margin-top: 0;
}

/* Shop category cards: badge pinned to the bottom of each equal-height card. */
.development-grid article:has(> .coming-soon-badge) {
  display: flex;
  flex-direction: column;
}

.development-grid article:has(> .coming-soon-badge) > p {
  margin-bottom: 1.1rem;
}

.development-grid article:has(> .coming-soon-badge) > .coming-soon-badge {
  margin-top: auto;
}

@media (min-width: 40rem) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   21. Sticky mobile-first CTA bar (present on every page, site-wide)
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-strong);
  background: var(--grid-bg);
  box-shadow: var(--shadow-lg);
}

.sticky-cta a {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.sticky-cta-call {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-strong);
}

.sticky-cta-call:hover {
  background: var(--blue-50);
}

.sticky-cta-quote {
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--on-accent);
}

.sticky-cta-quote:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

@media (min-width: 40rem) {
  .sticky-cta {
    justify-content: center;
    padding: 0.75rem 1.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta a {
    flex: 0 1 18rem;
  }
}

/* Short/landscape viewports (phones rotated sideways) -- keep the bar low-profile
   so it never eats a large share of the available vertical space. */
@media (max-height: 32rem) {
  :root {
    --sticky-cta-height: 3.25rem;
  }

  .sticky-cta {
    padding-top: 0.35rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta a {
    min-height: 2.2rem;
    font-size: 0.85rem;
  }
}

@media (prefers-color-scheme: dark) {
  .sticky-cta {
    border-top-color: var(--border-strong);
  }

  .sticky-cta-call {
    background: var(--surface);
  }
}

/* --------------------------------------------------------------------------
   23. Modern contact page layout
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-sidebar {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-sidebar .contact-method-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0;
}

.trust-list {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
}

.trust-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.trust-list li strong {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
}

.trust-list li h3 {
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.trust-list li p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-main {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}

@media (min-width: 64rem) {
  .contact-layout {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    align-items: start;
  }

  .contact-sidebar {
    position: sticky;
    top: 6rem;
  }
}

/* --------------------------------------------------------------------------
   24. Site-wide two-column page layout (sticky quick-contact sidebar)
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.page-sidebar {
  min-width: 0;
}

.quick-contact-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grid-bg);
  box-shadow: var(--shadow-sm);
}

.quick-contact-eyebrow {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-contact-card h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.quick-contact-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.quick-contact-card .button-primary {
  position: relative;
  animation: quick-contact-pulse 2.6s ease-in-out infinite;
}

@keyframes quick-contact-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(39, 90, 148, 0.35);
  }
  50% {
    box-shadow: 0 0 0 0.5rem rgba(39, 90, 148, 0);
  }
}

.quick-contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}

.quick-contact-phone:hover {
  color: var(--accent-hover);
}

.quick-contact-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 64rem) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  }

  .page-sidebar {
    position: sticky;
    top: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-contact-card .button-primary {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   25. Scroll progress bar (injected by main.js on every page)
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-400), var(--accent));
  transition: width 100ms linear;
}

/* --------------------------------------------------------------------------
   26. Custom "Ember & Echo" cursor -- fine-pointer devices only, progressive
   enhancement (only activates once main.js confirms it's safe to hide the
   native cursor), and fully disabled under prefers-reduced-motion.
   -------------------------------------------------------------------------- */

.ee-cursor-active,
.ee-cursor-active a,
.ee-cursor-active button,
.ee-cursor-active input,
.ee-cursor-active textarea,
.ee-cursor-active select,
.ee-cursor-active label {
  cursor: none;
}

.ember-dot,
.ember-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.ember-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--blue-400);
  box-shadow: 0 0 0.4rem 0.1rem rgba(100, 147, 196, 0.9), 0 0 1.1rem 0.3rem rgba(100, 147, 196, 0.5);
  transition: width 180ms ease, height 180ms ease, background-color 180ms ease, opacity 200ms ease;
}

.ember-ring {
  width: 1.9rem;
  height: 1.9rem;
  border: 1.5px solid rgba(100, 147, 196, 0.55);
  transition: width 220ms ease, height 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.ee-cursor-hover .ember-dot {
  width: 0.35rem;
  height: 0.35rem;
  background: #fff;
}

.ee-cursor-hover .ember-ring {
  width: 2.75rem;
  height: 2.75rem;
  border-color: var(--accent);
}

.echo-pulse {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid var(--blue-300);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(1);
  opacity: 0.9;
  animation: echo-out 900ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

.echo-pulse.echo-pulse-click {
  border-color: var(--accent);
  border-width: 2px;
}

@keyframes echo-out {
  to {
    transform: translate3d(-50%, -50%, 0) scale(5.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ee-cursor-active,
  .ee-cursor-active a,
  .ee-cursor-active button,
  .ee-cursor-active input,
  .ee-cursor-active textarea,
  .ee-cursor-active select,
  .ee-cursor-active label {
    cursor: auto;
  }

  .ember-dot,
  .ember-ring,
  .echo-pulse {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   27. Page transitions -- a single, fully deterministic JS-driven flip on
   every internal link click (see main.js). Earlier this also opted into the
   native View Transitions API (@view-transition), but that API's own
   internal heuristics turned out to skip the transition unpredictably on
   some pages (confirmed: reliable on some routes, silently inconsistent on
   others, for reasons outside CSS control) -- running both at once also
   risked a double-transition. One reliable mechanism beats a fancier
   inconsistent one. Off entirely under reduced motion.
   -------------------------------------------------------------------------- */

@keyframes ee-flip-out {
  from {
    transform: perspective(1600px) translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  to {
    transform: perspective(1600px) translateX(-38%) rotateY(-95deg) scale(0.82);
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes ee-flip-in {
  from {
    transform: perspective(1600px) translateX(38%) rotateY(95deg) scale(0.82);
    opacity: 0;
    filter: blur(2px);
  }
  to {
    transform: perspective(1600px) translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* JS fallback (browsers without the View Transitions API) -- animates the
   real page content directly since there's no snapshot pseudo-tree to use. */
.ee-page-flip-out {
  animation: ee-flip-out 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
  transform-origin: center;
}

.ee-page-flip-in {
  animation: ee-flip-in 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
  transform-origin: center;
}

/* --------------------------------------------------------------------------
   28. Ember flame + sparks trailing the cursor -- an escalation of the
   ember-dot/ember-ring pair above. Fine-pointer devices only, off under
   reduced motion (same gating as the rest of the custom cursor system).
   -------------------------------------------------------------------------- */

.ember-flame {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  width: 1.6rem;
  height: 2.2rem;
  pointer-events: none;
  background: radial-gradient(
      circle at 50% 30%,
      #fff 0%,
      var(--blue-200) 18%,
      var(--blue-400) 42%,
      var(--blue-600) 68%,
      rgba(39, 90, 148, 0) 78%
    );
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  filter: blur(0.5px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(var(--ee-flame-x, 0px), var(--ee-flame-y, 0px), 0) translate(-50%, -70%);
  animation: ember-flicker 260ms ease-in-out infinite alternate;
}

@keyframes ember-flicker {
  0% {
    transform: translate3d(var(--ee-flame-x, 0px), var(--ee-flame-y, 0px), 0) translate(-50%, -70%)
      rotate(var(--ee-flame-rot, 0deg)) scale(0.92, 1.04) skewX(-2deg);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(var(--ee-flame-x, 0px), var(--ee-flame-y, 0px), 0) translate(-50%, -70%)
      rotate(var(--ee-flame-rot, 0deg)) scale(1.05, 0.94) skewX(2deg);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--ee-flame-x, 0px), var(--ee-flame-y, 0px), 0) translate(-50%, -70%)
      rotate(var(--ee-flame-rot, 0deg)) scale(0.96, 1.08) skewX(-1deg);
    opacity: 0.85;
  }
}

.ee-spark {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9996;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--blue-300) 45%, var(--blue-600) 100%);
  box-shadow: 0 0 0.3rem rgba(100, 147, 196, 0.9);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .ember-flame,
  .ee-spark {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Social links (footer + contact page). Each icon is a round badge in the
   platform's own brand colour with the white logo inside.
   -------------------------------------------------------------------------- */

.footer-social,
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social {
  margin-top: 1.1rem;
}

.contact-social {
  margin-top: 0.5rem;
}

.footer-social a,
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  color: #fff;
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.footer-social svg,
.contact-social svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.footer-social a:hover,
.footer-social a:focus-visible,
.contact-social a:hover,
.contact-social a:focus-visible {
  color: #fff;
  filter: brightness(1.12);
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.social-facebook  { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.social-linkedin  { background: #0a66c2; }
.social-tiktok    { background: #000; }
.social-youtube   { background: #f00; }

.contact-method-grid .contact-method-social {
  grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .contact-social a {
    transition: none;
  }

  .footer-social a:hover,
  .footer-social a:focus-visible,
  .contact-social a:hover,
  .contact-social a:focus-visible {
    transform: none;
  }
}
