:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e12;
  --surface: #141820;
  --surface-2: #1a2030;
  --border: #252b38;
  --text: #e8eaef;
  --muted: #8b93a7;
  --accent: #5eead4;
  --accent-dim: #2dd4bf33;
  --accent-on: #0c0e12;
  --nav-bg: #0c0e12cc;
  --hero-glow-2: #6366f122;
  --domain-bg: #6366f122;
  --domain-text: #a5b4fc;
  --modal-backdrop: rgba(0, 0, 0, 0.88);
  --media-bg: #000;
  --card-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
  --motion: 0.9s;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #d8dee8;
  --text: #151a24;
  --muted: #5c6578;
  --accent: #0d9488;
  --accent-dim: #0d948820;
  --accent-on: #ffffff;
  --nav-bg: #f4f6f9cc;
  --hero-glow-2: #6366f114;
  --domain-bg: #6366f118;
  --domain-text: #4338ca;
  --modal-backdrop: rgba(15, 20, 30, 0.55);
  --media-bg: #0c0e12;
  --card-shadow: 0 16px 48px rgba(15, 20, 30, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
body.nav-open,
body.modal-open { overflow: hidden; }
body.nav-open .mobile-cta {
  transform: translateY(110%);
  pointer-events: none;
}
body.has-mobile-cta { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }

button, a { -webkit-tap-highlight-color: transparent; }
button, .btn, .menu-btn, .theme-toggle { touch-action: manipulation; }

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.85rem 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.3s;
}
.nav.scrolled { border-color: var(--border); }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text);
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-drawer-actions { display: none; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; flex-direction: column; gap: 5px;
}
.menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform 0.25s var(--ease-calm), opacity 0.2s;
}
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-btn:focus,
.theme-toggle:focus { outline: none; }
.menu-btn:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem; border-radius: 8px;
  background: var(--accent); color: var(--accent-on);
  font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
  transition: transform 0.35s var(--ease-calm), box-shadow 0.35s var(--ease-calm);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-dim); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 5% 3rem; position: relative;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 80% 15%, var(--accent-dim), transparent),
    radial-gradient(ellipse 40% 35% at 5% 85%, var(--hero-glow-2), transparent);
}
.hero-bg::before,
.hero-bg::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(72px); pointer-events: none;
  animation: glow-drift 18s var(--ease-calm) infinite;
}
.hero-bg::before {
  width: min(44vw, 340px); height: min(44vw, 340px);
  background: var(--accent-dim); top: 8%; right: 12%;
}
.hero-bg::after {
  width: min(38vw, 280px); height: min(38vw, 280px);
  background: var(--hero-glow-2); bottom: 10%; left: 6%;
  animation-delay: -9s;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.32; }
  50% { transform: translate(16px, -18px) scale(1.05); opacity: 0.44; }
}
.hero-inner {
  width: min(1100px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; margin-bottom: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.78rem; color: var(--muted);
  font-family: var(--mono);
  max-width: 100%;
  line-height: 1.4;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 10px #22c55e55;
  animation: breathe 3.5s var(--ease-calm) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.75; }
}

