/* =========================================================
   Pacifique Fashaho Portfolio
   Main Global Stylesheet
   File: assets/css/style.css
========================================================= */

/* =========================
   1. DESIGN TOKENS
========================= */

:root{--font-sans:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--font-heading:"Plus Jakarta Sans",var(--font-sans);--font-mono:"JetBrains Mono",ui-monospace,"Cascadia Code",Menlo,Consolas,monospace;--bg:#f8fafc;--card:#fff;--text:#0f172a;--muted:#475569;--line:#e5e7eb;--accent:#2563eb;--accent2:#06b6d4;--accent-soft:rgba(37,99,235,.1);--pillar-support:#2563eb;--pillar-software:#7c3aed;--pillar-data:#0f766e;--field:#fff;--soft-surface:rgba(255,255,255,.72);--soft-surface-strong:rgba(255,255,255,.86);--shadow:0 14px 34px rgba(15,23,42,.08);--shadow-hover:0 20px 48px rgba(37,99,235,.16);--radius-sm:12px;--radius-md:16px;--radius-lg:20px;--radius-pill:999px;--container:1080px}

/* Manual dark theme */
:root[data-theme="dark"]{--bg:#0b1220;--card:#111827;--text:#e5edf7;--muted:#a8b3c7;--line:#263244;--accent:#38bdf8;--accent2:#22c55e;--accent-soft:rgba(56,189,248,.12);--field:#0f172a;--soft-surface:rgba(15,23,42,.76);--soft-surface-strong:rgba(30,41,59,.84);--shadow:0 16px 38px rgba(0,0,0,.38);--shadow-hover:0 24px 52px rgba(56,189,248,.16)}

/* System dark theme if user has not manually chosen light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]){--bg:#0b1220;--card:#111827;--text:#e5edf7;--muted:#a8b3c7;--line:#263244;--accent:#38bdf8;--accent2:#22c55e;--accent-soft:rgba(56,189,248,.12);--field:#0f172a;--soft-surface:rgba(15,23,42,.76);--soft-surface-strong:rgba(30,41,59,.84);--shadow:0 16px 38px rgba(0,0,0,.38);--shadow-hover:0 24px 52px rgba(56,189,248,.16)}
}

/* =========================
   2. RESET / BASE
========================= */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 500px at 80% 15%, rgba(6, 182, 212, 0.18), transparent 58%),
    radial-gradient(700px 420px at 8% 8%, rgba(245, 158, 11, 0.13), transparent 60%),
    linear-gradient(180deg, #ffffff, #f1f5f9),
    var(--bg);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 500px at 80% 15%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(700px 420px at 8% 8%, rgba(34, 197, 94, 0.1), transparent 60%),
    linear-gradient(180deg, #0b1220, #111827),
    var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(900px 500px at 80% 15%, rgba(56, 189, 248, 0.16), transparent 58%),
      radial-gradient(700px 420px at 8% 8%, rgba(34, 197, 94, 0.1), transparent 60%),
      linear-gradient(180deg, #0b1220, #111827),
      var(--bg);
  }
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,h2,h3,h4,h5,h6,.title{font-family:var(--font-heading)}
code,pre,kbd,.tech-badge{font-family:var(--font-mono)}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  line-height: 1.25;
}

ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

section {
  scroll-margin-top: 96px;
}

.wrap {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 22px 16px 64px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   3. ACCESSIBILITY
========================= */

.skip-link {
  position: absolute;
  top: 14px;
  left: -9999px;
  z-index: 10000;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  left: 14px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
section:focus {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

/* =========================
   4. LOADER
========================= */

#loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   5. SCROLL UI
========================= */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

#toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  min-height: 44px;
  padding: 10px 13px;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#toTop.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   6. TOPBAR / NAVIGATION
========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .topbar {
  background: rgba(11, 18, 32, 0.88);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar {
    background: rgba(11, 18, 32, 0.88);
  }
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.55);
}

nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  background: var(--soft-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

nav a:hover {
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.36);
  transform: translateY(-1px);
}

nav a.active,
nav a[aria-current="page"],
nav a[aria-current="location"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* Theme toggle */
.theme-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft-surface);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

:root.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
}

.theme-toggle-icon {
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

/* =========================
   7. CARDS / SURFACES
========================= */

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card::before,
.project::before,
.skill-card::before,
.cert::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before,
.project:hover::before,
.skill-card:hover::before,
.cert:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

/* Reveal animation */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* =========================
   8. HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.title {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-value {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

.summary {
  margin: 16px 0 0;
  color: var(--muted);
}

.subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

/* =========================
   9. PILLS / TAGS / CHIPS
========================= */

.pill,
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--soft-surface);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  padding: 6px 10px;
}

.chip {
  padding: 8px 10px;
}

.tag {
  padding: 6px 10px;
  font-size: 12px;
}

/* =========================
   10. BUTTONS
========================= */

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn,
.pbtn,
.cert-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft-surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.pbtn:hover,
.cert-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: var(--shadow-hover);
}

.btn.primary,
.pbtn.primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn.primary:hover,
.pbtn.primary:hover {
  filter: brightness(1.05);
}

/* =========================
   11. STATS
========================= */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.stat {
  flex: 1;
  min-width: 145px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-hover);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   12. PROFILE
========================= */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 14px;
}

.avatar {
  width: 134px;
  height: 134px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft-surface);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.profile-workstation {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.mini-card {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.mini-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft-surface-strong);
}

.mini-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   13. SECTION HEAD
========================= */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* =========================
   14. SKILLS SUMMARY
========================= */

.marquee {
  width: 100%;
  margin-top: 12px;
  padding: 2px 0;
}

.marquee-track {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft-surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.marquee-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text);
}

/* =========================
   15. SKILLS
========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.skills-pillar-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.skills-pillar-grid .skill-card{display:flex;min-width:0;flex-direction:column;min-height:100%;border-top:3px solid var(--hero-accent)}.skills-pillar-grid .skill-card:nth-child(2){border-top-color:var(--hero-development)}.skills-pillar-grid .skill-card:nth-child(3){border-top-color:var(--hero-data)}.skills-pillar-grid .skill-card>.small:last-child{margin-top:auto;padding-top:12px}.skills-pillar-grid .skill-card-header,.skills-pillar-grid .skill-top>div:last-child{min-width:0}.skills-pillar-grid h3,.skills-pillar-grid p,.skills-pillar-grid a{overflow-wrap:anywhere}

@media (max-width: 1180px) and (min-width: 921px) {
  .skills-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-pillar-grid .skill-card:nth-child(3) { grid-column: 1 / -1; }
}

.featured-pillar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.featured-pillar-card{display:flex;overflow:hidden;flex-direction:column;min-width:0;border:1px solid var(--line);border-top:3px solid var(--hero-accent);border-radius:var(--radius-md);background:var(--soft-surface);box-shadow:0 12px 26px rgba(15,23,42,.07)}.featured-pillar-card--development{border-top-color:var(--hero-development)}.featured-pillar-card--data{border-top-color:var(--hero-data)}.featured-pillar-card>img{width:100%;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid var(--line);background:var(--surface)}.featured-pillar-body{display:flex;flex:1;flex-direction:column;padding:18px}.featured-pillar-body h3{margin:6px 0 8px;font-size:20px;line-height:1.25}.featured-pillar-body p{margin:0;color:var(--muted);line-height:1.65}.featured-pillar-body ul{margin:14px 0 18px;padding-left:20px;color:var(--muted)}.featured-pillar-body li+li{margin-top:6px}.featured-pillar-body>a{margin-top:auto;font-weight:800;text-decoration:none}.featured-pillar-body>a:hover{text-decoration:underline}

.skills-priority-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.skills-priority-grid .skill-card--primary {
  grid-column: 1 / -1;
}

.skills-priority-grid .skill-card--secondary {
  grid-column: span 2;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow-hover);
}

.skill-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-ico,
.logo-box,
.chip-ico,
.cc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
}

.skill-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  font-size: 20px;
}

.skill-ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 13px;
}

.skill-card--primary {
  border-color: rgba(37, 99, 235, 0.3);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 72%),
    var(--soft-surface);
}

.capability-level {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.skill-evidence {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-evidence li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.skill-evidence li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.skill-proof{margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.skill-proof__type{display:inline-flex;padding:5px 9px;border-radius:999px;color:var(--accent);background:var(--accent-soft);font:900 10px/1.2 inherit;letter-spacing:.06em;text-transform:uppercase}
.skill-proof p{margin:9px 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.skill-proof__actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.skill-proof__actions a{font-size:12px;font-weight:850}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.service-card--primary {
  grid-column: 1 / -1;
  border-color: rgba(37, 99, 235, 0.3);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 72%),
    var(--soft-surface);
}

.service-card h3 {
  margin: 0 0 8px;
}

.service-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================
   16. EDUCATION / CERTIFICATIONS
========================= */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cert {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cert:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-hover);
}

