/* ===================== Fonts (self-hosted, SIL Open Font License, see assets/fonts) ===================== */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ===================== Design tokens ===================== */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --bg: #05070d;
  --bg-alt: #080b13;
  --surface: #10141d;
  --surface-hover: #171c28;
  --border: #232a38;
  --text: #f2f4f8;
  --text-muted: #a3acbd;
  --text-faint: #6b7386;

  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(59, 130, 246, 0.16);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 60px -20px rgba(0, 0, 0, 0.6);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #e9edf4;
  --bg-alt: #f3f5f9;
  --surface: #ffffff;
  --surface-hover: #eef1f7;
  --border: #d3dae5;
  --text: #0f172a;
  --text-muted: #47526b;
  --text-faint: #7c869c;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --shadow-rest: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 25px 60px -20px rgba(15, 23, 42, 0.25);
  color-scheme: light;
}

/* ===================== Reset ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #04211d;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===================== Progress bar ===================== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000; transition: width 80ms linear;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; font-size: 0.95rem;
}
.brand-name { font-size: 1rem; }
.brand-accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 100px; font-size: 0.92rem; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 100px;
  color: var(--text-muted); transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); margin: 0 auto; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-arrow { width: 16px; height: 16px; transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 64px 0 120px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 700px;
  background: radial-gradient(60% 60% at 30% 20%, var(--accent-soft), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(29, 78, 216, 0.16), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding-top: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 500;
  color: var(--accent); background: var(--accent-soft); padding: 7px 14px 7px 12px; border-radius: 100px;
  margin-bottom: 20px; font-family: var(--font-mono); border: 1px solid transparent;
}
.eyebrow-ping {
  position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0;
}
.eyebrow-ping::before, .eyebrow-ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
}
.eyebrow-ping::before { animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-muted); margin: 14px 0 18px; font-weight: 500; }
.typed { color: var(--text); font-weight: 700; }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.hero-tagline li {
  font-size: 0.78rem; font-weight: 600; padding: 7px 13px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}

.hero-desc { color: var(--text-muted); font-size: 1.02rem; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-socials { display: flex; gap: 10px; }
.hero-socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all var(--transition);
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.hero-socials svg { width: 18px; height: 18px; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative; width: min(360px, 80vw); aspect-ratio: 1/1; border-radius: 32px;
  padding: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-lg);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--surface); }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 16px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.floating-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.card-top { top: 6%; left: -6%; animation-delay: 0s; }
.card-bottom { bottom: 8%; right: -4%; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: var(--text-faint); animation: float 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; }

/* ===================== Sections ===================== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; margin-bottom: 10px; font-family: var(--font-mono);
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 20px; letter-spacing: -0.02em; }
.section-sub { color: var(--text-muted); max-width: 620px; margin-bottom: 50px; font-size: 1.02rem; }

/* ===================== About ===================== */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-bottom: 48px; align-items: start; }
.about-text { color: var(--text-muted); font-size: 1.05rem; }
.about-text strong { color: var(--text); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; text-align: center; box-shadow: var(--shadow-rest);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-plus { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.info-strip {
  display: flex; flex-wrap: wrap; gap: 28px; padding-top: 32px; border-top: 1px solid var(--border);
}
.info-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; }
.info-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ===================== Skills ===================== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-rest);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.skill-icon {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 13px; background: var(--accent-soft); font-size: 1.4rem; margin-bottom: 16px;
}
.skill-card h3 { font-size: 1.05rem; margin-bottom: 14px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem; padding: 6px 12px; border-radius: 100px; background: var(--accent-soft);
  color: var(--accent); font-weight: 500; border: 1px solid transparent; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ===================== Skill bars ===================== */
.skill-bars { max-width: 640px; margin: 56px auto 0; }
.skill-bars-title { font-size: 1.1rem; margin-bottom: 24px; text-align: center; }
.skill-bar-item { margin-bottom: 18px; }
.skill-bar-label {
  display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px;
  color: var(--text-muted); font-weight: 600;
}
.skill-bar-label span:first-child { color: var(--text); }
.skill-bar-track {
  height: 8px; border-radius: 100px; background: var(--border); overflow: hidden;
}
.skill-bar-fill {
  height: 100%; width: 0%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1000ms cubic-bezier(.4,0,.2,1);
}

/* ===================== Project filters ===================== */
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); font-size: 0.86rem;
  font-weight: 600; color: var(--text-muted); transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; border-color: transparent;
}

