/* FERAL. — Dark theme, modern, minimalist */

:root {
  --bg: #000000;
  --bg-elevated: #000000;
  --surface: #000000;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #b8a9c9;
  --accent-dim: rgba(184, 169, 201, 0.35);
  --pearl-pink: rgba(212, 184, 196, 0.5);
  --pearl-lavender: rgba(184, 169, 201, 0.45);
  --pearl-violet: rgba(157, 143, 181, 0.5);
  --pearl-champagne: rgba(226, 217, 220, 0.25);
  --pearl-gradient: linear-gradient(165deg, rgba(125, 107, 154, 0.35) 0%, var(--pearl-violet) 20%, var(--pearl-lavender) 40%, var(--pearl-pink) 60%, var(--pearl-champagne) 80%, rgba(125, 107, 154, 0.3) 100%);
  --banner-text-gradient: linear-gradient(120deg, #7d6b9a 0%, #9d8fb5 22%, #b8a9c9 40%, #e8b4c4 60%, #e2d9dc 78%, #c9a0b0 92%, #9d8fb5 100%);
  --stats-row-gradient: linear-gradient(90deg, #7d6b9a 0%, #9d8fb5 18%, #b8a9c9 38%, #e8b4c4 55%, #e2d9dc 72%, #b8a9c9 88%, #7d6b9a 100%);
  --stat-card-gradient: linear-gradient(135deg, rgba(125, 107, 154, 0.22) 0%, rgba(184, 169, 201, 0.18) 35%, rgba(232, 180, 196, 0.2) 65%, rgba(184, 169, 201, 0.18) 100%);
  --btn-pearl: linear-gradient(135deg, rgba(184, 169, 201, 0.95) 0%, rgba(212, 184, 196, 0.9) 50%, rgba(200, 190, 210, 0.95) 100%);
  --btn-pearl-hover: linear-gradient(135deg, rgba(212, 184, 196, 0.25) 0%, rgba(184, 169, 201, 0.3) 50%, rgba(157, 143, 181, 0.25) 100%);
  --btn-hover-bg: #1a1520;
  --btn-hover-text: #e8dcee;
  --btn-hover-border: rgba(184, 169, 201, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --border-pearl: rgba(184, 169, 201, 0.12);
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
  --scroll-pct: 0;
}

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

/* SEO & a11y: skip link and screen-reader-only text */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Pearlescent overlay: shifts with scroll for a continuous sheen */
.pearl-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--pearl-gradient);
  background-size: 100% 400%;
  background-position-y: calc(var(--scroll-pct) * 300%);
  opacity: 0.12;
  transition: opacity 0.4s var(--ease-out), background-position-y 0.15s linear;
}

main,
.header {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

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

/* Reveal animation base — elements start hidden and animate in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes header-pearl-shimmer {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 1; }
}

.section-title.reveal {
  transition-duration: 3.6s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.header-pearl-revealed {
  animation: section-title-pearl 4.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes section-title-pearl {
  0% {
    opacity: 0;
    letter-spacing: 0.08em;
  }
  100% {
    opacity: 1;
    letter-spacing: -0.01em;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition: background 0.3s var(--ease-out);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-pearl);
}

.nav {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-out), letter-spacing 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-links a:hover {
  letter-spacing: 0.06em;
}

.header .nav-links a.header-pearl-revealed {
  animation: header-pearl-shimmer 1.2s var(--ease-out) forwards;
}

.nav-cta {
  color: var(--accent) !important;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--accent-dim);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 8rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-banner {
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-banner-top,
.hero-banner-bottom {
  overflow: hidden;
  transition: transform 3s var(--ease-out);
}

.hero-banner-top {
  transform: translateX(-100%);
}

.hero-banner-bottom {
  transform: translateX(100%);
}

.hero-banner-animated .hero-banner-top {
  transform: translateX(0);
}

.hero-banner-animated .hero-banner-bottom {
  transform: translateX(0);
}

.hero-banner-middle {
  overflow: hidden;
  opacity: 0;
  transition: opacity 5s var(--ease-out);
}

.hero-banner-animated .hero-banner-middle {
  opacity: 1;
}

.hero-banner .hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero-banner-middle .hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content.reveal {
  transition-duration: 3.6s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  background: var(--banner-text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 80%;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 212, 218, 0.6) 30%, rgba(232, 200, 210, 0.75) 50%, rgba(232, 212, 218, 0.6) 70%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 1.25s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

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

.btn:hover::before {
  transform: translateX(150%);
}

.btn-primary {
  background: var(--btn-pearl);
  color: #0a0a0a;
  border: 1px solid var(--border-pearl);
  box-shadow: 0 0 20px rgba(184, 169, 201, 0.2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.btn-primary:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border-color: var(--btn-hover-border);
  box-shadow: 0 0 32px rgba(184, 169, 201, 0.25);
}

.btn-secondary {
  background: var(--btn-pearl-hover);
  color: var(--accent);
  border: 1px solid var(--border-pearl);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.btn-secondary:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border-color: var(--btn-hover-border);
  box-shadow: 0 0 24px rgba(184, 169, 201, 0.2);
}

.btn-secondary:hover::before {
  transform: translateX(150%);
}

/* Stats */
.stats {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-pearl);
  border-bottom: 1px solid var(--border-pearl);
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--stat-card-gradient) border-box;
  box-shadow: 0 0 20px rgba(157, 143, 181, 0.06);
}