.hero .reveal { transition: none; }
.hero .reveal.visible {
  animation: hero-enter 0.95s var(--ease-calm) forwards;
}
.hero-main.reveal.visible { animation-delay: 0.06s; }
.hero-panel.reveal.visible { animation-delay: 0.2s; }
.hero-panel.reveal.visible .avatar-frame {
  animation: gentle-float 6s var(--ease-calm) infinite;
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.accent { color: var(--accent); }
.hero-sub { max-width: 520px; color: var(--muted); font-size: 1.05rem; margin: 1.25rem 0 1.75rem; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.social-row { display: flex; gap: 0.65rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); transition: border-color 0.35s var(--ease-calm), color 0.35s var(--ease-calm), transform 0.35s var(--ease-calm);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.hero-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.avatar-frame {
  width: 128px; height: 128px;
  margin-bottom: 1rem; padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #6366f1);
  box-shadow: 0 12px 32px var(--accent-dim);
}
.avatar-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--surface);
  display: block;
}
[data-theme="dark"] .avatar-photo {
  filter: brightness(0.97) contrast(1.04) saturate(0.92);
}
.avatar-role { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 220px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem;
}
.stat-card strong { display: block; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.stat-card span { font-size: 0.75rem; color: var(--muted); }

/* Marquee */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden; padding: 0.85rem 0;
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted); white-space: nowrap;
}
.marquee span::before { content: "◆ "; color: var(--accent); font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Trust */
.trust-bar {
  padding: 1.75rem 5%;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.trust-stats strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.trust-stats span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  counter-reset: none;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
}
.process-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.65rem;
}
.process-step h3 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.process-step p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.trust-pillar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.trust-pillar svg { color: var(--accent); margin-bottom: 0.65rem; }
.trust-pillar h4 { font-size: 0.92rem; margin-bottom: 0.35rem; }
.trust-pillar p { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.outcome-metric {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.outcome-card p { font-size: 0.88rem; color: var(--muted); flex: 1; line-height: 1.55; }
.outcome-domain {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--domain-text);
  background: var(--domain-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  align-self: flex-start;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.testimonial-card--short .testimonial-quote { font-size: 0.88rem; }
.testimonial-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-quote {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.testimonial-quote::before {
  content: "\201C";
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 0.35rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.testimonial-role {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: 720px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-calm);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Sections */
.section { padding: 5rem 5%; max-width: 1100px; margin: 0 auto; }
.section-tight { padding-top: 2.5rem; padding-bottom: 3rem; }
.section-head { margin-bottom: 2rem; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.section-intro { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; max-width: 520px; }

.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem;
}
.about-text { font-size: 1.08rem; color: var(--muted); }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.about-list li {
  padding: 0.75rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.about-list li::before { content: "→ "; color: var(--accent); }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  transition: transform 0.45s var(--ease-calm), border-color 0.45s var(--ease-calm), box-shadow 0.45s var(--ease-calm);
}
.service-card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: var(--card-shadow);
}
.service-num {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  display: block; margin-bottom: 0.75rem;
}
.service-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.86rem; color: var(--muted); }

/* Skills */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
}
.skill-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.84rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  font-size: 0.76rem; padding: 0.35rem 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; color: var(--muted);
}

/* Featured projects */
.featured-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.showcase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-calm), box-shadow 0.5s var(--ease-calm), border-color 0.5s var(--ease-calm);
}
.showcase-card:hover {
  transform: translateY(-4px); box-shadow: var(--card-shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.showcase-wide { grid-column: 1 / -1; flex-direction: row; }
.showcase-wide .showcase-visual { flex: 0 0 220px; }
.showcase-wide .showcase-body { flex: 1; }

.showcase-visual {
  background: var(--surface-2); padding: 1.5rem;
  display: flex; justify-content: center; align-items: center;
  min-height: 200px;
}
.showcase-visual-dark { background: #0a0a0a; }
.phone-frame {
  width: 120px; padding: 6px; border-radius: 18px;
  border: 2px solid var(--border); background: var(--media-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.phone-frame img {
  width: 100%; aspect-ratio: 9/16;
  object-fit: cover; object-position: top; border-radius: 12px;
}
.showcase-wide .phone-frame { width: 140px; }

.showcase-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.project-meta span {
  font-size: 0.68rem; font-family: var(--mono);
  padding: 0.2rem 0.55rem; border-radius: 4px;
}
.stack { background: var(--accent-dim); color: var(--accent); }
.domain { background: var(--domain-bg); color: var(--domain-text); }
.showcase-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.showcase-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.showcase-body .btn { align-self: flex-start; }

/* Compact enterprise grid */
.compact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.compact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
  transition: border-color 0.2s;
}
.compact-card:hover { border-color: var(--accent); }
.compact-card .domain {
  display: inline-block; font-size: 0.68rem; font-family: var(--mono);
  padding: 0.2rem 0.55rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.compact-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.compact-card p { font-size: 0.84rem; color: var(--muted); }

/* Experience timeline */
.exp-timeline { position: relative; padding-left: 1.5rem; }
.exp-timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.exp-node { position: relative; padding-bottom: 2rem; }
.exp-node:last-child { padding-bottom: 0; }
.exp-dot {
  position: absolute; left: -1.5rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.exp-content time {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
}
.exp-content h4 { font-size: 1rem; margin: 0.25rem 0; }
.exp-org { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 0.35rem; }
.exp-content p { font-size: 0.88rem; color: var(--muted); }

/* Certifications */
.cert-grid { display: flex; flex-direction: column; gap: 1rem; }
.cert-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover { border-color: var(--accent); box-shadow: var(--card-shadow); }
.cert-badge {
  flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0078d4, #00bcf2);
  color: #fff;
}
.cert-issuer {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
}
.cert-body h3 { font-size: 1rem; margin: 0.35rem 0 0.5rem; line-height: 1.35; }
.cert-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }
.cert-id { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.75rem; }
.cert-link { font-size: 0.88rem; font-weight: 600; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}
.edu-card strong { display: block; font-size: 1.05rem; }
.edu-card span { color: var(--muted); font-size: 0.88rem; }
.edu-card small {
  display: block; margin-top: 0.25rem;
  color: var(--accent); font-family: var(--mono); font-size: 0.72rem;
}

/* Contact */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem;
  box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
  text-align: center;
}
.contact-card .section-head { margin-inline: auto; }
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, var(--accent-dim), transparent);
  pointer-events: none;
}
.contact-lead {
  color: var(--muted); margin-bottom: 1.75rem;
  max-width: 480px; margin-inline: auto; text-align: center; position: relative;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem; position: relative;
  max-width: 720px; margin-inline: auto;
}
.contact-item {
  padding: 1rem 1.25rem; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; flex-direction: column; gap: 0.25rem;
  color: var(--text); transition: border-color 0.2s;
}
a.contact-item:hover { border-color: var(--accent); }
.contact-label {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  justify-content: center; position: relative;
}

.footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding: 2rem 5%; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem;
}
.back-top { color: var(--accent); font-size: 0.85rem; }

/* Reveal */
@keyframes calm-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--motion) var(--ease-calm), transform var(--motion) var(--ease-calm);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger { opacity: 1; transform: none; transition: none; }
.reveal-stagger:not(.visible) > * { opacity: 0; transform: translateY(12px); }
.reveal-stagger.visible > * {
  animation: calm-in var(--motion) var(--ease-calm) forwards;
}
.stat-cards.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0.32s; }
.stat-cards.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.42s; }
.stat-cards.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.52s; }
.stat-cards.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.62s; }
.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(7) { animation-delay: 0.56s; }
.reveal-stagger.visible > *:nth-child(8) { animation-delay: 0.64s; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-calm), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0; background: var(--modal-backdrop);
  opacity: 0; transition: opacity 0.4s var(--ease-calm);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative;
  display: flex; flex-direction: column;
  width: min(480px, 100%);
  max-height: min(90vh, 760px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0; transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s var(--ease-calm), transform 0.45s var(--ease-calm);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 1.05rem; font-weight: 600; flex: 1; }