/* ===================== Services ===================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-rest); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; transform: scaleX(0);
  transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 300ms ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 1.5rem; margin-bottom: 18px; box-shadow: var(--shadow-md); flex-shrink: 0;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.service-card ul { display: flex; flex-direction: column; gap: 10px; }
.service-card li {
  position: relative; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5;
}
.service-card li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.why-grid {
  max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-rest);
}
.why-title { text-align: center; font-size: 1.1rem; margin-bottom: 22px; }
.why-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px;
}
.why-list li {
  position: relative; padding-left: 26px; color: var(--text-muted); font-size: 0.95rem;
}
.why-list li::before {
  content: "✔"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 0.85rem;
}

/* ===================== Timeline ===================== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--border), var(--border));
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 26px; box-shadow: var(--shadow-rest);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-content:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-md); }
.timeline-date {
  display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px; font-family: var(--font-mono);
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline-org { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; font-weight: 500; }
.timeline-content ul { display: flex; flex-direction: column; gap: 8px; }
.timeline-content li {
  position: relative; padding-left: 18px; color: var(--text-muted); font-size: 0.94rem;
}
.timeline-content li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.timeline-content strong { color: var(--text); }

/* ===================== Projects ===================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-rest);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-emoji { font-size: 1.7rem; }
.project-badge {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-2); background: rgba(29, 78, 216, 0.14); padding: 5px 10px; border-radius: 100px;
  font-family: var(--font-mono);
}
.project-card h3 { font-size: 1.15rem; }
.project-card p { color: var(--text-muted); font-size: 0.93rem; flex-grow: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600;
  font-size: 0.9rem; margin-top: 4px;
}
.project-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* ===================== Contact ===================== */
.contact-grid { max-width: 720px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-rest);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.contact-card:not(.contact-card-static):hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.contact-card svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.contact-label { display: block; font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-value { display: block; font-weight: 600; font-size: 0.95rem; word-break: break-word; }

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--text-faint); font-size: 0.85rem;
}

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.back-to-top svg { width: 18px; height: 18px; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-socials { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 20px; gap: 4px;
    transform: translateX(100%); transition: transform var(--transition); overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }

  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .floating-card { display: none; }
}

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

/* ===================== JH Digital additions (same tokens, same style) ===================== */
.services-grid-4 { grid-template-columns: repeat(2, 1fr); }
.service-benefit { color: var(--text); font-weight: 500; font-size: 0.97rem; margin: -6px 0 16px; line-height: 1.55; }

/* About */
.about-text p + p { margin-top: 14px; }
.about-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.about-photo {
  width: 88px; height: 88px; border-radius: 22px; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--accent); box-shadow: var(--shadow-md);
}
.about-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.about-role { font-size: 0.9rem; color: var(--text-muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Method */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.method-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-rest);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.method-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.method-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a;
  font-family: var(--font-mono); font-weight: 600; box-shadow: var(--shadow-md);
}
.method-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.method-card p { color: var(--text-muted); font-size: 0.93rem; }

/* Reviews (published once real reviews are added) */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-rest); display: flex; flex-direction: column; gap: 18px;
}
.review-card blockquote { color: var(--text); font-size: 0.98rem; }
.review-name { display: block; font-weight: 700; font-family: var(--font-head); }
.review-role { display: block; color: var(--text-muted); font-size: 0.88rem; }

/* Contact: WhatsApp first */
.contact-card-whatsapp { border-color: color-mix(in srgb, #25d366 45%, var(--border)); }
.contact-card-whatsapp svg { color: #25d366; }

/* Floating WhatsApp button, on every page */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 18px; border-radius: 100px; background: #15803d; color: #fff; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.55); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .contact-card:focus-visible, .filter-btn:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.back-to-top { bottom: 92px; }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .services-grid-4 { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
  .back-to-top { right: 21px; bottom: 84px; }
  .about-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Case studies */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 22px; }
.case-featured { padding: 0 0 26px; overflow: hidden; }
.case-featured > :not(.project-cover) { margin-left: 26px; margin-right: 26px; }
.project-cover {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-hover);
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.case-steps { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.case-steps dt {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
}
.case-steps dd { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.case-role { font-size: 0.9rem; color: var(--text-muted); }
.case-role strong { color: var(--text); }
.case-note {
  font-size: 0.85rem; color: var(--text-muted); background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 8px 12px;
}
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; }
  .case-featured > :not(.project-cover) { margin-left: 22px; margin-right: 22px; }
}

/* Reels and captures inside a case study */
.featured-grid { align-items: start; }
.case-featured .reels { margin-top: 26px; }
.reels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reel video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block;
  border-radius: var(--radius-md); background: #000; border: 1px solid var(--border);
}
.reel figcaption, .case-figure figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-mono); }
.case-figure img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* A featured case study across the full width: capture on one side, story on the other. */
.case-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; padding: 26px; align-items: center; }
.case-featured.case-wide > * { margin-left: 0; margin-right: 0; }
.case-wide-body { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .case-wide { grid-template-columns: 1fr; padding: 22px; }
}
