* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

:root {
  --primary: #008cff;
  --primary-dark: #0070cc;
  --accent: #00ccbf;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #2dd4bf;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --background: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --card-bg: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --accent: #2dd4bf;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --background: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --card-bg: #1e293b;
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  transform: translateY(calc(var(--scroll) * 0.3));
  opacity: calc(1 - var(--scroll) * 0.002);
}

.greeting {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  min-height: 1.4em;
}

.typewriter {
  display: inline;
}

.cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 400;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  transition: opacity 0.5s ease;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.avatar-wrapper {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px var(--shadow-color);
}

[data-theme="dark"] .avatar {
  box-shadow: 0 4px 24px rgba(180, 200, 200, 0.15);
}

[data-theme="dark"] .avatar:hover {
  box-shadow: 0 8px 32px rgba(180, 200, 200, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar {
    box-shadow: 0 4px 24px rgba(180, 200, 200, 0.15);
  }
  
  :root:not([data-theme="light"]) .avatar:hover {
    box-shadow: 0 8px 32px rgba(180, 200, 200, 0.2);
  }
}

.name {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 
    0 2px 4px var(--shadow-color),
    0 4px 12px var(--shadow-color);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.4s;
}

.tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.7s;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 2s;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 2.3s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.btn-primary {
  background: var(--text);
  color: var(--background);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 2.8s;
}

@media screen and (max-height: 700px) {
  .scroll-indicator {
    display: none;
  }
}

@media screen and (max-height: 800px) and (max-width: 700px) {
  .scroll-indicator {
    display: none;
  }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
  .scroll-indicator {
    display: none;
  }
}

@media screen and (orientation: landscape) and (min-width: 700px) and (max-height: 900px) {
  .scroll-indicator {
    display: none;
  }
  
  .hero {
    padding-bottom: 60px;
  }
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

/* Sections */
section {
  position: relative;
}

/* Section backgrounds & padding */
.about,
.focus,
.case-studies,
.testimonials,
.contact {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.about { background: var(--background); z-index: 1; }
.focus { background: var(--surface); }
.case-studies { background: var(--surface); }
.testimonials { background: var(--background); }
.contact {
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
  text-align: center;
}

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

.network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

[data-theme="dark"] .network-canvas {
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .network-canvas {
    opacity: 0.5;
  }
}

.contact-text {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--card-bg);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px var(--shadow-color);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.contact-link:hover {
  border-color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow-color);
  background: var(--card-bg);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-link:hover svg {
  transform: scale(1.1);
}

.contact-link svg {
  color: var(--text);
}

.contact-link svg[fill="currentColor"] {
  fill: currentColor;
}

.contact-link svg[stroke="currentColor"] {
  stroke: currentColor;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.theme-toggle:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--text);
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun-icon {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon-icon {
    display: none;
  }
}

/* Footer */
footer {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* Scroll animations — only hide when JS is active so the page is
   readable without JavaScript or while scripts are loading. */
.js-ready .about,
.js-ready .focus,
.js-ready .case-studies,
.js-ready .testimonials,
.js-ready .contact {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .about.visible,
.js-ready .focus.visible,
.js-ready .case-studies.visible,
.js-ready .testimonials.visible,
.js-ready .contact.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 700px) {
  .hero {
    padding: 80px 24px 120px;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-wrapper {
    margin-bottom: 20px;
  }
  
  .scroll-indicator {
    bottom: 32px;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .avatar-wrapper,
  .name,
  .tagline,
  .subtitle,
  .cta-group,
  .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .cursor {
    animation: none !important;
    opacity: 0 !important;
  }

  .js-ready .about,
  .js-ready .focus,
  .js-ready .case-studies,
  .js-ready .testimonials,
  .js-ready .contact,
  .js-ready .stat,
  .js-ready .focus-card,
  .js-ready .case-card,
  .js-ready .testimonial {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Content sections (editorial layout)
   ============================================ */

/* Back-to-top button — travels with the user */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-transform: translateY(8px) translateZ(0);
}

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

.back-to-top:hover {
  box-shadow: 0 8px 24px rgba(0, 140, 255, 0.2);
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px) translateZ(0);
}

[data-theme="dark"] .back-to-top:hover {
  box-shadow: 0 8px 24px rgba(0, 140, 255, 0.35);
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #008cff 0%, #00ccbf 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-number {
  position: absolute;
  top: 60px;
  right: 40px;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--text);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

[data-theme="dark"] .section-number {
  opacity: 0.06;
}

.section-intro {
  text-align: center;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 64px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.about-text a:hover {
  border-color: var(--text);
}

/* ============================================
   Unified card treatment
   Shared hover styles across stat, focus, case,
   and testimonial cards.
   ============================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(0, 140, 255, 0.2);
  box-shadow: 0 20px 48px rgba(0, 140, 255, 0.08);
}

[data-theme="dark"] .card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 48px rgba(56, 189, 248, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 48px rgba(56, 189, 248, 0.12);
  }
}

/* Shared gradient accent bar that animates in on hover.
   Direction differs per card type via transform-origin. */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #008cff 0%, #00ccbf 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Stats — inline reveal */
.stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat {
  padding: 28px 32px;
}

.stat-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat .stat-plus {
  font-size: 1.5rem;
  color: var(--primary);
  vertical-align: super;
  margin-left: 2px;
}

.stat .stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  flex: 1;
  min-width: 180px;
}

.stat-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
}

.stat-points li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}

.stat-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008cff, #00ccbf);
}

.stat-note {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

.stat.stat-accent {
  background: linear-gradient(135deg,
    rgba(0, 140, 255, 0.04) 0%,
    rgba(0, 204, 191, 0.04) 100%);
}

.stat.stat-accent .stat-number {
  background: linear-gradient(135deg, #008cff, #00ccbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus section */
.focus h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.focus-card {
  padding: 40px 32px;
}

.focus-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.focus-card:hover .focus-icon {
  background: linear-gradient(135deg, #008cff 0%, #00ccbf 100%);
}

.focus-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  transition: stroke 0.4s ease;
}

.focus-card:hover .focus-icon svg {
  stroke: white;
}

.focus-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-tagline {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 4.8em;
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.card-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-points li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}

.card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008cff, #00ccbf);
}

/* Case studies */
.case-studies h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.case-card {
  padding: 36px 32px;
}

.case-header {
  margin-bottom: 28px;
}

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(0, 140, 255, 0.08);
  border-radius: 100px;
}

[data-theme="dark"] .case-tag {
  background: rgba(56, 189, 248, 0.12);
}

.case-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.case-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: start;
}

.case-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 2px;
}

.case-row p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.case-tech span {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 6px;
  font-weight: 500;
}

/* Testimonials */
.testimonials h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  padding: 36px 32px;
  margin: 0;
}

.quote-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  opacity: 0.25;
  margin-bottom: 16px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial:hover .quote-icon {
  opacity: 0.5;
  transform: scale(1.08);
}

.testimonial p {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 24px;
  flex: 1;
}

.testimonial footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.testimonial span {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 3em;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Magnetic buttons */
.magnetic {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger reveal animation — gated on .js-ready for graceful no-JS fallback.
   transform uses the same 0.5s curve as .card so post-reveal hover stays
   snappy (Chrome especially feels heavy if hover transitions exceed ~600ms). */
.js-ready .stat,
.js-ready .focus-card,
.js-ready .case-card,
.js-ready .testimonial {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.js-ready .stat.reveal,
.js-ready .focus-card.reveal,
.js-ready .case-card.reveal,
.js-ready .testimonial.reveal {
  opacity: 1;
  transform: translateY(0);
}

.stat.reveal:nth-child(2),
.focus-card.reveal:nth-child(2),
.case-card.reveal:nth-child(2),
.testimonial.reveal:nth-child(2) { transition-delay: 0.1s; }

.stat.reveal:nth-child(3),
.focus-card.reveal:nth-child(3),
.case-card.reveal:nth-child(3),
.testimonial.reveal:nth-child(3) { transition-delay: 0.2s; }

.case-card.reveal:nth-child(4),
.testimonial.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .case-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 700px) {
  .about,
  .focus,
  .case-studies,
  .testimonials,
  .contact {
    padding: 100px 0;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .section-number {
    top: 40px;
    right: 20px;
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .stat {
    padding: 24px;
  }

  .stat-points {
    grid-template-columns: 1fr;
  }

  .focus-card {
    padding: 32px 24px;
  }

  .case-card {
    padding: 28px 24px;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .testimonial {
    padding: 28px 24px;
  }

  .testimonial p {
    font-size: 0.95rem;
  }
}
