:root {
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --bg: #070b14;
  --bg-secondary: #111827;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(15, 23, 42, 0.82);
  --surface-soft: rgba(30, 41, 59, 0.4);
  --surface-grid: rgba(148, 163, 184, 0.14);
  --border: rgba(148, 163, 184, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --accent-3: #10b981;
  --accent-4: #f59e0b;
  --danger: #fb7185;
  --white: #ffffff;
  --shadow-soft: 0 25px 55px rgba(2, 6, 23, 0.35);
  --shadow-strong: 0 20px 60px rgba(56, 189, 248, 0.18);
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --section-space: clamp(4.75rem, 7vw, 7.5rem);
  --container-space: clamp(1rem, 2vw, 1.5rem);
}

body[data-theme="light"] {
  --bg: #d3dae3;
  --bg-secondary: #e3e9f0;
  --surface: rgba(235, 240, 246, 0.78);
  --surface-strong: rgba(244, 247, 251, 0.92);
  --surface-soft: rgba(182, 193, 208, 0.42);
  --surface-grid: rgba(96, 111, 132, 0.1);
  --border: rgba(86, 101, 122, 0.18);
  --text-primary: #162133;
  --text-secondary: #4d5d73;
  --text-muted: #6a7b92;
  --accent: #275df1;
  --accent-2: #6d4df2;
  --accent-3: #0c8c73;
  --accent-4: #c97c32;
  --shadow-soft: 0 24px 56px rgba(34, 44, 61, 0.08);
  --shadow-strong: 0 24px 70px rgba(57, 76, 111, 0.12);
  background:
    radial-gradient(circle at 12% 14%, rgba(39, 93, 241, 0.08), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(109, 77, 242, 0.06), transparent 24%),
    radial-gradient(circle at 78% 84%, rgba(12, 140, 115, 0.04), transparent 20%),
    linear-gradient(180deg, #d2d9e1 0%, #dbe2ea 44%, #e7edf3 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, 0.14), transparent 28%),
    radial-gradient(circle at 75% 82%, rgba(16, 185, 129, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  transition:
    background 0.35s ease,
    color 0.35s ease;
  position: relative;
}

body.is-nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 88%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  width: clamp(240px, 28vw, 460px);
  aspect-ratio: 1;
  right: -10%;
  top: -12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 62%);
  filter: blur(35px);
  pointer-events: none;
  z-index: -1;
}

body[data-theme="light"]::after {
  background: radial-gradient(circle, rgba(39, 93, 241, 0.08), transparent 60%);
}

body[data-theme="light"]::before {
  opacity: 0.24;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(56, 189, 248, 0.22);
  color: var(--white);
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg);
  z-index: 1500;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: var(--section-space) 0;
  position: relative;
}

.section-sm {
  padding: clamp(3rem, 4vw, 4rem) 0;
}

.section-header {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title,
.display-title {
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 0.95rem;
}

.section-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

.glass-card,
.gradient-card {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.gradient-card {
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.75), rgba(139, 92, 246, 0.5), rgba(16, 185, 129, 0.68)) border-box;
  border: 1px solid transparent;
}

.glass-card::before,
.gradient-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.8),
    rgba(139, 92, 246, 0.7),
    transparent
  );
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease;
}

.glass-card:hover,
.gradient-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

:where(
  .glass-card,
  .gradient-card,
  .command-panel,
  .signal-card,
  .capability-card,
  .principle-card,
  .quote-card,
  .contact-note-card,
  .hero-stage-card,
  .hero-mini-stat,
  .stat-card,
  .mini-card,
  .value-card,
  .achievement-card,
  .focus-card,
  .contact-card,
  .page-panel,
  .skill-group,
  .contact-form,
  .availability-card,
  .timeline-item,
  .page-summary-item,
  .profile-line,
  .case-study-box,
  .command-row,
  .protocol-item
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:where(
  .glass-card,
  .gradient-card,
  .command-panel,
  .signal-card,
  .capability-card,
  .principle-card,
  .quote-card,
  .contact-note-card,
  .hero-stage-card,
  .hero-mini-stat,
  .stat-card,
  .mini-card,
  .value-card,
  .achievement-card,
  .focus-card,
  .contact-card,
  .page-panel,
  .skill-group,
  .contact-form,
  .availability-card,
  .timeline-item,
  .page-summary-item,
  .profile-line,
  .case-study-box,
  .command-row,
  .protocol-item
)::after {
  content: "";
  position: absolute;
  inset: -42% auto -42% -18%;
  width: 42%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 22%,
    rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.03) 74%,
    transparent 100%
  );
  transform: translate3d(-180%, 0, 0) rotate(14deg);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.45s ease;
  z-index: 2;
}

body[data-theme="light"]
  :where(
    .glass-card,
    .gradient-card,
    .command-panel,
    .signal-card,
    .capability-card,
    .principle-card,
    .quote-card,
    .contact-note-card,
    .hero-stage-card,
    .hero-mini-stat,
    .stat-card,
    .mini-card,
    .value-card,
    .achievement-card,
    .focus-card,
    .contact-card,
    .page-panel,
    .skill-group,
    .contact-form,
    .availability-card,
    .timeline-item,
    .page-summary-item,
    .profile-line,
    .case-study-box,
    .command-row,
    .protocol-item
  )::after {
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.06) 74%,
    transparent 100%
  );
}

.icon-badge,
.contact-icon,
.project-label,
.hero-photo-badge,
.profile-badge,
.command-row span,
.protocol-item span {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.chip-row,
.meta-row,
.tag-row,
.hero-socials,
.hero-actions,
.hero-tags,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

body[data-theme="light"] .tag {
  background: rgba(248, 242, 235, 0.8);
  border-color: rgba(111, 123, 140, 0.18);
  color: #526074;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.tag strong {
  color: var(--text-primary);
}

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

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.12);
}

.btn-premium,
.btn-outline-premium,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.92rem 1.28rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}

.btn-premium {
  color: var(--white);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
}

body[data-theme="light"] .btn-premium {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(56, 189, 248, 0.26);
}

.btn-outline-premium {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: var(--surface);
}

body[data-theme="light"] .btn-outline-premium {
  background: linear-gradient(180deg, rgba(250, 245, 238, 0.92), rgba(244, 237, 228, 0.84));
  border-color: rgba(111, 123, 140, 0.2);
  box-shadow: 0 12px 24px rgba(82, 66, 47, 0.05);
}

.btn-outline-premium:hover,
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: var(--shadow-soft);
}

body[data-theme="light"] .btn-outline-premium:hover {
  border-color: rgba(39, 93, 241, 0.26);
  box-shadow: 0 18px 32px rgba(73, 59, 43, 0.09);
}

.btn-ghost {
  padding-inline: 0;
  color: var(--text-secondary);
  background: transparent;
  border: none;
}

.btn-ghost i {
  transition: transform 0.25s ease;
}

.btn-ghost:hover i {
  transform: translateX(4px);
}

.ripple-burst {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}

.site-navbar {
  top: 0.72rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  max-width: calc(100% - 2rem);
  padding: 0.72rem 0;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom-color: rgba(148, 163, 184, 0.1);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

body[data-theme="light"] .site-navbar {
  background: rgba(255, 255, 255, 0.8);
}

.site-navbar.is-scrolled {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.15);
  border-color: rgba(148, 163, 184, 0.16);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--text-primary);
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.24);
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1;
}

.brand-text span {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-toggler {
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav {
  gap: 0.2rem;
}

.nav-link {
  position: relative;
  padding: 0.68rem 1rem !important;
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.45rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .nav-link.active {
  background: rgba(37, 99, 235, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.navbar-collapse {
  min-width: 0;
}

.theme-toggle {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.hero {
  padding-top: calc(var(--section-space) + 1.65rem);
  padding-bottom: 1.35rem;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  overflow: clip;
}

.hero-shell {
  position: relative;
  padding: clamp(1rem, 1.9vw, 1.35rem);
  border-radius: 34px;
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(139, 92, 246, 0.28), rgba(16, 185, 129, 0.28))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 66%);
  filter: blur(12px);
  z-index: -1;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(139, 92, 246, 0.12), transparent 22%);
  z-index: -1;
  pointer-events: none;
}

body[data-theme="light"] .hero-shell {
  box-shadow: 0 35px 80px rgba(37, 99, 235, 0.08);
}

.page-hero {
  padding-top: calc(var(--section-space) + 2.45rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.92fr);
  gap: clamp(1.25rem, 2.8vw, 2.7rem);
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-wrap: wrap;
}

.display-title {
  max-width: 8.6ch;
  font-size: clamp(2.85rem, 5.85vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0.75rem 0 0.95rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.32vw, 1.1rem);
  margin: 0;
  max-width: 36rem;
}

.typing-line {
  min-height: 2rem;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.96rem;
}

.typing-line::after {
  content: "|";
  margin-left: 0.3rem;
  animation: blink 0.8s infinite;
}

.hero-meta {
  margin-top: 1.4rem;
}

.hero-socials {
  margin-top: 1.5rem;
}

.hero-support-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

.hero-support-row .hero-socials,
.hero-support-row .hero-tags {
  margin-top: 0;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-trust-item {
  position: relative;
  padding: 0.85rem 0.85rem 0.8rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-soft);
}

.hero-trust-item small {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-trust-item strong {
  display: block;
  margin: 0.45rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.93rem;
  line-height: 1.15;
}

.hero-trust-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.social-link {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -6% auto auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-photo-card {
  grid-row: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.78rem;
}

.hero-photo-shell {
  position: relative;
  min-height: 18.25rem;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.74)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(139, 92, 246, 0.18));
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.hero-photo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.78) 100%);
  z-index: 1;
}

.hero-photo-shell::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -2.5rem;
  top: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 72%);
  filter: blur(6px);
  z-index: 1;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  min-height: 18.25rem;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.02);
}

