:root {
  --ink: #18212f;
  --muted: #657081;
  --copy: #465164;
  --vt-x: 0px;
  --vt-y: 0px;
  --vt-radius: 0px;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dfe5df;
  --teal: #0f8b8d;
  --green: #2e8b57;
  --coral: #e26d5c;
  --amber: #f2b84b;
  --blue: #3166b1;
  --shadow: 0 24px 70px rgba(24, 33, 47, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(226, 109, 92, 0.08), transparent 30%),
    var(--paper);
  font-family:
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body[data-theme="dark"] {
  --ink: #ecf2f8;
  --muted: #d7e1ec;
  --copy: #e2e9f2;
  --paper: #0b1118;
  --surface: #121b26;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.14), transparent 28%),
    linear-gradient(315deg, rgba(226, 109, 92, 0.1), transparent 30%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li+li {
  margin-top: 0.55rem;
}

/* ── HEADER ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(223, 229, 223, 0.85);
  background: rgba(251, 252, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(15, 139, 141, 0.12);
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.language-switch,
.theme-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.72);
}

.theme-switch {
  gap: 0.18rem;
}

.lang-button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-button.is-active {
  color: #ffffff;
  background: var(--teal);
}

.theme-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-button.is-active {
  color: #ffffff;
  background: var(--teal);
}

.theme-button .theme-icon {
  width: 18px;
  height: 18px;
}

.theme-button .sr-only {
  position: absolute;
}

.theme-button:focus-visible,
.lang-button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(15, 139, 141, 0.35);
  outline-offset: 2px;
}

.theme-button,
.lang-button {
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.theme-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

/* ── THEME TRANSITION OVERLAY ───────────────────────── */

.theme-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  clip-path: circle(0px at 0 0);
  background: var(--paper);
  color: var(--ink);
  transition: clip-path 560ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: clip-path;
}

.theme-transition[data-theme="dark"] {
  --ink: #ecf2f8;
  --muted: #d7e1ec;
  --copy: #e2e9f2;
  --paper: #0b1118;
  --surface: #121b26;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.14), transparent 28%),
    linear-gradient(315deg, rgba(226, 109, 92, 0.1), transparent 30%),
    var(--paper);
}

.theme-transition[data-theme="dark"] .site-header {
  background: rgba(12, 18, 26, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.theme-transition[data-theme="dark"] .language-switch,
.theme-transition[data-theme="dark"] .theme-switch,
.theme-transition[data-theme="dark"] .nav-toggle,
.theme-transition[data-theme="dark"] .site-nav {
  background: rgba(18, 27, 38, 0.86);
}

.theme-transition[data-theme="dark"] .site-nav a:hover,
.theme-transition[data-theme="dark"] .site-nav a:focus-visible,
.theme-transition[data-theme="dark"] .site-nav a.is-active {
  background: rgba(15, 139, 141, 0.2);
}

.theme-transition[data-theme="dark"] .button-secondary,
.theme-transition[data-theme="dark"] .button-outline,
.theme-transition[data-theme="dark"] .skill-card,
.theme-transition[data-theme="dark"] .project-card,
.theme-transition[data-theme="dark"] .process-step,
.theme-transition[data-theme="dark"] .testimonial-card,
.theme-transition[data-theme="dark"] .ops-window,
.theme-transition[data-theme="dark"] .metric-panel,
.theme-transition[data-theme="dark"] .chart-panel,
.theme-transition[data-theme="dark"] .flow-panel,
.theme-transition[data-theme="dark"] .language-switch,
.theme-transition[data-theme="dark"] .theme-switch,
.theme-transition[data-theme="dark"] .contact-panel a {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.theme-transition[data-theme="dark"] .button-secondary,
.theme-transition[data-theme="dark"] .button-outline,
.theme-transition[data-theme="dark"] .skill-card,
.theme-transition[data-theme="dark"] .project-card,
.theme-transition[data-theme="dark"] .process-step,
.theme-transition[data-theme="dark"] .testimonial-card,
.theme-transition[data-theme="dark"] .ops-window,
.theme-transition[data-theme="dark"] .metric-panel,
.theme-transition[data-theme="dark"] .chart-panel,
.theme-transition[data-theme="dark"] .flow-panel,
.theme-transition[data-theme="dark"] .language-switch,
.theme-transition[data-theme="dark"] .theme-switch,
.theme-transition[data-theme="dark"] .contact-panel a,
.theme-transition[data-theme="dark"] .mini-list span {
  background: rgba(18, 27, 38, 0.88);
}

.theme-transition[data-theme="dark"] .window-bar,
.theme-transition[data-theme="dark"] .flow-row {
  background: rgba(255, 255, 255, 0.04);
}

.theme-transition[data-theme="dark"] .mini-app-card {
  background: linear-gradient(145deg, #175c8b, #0d7b84);
}

.theme-transition[data-theme="dark"] .phone-mockup {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(49, 102, 177, 0.22), transparent 42%),
    #111923;
}

.theme-transition[data-theme="dark"] .about {
  background: rgba(255, 255, 255, 0.02);
}

.theme-transition[data-theme="dark"] .skills {
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.02);
}

.theme-transition[data-theme="dark"] .process {
  background: rgba(255, 255, 255, 0.02);
}

.theme-transition[data-theme="dark"] .testimonials {
  background:
    linear-gradient(270deg, rgba(15, 139, 141, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.02);
}

.theme-transition[data-theme="dark"] .contact {
  background:
    linear-gradient(135deg, rgba(10, 14, 20, 0.98), rgba(9, 43, 44, 0.96)),
    #0b1118;
}

.theme-transition[data-theme="dark"] .site-footer {
  background: #0b1118;
}

.theme-transition[data-theme="dark"] .tech-tags span {
  background: rgba(15, 139, 141, 0.15);
  border-color: rgba(15, 139, 141, 0.25);
}

.theme-transition[data-theme="dark"] .project-metrics span {
  background: rgba(15, 139, 141, 0.15);
  border-color: rgba(15, 139, 141, 0.25);
  color: #90dfda;
}

.theme-transition[data-theme="dark"] .process-icon {
  background: rgba(15, 139, 141, 0.15);
  color: #5cc9cb;
}

.theme-transition[data-theme="dark"] .process-icon.icon-blue {
  background: rgba(49, 102, 177, 0.15);
  color: #7aabea;
}

.theme-transition[data-theme="dark"] .process-icon.icon-coral {
  background: rgba(226, 109, 92, 0.15);
  color: #f0a090;
}

.theme-transition[data-theme="dark"] .process-icon.icon-green {
  background: rgba(46, 139, 87, 0.15);
  color: #6bc99a;
}

.theme-transition[data-theme="dark"] .quote-icon {
  color: rgba(15, 139, 141, 0.3);
}

.theme-transition[data-theme="dark"] .about-stats {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.theme-transition[data-theme="dark"] .hero-avatar img {
  border-color: rgba(18, 27, 38, 0.88);
}

.theme-transition[data-theme="light"] {
  --ink: #18212f;
  --muted: #657081;
  --copy: #465164;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dfe5df;
  --shadow: 0 24px 70px rgba(24, 33, 47, 0.13);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(226, 109, 92, 0.08), transparent 30%),
    var(--paper);
}

.theme-transition[data-theme="light"] .site-header {
  background: rgba(251, 252, 248, 0.9);
  border-bottom-color: rgba(223, 229, 223, 0.85);
}

.theme-transition[data-theme="light"] .language-switch,
.theme-transition[data-theme="light"] .theme-switch,
.theme-transition[data-theme="light"] .nav-toggle,
.theme-transition[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.72);
}

.theme-transition[data-theme="light"] .site-nav a:hover,
.theme-transition[data-theme="light"] .site-nav a:focus-visible,
.theme-transition[data-theme="light"] .site-nav a.is-active {
  background: rgba(15, 139, 141, 0.12);
}

.theme-transition[data-theme="light"] .button-secondary,
.theme-transition[data-theme="light"] .button-outline,
.theme-transition[data-theme="light"] .skill-card,
.theme-transition[data-theme="light"] .project-card,
.theme-transition[data-theme="light"] .process-step,
.theme-transition[data-theme="light"] .testimonial-card,
.theme-transition[data-theme="light"] .ops-window,
.theme-transition[data-theme="light"] .metric-panel,
.theme-transition[data-theme="light"] .chart-panel,
.theme-transition[data-theme="light"] .flow-panel,
.theme-transition[data-theme="light"] .language-switch,
.theme-transition[data-theme="light"] .theme-switch,
.theme-transition[data-theme="light"] .contact-panel a {
  border-color: rgba(223, 229, 223, 0.82);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.06);
}

.theme-transition[data-theme="light"] .button-secondary,
.theme-transition[data-theme="light"] .button-outline,
.theme-transition[data-theme="light"] .skill-card,
.theme-transition[data-theme="light"] .project-card,
.theme-transition[data-theme="light"] .process-step,
.theme-transition[data-theme="light"] .testimonial-card,
.theme-transition[data-theme="light"] .ops-window,
.theme-transition[data-theme="light"] .metric-panel,
.theme-transition[data-theme="light"] .chart-panel,
.theme-transition[data-theme="light"] .flow-panel,
.theme-transition[data-theme="light"] .language-switch,
.theme-transition[data-theme="light"] .theme-switch,
.theme-transition[data-theme="light"] .contact-panel a,
.theme-transition[data-theme="light"] .mini-list span {
  background: rgba(255, 255, 255, 0.82);
}

.theme-transition[data-theme="light"] .window-bar,
.theme-transition[data-theme="light"] .flow-row {
  background: #f5f8f3;
}

.theme-transition[data-theme="light"] .mini-app-card {
  background: linear-gradient(145deg, var(--blue), var(--teal));
}

.theme-transition[data-theme="light"] .phone-mockup {
  border-color: #202a3b;
  background:
    linear-gradient(180deg, rgba(49, 102, 177, 0.15), transparent 42%),
    #ffffff;
}

.theme-transition[data-theme="light"] .about {
  background: rgba(255, 255, 255, 0.58);
}

.theme-transition[data-theme="light"] .skills {
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.1), transparent 38%),
    rgba(251, 252, 248, 0.9);
}

.theme-transition[data-theme="light"] .process {
  background: rgba(255, 255, 255, 0.58);
}

.theme-transition[data-theme="light"] .testimonials {
  background:
    linear-gradient(270deg, rgba(15, 139, 141, 0.06), transparent 38%),
    rgba(251, 252, 248, 0.9);
}

.theme-transition[data-theme="light"] .contact {
  background:
    linear-gradient(135deg, rgba(24, 33, 47, 0.97), rgba(21, 74, 75, 0.94)),
    var(--ink);
}

.theme-transition[data-theme="light"] .site-footer {
  background: #ffffff;
}

/* ── NAV TOGGLE (MOBILE) ────────────────────────────── */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── LAYOUT ─────────────────────────────────────────── */

.section-band {
  padding: 96px 6vw;
}

/* ── HERO ───────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 4.5rem;
  min-height: 88svh;
  padding-top: 40px;
}

.hero-avatar {
  margin-bottom: 1.4rem;
}

.hero-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 4px solid var(--surface);
  box-shadow:
    0 0 0 3px var(--teal),
    0 12px 28px rgba(15, 139, 141, 0.22);
  object-fit: cover;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.hero-avatar img:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 3px var(--teal),
    0 16px 36px rgba(15, 139, 141, 0.3);
}

.eyebrow {
  width: fit-content;
  margin-bottom: 1.05rem;
  border-left: 4px solid var(--coral);
  padding-left: 0.8rem;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: 4rem;
  line-height: 1.04;
}

.hero h2 {
  margin-top: 1rem;
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1.32;
}

.hero-description {
  max-width: 720px;
  margin-top: 1.4rem;
  color: var(--copy);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.8rem 1.15rem;
  font-weight: 850;
  will-change: transform;
  backface-visibility: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 14px 34px rgba(15, 139, 141, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0b7779;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  font-weight: 800;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--teal);
  color: #ffffff;
}

/* ── HERO VISUAL ────────────────────────────────────── */

.hero-visual {
  position: relative;
  min-height: 560px;
}

.ops-window {
  position: absolute;
  top: 32px;
  right: 0;
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid rgba(223, 229, 223, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 0.35rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.metric-panel,
.chart-panel,
.flow-panel {
  border: 1px solid rgba(223, 229, 223, 0.82);
  border-radius: 8px;
  background: #ffffff;
}

.metric-panel {
  grid-column: span 3;
  min-height: 128px;
  padding: 1rem;
}

.metric-panel small,
.mini-app-card small {
  color: var(--muted);
  font-weight: 800;
}

.metric-panel strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 2rem;
  line-height: 1;
}

.metric-panel span {
  display: inline-flex;
  margin-top: 0.8rem;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  color: #0f6f47;
  background: rgba(46, 139, 87, 0.12);
  font-size: 0.8rem;
  font-weight: 850;
}

.accent-coral span {
  color: #9d4438;
  background: rgba(226, 109, 92, 0.14);
}

.chart-panel {
  grid-column: span 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 210px;
  padding: 1rem 1.2rem;
}

.bar {
  width: 15%;
  min-width: 34px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--teal), rgba(15, 139, 141, 0.28));
}