.cert.featured {
  border-color: rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), transparent),
    var(--soft-surface);
}

.logo-box {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border-radius: 12px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-box span {
  font-weight: 900;
  color: var(--accent);
}

.cert .meta {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.cert .meta strong {
  display: block;
}

.cert .meta .small {
  margin-top: 4px;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cert-btn {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}

/* =========================
   17. PROJECTS
========================= */

.project-filters {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}

:root.js .project-filters {
  display: flex;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft-surface);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transform: translateY(-1px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  transition: opacity 0.25s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project:hover,
.project:focus-within {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow-hover);
}

.project.is-hidden {
  display: none;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.project h3 {
  margin: 0;
  font-size: 17px;
}

.project-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.project-preview {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-surface);
}

.project-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.case-study-preview {
  max-height: none;
}

.featured-project-card {
  grid-column: 1 / -1;
}

.project-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0;
}

.project-brief > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft-surface-strong);
}

.project-label {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-brief p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pbtn {
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
}

.project-foot {
  margin-top: 10px;
}

.project-empty {
  margin: 12px 0 0;
  text-align: center;
}

.project-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.project-details summary::marker {
  color: var(--accent);
}

.project-detail-body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   18. TIMELINE
========================= */

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.timeline-item {
  position: relative;
}

.timeline-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-card:hover,
.timeline-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: var(--shadow-hover);
}