.stats-inner > .stat:nth-child(1) .stat-value,
.stats-inner > .stat:nth-child(1) .stat-prefix { background-position: 0% center; }
.stats-inner > .stat:nth-child(3) .stat-value,
.stats-inner > .stat:nth-child(3) .stat-prefix { background-position: 33.33% center; }
.stats-inner > .stat:nth-child(5) .stat-value,
.stats-inner > .stat:nth-child(5) .stat-prefix { background-position: 66.66% center; }
.stats-inner > .stat:nth-child(7) .stat-value,
.stats-inner > .stat:nth-child(7) .stat-prefix { background-position: 100% center; }

.stat-prefix {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  background: var(--stats-row-gradient);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  background: var(--stats-row-gradient);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-muted);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  min-height: 50px;
  background: var(--border-pearl);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.4s var(--ease-out);
}

.section-title.revealed {
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 3rem;
  max-width: 560px;
}

/* Avatar / "You're in the right place" list */
.right-place .section-intro {
  margin-bottom: 1.5rem;
}

.work-with-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .work-with-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.work-with-block {
  max-width: 100%;
}
.work-with-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.work-with-title--dont {
  color: var(--text-muted);
}

.avatar-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  max-width: 560px;
}
.avatar-list--work-with {
  max-width: 100%;
}
.avatar-list--dont {
  max-width: 100%;
}
.avatar-list--dont li {
  color: var(--text-muted);
}
.avatar-list--dont li::before {
  background: var(--text-muted);
}
.avatar-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}
.avatar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.avatar-list li:last-child {
  margin-bottom: 0;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Services — wide enough for 4 cards in one row on 13" (e.g. 1280–1440px) */
#services.section {
  max-width: 1280px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* What we do cards: animations 2s slower */
#services .service-card.reveal {
  transition-duration: 2.6s;
}

#services .service-icon svg [stroke] {
  transition-duration: 2.95s;
}

#services .service-icon svg path[fill="currentColor"],
#services .service-icon svg path[fill] {
  transition-duration: 2.5s;
  transition-delay: 0.6s;
}

.service-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-pearl);
  border-radius: 8px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 0 0 transparent;
}

.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 169, 201, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-icon svg [stroke] {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.95s var(--ease-out);
}

.service-card.revealed .service-icon svg [stroke] {
  stroke-dashoffset: 0;
}

.service-icon svg path[fill="currentColor"],
.service-icon svg path[fill] {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.4s;
}

.service-card.revealed .service-icon svg path[fill="currentColor"],
.service-card.revealed .service-icon svg path[fill] {
  opacity: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Talent */
.talent {
  background: var(--bg-elevated);
}

.talent-apply-prompt {
  margin: 1rem 0 0;
  max-width: 560px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-muted);
  text-align: left;
}

.talent-cta {
  margin-top: 1rem;
}

/* About */
#about.about {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 380px;
}

.about-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Results / Case Studies */
#results.section {
  max-width: 1280px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-pearl);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.result-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 169, 201, 0.08);
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-card-name h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.result-card-timeline {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.result-card-badge {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: var(--stat-card-gradient);
  border: 1px solid var(--border-pearl);
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.result-card-headline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--banner-text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.result-card-metrics {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(184, 169, 201, 0.04);
  border: 1px solid rgba(184, 169, 201, 0.08);
}

.result-metric {
  flex: 1;
  text-align: center;
}

.result-metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.result-metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.result-metric-before {
  color: var(--text-muted);
}

.result-metric-after {
  color: var(--accent);
}

.result-metric-arrow {
  width: 32px;
  height: 2px;
  flex-shrink: 0;
  position: relative;
  background: var(--border-pearl);
}

.result-metric-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--accent);
}

.result-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.result-stat {
  text-align: center;
  padding: 0.6rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(184, 169, 201, 0.06);
}

.result-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.result-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.result-card-toggle {
  display: block;
  width: 100%;
  padding: 0.65rem 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border-pearl);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
  text-align: center;
  letter-spacing: 0.01em;
}

.result-card-toggle:hover {
  color: var(--text);
}


@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }

  .result-metric-arrow {
    width: 2px;
    height: 20px;
  }

  .result-metric-arrow::after {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%);
    border-top: 6px solid var(--accent);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: none;
  }

}

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.testimonial.reveal {
  transform: translateY(20px) scale(0.98);
}

.testimonial {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-pearl);
  border-radius: 8px;
  margin: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.testimonial.revealed {
  animation: testimonial-reveal 0.6s var(--ease-out) forwards;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184, 169, 201, 0.12);
}

@keyframes testimonial-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-quote,
.testimonial-quote-scroll {
  flex: 1;
  min-height: 200px;
  margin-bottom: 1rem;
}

.testimonial-quote-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-pearl) transparent;
  padding-right: 0.5rem;
}

.testimonial-quote-scroll::-webkit-scrollbar {
  width: 6px;
}

.testimonial-quote-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-quote-scroll::-webkit-scrollbar-thumb {
  background: var(--border-pearl);
  border-radius: 3px;
}

.testimonial p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-style: normal;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.testimonial footer {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
}

.testimonial-short {
  min-height: auto;
}

.testimonial-short .testimonial-quote {
  min-height: auto;
  flex: none;
}

/* CTA / Contact */
.cta {
  padding: 5rem 1.5rem;
  background: var(--bg-elevated);
}

.cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cta-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-pearl);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.contact-form button {
  align-self: flex-start;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.5em;
}

.form-note.success { color: var(--accent); }
.form-note.error { color: #e07a7a; }

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-pearl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-pearl);
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform 0.2s var(--ease-out), opacity 0.2s;
  }

  .hero {
    padding-top: 6rem;
  }

  .stats-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