.bar-1 {
  height: 42%;
}

.bar-2 {
  height: 68%;
}

.bar-3 {
  height: 54%;
}

.bar-4 {
  height: 82%;
}

.bar-5 {
  height: 62%;
}

.flow-panel {
  grid-column: span 2;
  display: grid;
  gap: 0.75rem;
  min-height: 210px;
  padding: 1rem;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.7rem;
  background: #f5f8f3;
  font-size: 0.86rem;
}

.flow-row strong {
  color: var(--teal);
}

.phone-mockup {
  position: absolute;
  right: -30px;
  bottom: -18px;
  width: 210px;
  height: 380px;
  border: 9px solid #202a3b;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(49, 102, 177, 0.15), transparent 42%), #ffffff;
  box-shadow: 0 26px 60px rgba(24, 33, 47, 0.25);
}

.phone-speaker {
  width: 58px;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: #202a3b;
}

.mini-app-card {
  margin: 36px 16px 0;
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--teal));
}

.mini-app-card strong,
.mini-app-card span {
  display: block;
}

.mini-app-card strong {
  margin-top: 0.55rem;
  font-size: 1.1rem;
}

.mini-app-card span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.mini-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 16px 0;
}

.mini-list span {
  height: 44px;
  border-radius: 8px;
  background: #eef4f3;
}