.timeline-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}

.timeline-card summary::-webkit-details-marker {
  display: none;
}

.timeline-card summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-left: auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.timeline-card[open] summary::after {
  transform: rotate(225deg);
}

.timeline-marker {
  position: absolute;
  left: -22px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 4px var(--card);
}

.timeline-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.timeline-head strong,
.timeline-head .small {
  overflow-wrap: anywhere;
}

.timeline-card ul {
  margin: 12px 0 0 62px;
  padding-left: 18px;
  color: var(--muted);
}

.timeline-card li + li {
  margin-top: 6px;
}

/* =========================
   19. SHARED CONTACT CARDS
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-hover);
}

.cc-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cc-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 950;
}

.cc-meta {
  min-width: 0;
}

.cc-meta strong {
  display: block;
  font-size: 15px;
}

.cc-meta .small {
  overflow-wrap: anywhere;
}

.cc-go {
  position: relative;
  z-index: 1;
  font-size: 18px;
  opacity: 0.9;
}

/* =========================
   20. DARK MODE CLEANUP
========================= */

:root[data-theme="dark"] .skill-ico,
:root[data-theme="dark"] .logo-box,
:root[data-theme="dark"] .chip-ico,
:root[data-theme="dark"] .cc-ico {
  background: #0f172a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skill-ico,
  :root:not([data-theme="light"]) .logo-box,
  :root:not([data-theme="light"]) .chip-ico,
  :root:not([data-theme="light"]) .cc-ico {
    background: #0f172a;
  }
}

/* =========================
   21. RESPONSIVE DESIGN
========================= */

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

  .projects-grid,
  .skills-grid,
  .featured-pillar-grid,
  .services-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .skills-priority-grid .skill-card--primary,
  .skills-priority-grid .skill-card--secondary,
  .service-card--primary {
    grid-column: auto;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .wrap {
    padding: 16px 14px 48px;
  }

  .hero {
    gap: 14px;
    margin-top: 12px;
  }

  .card {
    padding: 15px;
    border-radius: var(--radius-md);
  }

  .profile {
    align-items: flex-start;
    text-align: left;
  }

  .btns,
  .project-actions,
  .cert-actions {
    flex-direction: column;
  }

  .btn,
  .pbtn,
  .cert-btn {
    width: 100%;
    text-align: center;
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cert {
    flex-direction: column;
  }

  .logo-box {
    align-self: flex-start;
  }

  .section-head,
  .project-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-brief {
    grid-template-columns: 1fr;
  }

  .project-tags {
    justify-content: flex-start;
  }

  :root.js .project-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-btn {
    width: 100%;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-card summary {
    align-items: flex-start;
  }

  .timeline-card summary::after {
    margin-top: 8px;
  }

  .timeline-card ul {
    margin: 12px 0 0 18px;
  }

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

  .contact-card {
    align-items: flex-start;
  }

  #toTop {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  .title {
    font-size: 30px;
  }

  .pill,
  .chip,
  .tag,
  .marquee-item {
    font-size: 12px;
  }

  .cc-ico,
  .skill-ico {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .project-filters {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   22. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}
/* =========================
   23. SHARED STATUS INDICATORS
========================= */

.live-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.live-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

/* =========================
   ACCESSIBILITY: FORCED COLORS
========================= */

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px;
  }

  .btn,
  nav a,
  .theme-toggle,
  .filter-btn {
    border-color: ButtonText;
    forced-color-adjust: auto;
  }

  .btn.primary {
    border: 2px solid ButtonText;
  }

  .live-dot.online {
    border-color: Canvas;
    background: CanvasText;
    box-shadow: none;
  }
}

/* =========================================================
   Bilingual language switcher
========================================================= */

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft-surface);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.language-switcher a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-switcher a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.language-switcher-separator {
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}