.hero-photo-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-theme="light"] .hero-photo-badge {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-primary);
}

.hero-photo-badge-top {
  top: 1rem;
  left: 1rem;
}

.hero-photo-badge-bottom {
  right: 1rem;
  bottom: 1rem;
}

.hero-photo-meta {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.hero-photo-meta strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-photo-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-code-card {
  min-height: 18.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
}

body[data-theme="dark"] .hero-code-card {
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.94), rgba(15, 23, 42, 0.82));
}

.hero-proof-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
}

.hero-proof-card {
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.52));
}

body[data-theme="light"] .hero-proof-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.8));
}

.hero-proof-card small {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-proof-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  margin: 0.45rem 0 0.18rem;
}

.hero-proof-card span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.terminal-card {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.92), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

body[data-theme="light"] .terminal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.92));
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto 60%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.terminal-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #fb7185;
}

.terminal-dot.yellow {
  background: #f59e0b;
}

.terminal-dot.green {
  background: #10b981;
}

.terminal-label {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-block {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.72;
  white-space: pre-wrap;
}

.code-key {
  color: var(--accent);
}

.code-type {
  color: var(--accent-4);
}

.code-value {
  color: var(--accent-3);
}

/* Premium hero refresh */
.site-navbar {
  top: 0.8rem;
  left: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.56rem 0;
  background: rgba(7, 11, 20, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-bottom-color: rgba(148, 163, 184, 0.1);
  border-radius: 28px;
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.1);
}

body[data-theme="light"] .site-navbar {
  background: rgba(249, 243, 236, 0.86);
  border-color: rgba(116, 128, 145, 0.15);
  box-shadow: 0 18px 42px rgba(87, 68, 44, 0.08);
}

.site-navbar.is-scrolled {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.16);
}

body[data-theme="light"] .site-navbar.is-scrolled {
  box-shadow: 0 22px 48px rgba(87, 68, 44, 0.1);
}

.navbar-brand {
  gap: 0.72rem;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--text-primary);
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 15px;
}

.brand-text span {
  font-size: 0.95rem;
  color: #f8fbff;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.06);
}

.brand-text small {
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.9);
}

.navbar-brand:hover .brand-text span,
.navbar-brand:focus .brand-text span {
  color: #f8fbff;
}

.navbar-brand:hover .brand-text small,
.navbar-brand:focus .brand-text small {
  color: rgba(203, 213, 225, 0.9);
}

body[data-theme="light"] .brand-text span {
  color: #172133;
  text-shadow: none;
}

body[data-theme="light"] .brand-text small {
  color: #6d788a;
}

.nav-link {
  padding: 0.62rem 0.96rem !important;
}

.site-navbar .nav-link {
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.site-navbar .nav-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(27, 41, 68, 0.92), rgba(11, 18, 34, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  z-index: -1;
}

.nav-link::after {
  bottom: 0.42rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #f8fbff;
  background: rgba(65, 94, 161, 0.08);
  text-shadow: 0 10px 24px rgba(56, 189, 248, 0.14);
}

.site-navbar .nav-link:hover::before,
.site-navbar .nav-link.active::before {
  opacity: 1;
  transform: scale(1);
}

.site-navbar .nav-link.active::before {
  background: linear-gradient(180deg, rgba(24, 37, 62, 0.98), rgba(10, 17, 31, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(5, 10, 20, 0.28);
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.92), rgba(109, 77, 242, 0.95));
}

body[data-theme="light"] .site-navbar .nav-link:hover,
body[data-theme="light"] .site-navbar .nav-link.active {
  color: #f8fbff;
  background: rgba(117, 136, 171, 0.16);
}

body[data-theme="light"] .site-navbar .nav-link:hover::before,
body[data-theme="light"] .site-navbar .nav-link.active::before {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(180deg, rgba(43, 55, 79, 0.97), rgba(23, 31, 48, 0.94));
}

body[data-theme="light"] .site-navbar .nav-link.active::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(14, 22, 35, 0.26);
}

.hero {
  padding-top: calc(var(--section-space) + 2.3rem);
  padding-bottom: 1rem;
}

.hero-shell {
  padding: clamp(1.2rem, 2.3vw, 1.65rem);
  border-radius: 38px;
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(140deg, rgba(56, 189, 248, 0.34), rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.16))
      border-box;
  box-shadow: 0 30px 76px rgba(2, 6, 23, 0.18);
}

.hero-shell::before {
  inset: -12% auto auto -8%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 65%);
  filter: blur(10px);
}

.hero-shell::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(var(--surface-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.78) 48%, transparent 100%);
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.78) 48%, transparent 100%);
}

body[data-theme="light"] .hero-shell {
  background:
    linear-gradient(rgba(251, 247, 241, 0.95), rgba(251, 247, 241, 0.95)) padding-box,
    linear-gradient(140deg, rgba(39, 93, 241, 0.22), rgba(109, 77, 242, 0.14), rgba(201, 124, 50, 0.12))
      border-box;
  box-shadow: 0 34px 74px rgba(87, 68, 44, 0.1);
}

body[data-theme="light"] .hero-shell::before {
  background: radial-gradient(circle, rgba(39, 93, 241, 0.12), transparent 66%);
}

body[data-theme="light"] .hero-shell::after {
  opacity: 0.28;
}

body[data-theme="light"] .hero-kicker {
  background: rgba(214, 231, 251, 0.46);
  border-color: rgba(39, 93, 241, 0.18);
  box-shadow: 0 16px 30px rgba(87, 68, 44, 0.05);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.92fr);
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 41rem;
  padding: clamp(0.35rem, 0.8vw, 0.6rem) 0.2rem 0.2rem 0;
}

.hero-kicker {
  padding: 0.58rem 0.96rem;
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.08);
}

.hero-role-line {
  margin: 0.95rem 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title {
  max-width: 11.2ch;
  font-size: clamp(2.95rem, 5.2vw, 5rem);
  line-height: 0.92;
  margin: 0.9rem 0 1rem;
}

.hero-subtitle {
  max-width: 37rem;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}

.typing-line {
  min-height: 1.7rem;
  margin-top: 0.95rem;
  font-size: 0.88rem;
}

.hero-chip-row {
  margin-top: 1rem;
  gap: 0.7rem;
}

.hero-actions {
  margin-top: 1.2rem;
  gap: 0.75rem;
}

.hero-cta-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
}

body[data-theme="light"] .hero-cta-note {
  background: linear-gradient(180deg, rgba(247, 241, 234, 0.92), rgba(242, 235, 226, 0.82));
  border-color: rgba(114, 126, 143, 0.16);
  box-shadow: 0 20px 44px rgba(83, 65, 43, 0.07);
}

.hero-cta-note i {
  margin-top: 0.1rem;
  color: var(--accent);
  font-size: 1rem;
}

.hero-cta-note span {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
}

.hero-support-row {
  justify-content: flex-start;
  gap: 0.9rem 1rem;
  margin-top: 1rem;
}

.hero-support-row .hero-socials,
.hero-support-row .hero-tags {
  margin-top: 0;
}

.hero-tags {
  gap: 0.6rem;
}

.social-link {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .social-link {
  background: linear-gradient(180deg, rgba(250, 245, 238, 0.94), rgba(244, 237, 228, 0.86));
  border: 1px solid rgba(116, 128, 145, 0.16);
  box-shadow: 0 12px 24px rgba(83, 65, 43, 0.05);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(172px, 0.74fr) minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
  padding: 1.05rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.22), rgba(7, 11, 20, 0.08)), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 48px rgba(2, 6, 23, 0.14);
  overflow: hidden;
}