.modal-counter {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); white-space: nowrap;
}
.modal-close {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 1.25rem; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}

.modal-stage {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 1rem 0.5rem;
  flex: 1; min-height: 0;
  background: var(--surface-2);
}
.modal-viewport {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  max-height: min(52vh, 460px);
}
.modal-video-wrap {
  width: min(240px, 72vw);
  border-radius: 16px; overflow: hidden;
  background: var(--media-bg);
  border: 2px solid var(--border);
  box-shadow: var(--card-shadow);
}
.modal-video-wrap video {
  display: block; width: 100%;
  max-height: min(52vh, 440px);
}
.modal-phone {
  padding: 7px; border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--media-bg);
  box-shadow: var(--card-shadow);
  max-height: min(52vh, 460px);
}
.modal-phone img {
  display: block;
  max-height: min(50vh, 440px);
  width: auto; max-width: min(240px, 72vw);
  border-radius: 14px;
  object-fit: contain;
}
.modal-phone[hidden], .modal-video-wrap[hidden] { display: none !important; }

.modal-nav {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem; line-height: 1;
  border-radius: 8px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.modal-nav:hover { border-color: var(--accent); color: var(--accent); }

.modal-hint {
  text-align: center; font-size: 0.72rem; color: var(--muted);
  padding: 0.35rem 1rem 0;
  flex-shrink: 0;
}
.modal-thumbs {
  display: flex; gap: 0.65rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.75rem 1rem 1rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.modal-thumbs::-webkit-scrollbar { height: 4px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.modal-thumb {
  flex-shrink: 0; scroll-snap-align: center;
  width: 68px; height: 118px;
  padding: 0; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden;
  background: var(--media-bg); cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.modal-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.modal-thumb.active { opacity: 1; border-color: var(--accent); }
.modal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.modal-thumb-video {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.25rem;
  color: var(--text); font-size: 0.65rem; font-weight: 600;
  background: linear-gradient(145deg, var(--surface-2), var(--media-bg));
}
.modal-thumb-video svg { color: var(--accent); }

.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-calm);
  pointer-events: none;
}
.mobile-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta .btn { width: 100%; min-height: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg::before, .hero-bg::after,
  .badge-dot, .marquee-track,
  .hero-panel.reveal.visible .avatar-frame,
  .hero .reveal.visible { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-stagger:not(.visible) > *, .reveal-stagger.visible > * {
    opacity: 1; transform: none; animation: none;
  }
  .modal-panel { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .showcase-wide { flex-direction: column; }
  .showcase-wide .showcase-visual { flex: none; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .trust-pillars { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    gap: 0.65rem;
    padding: 0.65rem max(1rem, env(safe-area-inset-left)) 0.65rem max(1rem, env(safe-area-inset-right));
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }
  .nav .theme-toggle { margin-left: auto; }
  .nav-resume { display: none; }
  .menu-btn { display: flex; }

  .nav-links {
    display: none;
    margin-left: 0;
    list-style: none;
  }
  .nav.open {
    z-index: 200;
  }
  .nav.open .logo,
  .nav.open .theme-toggle,
  .nav.open .menu-btn,
  .nav.open .nav-resume {
    position: relative;
    z-index: 202;
  }
  .nav.open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    margin: 0;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: var(--bg);
    z-index: 201;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    color: var(--text);
  }
  .nav-links a::after { display: none; }
  .nav-drawer-actions {
    display: flex; flex-direction: column; gap: 0.65rem;
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .nav-drawer-actions .btn { width: 100%; min-height: 48px; justify-content: center; }

  .mobile-cta { display: block; }

  .badge {
    border-radius: 12px;
    white-space: normal;
    font-size: 0.7rem;
  }
  .hero {
    min-height: auto;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.25rem 2.5rem;
  }
  .hero-sub { font-size: 0.98rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; min-height: 48px; }
  .social-link { width: 44px; height: 44px; }

  .section { padding: 3.5rem 1.25rem; }
  .section-tight { padding-top: 2rem; padding-bottom: 2.5rem; }
  .trust-bar { padding: 1.25rem 1.25rem; }

  .contact-card { padding: 1.75rem 1.25rem; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; min-height: 48px; }

  .footer {
    flex-direction: column; text-align: center;
    padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  }

  .cert-card { flex-direction: column; }
  .featured-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }

  .modal {
    padding: 0; align-items: flex-end;
  }
  .modal-panel {
    width: 100%; max-height: 96dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }
  .modal-header { padding: 0.85rem 1rem; }
  .modal-close, .modal-nav {
    width: 44px; height: 44px;
    font-size: 1.5rem;
  }
  .modal-stage { padding: 0.5rem 0.35rem; gap: 0.25rem; }
  .modal-viewport { max-height: min(58dvh, 520px); }
  .modal-phone img,
  .modal-video-wrap { max-width: min(260px, 78vw); }
  .modal-thumb { width: 56px; height: 96px; }
  .modal-hint { font-size: 0.68rem; padding-bottom: 0.25rem; }
}