@media (max-width: 980px) {
  .topbar .wrap {
    flex-wrap: wrap;
  }

  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .language-switcher {
    margin-left: 0;
  }

  .theme-toggle-text {
    display: none;
  }

  .theme-toggle {
    padding-inline: 10px;
  }
}


/* =========================
   24. INTERACTIVE HERO V2
   Phase 3: Professional visual system
========================= */

:root {
  --hero-accent: #2563eb;
  --hero-accent-soft: rgba(37, 99, 235, 0.1);
  --hero-cyan-soft: rgba(6, 182, 212, 0.1);
  --hero-success: #16a34a;
  --hero-success-soft: rgba(22, 163, 74, 0.12);
  --hero-development: #6d28d9;
  --hero-data: #0f766e;
  --hero-panel: #0f172a;
  --hero-panel-elevated: #162033;
  --hero-panel-line: rgba(148, 163, 184, 0.2);
  --hero-panel-text: #e5edf7;
  --hero-panel-muted: #9aabc1;
  --hero-panel-accent: #60a5fa;
  --hero-panel-success: #4ade80;
  --hero-shadow: 0 24px 70px rgba(15, 23, 42, 0.12), 0 6px 20px rgba(37, 99, 235, 0.08);
  --hero-panel-shadow: 0 30px 80px rgba(15, 23, 42, 0.28), 0 8px 24px rgba(15, 23, 42, 0.2);
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --hero-accent: #38bdf8;
  --hero-accent-soft: rgba(56, 189, 248, 0.12);
  --hero-cyan-soft: rgba(34, 197, 94, 0.1);
  --hero-success: #4ade80;
  --hero-success-soft: rgba(74, 222, 128, 0.12);
  --hero-development: #c4b5fd;
  --hero-data: #5eead4;
  --hero-panel: #080f1d;
  --hero-panel-elevated: #111c2e;
  --hero-panel-line: rgba(148, 163, 184, 0.22);
  --hero-panel-text: #edf6ff;
  --hero-panel-muted: #a7b6ca;
  --hero-panel-accent: #7dd3fc;
  --hero-panel-success: #86efac;
  --hero-shadow: 0 26px 74px rgba(0, 0, 0, 0.34), 0 6px 22px rgba(56, 189, 248, 0.08);
  --hero-panel-shadow: 0 32px 86px rgba(0, 0, 0, 0.44), 0 8px 26px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hero-accent: #38bdf8;
    --hero-accent-soft: rgba(56, 189, 248, 0.12);
    --hero-cyan-soft: rgba(34, 197, 94, 0.1);
    --hero-success: #4ade80;
    --hero-success-soft: rgba(74, 222, 128, 0.12);
    --hero-development: #c4b5fd;
    --hero-data: #5eead4;
    --hero-panel: #080f1d;
    --hero-panel-elevated: #111c2e;
    --hero-panel-line: rgba(148, 163, 184, 0.22);
    --hero-panel-text: #edf6ff;
    --hero-panel-muted: #a7b6ca;
    --hero-panel-accent: #7dd3fc;
    --hero-panel-success: #86efac;
    --hero-shadow: 0 26px 74px rgba(0, 0, 0, 0.34), 0 6px 22px rgba(56, 189, 248, 0.08);
    --hero-panel-shadow: 0 32px 86px rgba(0, 0, 0, 0.44), 0 8px 26px rgba(0, 0, 0, 0.28);
  }
}

.hero.hero-v2 {
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: stretch;
  margin-top: clamp(16px, 2.4vw, 28px);
}

.hero-v2 > .card { min-width: 0; }
.hero-v2 > .card::before { display: none; }

.hero-v2__intro {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(24px, 4.2vw, 46px);
  background:
    radial-gradient(circle at 92% 8%, var(--hero-cyan-soft), transparent 30%),
    radial-gradient(circle at 4% 96%, var(--hero-accent-soft), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 52%),
    var(--card);
  box-shadow: var(--hero-shadow);
}

.hero-v2__intro::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-accent-soft), transparent 66%);
  pointer-events: none;
}

.hero-v2__opportunity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 clamp(20px, 3vw, 30px);
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-v2__intro .title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(40px, 5.25vw, 62px);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-v2__positioning {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--hero-accent);
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-v2__intro .hero-value {
  max-width: 62ch;
  margin-top: clamp(18px, 2.5vw, 26px);
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 620;
  line-height: 1.65;
}

.hero-v2__actions { margin-top: clamp(22px, 3vw, 30px); }