body[data-theme="light"] .hero-stage {
  background: linear-gradient(180deg, rgba(251, 247, 241, 0.96), rgba(242, 235, 226, 0.82));
  border-color: rgba(114, 126, 143, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 28px 54px rgba(83, 65, 43, 0.1);
}

body[data-theme="light"] .hero-stage::before {
  background: radial-gradient(circle, rgba(109, 77, 242, 0.1), transparent 70%);
}

body[data-theme="light"] .hero-stage-label {
  background: rgba(214, 231, 251, 0.56);
  border-color: rgba(39, 93, 241, 0.18);
}

body[data-theme="light"] .hero-stage-status {
  background: rgba(245, 239, 231, 0.9);
  border-color: rgba(114, 126, 143, 0.14);
  color: #5c697b;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: auto -12% -25% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-stage-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stage-label,
.hero-stage-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

.hero-stage-label {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.hero-stage-status {
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-stage-card {
  position: relative;
  min-width: 0;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.52));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body[data-theme="light"] .hero-stage-card {
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.97), rgba(241, 233, 224, 0.9));
  border-color: rgba(114, 126, 143, 0.16);
  box-shadow: 0 18px 40px rgba(83, 65, 43, 0.08);
}

body[data-theme="light"] .hero-stage-portrait-shell {
  background: linear-gradient(180deg, rgba(233, 226, 218, 0.84), rgba(216, 207, 196, 0.98));
  border-color: rgba(114, 126, 143, 0.12);
}

body[data-theme="light"] .hero-stage-portrait-shell::before {
  background: linear-gradient(180deg, transparent 36%, rgba(24, 32, 45, 0.58) 100%);
}

.hero-stage-portrait {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.8rem;
}

.hero-stage-portrait-shell {
  position: relative;
  padding: 0.6rem;
  border-radius: 40px 40px 34px 34px / 32px 32px 52px 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 25, 39, 0.72), rgba(6, 10, 18, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 42px rgba(2, 6, 23, 0.26);
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-stage-portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 22%, rgba(2, 6, 23, 0.16) 54%, rgba(2, 6, 23, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-stage-portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: 30px 30px 24px 24px / 24px 24px 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
  pointer-events: none;
}

.portrait-photo.hero-stage-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(clamp(15.8rem, 25vw, 18rem) - 1.2rem);
  object-fit: cover;
  object-position: center 12%;
  border-radius: 30px 30px 24px 24px / 24px 24px 42px 42px;
  position: relative;
  z-index: 0;
  transform: scale(1.04);
  filter: saturate(1.03) contrast(1.06) brightness(0.98);
  transition: transform var(--transition), filter var(--transition);
}

.hero-photo-badge {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.24);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

body[data-theme="light"] .hero-photo-badge {
  background: rgba(255, 251, 245, 0.88);
  color: var(--text-primary);
  border-color: rgba(114, 126, 143, 0.12);
  box-shadow: 0 10px 22px rgba(83, 65, 43, 0.06);
}

.hero-photo-badge-top {
  top: 0.85rem;
  left: 0.85rem;
}

.hero-photo-badge-bottom {
  left: 0.85rem;
  right: auto;
  bottom: 0.85rem;
}

.hero-stage-portrait-copy {
  display: grid;
  gap: 0.22rem;
  padding: 0.1rem 0.15rem 0;
}

.hero-stage-portrait-copy small,
.hero-mini-stat small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stage-portrait-copy strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.08;
}

.hero-stage-portrait-copy span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-stage-code {
  min-height: 100%;
  padding: 1.05rem 1.05rem 1rem;
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.92), rgba(12, 18, 32, 0.78));
}

body[data-theme="light"] .hero-stage-code {
  background: linear-gradient(180deg, rgba(239, 234, 228, 0.98), rgba(228, 221, 214, 0.96));
  border-color: rgba(109, 120, 135, 0.18);
  box-shadow: 0 18px 38px rgba(77, 63, 47, 0.08);
}

body[data-theme="light"] .terminal-card {
  background: linear-gradient(180deg, rgba(244, 239, 233, 0.98), rgba(233, 226, 219, 0.94));
  border-color: rgba(109, 120, 135, 0.18);
  box-shadow: 0 18px 38px rgba(77, 63, 47, 0.08);
}

body[data-theme="light"] .terminal-label {
  color: #738193;
}

.hero-stage-code .terminal-top {
  margin-bottom: 0.8rem;
}

.hero-stage-code .code-block {
  font-size: clamp(0.76rem, 0.72rem + 0.14vw, 0.84rem);
  line-height: 1.8;
}

.hero-stage-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-mini-stat {
  padding: 0.95rem 1rem 1rem;
  border-radius: 22px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

body[data-theme="light"] .hero-mini-stat {
  background: linear-gradient(180deg, rgba(249, 244, 237, 0.92), rgba(242, 235, 226, 0.84));
  border-color: rgba(114, 126, 143, 0.15);
  box-shadow: 0 16px 34px rgba(83, 65, 43, 0.07);
}

.hero-mini-stat strong {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero-mini-stat span {
  display: block;
  margin-top: 0.18rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-summary-panel {
  margin-top: 1.2rem;
  padding: clamp(1.2rem, 2vw, 1.4rem);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(9, 14, 25, 0.68), rgba(10, 16, 29, 0.56));
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 54px rgba(2, 6, 23, 0.18);
}

.home-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1rem 1.4rem;
  align-items: end;
  margin-bottom: 1rem;
}

.home-summary-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 1.2vw, 1.38rem);
  line-height: 1.25;
}

.home-summary-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.home-summary-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-summary-item {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.home-summary-item small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-summary-item strong {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.home-summary-item span {
  margin-top: 0.38rem;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.62;
}

body[data-theme="light"] .page-panel.home-summary-panel.glass-card {
  background: linear-gradient(180deg, rgba(233, 239, 245, 0.97), rgba(223, 230, 238, 0.92));
  border-color: rgba(96, 111, 133, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 24px 52px rgba(28, 38, 52, 0.1);
}

body[data-theme="light"] .home-summary-head p {
  color: #5a687d;
}

body[data-theme="light"] .page-summary-item.home-summary-item {
  background: linear-gradient(180deg, rgba(241, 246, 251, 0.98), rgba(229, 236, 243, 0.9));
  border-color: rgba(96, 111, 133, 0.14);
  box-shadow: 0 16px 34px rgba(28, 38, 52, 0.06);
}

body[data-theme="light"] .home-summary-item small {
  color: #3962ee;
}

.stats-grid {
  margin-top: 1.15rem;
  gap: 0.9rem;
}

.stat-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--surface);
}

body[data-theme="light"] .stat-card {
  background: linear-gradient(180deg, rgba(250, 245, 239, 0.96), rgba(243, 236, 227, 0.88));
  border-color: rgba(112, 124, 141, 0.15);
  box-shadow: 0 16px 34px rgba(83, 65, 43, 0.07);
}

body[data-theme="light"] .glass-card,
body[data-theme="light"] .gradient-card,
body[data-theme="light"] .mini-card,
body[data-theme="light"] .value-card,
body[data-theme="light"] .achievement-card,
body[data-theme="light"] .focus-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .page-panel,
body[data-theme="light"] .skill-group,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .availability-card {
  background: linear-gradient(180deg, rgba(251, 246, 239, 0.95), rgba(243, 236, 227, 0.86));
  border-color: rgba(112, 124, 141, 0.16);
  box-shadow: 0 20px 44px rgba(83, 65, 43, 0.07);
}

body[data-theme="light"] .signal-card,
body[data-theme="light"] .capability-card,
body[data-theme="light"] .principle-card,
body[data-theme="light"] .contact-note-card,
body[data-theme="light"] .case-study-box,
body[data-theme="light"] .command-row,
body[data-theme="light"] .protocol-item,
body[data-theme="light"] .page-summary-item {
  background: linear-gradient(180deg, rgba(248, 242, 235, 0.92), rgba(240, 233, 224, 0.82));
  border-color: rgba(112, 124, 141, 0.15);
}

.stat-value {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.stat-label {
  font-size: 0.96rem;
}

.stat-note {
  margin-top: 0.28rem;
  font-size: 0.84rem;
}

.mini-panel-grid,
.stats-grid,
.feature-grid,
.project-grid,
.services-grid,
.values-grid,
.achievement-grid,
.contact-cards,
.focus-grid,
.skills-layout,
.approach-grid {
  display: grid;
  gap: 1.2rem;
}

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

.mini-card,
.stat-card,
.value-card,
.achievement-card,
.focus-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.mini-card {
  padding: 1.15rem;
}

.mini-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.mini-card span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  animation: floaty 5.8s ease-in-out infinite;
}

body[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.9);
}

.floating-badge.badge-one {
  top: -1rem;
  right: 0.5rem;
}

.floating-badge.badge-two {
  left: -0.8rem;
  bottom: 7.5rem;
  animation-delay: 0.8s;
}