/* ── ABOUT ──────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  background: rgba(255, 255, 255, 0.58);
}

.section-heading h2 {
  max-width: 740px;
  font-size: 2.35rem;
  line-height: 1.18;
}

.about-content {
  display: grid;
  gap: 1.2rem;
  color: var(--copy);
  font-size: 1.04rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  color: var(--teal);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ── SKILLS ─────────────────────────────────────────── */

.skills {
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.1), transparent 38%),
    rgba(251, 252, 248, 0.9);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.06);
}

.skill-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.skill-card:nth-child(2) .skill-icon {
  background: var(--teal);
}

.skill-card:nth-child(3) .skill-icon {
  background: var(--coral);
}

.skill-card:nth-child(4) .skill-icon {
  background: var(--green);
}

.skill-card h3 {
  margin-top: 1.15rem;
  font-size: 1.2rem;
}

.skill-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tech-tags span {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  background: rgba(15, 139, 141, 0.08);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ── PROCESS ────────────────────────────────────────── */

.process {
  background: rgba(255, 255, 255, 0.58);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.process-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(24, 33, 47, 0.1);
}

.process-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 139, 141, 0.1);
  color: var(--teal);
}

.process-icon svg {
  width: 24px;
  height: 24px;
}

.process-icon.icon-blue {
  background: rgba(49, 102, 177, 0.1);
  color: var(--blue);
}