.hero-v2__actions .btn {
  min-height: 48px;
  padding: 12px 17px;
  border-radius: 14px;
}

.hero-v2__actions .btn.primary {
  background: linear-gradient(135deg, var(--hero-accent), var(--accent2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(37, 99, 235, 0.14);
}

.hero-v2__secondary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.hero-v2__secondary-links a {
  color: inherit;
  text-decoration-color: rgba(71, 85, 105, 0.4);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.hero-v2__secondary-links a:hover {
  color: var(--hero-accent);
  text-decoration-color: currentColor;
}

.hero-v2__identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(24px, 3.4vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-v2__identity picture { flex: 0 0 auto; }

.hero-v2__identity .avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18), 0 0 0 5px var(--hero-accent-soft);
}

.hero-v2__identity > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.hero-v2__identity strong { font-size: 15px; line-height: 1.3; }
.hero-v2__identity .small { line-height: 1.45; }

.hero-v2__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-v2__proof li {
  --pillar-accent: var(--hero-accent);
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pillar-accent);
  border-radius: 14px;
  background: var(--soft-surface);
}

.hero-v2__proof li:nth-child(2) { --pillar-accent: var(--hero-development); }
.hero-v2__proof li:nth-child(3) { --pillar-accent: var(--hero-data); }

.hero-v2__proof strong,
.hero-v2__proof a { display: block; }

.hero-v2__proof strong {
  margin-bottom: 7px;
  color: var(--pillar-accent);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.18;
}

.hero-v2__proof a {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
}

.hero-v2__proof a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workbench {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 3.4vw, 36px);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--hero-panel-text);
  background:
    radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.2), transparent 32%),
    radial-gradient(circle at 8% 88%, rgba(34, 197, 94, 0.1), transparent 34%),
    linear-gradient(150deg, var(--hero-panel-elevated), var(--hero-panel) 64%);
  box-shadow: var(--hero-panel-shadow);
}

.workbench::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 86%);
  pointer-events: none;
}

.workbench__header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hero-panel-line);
}

.workbench__header .small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--hero-panel-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workbench__header .small::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-panel-success);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.1), 0 0 18px rgba(74, 222, 128, 0.28);
}

.workbench h2 {
  margin: 0;
  color: var(--hero-panel-text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.workbench .summary {
  max-width: 55ch;
  margin-top: 12px;
  color: var(--hero-panel-muted);
  line-height: 1.65;
}

.workbench__scenario-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.workbench__scenario-controls[hidden] { display: none; }

.workbench__scenario.btn {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border-color: var(--hero-panel-line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--hero-panel-muted);
  box-shadow: none;
  font-size: 12px;
}

.workbench__scenario.btn:hover,
.workbench__scenario.btn:focus-visible,
.workbench__scenario.btn.is-active,
.workbench__scenario.btn[aria-pressed="true"] {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(59, 130, 246, 0.16);
  color: var(--hero-panel-text);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

.workbench__output {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 20px;
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid var(--hero-panel-line);
  border-radius: 18px;
  background: rgba(8, 15, 29, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 38px rgba(2, 6, 23, 0.16);
}

.workbench__status-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hero-panel-line);
}

.workbench__status-row .live-dot {
  margin-top: 5px;
  background: var(--hero-panel-success);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1);
}

.workbench__status-row > div { display: grid; gap: 2px; }
.workbench__status-row .small { color: var(--hero-panel-muted); line-height: 1.4; }
.workbench__status-row strong { color: var(--hero-panel-text); font-size: 15px; line-height: 1.4; }

.workbench__steps {
  display: grid;
  gap: 0;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.workbench__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 7px 0;
  color: var(--hero-panel-text);
  font-size: 14px;
  line-height: 1.45;
}

.workbench__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -8px;
  left: 18px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(96, 165, 250, 0.52), rgba(148, 163, 184, 0.14));
}

.workbench__steps li > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.11);
  color: var(--hero-panel-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.workbench__output > .btn {
  align-self: flex-start;
  margin-top: auto;
  border-color: rgba(96, 165, 250, 0.38);
  border-radius: 13px;
  background: rgba(59, 130, 246, 0.13);
  color: var(--hero-panel-text);
  box-shadow: none;
}

.workbench__output > .btn:hover {
  border-color: rgba(96, 165, 250, 0.68);
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
}

.workbench noscript { display: block; margin-top: 14px; }
.workbench noscript .small { color: var(--hero-panel-muted); }
.workbench noscript a { color: var(--hero-panel-accent); text-underline-offset: 3px; }

.hero-profile-details {
  padding: clamp(18px, 2.8vw, 28px);
  background: linear-gradient(135deg, var(--hero-accent-soft), transparent 42%), var(--card);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.hero-profile-details > .section-head { margin-bottom: 14px; }

.hero-profile-details details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-surface);
}