.floating-badge.badge-three {
  right: -0.5rem;
  bottom: -0.5rem;
  animation-delay: 1.4s;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
  align-items: stretch;
}

.stat-card {
  padding: 0.95rem 0.92rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 38%),
    var(--surface);
}

.stat-card span {
  display: block;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.icon-badge {
  width: 3.35rem;
  height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18));
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.card-copy {
  color: var(--text-secondary);
  margin: 0;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.achievement-grid,
.approach-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  isolation: isolate;
}

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

.project-visual {
  min-height: clamp(13.5rem, 18vw, 15.5rem);
  padding: 1.35rem;
  border-radius: calc(var(--radius-md) - 2px);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18), rgba(16, 185, 129, 0.16)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

body[data-theme="light"] .project-visual {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.12), rgba(5, 150, 105, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.project-visual::before {
  width: 180px;
  height: 180px;
  right: -60px;
  top: -55px;
}

.project-visual::after {
  width: 120px;
  height: 120px;
  left: -25px;
  bottom: -45px;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

body[data-theme="light"] .project-label {
  background: rgba(255, 255, 255, 0.62);
}

.project-terminal {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #dbeafe;
  backdrop-filter: blur(14px);
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

body[data-theme="light"] .project-terminal {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-primary);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.project-actions .btn-outline-premium,
.project-actions .btn-premium {
  flex: 1 1 9rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.7rem;
}

.filter-button {
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 700;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-2px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.6), rgba(16, 185, 129, 0.22));
}

.timeline-item {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.7rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0.28rem rgba(56, 189, 248, 0.12);
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin: 1rem 0 0.3rem;
}

.timeline-company {
  color: var(--accent);
  font-weight: 700;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.timeline-copy {
  color: var(--text-secondary);
  margin: 1rem 0 0;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-3);
}

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

.skill-group {
  padding: 1.5rem;
}

.skill-item + .skill-item {
  margin-top: 1rem;
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
  font-weight: 700;
}

.skill-head span:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.skill-bar {
  height: 0.72rem;
  padding: 0.1rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
}

.skill-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.badge-cloud .tag {
  font-size: 0.9rem;
  padding: 0.68rem 0.95rem;
}

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

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

.value-card,
.focus-card,
.achievement-card {
  padding: 1.4rem;
}

.value-card h3,
.focus-card h3,
.achievement-card h3 {
  font-family: var(--font-heading);
  margin: 0.9rem 0 0.45rem;
  font-size: 1.2rem;
}

.value-card p,
.focus-card p,
.achievement-card p {
  margin: 0;
  color: var(--text-secondary);
}

.about-grid,
.contact-grid,
.split-grid {
  display: grid;
  gap: 1.2rem;
}

.about-grid,
.split-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.profile-card {
  padding: 1.2rem;
}

.profile-portrait-wrap {
  position: relative;
  padding: 0.95rem;
  border-radius: 40px 40px 34px 34px / 32px 32px 54px 54px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 25, 39, 0.82), rgba(7, 11, 19, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 52px rgba(2, 6, 23, 0.22);
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.profile-portrait-wrap::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -10%;
  height: 10rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  filter: blur(18px);
  z-index: 0;
}

.profile-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0.95rem;
  border-radius: 30px 30px 26px 26px / 24px 24px 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%);
  z-index: 2;
  pointer-events: none;
}

.profile-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 30px 30px 26px 26px / 24px 24px 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.profile-badge {
  position: absolute;
  left: 1.35rem;
  bottom: 1.35rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  max-width: calc(100% - 2.7rem);
  flex-wrap: wrap;
  line-height: 1.35;
}

body[data-theme="light"] .profile-badge {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
}

.profile-intro {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-intro strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.profile-intro span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.profile-meta {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-line strong {
  display: block;
  font-size: 0.88rem;
}

.profile-line span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 1.55rem;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.form-control {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-primary);
  padding: 0.95rem 1rem;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 0 0.22rem rgba(56, 189, 248, 0.12);
}

textarea.form-control {
  min-height: 11rem;
  resize: vertical;
}

.form-control.is-invalid {
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(251, 113, 133, 0.1);
}

.invalid-feedback {
  display: none;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-control.is-invalid + .invalid-feedback {
  display: block;
}

.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-weight: 600;
}

.form-feedback.is-visible {
  display: block;
}

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

.contact-card {
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-card h3,
.availability-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.contact-card p,
.availability-card p {
  margin: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.availability-card {
  padding: 1.45rem;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--accent-3);
  font-weight: 700;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.35;
}

.availability-status::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.12);
}

.cta-panel {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.65), rgba(139, 92, 246, 0.45), rgba(245, 158, 11, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-strong);
}

.cta-panel .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(14px);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 1.25rem;
}

.footer-brand p,
.footer-note,
.footer-list a {
  color: var(--text-secondary);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-list {
  display: grid;
  gap: 0.6rem;
}

.footer-list a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.footer-inline-link {
  position: relative;
  color: var(--text-primary);
  font-weight: 700;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.footer-inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.72;
  transform: scaleX(0.4);
  transform-origin: left;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.footer-inline-link:hover,
.footer-inline-link:focus {
  color: var(--white);
  text-shadow: 0 10px 22px rgba(56, 189, 248, 0.16);
}

.footer-inline-link:hover::after,
.footer-inline-link:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.footer-bottom-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta-note {
  color: var(--text-muted);
  text-align: right;
}

.footer-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.9rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.94), rgba(18, 28, 44, 0.88)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(2, 6, 23, 0.22);
  min-width: 0;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.footer-whatsapp-cta:hover,
.footer-whatsapp-cta:focus {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 42px rgba(2, 6, 23, 0.26);
}

.footer-whatsapp-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #25d366, #0ea5a4);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.22);
  font-size: 1.08rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-whatsapp-cta:hover .footer-whatsapp-icon,
.footer-whatsapp-cta:focus .footer-whatsapp-icon {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.28);
}

.footer-whatsapp-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.footer-whatsapp-copy strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.15;
}

.footer-whatsapp-copy small {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.25;
}

.back-to-top {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
  z-index: 1200;
}

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

.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 2000;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-shell {
  position: relative;
  width: clamp(196px, 21vw, 246px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.preloader-core {
  position: relative;
  z-index: 2;
  width: clamp(132px, 14vw, 164px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.22rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(9, 13, 24, 0.86));
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(18px);
}

.preloader-core::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  pointer-events: none;
}

.preloader-core strong {
  font-family: var(--font-heading);
  font-size: clamp(1.82rem, 3.3vw, 2.18rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 42%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.14);
}

.preloader-core small {
  color: var(--text-muted);
  max-width: 8rem;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 0.86vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
}

.preloader-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.preloader-orbit-one {
  width: 96%;
  border: 1.2px solid rgba(56, 189, 248, 0.18);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    inset 0 0 24px rgba(56, 189, 248, 0.05);
  animation: spin 5.2s linear infinite;
}

.preloader-orbit-two {
  width: 72%;
  border: 1px dashed rgba(139, 92, 246, 0.34);
  box-shadow: inset 0 0 18px rgba(16, 185, 129, 0.06);
  animation: spinReverse 6.8s linear infinite;
}

body[data-theme="light"] .preloader-core {
  background:
    radial-gradient(circle at 30% 30%, rgba(39, 93, 241, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(243, 237, 229, 0.9));
  border-color: rgba(39, 93, 241, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 26px 50px rgba(37, 45, 65, 0.08);
}

body[data-theme="light"] .preloader-core strong {
  background: linear-gradient(135deg, #275df1 0%, #6d4df2 55%, #c97c32 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-theme="light"] .preloader-core small {
  color: #728096;
}

body[data-theme="light"] .preloader-orbit-one {
  border-color: rgba(39, 93, 241, 0.15);
  box-shadow:
    0 0 0 1px rgba(109, 77, 242, 0.06),
    inset 0 0 22px rgba(39, 93, 241, 0.03);
}

body[data-theme="light"] .preloader-orbit-two {
  border-color: rgba(109, 77, 242, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.muted-copy {
  color: var(--text-secondary);
}

.note-copy {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.4rem 0;
}

.page-panel {
  padding: 1.5rem;
}

.page-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.page-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.06);
  min-width: 0;
}

.page-summary-item strong {
  font-size: 0.9rem;
}

.page-summary-item span {
  color: var(--text-secondary);
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-card a,
.footer a,
.timeline-copy,
.timeline-list li,
.card-copy,
.section-copy,
.profile-intro span {
  overflow-wrap: anywhere;
}

.signal-card,
.capability-card,
.principle-card,
.contact-note-card,
.timeline-item,
.page-summary-item,
.profile-line,
.case-study-box {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.inline-highlight {
  color: var(--text-primary);
  font-weight: 700;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 1.2rem;
  align-items: stretch;
}

.command-panel,
.signal-card,
.capability-card,
.principle-card,
.quote-card,
.contact-note-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.command-panel {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.08));
}

body[data-theme="light"] .command-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
}

.command-panel::before,
.signal-card::before,
.capability-card::before,
.principle-card::before,
.quote-card::before,
.contact-note-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.84), transparent);
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease;
}