.process-icon.icon-coral {
  background: rgba(226, 109, 92, 0.1);
  color: var(--coral);
}

.process-icon.icon-green {
  background: rgba(46, 139, 87, 0.1);
  color: var(--green);
}

.process-number {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.process-step h3 {
  margin-top: 0.3rem;
  font-size: 1.15rem;
}

.process-step p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── PROJECTS ───────────────────────────────────────── */

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 2rem;
}

.projects-heading>p {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(24, 33, 47, 0.07);
}

.project-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
}

.visual-fnb {
  background:
    linear-gradient(140deg, rgba(15, 139, 141, 0.95), rgba(46, 139, 87, 0.85)),
    #0f8b8d;
}

.visual-commerce {
  background:
    linear-gradient(140deg, rgba(49, 102, 177, 0.95), rgba(242, 184, 75, 0.9)),
    #3166b1;
}

.visual-dental {
  background:
    linear-gradient(140deg, rgba(46, 139, 87, 0.92), rgba(251, 252, 248, 0.72)),
    #2e8b57;
}

.visual-chat {
  background:
    linear-gradient(140deg, rgba(226, 109, 92, 0.95), rgba(49, 102, 177, 0.9)),
    #e26d5c;
}

.project-screenshot {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  cursor: pointer;
  transition: transform 320ms ease;
}