.hero-profile-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 13px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.hero-profile-details summary::-webkit-details-marker { display: none; }

.hero-profile-details summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--hero-accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.22s var(--hero-ease), background 0.22s ease;
}

.hero-profile-details details[open] summary::after {
  transform: rotate(45deg);
  background: var(--hero-accent-soft);
}

.hero-profile-details details[open] summary { border-bottom: 1px solid var(--line); }

.hero-profile-details .profile {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.hero-profile-details .profile-workstation {
  width: 100%;
  height: 100%;
  min-height: 190px;
}

.hero-profile-details .mini-card { height: 100%; text-align: left; }

.hero-v2 a:focus-visible,
.hero-v2 button:focus-visible,
.hero-profile-details summary:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.5);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .hero.hero-v2 { grid-template-columns: 1fr; }
  .hero-v2__intro .title { max-width: 18ch; }
  .workbench { min-height: auto; }
  .hero-profile-details .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-profile-details .profile-workstation { grid-column: 1 / -1; max-height: 280px; }
}

@media (max-width: 720px) {
  .hero-v2__intro,
  .workbench { padding: clamp(20px, 6vw, 28px); }

  .hero-v2__intro .title {
    max-width: none;
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.02;
  }

  .hero-v2__intro .hero-value { font-size: 16px; }
  .hero-v2__actions .btn { width: 100%; }
  .hero-v2__secondary-links { justify-content: center; }
  .hero-v2__identity { align-items: flex-start; }
  .hero-v2__proof { grid-template-columns: 1fr; }

  .hero-v2__proof li {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 8px;
  }

  .hero-v2__proof strong { margin: 0; }
  .workbench__scenario-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench__scenario.btn { width: 100%; }
  .hero-profile-details .profile { grid-template-columns: 1fr; }
  .hero-profile-details .profile-workstation { grid-column: auto; max-height: none; }
}

@media (max-width: 430px) {
  .hero-v2__opportunity {
    align-items: flex-start;
    width: 100%;
    border-radius: 14px;
  }

  .hero-v2__intro .title {
    font-size: clamp(34px, 11.5vw, 42px);
    letter-spacing: -0.045em;
  }

  .hero-v2__secondary-links { justify-content: flex-start; }
  .hero-v2__identity .avatar { width: 54px; height: 54px; border-radius: 16px; }
  .workbench__scenario-controls { grid-template-columns: 1fr; }
  .workbench__steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .workbench__steps li > span:first-child { width: 32px; height: 32px; }
  .workbench__steps li:not(:last-child)::after { top: 39px; left: 16px; }
  .workbench__output > .btn { width: 100%; }
  .hero-profile-details summary { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2 *,
  .hero-v2 *::before,
  .hero-v2 *::after,
  .hero-profile-details *,
  .hero-profile-details *::before,
  .hero-profile-details *::after {
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   25. WORKBENCH MICROINTERACTIONS
   Phase 5: state-driven motion only
========================= */

.workbench {
  --workbench-pointer-x: 78%;
  --workbench-pointer-y: 12%;
  --workbench-progress: 100%;
  --workbench-state-accent: var(--hero-panel-accent);
  --workbench-state-accent-soft: rgba(96, 165, 250, 0.16);
}

.workbench[data-workbench-active-scenario="network"] {
  --workbench-state-accent: #22d3ee;
  --workbench-state-accent-soft: rgba(34, 211, 238, 0.15);
}

.workbench[data-workbench-active-scenario="setup"] {
  --workbench-state-accent: #a78bfa;
  --workbench-state-accent-soft: rgba(167, 139, 250, 0.16);
}

.hero.hero-v2 > .workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--workbench-pointer-x) var(--workbench-pointer-y),
    var(--workbench-state-accent-soft),
    transparent 68%
  );
  opacity: 0.42;
  transition: opacity 0.28s var(--hero-ease);
}

.hero.hero-v2 > .workbench[data-workbench-pointer="active"]::before {
  opacity: 0.82;
}

.workbench > * {
  position: relative;
  z-index: 1;
}

.workbench__scenario.btn {
  transition:
    transform 0.2s var(--hero-ease),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.workbench__scenario.btn.is-active,
.workbench__scenario.btn[aria-pressed="true"] {
  border-color: var(--workbench-state-accent);
  background: var(--workbench-state-accent-soft);
  color: var(--hero-panel-text);
  transform: translateY(-1px);
}

.workbench__scenario.btn.is-active::after,
.workbench__scenario.btn[aria-pressed="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--workbench-state-accent);
  box-shadow: 0 0 0 4px var(--workbench-state-accent-soft);
}

.workbench__output {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.workbench__output::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--workbench-progress);
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--workbench-state-accent),
    var(--hero-panel-success)
  );
  box-shadow: 0 0 18px var(--workbench-state-accent-soft);
  transition: width 0.28s var(--hero-ease);
}