.command-list,
.contact-protocol,
.principle-list {
  display: grid;
  gap: 0.85rem;
}

.command-row,
.protocol-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.command-row span,
.protocol-item span {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.24));
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
}

.command-row strong,
.protocol-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.command-row p,
.protocol-item p {
  margin: 0;
  color: var(--text-secondary);
}

.proof-stack,
.capability-grid,
.manifesto-grid,
.service-journey {
  display: grid;
  gap: 1rem;
}

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

.signal-card,
.capability-card,
.principle-card,
.contact-note-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 36%),
    var(--surface);
}

.signal-card small,
.capability-card small,
.principle-card small,
.contact-note-card small {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong,
.capability-card strong,
.principle-card strong,
.contact-note-card strong {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.15;
}

.signal-card p,
.capability-card p,
.principle-card p,
.contact-note-card p {
  margin: 0;
  color: var(--text-secondary);
}

.signal-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1;
  margin-top: 0.65rem;
}

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

.capability-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.capability-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-3);
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.case-study-box {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.case-study-box strong {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.case-study-box span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
}

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

.quote-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.08));
}

body[data-theme="light"] .quote-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-style: normal;
}

.service-journey {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-step {
  position: relative;
  padding-left: 1.65rem;
}

.journey-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.1);
}

.journey-step strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.journey-step p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-protocol {
  margin-top: 1rem;
}

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

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

/* Premium daylight mode */
body[data-theme="light"] {
  --bg: #d4dbe3;
  --bg-secondary: #e4e9ef;
  --surface: rgba(237, 242, 247, 0.78);
  --surface-strong: rgba(241, 245, 249, 0.92);
  --surface-soft: rgba(170, 180, 194, 0.34);
  --surface-grid: rgba(88, 99, 117, 0.08);
  --border: rgba(83, 96, 114, 0.16);
  --text-primary: #152030;
  --text-secondary: #566577;
  --text-muted: #748296;
  --accent: #316bff;
  --accent-2: #6d4df2;
  --accent-3: #0c8c73;
  --accent-4: #bf7a3d;
  --shadow-soft: 0 24px 56px rgba(27, 36, 49, 0.08);
  --shadow-strong: 0 28px 72px rgba(30, 39, 55, 0.12);
  background:
    radial-gradient(circle at 14% 18%, rgba(49, 107, 255, 0.07), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(109, 77, 242, 0.04), transparent 24%),
    radial-gradient(circle at 76% 84%, rgba(12, 140, 115, 0.025), transparent 20%),
    linear-gradient(180deg, #d3dae2 0%, #dde3ea 45%, #e8edf3 100%);
}

body[data-theme="light"]::before {
  opacity: 0.18;
}

body[data-theme="light"]::after {
  background: radial-gradient(circle, rgba(67, 80, 102, 0.1), transparent 62%);
}

body[data-theme="light"] .site-navbar {
  background: linear-gradient(180deg, rgba(18, 25, 39, 0.92), rgba(27, 36, 53, 0.88));
  border-color: rgba(206, 216, 230, 0.1);
  box-shadow: 0 22px 52px rgba(17, 23, 34, 0.2);
}

body[data-theme="light"] .site-navbar.is-scrolled {
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.96), rgba(24, 33, 49, 0.92));
  border-color: rgba(206, 216, 230, 0.12);
}

body[data-theme="light"] .site-navbar .navbar-brand,
body[data-theme="light"] .site-navbar .navbar-brand:hover,
body[data-theme="light"] .site-navbar .navbar-brand:focus {
  color: #f8fbff;
}

body[data-theme="light"] .site-navbar .brand-text span,
body[data-theme="light"] .site-navbar .navbar-brand:hover .brand-text span,
body[data-theme="light"] .site-navbar .navbar-brand:focus .brand-text span {
  color: #f8fbff;
  text-shadow: 0 10px 28px rgba(56, 189, 248, 0.08);
}

body[data-theme="light"] .site-navbar .brand-text small,
body[data-theme="light"] .site-navbar .navbar-brand:hover .brand-text small,
body[data-theme="light"] .site-navbar .navbar-brand:focus .brand-text small {
  color: rgba(201, 211, 224, 0.92);
}

body[data-theme="light"] .site-navbar .nav-link {
  color: rgba(218, 226, 237, 0.82);
}

body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .nav-link.active {
  color: #f8fbff;
  background: rgba(117, 136, 171, 0.16);
}

body[data-theme="light"] .site-navbar .btn-outline-premium,
body[data-theme="light"] .site-navbar .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fbff;
  border-color: rgba(206, 216, 230, 0.14);
  box-shadow: none;
}

body[data-theme="light"] .tag {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.92), rgba(231, 237, 243, 0.88));
  color: #435266;
  border-color: rgba(95, 109, 129, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 22px rgba(37, 46, 62, 0.05);
}

body[data-theme="light"] .btn-outline-premium {
  background: linear-gradient(180deg, rgba(243, 247, 251, 0.96), rgba(228, 235, 242, 0.92));
  border-color: rgba(92, 105, 124, 0.16);
  box-shadow: 0 16px 30px rgba(35, 45, 61, 0.08);
}

body[data-theme="light"] .social-link {
  background: linear-gradient(180deg, rgba(243, 247, 251, 0.96), rgba(228, 235, 242, 0.92));
  border-color: rgba(92, 105, 124, 0.15);
  box-shadow: 0 14px 28px rgba(37, 46, 62, 0.06);
}

body[data-theme="light"] .hero-shell {
  background:
    linear-gradient(rgba(236, 242, 247, 0.98), rgba(227, 234, 241, 0.96)) padding-box,
    linear-gradient(140deg, rgba(71, 95, 147, 0.2), rgba(109, 77, 242, 0.08), rgba(118, 131, 150, 0.12))
      border-box;
  box-shadow: 0 34px 78px rgba(30, 40, 56, 0.11);
}

body[data-theme="light"] .hero-shell::before {
  background: radial-gradient(circle, rgba(71, 85, 111, 0.12), transparent 68%);
}

body[data-theme="light"] .hero-shell::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(109, 77, 242, 0.08), transparent 24%);
  opacity: 0.6;
}

body[data-theme="light"] .hero-kicker {
  background: rgba(214, 225, 239, 0.62);
  border-color: rgba(49, 107, 255, 0.12);
}

body[data-theme="light"] .hero-cta-note {
  background: linear-gradient(180deg, rgba(240, 245, 249, 0.96), rgba(226, 233, 240, 0.92));
  border-color: rgba(92, 105, 124, 0.14);
  box-shadow: 0 18px 34px rgba(31, 40, 56, 0.07);
}

body[data-theme="light"] .display-title,
body[data-theme="light"] .section-title,
body[data-theme="light"] .card-title,
body[data-theme="light"] .stat-value,
body[data-theme="light"] .btn-outline-premium {
  color: #152030;
}

body[data-theme="light"] .hero-subtitle,
body[data-theme="light"] .section-copy,
body[data-theme="light"] .card-copy,
body[data-theme="light"] .stat-label,
body[data-theme="light"] .stat-note,
body[data-theme="light"] .hero-cta-note span,
body[data-theme="light"] .profile-badge span,
body[data-theme="light"] .footer-copy {
  color: #566577;
}

