/* ============================================
   Seller Rescue — Design System
   ============================================ */

:root {
  /* Neutrals */
  --color-bg: #f4f5f2;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #e8ebe6;
  --color-ink: #121410;
  --color-ink-soft: #3a3f36;
  --color-ink-muted: #6b7265;
  --color-border: #d4d8cf;
  --color-border-strong: #b8beb0;

  /* Accent — deep teal (one confident color) */
  --color-accent: #0d6b5c;
  --color-accent-hover: #0a5448;
  --color-accent-soft: rgba(13, 107, 92, 0.1);
  --color-accent-medium: rgba(13, 107, 92, 0.18);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: clamp(2.5rem, 5vw, 3.75rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadow — single soft style */
  --shadow-sm: 0 1px 2px rgba(18, 20, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 20, 16, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 20, 16, 0.1);

  /* Layout */
  --max-width: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #070908;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 107, 92, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(18, 20, 16, 0.04), transparent);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Keep canvas dark while boot CSS / video catch up (no white flash) */
body.is-booting {
  overflow: hidden;
  color: #e8ebe6;
  background: #070908 !important;
  background-image: none !important;
}

/* ============================================
   Cinematic boot loader (AC-inspired)
   ============================================ */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070908;
  color: #e8ebe6;
  overflow: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}

.boot-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loader__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #070908;
  transform: scale(1.12);
  filter: blur(14px) brightness(0.45) saturate(0.85);
  pointer-events: none;
}

.boot-loader__video.is-paused {
  opacity: 0.85;
}

.boot-loader__video-blur {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, 0.55) 0%, rgba(7, 9, 8, 0.35) 40%, rgba(7, 9, 8, 0.7) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(7, 9, 8, 0.55) 100%);
  pointer-events: none;
}

.boot-loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

.boot-loader__fog {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(13, 107, 92, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 75% 40%, rgba(92, 184, 168, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.65), transparent);
  animation: boot-fog 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.boot-loader__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 25%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.boot-loader__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.boot-loader__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  width: min(100%, 28rem);
  animation: boot-stage-in 1.1s var(--ease) both;
}

.boot-crest {
  position: relative;
  width: min(72vw, 16rem);
  height: min(72vw, 16rem);
  margin-bottom: var(--space-5);
  color: #5cb8a8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.boot-lottie {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  filter: drop-shadow(0 0 28px rgba(92, 184, 168, 0.35));
}

.boot-lottie dotlottie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  --lottie-player-background: transparent;
}

/* Force transparent inside player shadow tree where possible */
.boot-lottie dotlottie-player::part(container),
.boot-lottie canvas,
.boot-lottie svg {
  background: transparent !important;
}

.boot-lottie__gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}

.boot-lottie.is-gif-fallback dotlottie-player {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.boot-lottie:not(.is-gif-fallback) .boot-lottie__gif {
  display: none;
}

.boot-crest__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(92, 184, 168, 0.35));
}

.boot-crest__ring,
.boot-crest__blade,
.boot-crest__mark {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: boot-draw 2.4s var(--ease) forwards;
}

.boot-crest__blade {
  animation-delay: 0.35s;
}

.boot-crest__mark {
  animation-delay: 0.7s;
}

.boot-crest__glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(92, 184, 168, 0.35), transparent 70%);
  filter: blur(16px);
  animation: boot-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.boot-loader__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f4f5f2;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.boot-loader__brand span {
  color: #5cb8a8;
}

.boot-loader__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 235, 230, 0.45);
  margin-bottom: var(--space-7);
}

.boot-bar {
  width: 100%;
  position: relative;
  margin-bottom: var(--space-4);
}

.boot-bar__track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 1px;
}

.boot-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a5448, #5cb8a8 55%, #a8e0d4);
  box-shadow: 0 0 12px rgba(92, 184, 168, 0.65);
  transition: width 0.15s linear;
}

.boot-bar__shine {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0;
  transform: translateX(-100%);
}

.boot-bar__shine.is-active {
  animation: boot-shine 1.4s ease-in-out infinite;
}

.boot-bar__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.boot-bar__ends span {
  width: 10px;
  height: 1px;
  background: rgba(92, 184, 168, 0.7);
  position: relative;
}

.boot-bar__ends span::before,
.boot-bar__ends span::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(92, 184, 168, 0.7);
  top: -1.5px;
}

.boot-bar__ends span:first-child::before {
  left: 0;
  border-right: none;
  border-bottom: none;
}

.boot-bar__ends span:last-child::after {
  right: 0;
  border-left: none;
  border-bottom: none;
}

.boot-loader__percent {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: rgba(244, 245, 242, 0.85);
  margin-bottom: var(--space-4);
}

.boot-loader__tip {
  min-height: 1.5em;
  font-size: var(--text-sm);
  color: rgba(232, 235, 230, 0.5);
  transition: opacity 0.4s ease;
  max-width: 22rem;
}

.boot-loader__tip.is-swap {
  opacity: 0;
}

@keyframes boot-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes boot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@keyframes boot-fog {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) scale(1.05);
  }
}

@keyframes boot-shine {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(280%);
  }
}

@keyframes boot-stage-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loader__fog,
  .boot-crest__glow,
  .boot-bar__shine.is-active,
  .boot-crest__ring,
  .boot-crest__blade,
  .boot-crest__mark,
  .boot-loader__stage {
    animation: none !important;
  }

  .boot-crest__ring,
  .boot-crest__blade,
  .boot-crest__mark {
    stroke-dashoffset: 0;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

p {
  color: var(--color-ink-soft);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-9);
}