.workbench[data-workbench-state="running"] .workbench__output {
  border-color: var(--workbench-state-accent);
}

.workbench[data-workbench-state="complete"] .workbench__output {
  border-color: rgba(74, 222, 128, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(2, 6, 23, 0.2);
}

.workbench[data-workbench-state="running"]
.workbench__status-row .live-dot {
  background: var(--workbench-state-accent);
  animation: workbenchBusyPulse 1.15s ease-in-out infinite;
}

.workbench[data-workbench-state="complete"]
.workbench__status-row .live-dot {
  background: var(--hero-panel-success);
  animation: workbenchCompletePop 0.36s var(--hero-ease) both;
}

.workbench__steps li[data-workbench-motion="entering"] {
  animation: workbenchStepIn 0.38s var(--hero-ease) both;
}

.workbench__steps li > span:first-child {
  position: relative;
}

.workbench__steps
li[data-workbench-step-state="complete"]
> span:first-child {
  border-color: var(--workbench-state-accent);
  background: var(--workbench-state-accent-soft);
  color: var(--workbench-state-accent);
}

.workbench__steps
li[data-workbench-step-state="complete"]
> span:first-child::after {
  content: "✓";
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 2px solid var(--hero-panel);
  border-radius: 50%;
  background: var(--hero-panel-success);
  color: #052e16;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.workbench [data-workbench-result][data-workbench-reveal="visible"],
.workbench #workbenchCaseStudyLink[data-workbench-reveal="visible"] {
  animation: workbenchResultIn 0.34s var(--hero-ease) both;
}

@keyframes workbenchStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes workbenchResultIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes workbenchBusyPulse {
  0%, 100% {
    box-shadow: 0 0 0 5px var(--workbench-state-accent-soft);
    transform: scale(0.94);
  }
  50% {
    box-shadow: 0 0 0 9px transparent;
    transform: scale(1);
  }
}

@keyframes workbenchCompletePop {
  0% { transform: scale(0.75); }
  70% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .workbench__scenario.btn:hover,
  .workbench__output > .btn:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-v2 > .workbench::before,
  .workbench__output::before {
    transition: none;
  }

  .workbench[data-workbench-state="running"]
  .workbench__status-row .live-dot,
  .workbench[data-workbench-state="complete"]
  .workbench__status-row .live-dot,
  .workbench__steps li[data-workbench-motion="entering"],
  .workbench [data-workbench-result][data-workbench-reveal="visible"],
  .workbench #workbenchCaseStudyLink[data-workbench-reveal="visible"] {
    animation: none;
  }
}

/* =========================
   END WORKBENCH MICROINTERACTIONS
========================= */

/* =========================
   26. RESPONSIVE HERO REFINEMENT
   Phase 6: desktop, tablet and mobile
========================= */

:root {
  --home-container: 1240px;
  --home-gutter: clamp(14px, 2.6vw, 24px);
}

.topbar-home .wrap,
.home-shell {
  width: min(100%, var(--home-container));
}

.home-shell {
  padding-right: var(--home-gutter);
  padding-left: var(--home-gutter);
}

.hero.hero-v2 {
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);
  gap: clamp(18px, 2.35vw, 30px);
}

.hero-v2__intro,
.workbench,
.hero-profile-details {
  min-width: 0;
}

.hero-v2__secondary-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 3px;
}

.hero-v2__proof a,
.hero-v2__identity .small,
.workbench__status-row > div,
.workbench__status-row strong,
.workbench__status-row .small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workbench__steps {
  min-height: 200px;
  align-content: start;
}

.workbench__scenario-controls {
  overscroll-behavior-inline: contain;
}

@media (max-width: 1120px) and (min-width: 921px) {
  .hero.hero-v2 {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(340px, 0.9fr);
  }

  .hero-v2__intro {
    padding: clamp(26px, 3.5vw, 38px);
  }

  .hero-v2__intro .title {
    max-width: 15ch;
    font-size: clamp(40px, 4.6vw, 54px);
  }

  .workbench {
    padding: clamp(22px, 3vw, 30px);
  }
}

@media (max-width: 920px) {
  .home-shell {
    padding-top: 18px;
  }

  .hero.hero-v2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-v2__intro .title {
    max-width: 17ch;
  }

  .workbench {
    min-height: auto;
  }

  .workbench__steps {
    min-height: 200px;
  }
}