.project-visual:hover .project-screenshot {
  transform: scale(1.03);
}

.project-body {
  padding: 0.4rem 0.4rem 0.2rem;
}

.project-index {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 950;
}

.project-body h3 {
  margin-top: 0.25rem;
  font-size: 1.6rem;
  line-height: 1.24;
}

.project-meta {
  margin-top: 0.5rem;
  color: var(--teal);
  font-weight: 850;
}

.project-body>p:not(.project-meta) {
  margin-top: 0.95rem;
  color: var(--copy);
}

.project-body ul {
  margin-top: 0.95rem;
  color: var(--copy);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.project-metrics span {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  background: rgba(15, 139, 141, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

/* ── TESTIMONIALS ───────────────────────────────────── */

.testimonials {
  background:
    linear-gradient(270deg, rgba(15, 139, 141, 0.06), transparent 38%),
    rgba(251, 252, 248, 0.9);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(24, 33, 47, 0.06);
}

.quote-icon {
  width: 28px;
  height: 28px;
  color: rgba(15, 139, 141, 0.25);
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.testimonial-quote blockquote {
  margin: 0;
}

.testimonial-quote blockquote p {
  color: var(--copy);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-name {
  display: block;
  font-size: 0.95rem;
}

.testimonial-role {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── CONTACT ────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(24, 33, 47, 0.97), rgba(21, 74, 75, 0.94)),
    var(--ink);
  color: #ffffff;
}

.contact .eyebrow {
  color: #90dfda;
}

.contact-copy h2 {
  max-width: 760px;
  font-size: 2.65rem;
  line-height: 1.15;
}

.contact-copy p:last-child {
  max-width: 720px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.contact-panel {
  display: grid;
  gap: 0.85rem;
}

.contact-panel a {
  display: grid;
  gap: 0.25rem;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-panel strong {
  font-size: 1.03rem;
  overflow-wrap: anywhere;
}

/* ── FOOTER ─────────────────────────────────────────── */

.site-footer {
  padding: 1.4rem 6vw;
  color: var(--muted);
  background: #ffffff;
}

/* ── BACK TO TOP ────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 16px 36px rgba(15, 139, 141, 0.34);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #0b7779;
  box-shadow: 0 18px 42px rgba(15, 139, 141, 0.42);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

/* ── SCROLL REVEAL ANIMATION ────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DARK MODE ──────────────────────────────────────── */

body[data-theme="dark"] .site-header {
  background: rgba(12, 18, 26, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .language-switch,
body[data-theme="dark"] .theme-switch,
body[data-theme="dark"] .nav-toggle,
body[data-theme="dark"] .site-nav {
  background: rgba(18, 27, 38, 0.86);
}

body[data-theme="dark"] .site-nav a:hover,
body[data-theme="dark"] .site-nav a:focus-visible,
body[data-theme="dark"] .site-nav a.is-active {
  background: rgba(15, 139, 141, 0.2);
}

body[data-theme="dark"] .button-secondary,
body[data-theme="dark"] .button-outline,
body[data-theme="dark"] .skill-card,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .process-step,
body[data-theme="dark"] .testimonial-card,
body[data-theme="dark"] .ops-window,
body[data-theme="dark"] .metric-panel,
body[data-theme="dark"] .chart-panel,
body[data-theme="dark"] .flow-panel,
body[data-theme="dark"] .language-switch,
body[data-theme="dark"] .theme-switch,
body[data-theme="dark"] .contact-panel a {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .button-secondary,
body[data-theme="dark"] .button-outline,
body[data-theme="dark"] .skill-card,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .process-step,
body[data-theme="dark"] .testimonial-card,
body[data-theme="dark"] .ops-window,
body[data-theme="dark"] .metric-panel,
body[data-theme="dark"] .chart-panel,
body[data-theme="dark"] .flow-panel,
body[data-theme="dark"] .language-switch,
body[data-theme="dark"] .theme-switch,
body[data-theme="dark"] .contact-panel a,
body[data-theme="dark"] .mini-list span {
  background: rgba(18, 27, 38, 0.88);
}

body[data-theme="dark"] .window-bar,
body[data-theme="dark"] .flow-row {
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .mini-app-card {
  background: linear-gradient(145deg, #175c8b, #0d7b84);
}

body[data-theme="dark"] .phone-mockup {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(49, 102, 177, 0.22), transparent 42%),
    #111923;
}

body[data-theme="dark"] .about {
  background: rgba(255, 255, 255, 0.02);
}

body[data-theme="dark"] .skills {
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.02);
}

body[data-theme="dark"] .process {
  background: rgba(255, 255, 255, 0.02);
}

body[data-theme="dark"] .testimonials {
  background:
    linear-gradient(270deg, rgba(15, 139, 141, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.02);
}

body[data-theme="dark"] .contact {
  background:
    linear-gradient(135deg, rgba(10, 14, 20, 0.98), rgba(9, 43, 44, 0.96)),
    #0b1118;
}

body[data-theme="dark"] .site-footer {
  background: #0b1118;
}

body[data-theme="dark"] .tech-tags span {
  background: rgba(15, 139, 141, 0.15);
  border-color: rgba(15, 139, 141, 0.25);
}

body[data-theme="dark"] .project-metrics span {
  background: rgba(15, 139, 141, 0.15);
  border-color: rgba(15, 139, 141, 0.25);
  color: #90dfda;
}

body[data-theme="dark"] .process-icon {
  background: rgba(15, 139, 141, 0.15);
  color: #5cc9cb;
}

body[data-theme="dark"] .process-icon.icon-blue {
  background: rgba(49, 102, 177, 0.15);
  color: #7aabea;
}

body[data-theme="dark"] .process-icon.icon-coral {
  background: rgba(226, 109, 92, 0.15);
  color: #f0a090;
}

body[data-theme="dark"] .process-icon.icon-green {
  background: rgba(46, 139, 87, 0.15);
  color: #6bc99a;
}

body[data-theme="dark"] .quote-icon {
  color: rgba(15, 139, 141, 0.3);
}

body[data-theme="dark"] .about-stats {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .hero-avatar img {
  border-color: rgba(18, 27, 38, 0.88);
}

body[data-theme="dark"] .button-outline {
  border-color: var(--teal);
  color: #5cc9cb;
}

body[data-theme="dark"] .button-outline:hover,
body[data-theme="dark"] .button-outline:focus-visible {
  background: var(--teal);
  color: #ffffff;
}

body[data-theme="dark"] .process-step:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

/* ── UTILITY ────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .ops-window {
    left: 0;
    right: auto;
  }

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

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

@media (max-width: 860px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    margin: 8px 10px 0;
    min-height: 64px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(223, 229, 223, 0.9);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(24, 33, 47, 0.08);
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.7rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-links,
  .nav-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-tools {
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }

  .language-switch,
  .theme-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-button,
  .theme-button {
    flex: 1;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.28rem;
  }

  .about,
  .projects-heading,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .project-visual {
    min-height: 220px;
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }

  .section-band {
    padding: 72px 5vw;
  }

  .site-header {
    width: calc(100% - 16px);
    margin: 8px 8px 0;
    padding: 0.65rem 0.8rem;
    border-radius: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-avatar img {
    width: 96px;
    height: 96px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    display: grid;
    gap: 1rem;
    min-height: 660px;
  }

  .ops-window {
    position: relative;
    width: 100%;
  }

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

  .metric-panel,
  .chart-panel,
  .flow-panel {
    grid-column: auto;
  }

  .chart-panel {
    min-height: 160px;
  }

  .phone-mockup {
    position: absolute;
    top: 85px;
    right: 0px;
    bottom: auto;
    width: 178px;
    height: 318px;
    border-radius: 30px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

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

  .skill-card {
    min-height: auto;
  }

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .site-footer {
    padding-right: calc(5vw + 64px);
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── LIGHTBOX ───────────────────────────────────────── */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 300ms ease,
    visibility 300ms ease;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  cursor: default;
  transform: scale(0.92);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
  }
}