.section__header {
  max-width: 36rem;
  margin-bottom: var(--space-7);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}

.btn--secondary:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: var(--color-bg-elevated);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: var(--text-base);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(244, 245, 242, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav__brand:hover {
  color: var(--color-ink);
}

.nav__brand span {
  color: var(--color-accent);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-soft);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--color-accent);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

.nav__mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5);
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  padding: var(--space-2) 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    145deg,
    #eef1ec 0%,
    #e2e8e4 40%,
    #d5e0db 70%,
    #c8d5cf 100%
  );
}

.hero__canvas-wrap.is-fallback {
  background: linear-gradient(
    145deg,
    #eef1ec 0%,
    #d8e5e0 45%,
    #c5d6d0 100%
  );
}

.hero__canvas-wrap.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(13, 107, 92, 0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(18, 20, 16, 0.06), transparent 45%);
  pointer-events: none;
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(244, 245, 242, 0.92) 0%,
    rgba(244, 245, 242, 0.78) 45%,
    rgba(244, 245, 242, 0.35) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-9);
  max-width: 38rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}

.hero__brand span {
  color: var(--color-accent);
}

.hero__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  margin-bottom: var(--space-4);
  max-width: 22ch;
}

.hero__statement {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-6);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.hero__stars {
  color: var(--color-accent);
  letter-spacing: 0.1em;
  font-size: var(--text-base);
}

/* ============================================
   Stats
   ============================================ */
.stats {
  background: var(--color-ink);
  color: #fff;
  padding-block: var(--space-7);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
}

.stats__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-2);
}

.stats__item strong .suffix {
  font-size: 0.65em;
}

.stats__item span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

/* ============================================
   About
   ============================================ */
.about__grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
  }
}

.about__text p + p {
  margin-top: var(--space-4);
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credential {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.credential__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.credential__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.credential h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: var(--space-1);
}

.credential p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  padding-left: var(--space-6);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-7);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-6));
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  z-index: 1;
}

.timeline__year {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.timeline__item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.timeline__item p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* ============================================
   Services
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.service-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-card__points {
  margin-bottom: var(--space-4);
}

.service-card__points li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
}

.service-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-card > p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* ============================================
   Portfolio
   ============================================ */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}

.filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.case-card.is-hidden {
  display: none;
}

.case-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.case-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.case-card p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}

.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-muted);
}

.testimonials__link {
  margin-top: var(--space-6);
  text-align: center;
}

.testimonials__link a {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background:
    linear-gradient(160deg, var(--color-accent-soft), transparent 60%),
    var(--color-bg-muted);
  border-top: 1px solid var(--color-border);
}

.contact__inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.contact__inner .section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.contact__inner .section__lead {
  margin-bottom: var(--space-6);
}

.contact__form {
  display: grid;
  gap: var(--space-4);
  text-align: left;
  margin-top: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-message {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  display: none;
}

.form-message.is-success {
  display: block;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.form-message.is-error {
  display: block;
  background: #fde8e8;
  color: #9b1c1c;
}

.contact__alt {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-8) var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer__brand span {
  color: #5cb8a8;
}

.footer__brand:hover {
  color: #fff;
}

.footer__tagline {
  font-size: var(--text-sm);
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer__col a:hover {
  color: #fff;
}

.footer__col p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-2);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer__bottom-links > a:not(.footer__trustpilot) {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer__bottom-links > a:not(.footer__trustpilot):hover {
  color: #fff;
}

.footer__trustpilot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer__trustpilot:hover {
  color: #fff;
}

.footer__trustpilot .stars {
  color: #5cb8a8;
  letter-spacing: 0.05em;
}

/* ============================================
   Cookie consent
   ============================================ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4) var(--space-5);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar__inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-bar p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 16rem;
}

.cookie-bar .btn {
  flex-shrink: 0;
}

/* ============================================
   Footer privacy line
   ============================================ */
.footer__privacy {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 40rem;
}

.footer__privacy-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer__privacy-link:hover {
  color: #fff;
}

/* ============================================
   Welcome personalization card
   ============================================ */
.welcome-card {
  position: fixed;
  z-index: 220;
  bottom: var(--space-5);
  right: var(--space-5);
  left: var(--space-5);
  max-width: 22rem;
  margin-left: auto;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.welcome-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.welcome-card__panel {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-4);
  box-shadow: var(--shadow-lg);
}

.welcome-card__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-ink-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.welcome-card__close:hover {
  color: var(--color-ink);
  background: var(--color-bg-muted);
}

.welcome-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.welcome-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  padding-right: 1.5rem;
}

.welcome-card p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-4);
}

.welcome-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.welcome-card__form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
}

.welcome-card__form input:focus {
  border-color: var(--color-accent);
  outline: none;
}

.welcome-card__forget-wrap {
  margin: var(--space-3) 0 0;
  text-align: center;
}

.welcome-card__forget {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.welcome-card__forget:hover {
  color: var(--color-ink);
}

@media (min-width: 480px) {
  .welcome-card {
    left: auto;
    right: var(--space-6);
    bottom: var(--space-6);
  }
}

/* ============================================
   Privacy modal
   ============================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.privacy-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 16, 0.45);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.privacy-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: var(--color-ink-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.privacy-modal__close:hover {
  color: var(--color-ink);
  background: var(--color-bg-muted);
}

.privacy-modal__panel h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  padding-right: 1.5rem;
}

.privacy-modal__copy p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: var(--color-ink-soft);
}

.privacy-modal__panel .btn {
  margin-top: var(--space-2);
}

/* ============================================
   Utilities / a11y
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .filter-btn {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}