body[data-theme="light"] .glass-card,
body[data-theme="light"] .gradient-card,
body[data-theme="light"] .mini-card,
body[data-theme="light"] .value-card,
body[data-theme="light"] .achievement-card,
body[data-theme="light"] .focus-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .page-panel,
body[data-theme="light"] .skill-group,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .availability-card,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .page-summary-item,
body[data-theme="light"] .profile-intro,
body[data-theme="light"] .profile-line,
body[data-theme="light"] .protocol-item,
body[data-theme="light"] .case-study-box {
  background: linear-gradient(180deg, rgba(242, 246, 250, 0.97), rgba(227, 234, 241, 0.92));
  border-color: rgba(92, 105, 124, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 38px rgba(35, 45, 61, 0.07);
}

body[data-theme="light"] .hero-stage {
  background:
    radial-gradient(circle at 88% 14%, rgba(49, 107, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(15, 21, 33, 0.96), rgba(24, 33, 49, 0.92));
  border-color: rgba(205, 214, 228, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 60px rgba(17, 24, 35, 0.22);
}

body[data-theme="light"] .hero-stage::before {
  background: radial-gradient(circle, rgba(124, 110, 210, 0.2), transparent 68%);
}

body[data-theme="light"] .hero-stage-label {
  background: rgba(49, 107, 255, 0.14);
  border-color: rgba(91, 149, 255, 0.2);
  color: #8ed5ff;
}

body[data-theme="light"] .hero-stage-status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(205, 214, 228, 0.1);
  color: rgba(216, 225, 237, 0.82);
}

body[data-theme="light"] .hero-stage-card {
  background: linear-gradient(180deg, rgba(31, 40, 58, 0.92), rgba(20, 28, 42, 0.84));
  border-color: rgba(205, 214, 228, 0.08);
  box-shadow: 0 18px 40px rgba(10, 16, 29, 0.22);
}

body[data-theme="light"] .hero-stage-portrait-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(236, 240, 246, 0.18), rgba(6, 11, 20, 0.46));
  border-color: rgba(205, 214, 228, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 38px rgba(10, 16, 29, 0.24);
}

body[data-theme="light"] .hero-stage-portrait-shell::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 24%, rgba(15, 21, 31, 0.18) 56%, rgba(15, 21, 31, 0.76) 100%);
}

body[data-theme="light"] .hero-stage-portrait-shell::after {
  border-color: rgba(205, 214, 228, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 22%);
}

body[data-theme="light"] .portrait-photo.hero-stage-image {
  filter: saturate(1.02) contrast(1.05) brightness(1.01);
}

body[data-theme="light"] .hero-photo-badge {
  background: rgba(248, 250, 252, 0.92);
  color: #182132;
  border-color: rgba(92, 105, 124, 0.08);
  box-shadow: 0 12px 28px rgba(6, 11, 20, 0.18);
}

body[data-theme="light"] .hero-stage-code,
body[data-theme="light"] .terminal-card,
body[data-theme="light"] .quote-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 107, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(22, 30, 45, 0.94));
  border-color: rgba(125, 145, 177, 0.16);
  box-shadow: 0 22px 44px rgba(17, 24, 35, 0.22);
}

body[data-theme="light"] .hero-stage-code .terminal-label,
body[data-theme="light"] .terminal-card .terminal-label,
body[data-theme="light"] .project-terminal .terminal-label {
  color: rgba(203, 214, 232, 0.72);
}

body[data-theme="light"] .hero-stage-code .code-block,
body[data-theme="light"] .terminal-card .code-block,
body[data-theme="light"] .project-terminal .code-block,
body[data-theme="light"] .quote-card blockquote,
body[data-theme="light"] .quote-card cite {
  color: #dbe5f6;
}

body[data-theme="light"] .hero-stage .hero-stage-portrait-copy strong,
body[data-theme="light"] .hero-stage .hero-mini-stat strong {
  color: #f8fbff;
}

body[data-theme="light"] .hero-stage .hero-stage-portrait-copy span,
body[data-theme="light"] .hero-stage .hero-mini-stat span {
  color: rgba(205, 216, 235, 0.76);
}

body[data-theme="light"] .hero-stage .hero-mini-stat {
  background: linear-gradient(180deg, rgba(36, 46, 67, 0.88), rgba(28, 37, 55, 0.82));
  border-color: rgba(205, 214, 228, 0.08);
  box-shadow: 0 16px 32px rgba(11, 17, 29, 0.18);
}

body[data-theme="light"] .command-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 107, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(240, 245, 249, 0.98), rgba(226, 233, 240, 0.94));
  border-color: rgba(92, 105, 124, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 24px 48px rgba(35, 45, 61, 0.08);
  color: inherit;
}

body[data-theme="light"] .command-panel::before {
  background: linear-gradient(90deg, transparent, rgba(49, 107, 255, 0.56), rgba(109, 77, 242, 0.24), transparent);
}

body[data-theme="light"] .command-panel .eyebrow {
  background: rgba(223, 231, 241, 0.78);
  border-color: rgba(49, 107, 255, 0.12);
  color: #316bff;
}

body[data-theme="light"] .command-panel .section-title,
body[data-theme="light"] .command-panel strong {
  color: #182235;
}

body[data-theme="light"] .command-panel .section-copy,
body[data-theme="light"] .command-panel p {
  color: #58697f;
}

body[data-theme="light"] .command-row {
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(233, 239, 245, 0.92));
  border-color: rgba(101, 115, 134, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(44, 55, 72, 0.05);
}