@media (max-width: 720px) {
  .topbar-home .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 7px 9px;
    padding: 8px 12px 7px;
  }

  .topbar-home .brand {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
  }

  .topbar-home .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-home .language-switcher {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
  }

  .topbar-home .theme-toggle {
    grid-row: 1;
    grid-column: 3;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .topbar-home nav {
    grid-row: 2;
    grid-column: 1 / -1;
    order: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-home nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 10px;
    scroll-snap-align: start;
  }

  .home-shell {
    padding: 12px 14px 48px;
  }

  .home-shell section {
    scroll-margin-top: 112px;
  }

  .hero.hero-v2 {
    margin-top: 6px;
  }

  .hero-v2__intro,
  .workbench {
    padding: clamp(20px, 5.5vw, 27px);
  }

  .hero-v2__intro .title {
    max-width: none;
    font-size: clamp(34px, 8.8vw, 46px);
    line-height: 1.02;
  }

  .hero-v2__secondary-links {
    justify-content: flex-start;
  }

  .workbench__output {
    min-width: 0;
  }

  .workbench__steps {
    min-height: 200px;
  }

  .hero-profile-details {
    padding: 18px;
  }
}

@media (max-width: 720px) and (min-width: 561px) {
  .hero-v2__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-v2__proof li {
    display: block;
    padding: 11px;
  }

  .hero-v2__proof strong {
    margin-bottom: 3px;
  }
}

@media (max-width: 560px) {
  .hero-v2__intro .title {
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero-v2__intro .hero-value {
    line-height: 1.58;
  }

  .hero-v2__identity {
    gap: 11px;
  }

  .hero-v2__identity .avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .hero-v2__proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench__scenario-controls {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scroll-padding-inline: 1px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .workbench__scenario-controls[hidden] {
    display: none;
  }

  .workbench__scenario.btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    min-height: 44px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .workbench__output {
    margin-top: 14px;
    padding: 14px;
  }

  .workbench__steps {
    min-height: 192px;
    margin: 15px 0 18px;
  }

  .workbench__steps li {
    min-height: 48px;
    font-size: 13.5px;
  }

  .workbench__status-row {
    padding-bottom: 13px;
  }

  .workbench__output > .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .topbar-home .wrap {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 6px 7px;
    padding-inline: 10px;
  }

  .topbar-home .brand {
    gap: 7px;
    font-size: 14px;
  }

  .topbar-home .brand .dot {
    width: 9px;
    height: 9px;
  }

  .topbar-home .language-switcher {
    min-height: 38px;
    padding: 3px;
  }

  .topbar-home .language-switcher a {
    min-width: 30px;
    min-height: 28px;
    padding-inline: 6px;
  }

  .topbar-home .theme-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .topbar-home nav a {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .home-shell {
    padding-inline: 11px;
  }

  .hero-v2__intro,
  .workbench {
    padding: 18px;
  }

  .hero-v2__intro .title {
    font-size: clamp(30px, 9.7vw, 36px);
  }

  .hero-v2__opportunity {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .hero-v2__secondary-links {
    gap: 5px 7px;
    font-size: 12.5px;
  }

  .workbench h2 {
    font-size: 27px;
  }

  .workbench__header .summary {
    font-size: 13.5px;
  }

  .workbench__scenario.btn {
    min-width: 106px;
  }

  .workbench__steps {
    min-height: 188px;
  }

  .hero-profile-details {
    padding: 14px;
  }
}

@media (max-width: 920px) and (max-height: 520px) {
  .topbar-home {
    position: relative;
  }

  .home-shell section {
    scroll-margin-top: 24px;
  }
}

@media print {
  .topbar-home {
    position: static;
  }

  .home-shell {
    width: 100%;
    padding-inline: 0;
  }

  .workbench__scenario-controls {
    overflow: visible;
  }
}

/* =========================
   END RESPONSIVE HERO REFINEMENT
========================= */

/* =========================
   END INTERACTIVE HERO V2
========================= */

/* Consent prompt: compact, readable and keyboard-friendly. */
.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: clamp(.75rem, 3vw, 2rem);
  bottom: clamp(.75rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(46rem, calc(100% - 1.5rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.analytics-consent strong { display: block; margin-bottom: .25rem; }
.analytics-consent p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.analytics-consent__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.analytics-consent__actions .btn { padding: .62rem .8rem; }
.analytics-consent__actions a { padding: .4rem; font-size: .85rem; font-weight: 700; }

@media (max-width: 680px) {
  .analytics-consent { grid-template-columns: 1fr; }
  .analytics-consent__actions { justify-content: flex-start; }
}