body[data-theme="light"] .command-row span {
  background: linear-gradient(135deg, rgba(49, 107, 255, 0.14), rgba(109, 77, 242, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .command-row strong {
  color: #1a2436;
}

body[data-theme="light"] .command-row p {
  color: #5b6b81;
}

body[data-theme="light"] .signal-card,
body[data-theme="light"] .capability-card,
body[data-theme="light"] .principle-card,
body[data-theme="light"] .contact-note-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 107, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(242, 246, 250, 0.97), rgba(228, 234, 241, 0.92));
  border-color: rgba(92, 105, 124, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 18px 38px rgba(35, 45, 61, 0.07);
}

body[data-theme="light"] .signal-card strong,
body[data-theme="light"] .signal-number {
  color: #182235;
}

body[data-theme="light"] .signal-card p {
  color: #56677d;
}

body[data-theme="light"] .project-visual {
  background:
    radial-gradient(circle at 88% 14%, rgba(81, 102, 171, 0.22), transparent 24%),
    radial-gradient(circle at 14% 84%, rgba(109, 77, 242, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(24, 32, 47, 0.96), rgba(34, 43, 64, 0.92));
  border-color: rgba(205, 214, 228, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(17, 24, 35, 0.14);
}

body[data-theme="light"] .project-visual::before,
body[data-theme="light"] .project-visual::after {
  border-color: rgba(205, 214, 228, 0.08);
}

body[data-theme="light"] .project-visual .project-label {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(205, 214, 228, 0.08);
  color: #182132;
}

body[data-theme="light"] .project-terminal {
  background: rgba(8, 13, 23, 0.58);
  color: rgba(226, 234, 245, 0.92);
  border-color: rgba(205, 214, 228, 0.08);
  box-shadow: 0 10px 24px rgba(18, 25, 37, 0.16);
}

body[data-theme="light"] .project-card .case-study-box strong {
  color: #182235;
}

body[data-theme="light"] .project-card .case-study-box span {
  color: #58687f;
}

body[data-theme="light"] .profile-badge {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(92, 105, 124, 0.1);
  color: #182132;
  box-shadow: 0 14px 28px rgba(35, 45, 61, 0.12);
}

body[data-theme="light"] .profile-portrait-wrap {
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 107, 255, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(109, 77, 242, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(236, 241, 246, 0.95), rgba(219, 226, 235, 0.88));
  border-color: rgba(92, 105, 124, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 46px rgba(35, 45, 61, 0.1);
}

body[data-theme="light"] .profile-portrait-wrap::before {
  background: radial-gradient(circle, rgba(49, 107, 255, 0.16), transparent 72%);
}

body[data-theme="light"] .profile-portrait-wrap::after {
  border-color: rgba(92, 105, 124, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
}

body[data-theme="light"] .profile-portrait {
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 20px 38px rgba(35, 45, 61, 0.1);
}

body[data-theme="light"] .filter-button {
  background: linear-gradient(180deg, rgba(242, 246, 250, 0.96), rgba(227, 234, 241, 0.92));
  border-color: rgba(92, 105, 124, 0.14);
  color: #4d5c71;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 20px rgba(35, 45, 61, 0.05);
}

body[data-theme="light"] .filter-button:hover,
body[data-theme="light"] .filter-button.active {
  color: #f8fbff;
  box-shadow: 0 14px 28px rgba(49, 107, 255, 0.18);
}

body[data-theme="light"] .footer {
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.96), rgba(12, 17, 29, 0.98));
  border-top-color: rgba(205, 214, 228, 0.08);
}

body[data-theme="light"] .footer .navbar-brand,
body[data-theme="light"] .footer .navbar-brand:hover,
body[data-theme="light"] .footer .navbar-brand:focus,
body[data-theme="light"] .footer .brand-text span,
body[data-theme="light"] .footer .navbar-brand:hover .brand-text span,
body[data-theme="light"] .footer .navbar-brand:focus .brand-text span,
body[data-theme="light"] .footer-title {
  color: #f8fbff;
}

body[data-theme="light"] .footer .brand-text small,
body[data-theme="light"] .footer-brand p,
body[data-theme="light"] .footer-note,
body[data-theme="light"] .footer-list a,
body[data-theme="light"] .footer-bottom {
  color: rgba(201, 211, 224, 0.78);
}

body[data-theme="light"] .footer-list a:hover {
  color: #f8fbff;
}

body[data-theme="light"] .footer-bottom {
  border-top-color: rgba(205, 214, 228, 0.08);
}

body[data-theme="light"] .footer-inline-link {
  color: #f8fbff;
}

body[data-theme="light"] .footer-inline-link:hover,
body[data-theme="light"] .footer-inline-link:focus {
  color: #ffffff;
  text-shadow: 0 12px 24px rgba(49, 107, 255, 0.16);
}

body[data-theme="light"] .footer-meta-note,
body[data-theme="light"] .footer-whatsapp-copy small {
  color: rgba(201, 211, 224, 0.78);
}

body[data-theme="light"] .footer-whatsapp-cta {
  background:
    linear-gradient(180deg, rgba(19, 28, 43, 0.94), rgba(13, 20, 33, 0.9)),
    linear-gradient(135deg, rgba(49, 107, 255, 0.16), rgba(109, 77, 242, 0.12));
  border-color: rgba(205, 214, 228, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(10, 16, 29, 0.18);
}

body[data-theme="light"] .footer-whatsapp-copy strong {
  color: #f8fbff;
}

body[data-theme="light"] .form-control {
  background: rgba(242, 246, 250, 0.92);
  border-color: rgba(92, 105, 124, 0.14);
}

body[data-theme="light"] .form-control:focus {
  background: rgba(247, 250, 252, 0.98);
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .glass-card,
    .gradient-card,
    .command-panel,
    .signal-card,
    .capability-card,
    .principle-card,
    .quote-card,
    .contact-note-card,
    .hero-stage-card,
    .hero-mini-stat,
    .stat-card,
    .mini-card,
    .value-card,
    .achievement-card,
    .focus-card,
    .contact-card,
    .page-panel,
    .skill-group,
    .contact-form,
    .availability-card,
    .timeline-item,
    .page-summary-item,
    .profile-line,
    .case-study-box,
    .command-row,
    .protocol-item
  ):hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(98, 121, 154, 0.22);
    box-shadow:
      0 30px 72px rgba(2, 6, 23, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body[data-theme="light"]
    :where(
      .glass-card,
      .gradient-card,
      .command-panel,
      .signal-card,
      .capability-card,
      .principle-card,
      .quote-card,
      .contact-note-card,
      .hero-stage-card,
      .hero-mini-stat,
      .stat-card,
      .mini-card,
      .value-card,
      .achievement-card,
      .focus-card,
      .contact-card,
      .page-panel,
      .skill-group,
      .contact-form,
      .availability-card,
      .timeline-item,
      .page-summary-item,
      .profile-line,
      .case-study-box,
      .command-row,
      .protocol-item
    ):hover {
    border-color: rgba(49, 107, 255, 0.18);
    box-shadow:
      0 26px 54px rgba(35, 45, 61, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.74);
  }

  :where(
    .glass-card,
    .gradient-card,
    .command-panel,
    .signal-card,
    .capability-card,
    .principle-card,
    .quote-card,
    .contact-note-card,
    .hero-stage-card,
    .hero-mini-stat,
    .stat-card,
    .mini-card,
    .value-card,
    .achievement-card,
    .focus-card,
    .contact-card,
    .page-panel,
    .skill-group,
    .contact-form,
    .availability-card,
    .timeline-item,
    .page-summary-item,
    .profile-line,
    .case-study-box,
    .command-row,
    .protocol-item
  ):hover::after {
    opacity: 1;
    transform: translate3d(250%, 0, 0) rotate(14deg);
  }

  .glass-card:hover::before,
  .gradient-card:hover::before,
  .command-panel:hover::before,
  .signal-card:hover::before,
  .capability-card:hover::before,
  .principle-card:hover::before,
  .quote-card:hover::before,
  .contact-note-card:hover::before {
    filter: brightness(1.18);
  }

  :where(.glass-card, .gradient-card, .page-panel, .command-panel, .project-card):hover .icon-badge,
  :where(.contact-card):hover .contact-icon,
  :where(.hero-stage-card):hover .hero-photo-badge,
  :where(.profile-card):hover .profile-badge,
  :where(.project-card):hover .project-label,
  :where(.command-row, .protocol-item):hover span {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
      0 14px 28px rgba(56, 189, 248, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  body[data-theme="light"]
    :where(.glass-card, .gradient-card, .page-panel, .command-panel, .project-card):hover .icon-badge,
  body[data-theme="light"] :where(.contact-card):hover .contact-icon,
  body[data-theme="light"] :where(.hero-stage-card):hover .hero-photo-badge,
  body[data-theme="light"] :where(.profile-card):hover .profile-badge,
  body[data-theme="light"] :where(.project-card):hover .project-label,
  body[data-theme="light"] :where(.command-row, .protocol-item):hover span {
    box-shadow:
      0 12px 24px rgba(49, 107, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  :where(.signal-card, .stat-card, .hero-mini-stat):hover :where(.signal-number, .stat-value, strong) {
    text-shadow: 0 12px 30px rgba(56, 189, 248, 0.14);
  }

  body[data-theme="light"] :where(.signal-card, .stat-card, .hero-mini-stat):hover :where(.signal-number, .stat-value, strong) {
    text-shadow: 0 12px 24px rgba(49, 107, 255, 0.12);
  }

  .hero-stage-portrait:hover .hero-stage-portrait-shell,
  .profile-card:hover .profile-portrait-wrap {
    border-color: rgba(125, 145, 177, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 28px 58px rgba(2, 6, 23, 0.3);
  }

  .hero-stage-portrait:hover .hero-stage-portrait-shell::after,
  .profile-card:hover .profile-portrait-wrap::after {
    border-color: rgba(148, 163, 184, 0.2);
  }

  .hero-stage-portrait:hover .portrait-photo.hero-stage-image,
  .profile-card:hover .profile-portrait {
    transform: scale(1.055) translateY(-2px);
    filter: saturate(1.06) contrast(1.08);
  }

  body[data-theme="light"] .hero-stage-portrait:hover .hero-stage-portrait-shell,
  body[data-theme="light"] .profile-card:hover .profile-portrait-wrap {
    border-color: rgba(125, 145, 177, 0.14);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 24px 48px rgba(35, 45, 61, 0.14);
  }

  body[data-theme="light"] .hero-stage-portrait:hover .hero-stage-portrait-shell::after,
  body[data-theme="light"] .profile-card:hover .profile-portrait-wrap::after {
    border-color: rgba(255, 255, 255, 0.2);
  }

  body[data-theme="light"] .hero-stage-portrait:hover .portrait-photo.hero-stage-image,
  body[data-theme="light"] .profile-card:hover .profile-portrait {
    filter: saturate(1.04) contrast(1.06) brightness(1.02);
  }

  .project-card:hover .project-visual {
    transform: translateY(-4px) scale(1.012);
    border-color: rgba(113, 136, 179, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 24px 46px rgba(2, 6, 23, 0.24);
  }

  body[data-theme="light"] .project-card:hover .project-visual {
    border-color: rgba(205, 214, 228, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 22px 42px rgba(17, 24, 35, 0.16);
  }

  .project-card:hover .project-terminal {
    transform: translateY(-2px);
    background: rgba(5, 10, 19, 0.82);
  }

  body[data-theme="light"] .project-card:hover .project-terminal {
    background: rgba(7, 12, 22, 0.68);
    color: rgba(238, 244, 252, 0.94);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(13);
    opacity: 0;
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1380px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  }

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

@media (max-width: 1199.98px) {
  .stats-grid,
  .feature-grid,
  .values-grid,
  .focus-grid,
  .footer-grid,
  .manifesto-grid,
  .capability-grid,
  .service-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  .site-navbar {
    top: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 0;
    border-inline: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--section-space) + 1.9rem);
  }

  .hero-grid,
  .about-grid,
  .split-grid,
  .contact-grid,
  .skills-layout,
  .services-grid,
  .project-grid,
  .split-feature {
    grid-template-columns: 1fr;
  }

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

  .hero-support-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    max-width: none;
  }

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

  .hero-stage-top,
  .hero-stage-metrics {
    grid-column: 1 / -1;
  }

  .home-summary-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mini-panel-grid,
  .approach-grid,
  .achievement-grid,
  .proof-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-summary-list {
    grid-template-columns: 1fr;
  }

  .page-summary-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-summary-item span {
    text-align: left;
  }

  .floating-badge.badge-two {
    left: 0;
  }

  .navbar-nav {
    padding-top: 0.8rem;
  }

  .navbar-collapse {
    margin-top: 0.95rem;
    padding: 1rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(9, 14, 24, 0.98), rgba(16, 24, 39, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(22px);
  }

  body[data-theme="light"] .navbar-collapse {
    background: linear-gradient(180deg, rgba(14, 20, 33, 0.98), rgba(25, 33, 49, 0.94));
    border-color: rgba(206, 216, 230, 0.12);
    box-shadow: 0 28px 60px rgba(17, 24, 35, 0.22);
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    animation: panelRise 0.26s ease;
  }

  .navbar-nav {
    gap: 0.35rem;
  }

  .nav-link {
    padding: 0.88rem 1rem !important;
  }

  .nav-tools {
    width: 100%;
    padding-top: 0.95rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
  }

  .nav-tools .btn-outline-premium.d-lg-none {
    display: inline-flex !important;
    justify-content: center;
    min-height: 3rem;
  }

  .theme-toggle {
    justify-self: end;
  }

  .site-navbar[data-nav-expanded="true"] {
    box-shadow: 0 30px 68px rgba(2, 6, 23, 0.24);
  }

  .site-navbar[data-nav-expanded="true"] .navbar-toggler {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.22);
  }

  body[data-theme="light"] .site-navbar[data-nav-expanded="true"] .navbar-toggler {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(206, 216, 230, 0.18);
  }
}

@media (max-width: 899.98px) {
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hero-actions > :first-child {
    grid-column: 1 / -1;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767.98px) {
  .section {
    padding: clamp(4rem, 10vw, 5rem) 0;
  }

  .display-title {
    max-width: 11.2ch;
    font-size: clamp(2.45rem, 10.4vw, 3.75rem);
  }

  .stats-grid,
  .feature-grid,
  .values-grid,
  .focus-grid,
  .footer-grid,
  .mini-panel-grid,
  .approach-grid,
  .achievement-grid,
  .manifesto-grid,
  .capability-grid,
  .service-journey,
  .proof-stack,
  .home-summary-list {
    grid-template-columns: 1fr;
  }

  .case-study-meta {
    grid-template-columns: 1fr;
  }

  .hero-trust-strip {
    grid-template-columns: 1fr;
  }

  .filter-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .filter-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: calc(var(--section-space) + 1.4rem);
  }

  .hero-stage {
    grid-template-columns: 1fr;
    padding: 0.92rem;
    border-radius: 28px;
  }

  .home-summary-panel {
    padding: 1.05rem;
    border-radius: 24px;
  }

  .hero-stage-status {
    width: 100%;
    justify-content: center;
  }

  .hero-stage-label {
    width: 100%;
    justify-content: center;
  }

  .hero-stage-metrics {
    grid-template-columns: 1fr;
  }

  .hero-stage-portrait-shell {
    padding: 0.55rem;
    border-radius: 34px 34px 28px 28px / 26px 26px 44px 44px;
  }

  .hero-stage-portrait-shell::after {
    inset: 0.55rem;
    border-radius: 26px 26px 22px 22px / 20px 20px 36px 36px;
  }

  .portrait-photo.hero-stage-image {
    min-height: calc(18rem - 1.1rem);
    border-radius: 26px 26px 22px 22px / 20px 20px 36px 36px;
  }

  .hero-photo-badge-bottom {
    left: 1rem;
    right: auto;
  }

  .timeline-item {
    padding: 1.35rem 1.1rem 1.35rem 3rem;
  }

  .timeline::before {
    left: 0.85rem;
  }

  .timeline-item::before {
    left: 0.4rem;
  }

  .profile-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-line span {
    text-align: left;
  }

  .contact-card {
    padding: 1.05rem;
    gap: 0.85rem;
  }

  .availability-status,
  .timeline-date,
  .project-label,
  .hero-photo-badge,
  .profile-badge {
    font-size: 0.78rem;
  }

  .hero-actions .btn-premium,
  .hero-actions .btn-outline-premium,
  .hero-actions .btn-ghost,
  .cta-panel .btn-premium,
  .cta-panel .btn-outline-premium {
    width: 100%;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .project-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .project-actions .btn-premium,
  .project-actions .btn-outline-premium {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.84rem 0.95rem;
    font-size: 0.9rem;
  }

  .footer-bottom-meta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-sm {
    padding-inline: var(--container-space);
  }

  .site-navbar {
    top: 0.55rem;
    left: 0.7rem;
    right: 0.7rem;
    max-width: calc(100% - 1.4rem);
    padding: 0.46rem 0;
    border-radius: 24px;
  }

  .navbar-brand {
    max-width: calc(100% - 4.35rem);
    gap: 0.62rem;
  }

  .hero-kicker,
  .tag,
  .filter-button,
  .page-summary-item {
    font-size: 0.82rem;
  }

  .page-summary-list {
    grid-template-columns: 1fr;
  }

  .page-summary-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-summary-item span {
    text-align: left;
  }

  .glass-card,
  .gradient-card,
  .contact-form,
  .availability-card,
  .page-panel,
  .skill-group {
    padding: 1.2rem;
  }

  .hero-shell {
    padding: 0.95rem;
    border-radius: 28px;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 14px;
  }

  .brand-text span {
    font-size: 0.89rem;
  }

  .brand-text small {
    font-size: 0.66rem;
  }

  .nav-tools {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    justify-self: start;
  }

  .hero-stage {
    padding: 0.78rem;
    border-radius: 24px;
  }

  .hero-stage-portrait {
    padding: 0.72rem;
  }

  .hero-stage-portrait-shell {
    padding: 0.46rem;
    border-radius: 28px 28px 24px 24px / 22px 22px 36px 36px;
  }

  .hero-stage-portrait-shell::after {
    inset: 0.46rem;
    border-radius: 22px 22px 18px 18px / 16px 16px 30px 30px;
  }

  .portrait-photo.hero-stage-image {
    min-height: calc(15.75rem - 0.92rem);
    border-radius: 22px 22px 18px 18px / 16px 16px 30px 30px;
  }

  .hero-stage-code {
    padding: 0.95rem;
  }

  .terminal-label {
    max-width: 10.5rem;
  }

  .hero-photo-badge {
    padding: 0.58rem 0.76rem;
    font-size: 0.72rem;
  }

  .project-actions {
    gap: 0.62rem;
  }

  .project-actions .btn-premium,
  .project-actions .btn-outline-premium {
    padding-inline: 0.8rem;
    font-size: 0.84rem;
  }

  .profile-portrait-wrap {
    padding: 0.72rem;
    border-radius: 32px 32px 28px 28px / 24px 24px 40px 40px;
  }

  .profile-portrait-wrap::after {
    inset: 0.72rem;
    border-radius: 24px 24px 20px 20px / 18px 18px 32px 32px;
  }

  .profile-portrait {
    border-radius: 24px 24px 20px 20px / 18px 18px 32px 32px;
  }

  .profile-badge {
    left: 1rem;
    bottom: 1rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.75rem;
  }

  .hero-cta-note {
    padding: 0.85rem 0.9rem;
    border-radius: 20px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-meta {
    width: 100%;
    justify-content: center;
  }

  .footer-meta-note {
    width: 100%;
    text-align: center;
  }

  .footer-whatsapp-cta {
    width: 100%;
    justify-content: center;
  }

  .preloader-shell {
    width: min(68vw, 196px);
    aspect-ratio: 1;
  }

  .preloader-core {
    width: min(48vw, 148px);
  }

  .floating-badge {
    position: relative;
    inset: auto;
  }

  .footer-bottom {
    font-size: 0.88rem;
  }
}

@media (max-width: 419.98px) {
  .site-navbar {
    left: 0.55rem;
    right: 0.55rem;
    max-width: calc(100% - 1.1rem);
  }

  .navbar-brand {
    max-width: calc(100% - 4rem);
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 13px;
  }

  .brand-text span {
    font-size: 0.82rem;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-shell,
  .page-panel,
  .glass-card,
  .gradient-card,
  .contact-form,
  .availability-card,
  .skill-group {
    border-radius: 22px;
  }

  .hero-kicker,
  .hero-stage-label,
  .hero-stage-status,
  .availability-status,
  .timeline-date {
    font-size: 0.74rem;
  }

  .hero-stage-top {
    gap: 0.6rem;
  }

  .hero-photo-badge-top {
    left: 0.7rem;
  }

  .hero-photo-badge-bottom {
    left: 0.7rem;
    right: auto;
  }

  .hero-photo-badge,
  .profile-badge {
    max-width: calc(100% - 1.4rem);
    padding: 0.56rem 0.72rem;
    font-size: 0.69rem;
  }

  .footer-whatsapp-cta {
    gap: 0.68rem;
    padding: 0.68rem 0.78rem;
  }

  .footer-whatsapp-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .footer-whatsapp-copy strong {
    font-size: 0.82rem;
  }

  .footer-whatsapp-copy small {
    font-size: 0.7rem;
  }

  .project-terminal {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.8rem 0.9rem;
    font-size: 0.76rem;
  }

  .terminal-label {
    max-width: 8.2rem;
    font-size: 0.74rem;
  }

  .timeline-item {
    padding-right: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .back-to-top {
    transition: none;
  }
}
