:root,
[data-theme="dark"] {
  --bg: rgb(21, 19, 18);
  --bg-raised: rgb(28, 25, 24);
  --bg-card: rgb(14, 12, 11);
  --bg-card-hover: rgb(32, 28, 27);
  --bg-subtle: rgb(35, 31, 30);

  --border: rgba(175, 174, 162, 0.18);
  --border-hover: #722F37;
  --border-strong: #722F37;

  --accent: #722F37;
  --accent-2: #722F37;
  --accent-3: #722F37;
  --accent-grad: linear-gradient(135deg, #722F37 0%, #9a3f49 100%);
  --accent-soft: rgba(114, 47, 55, 0.12);
  --accent-glow: rgba(114, 47, 55, 0.22);
  --accent-glow-2: rgba(114, 47, 55, 0.14);

  --green: #3a7c52;
  --green-soft: rgba(58, 124, 82, 0.12);
  --green-border: rgba(58, 124, 82, 0.28);
  --amber: #b06b1a;
  --amber-soft: rgba(176, 107, 26, 0.12);
  --red: #722F37;

  --text-1: #F0EDE6;
  --text-2: #AFAEA2;
  --text-3: #7a7970;

  --header-bg: rgba(21, 19, 18, 0.90);
  --hover-fill: rgba(210, 19, 25, 0.10);
  --tag-bg: rgba(210, 19, 25, 0.15);
  --kbd-bg: rgba(175, 174, 162, 0.12);

  --card-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px var(--border);
  --card-hover-shadow:
    0 0 0 1px var(--border-hover),
    0 20px 48px -10px rgba(0, 0, 0, .9),
    0 0 36px -12px var(--accent-glow);
  --btn-shadow: 0 4px 16px var(--accent-glow);
  --glow-ring: 0 0 0 3px var(--accent-soft);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --header-h: 68px;
  --max-w: 1200px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #E8DCC6;
  --bg-raised: #F2EAD8;
  --bg-card: #ffffff;
  --bg-card-hover: #FBF8F2;
  --bg-subtle: #DFD4BC;

  --border: rgba(183, 168, 154, 0.45);
  --border-hover: #722F37;
  --border-strong: #722F37;

  --accent: #722F37;
  --accent-2: #722F37;
  --accent-3: #722F37;
  --accent-grad: linear-gradient(135deg, #722F37 0%, #9a3f49 100%);
  --accent-soft: rgba(114, 47, 55, 0.12);
  --accent-glow: rgba(114, 47, 55, 0.22);
  --accent-glow-2: rgba(114, 47, 55, 0.14);

  --green: #3a7c52;
  --green-soft: rgba(58, 124, 82, 0.12);
  --green-border: rgba(58, 124, 82, 0.28);
  --amber: #b06b1a;
  --amber-soft: rgba(176, 107, 26, 0.12);
  --red: #722F37;

  --text-1: #2C1810;
  --text-2: #6B5744;
  --text-3: #B7A89A;

  --header-bg: rgba(232, 220, 198, 0.92);
  --hover-fill: rgba(114, 47, 55, 0.08);
  --tag-bg: rgba(114, 47, 55, 0.10);
  --kbd-bg: rgba(183, 168, 154, 0.25);

  --card-shadow: 0 1px 4px rgba(44, 24, 16, .10), 0 0 0 1px var(--border);
  --card-hover-shadow:
    0 0 0 1px var(--border-hover),
    0 16px 36px -8px rgba(114, 47, 55, 0.18),
    0 0 0 3px var(--accent-soft);
  --btn-shadow: 0 4px 14px rgba(114, 47, 55, 0.24);
  --glow-ring: 0 0 0 3px var(--accent-soft);

  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #E8DCC6;
    --bg-raised: #F2EAD8;
    --bg-card: #F7F2E8;
    --bg-card-hover: #FBF8F2;
    --bg-subtle: #DFD4BC;

    --border: rgba(183, 168, 154, 0.45);
    --border-hover: #722F37;
    --border-strong: #722F37;

    --accent: #722F37;
    --accent-2: #722F37;
    --accent-3: #722F37;
    --accent-grad: linear-gradient(135deg, #722F37 0%, #9a3f49 100%);
    --accent-soft: rgba(114, 47, 55, 0.12);
    --accent-glow: rgba(114, 47, 55, 0.22);
    --accent-glow-2: rgba(114, 47, 55, 0.14);

    --green: #3a7c52;
    --green-soft: rgba(58, 124, 82, 0.12);
    --green-border: rgba(58, 124, 82, 0.28);
    --amber: #b06b1a;
    --amber-soft: rgba(176, 107, 26, 0.12);
    --red: #722F37;

    --text-1: #2C1810;
    --text-2: #6B5744;
    --text-3: #B7A89A;

    --header-bg: rgba(232, 220, 198, 0.92);
    --hover-fill: rgba(114, 47, 55, 0.08);
    --tag-bg: rgba(114, 47, 55, 0.10);
    --kbd-bg: rgba(183, 168, 154, 0.25);

    --card-shadow: 0 1px 4px rgba(44, 24, 16, .10), 0 0 0 1px var(--border);
    --card-hover-shadow:
      0 0 0 1px var(--border-hover),
      0 16px 36px -8px rgba(114, 47, 55, 0.18),
      0 0 0 3px var(--accent-soft);
    --btn-shadow: 0 4px 14px rgba(114, 47, 55, 0.24);
    --glow-ring: 0 0 0 3px var(--accent-soft);

    color-scheme: light;
  }
}

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

button,
button:focus,
button:focus-visible,
button:active,
button:hover,
[class*="btn"]:focus,
[class*="btn"]:focus-visible,
[class*="btn"]:active,
a[class*="btn"]:focus,
a[class*="btn"]:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



img,
svg {
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:focus,
button:focus-visible,
button:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
a.btn:focus,
a.btn:focus-visible,
a.btn:active {
  outline: none !important;
  box-shadow: none !important;
}

input,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent-grad);
  width: 0%;
  z-index: 9999;
  transition: width 0.12s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 52px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent-grad);
  border-radius: 2px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text-1);
}

.section-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin-top: 14px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all 0.24s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s var(--ease);
}

.btn-primary:hover::before {
  left: 150%;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px var(--accent-glow);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-1);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--hover-fill);
  color: var(--text-1);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
  gap: 10px;
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
  gap: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.75);
  backdrop-filter: blur(10px) saturate(1.4);
  z-index: 8000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.cmd-palette-box {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: min(580px, 92vw);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 48px 96px rgba(0, 0, 0, .7),
    0 0 64px -16px var(--accent-glow);
}

.cmd-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.cmd-search-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font-sans);
}

.cmd-input::placeholder {
  color: var(--text-3);
}

.cmd-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--kbd-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-3);
}

.cmd-list {
  padding: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.cmd-group-title {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 10px 6px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.15s;
  text-align: left;
}

.cmd-item svg {
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.cmd-item:hover,
.cmd-item:focus {
  background: var(--hover-fill);
  color: var(--text-1);
  outline: none;
}

.cmd-item:hover svg {
  opacity: 1;
}

.cmd-item kbd {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--kbd-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-3);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-hover);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.brand:hover {
  opacity: 0.82;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 4px 12px var(--accent-glow);
}

.brand-avatar--sm {
  width: 32px;
  height: 32px;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Brand mark — used on Privacy & Terms pages */
.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 4px 12px var(--accent-glow);
}

.brand-mark--sm {
  width: 32px;
  height: 32px;
}

.brand-mark-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid var(--bg);
  animation: pulse-dot 2.4s infinite;
  box-shadow: 0 0 6px var(--green);
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 232, 160, .5), 0 0 6px var(--green);
  }

  60% {
    box-shadow: 0 0 0 6px rgba(16, 232, 160, 0), 0 0 6px var(--green);
  }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.brand-role {
  font-size: 10.5px;
  color: var(--text-3);
  line-height: 1.2;
  font-family: var(--font-mono);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  position: relative;
  letter-spacing: -.01em;
}

.nav-link:hover {
  color: var(--text-1);
  background: var(--hover-fill);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cmd-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.cmd-trigger-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-2);
  background: var(--bg-subtle);
}

.cmd-trigger-text {
  font-size: 12px;
}

.kbd-shortcut {
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--kbd-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.theme-toggle:hover {
  background: var(--hover-fill);
  color: var(--text-1);
  border-color: var(--border);
}

.theme-icon {
  transition: all 0.3s;
}

[data-theme="dark"] .theme-icon--moon,
:root:not([data-theme="light"]) .theme-icon--moon {
  display: block;
}

[data-theme="dark"] .theme-icon--sun,
:root:not([data-theme="light"]) .theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--sun {
  display: block;
}

[data-theme="light"] .theme-icon--moon {
  display: none;
}

.btn-contact-nav {
  border-radius: var(--radius-sm) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  border: 1px solid transparent;
}

.menu-btn:hover {
  background: var(--hover-fill);
  border-color: var(--border);
}

.menu-bar {
  width: 18px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  display: block;
}

.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease);
  z-index: 999;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
}

.mobile-menu.is-open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--text-1);
  background: var(--hover-fill);
}

.mobile-link--cta {
  color: var(--accent);
  font-weight: 700;
  border-bottom: none;
}



.hero {
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero,
:root:not([data-theme="light"]) .hero {
  background-image: url('../img/hero-bg-dark.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

[data-theme="light"] .hero {
  background-image: url('../img/hero-bg-light.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 100px;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 232, 160, 0.06), transparent);
  animation: shimmer-badge 3s ease infinite;
}

@keyframes shimmer-badge {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.4s infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
}

.hero-badge span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text-1);
}

.hero-heading .hl {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.78;
}

.hero-subtext strong {
  color: var(--text-1);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}

.social-icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.2s;
}

.social-icon-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--accent-glow), var(--glow-ring);
}

.social-icon-btn:hover::before {
  opacity: 1;
}

.social-icon-btn svg {
  position: relative;
  z-index: 1;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.meta-item svg {
  color: var(--accent);
  opacity: 0.7;
}

.meta-dot {
  color: var(--border-strong);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.35s var(--ease);
  position: relative;
}

.terminal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-grad);
  opacity: 0.6;
}

.terminal-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
  box-shadow: 0 0 4px rgba(255, 95, 87, .5);
}

.dot-yellow {
  background: #febc2e;
  box-shadow: 0 0 4px rgba(254, 188, 46, .5);
}

.dot-green {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40, 200, 64, .5);
}

.terminal-title {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  font-family: var(--font-mono);
}

.terminal-copy {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--text-3);
  transition: all 0.18s;
}

.terminal-copy:hover {
  background: var(--hover-fill);
  color: var(--accent);
}

.terminal-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}

.code-line {
  display: block;
}

.indent {
  padding-left: 20px;
}

.c-dim {
  color: var(--text-3);
}

.c-keyword {
  color: var(--accent-3);
  font-style: italic;
}

.c-var {
  color: var(--text-1);
}

.c-prop {
  color: #93c5fd;
}

.c-str {
  color: #6ee7b7;
}

.c-num {
  color: var(--amber);
}

.c-accent {
  color: var(--accent);
}

.cursor-block {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease);
}

.profile-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 16px var(--accent-glow);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.profile-title {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.profile-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 5px;
  border: 1px solid var(--green-border);
}

.stats {
  padding-block: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  opacity: 0.3;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}

.stats-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent calc(25% - 1px), var(--border) calc(25% - 1px), var(--border) 25%);
  pointer-events: none;
}

.stat-card {
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  background: var(--hover-fill);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 16px var(--accent-soft);
}

.stat-meta {
  flex: 1;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-accent {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 5px;
  display: block;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  font-family: var(--font-mono);
}

.work {
  padding-block: 110px;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.work::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.section-header {
  margin-bottom: 52px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}

.project-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  transition: all 0.2s var(--ease);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: var(--text-1);
  background: var(--hover-fill);
}

.filter-btn.is-active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4), 0 0 0 1px var(--border);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0.85;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7), 0 0 28px var(--accent-glow);
  transform: translateY(-6px);
}

.project-card:hover::after {
  opacity: 0.8;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 0;
}

.project-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.01em;
}

.project-subhead {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.project-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--green-border);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}

.project-card-body {
  padding: 16px 22px;
  flex: 1;
}

.project-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
  margin-bottom: 14px;
}

.project-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
}

.feat-item svg {
  color: var(--green);
  margin-top: 1px;
  flex-shrink: 0;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hover);
}

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

.skills-section {
  padding-block: 110px;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-category-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
}

.skill-category-card:hover::before {
  opacity: 1;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  flex-shrink: 0;
}

.skill-cat-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.01em;
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-block;
  padding: 5px 12px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-mono);
  transition: all 0.18s;
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.why {
  padding-block: 110px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-intro {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}

.why-lead {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.82;
  margin-block: 22px;
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
  transform: translateX(6px);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.68;
}

.process {
  padding-block: 110px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .process,
:root:not([data-theme="light"]) .process {
  background-color: var(--bg);
  background-image: none;
}

[data-theme="light"] .process {
  background-image: url('../img/process-bg-light.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.process::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.process .container {
  position: relative;
  z-index: 1;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 52px;
  position: relative;
  z-index: 1;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.process-step:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-6px);
}

.process-step:hover::before {
  transform: scaleX(1);
}

.step-num-badge {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.65;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.process-step p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.72;
}

.testimonials {
  padding-block: 110px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 100px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
}

.testimonial-card blockquote {
  flex: 1;
  margin-bottom: 22px;
}

.testimonial-card blockquote p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.78;
  font-style: italic;
  position: relative;
}

.testimonial-card blockquote p::before {
  content: '"';
  color: var(--accent);
  font-size: 32px;
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
  font-style: normal;
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.author-meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.locations {
  padding-block: 110px;
  background: var(--bg-raised);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.location-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-5px);
}

.location-card:hover::before {
  opacity: 1;
}

.location-body {
  padding: 26px;
}

.location-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-hover);
  margin-bottom: 12px;
}

.location-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.location-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.72;
  margin-bottom: 16px;
}

.location-tag {
  display: inline-flex;
  padding: 4px 11px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-3);
}

.faqs {
  padding-block: 110px;
}

.faq-list {
  max-width: 740px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
  gap: 16px;
  transition: background 0.18s;
  letter-spacing: -.01em;
}

.faq-question:hover {
  background: var(--hover-fill);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.5;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  opacity: 1;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent);
}

.faq-answer {
  padding: 0 22px 18px;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.78;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faqs-note {
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-3);
}

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta {
  padding-block: 110px;
}

.final-cta-card {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-2xl);
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .final-cta-card,
:root:not([data-theme="light"]) .final-cta-card {
  background-image: url('../img/cta-bg-dark.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[data-theme="light"] .final-cta-card {
  background-image: url('../img/cta-bg-light.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 18, 0.85);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .final-cta-card::before {
  background: transparent;
}

.final-cta-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  z-index: 1;
}

.final-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.final-cta-text {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.cta-contact-info a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
  font-family: var(--font-mono);
}

.cta-contact-info a:hover {
  color: var(--accent);
}

.cta-contact-info a svg {
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.cta-contact-info a:hover svg {
  opacity: 1;
}

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  width: fit-content;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.footer-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all 0.22s var(--ease);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--accent-glow);
  background: var(--accent-soft);
}

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.18s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact li {
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-2);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-1);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.32s var(--ease);
  z-index: 9000;
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4), 0 0 0 1px var(--border-hover);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.toast svg {
  color: var(--green);
  flex-shrink: 0;
}

@media (max-width: 1024px) {

  .site-nav,
  .cmd-trigger-btn,
  .btn-contact-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 680px;
    margin-inline: auto;
  }

  .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 600px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .why-intro {
    position: static;
  }

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

  .stats-grid::before {
    display: none;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {

  .hero-aside,
  .hero-badge {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: clamp(16px, 4vw, 28px);
  }

  .hero-aside,
  .hero-badge {
    display: none !important;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 64px;
  }

  .stats,
  .work,
  .skills-section,
  .why,
  .process,
  .testimonials,
  .locations,
  .faqs,
  .final-cta {
    padding-block: 68px;
  }

  .section-title {
    font-size: clamp(24px, 5.5vw, 36px);
  }

  .section-desc {
    font-size: 14.5px;
  }

  .section-header,
  .section-header-row {
    margin-bottom: 36px;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .project-filter-bar {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    gap: 6px;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }

  .stats,
  .work,
  .skills-section,
  .why,
  .process,
  .testimonials,
  .locations,
  .faqs,
  .final-cta {
    padding-block: 54px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 60px;
  }

  .hero-content {
    gap: 55px;
  }

  .hero-heading {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.15;
  }

  .hero-subtext {
    font-size: 14.5px;
    line-height: 1.68;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 25px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 14px;
  }

  .hero-social {
    gap: 15px;
    flex-wrap: wrap;
  }

  .social-icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 11px;
  }

  .meta-dot {
    display: inline;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .stat-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .stat-num {
    font-size: 32px;
  }

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

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-card-header {
    padding: 14px 14px 0;
  }

  .project-brand {
    gap: 10px;
  }

  .project-icon {
    width: 34px;
    height: 34px;
  }

  .project-name {
    font-size: 14px;
  }

  .project-subhead {
    font-size: 10.5px;
  }

  .project-card-body {
    padding: 10px 14px;
  }

  .project-desc {
    font-size: 13px;
    margin-bottom: 0;
    /* no bottom margin if features list is hidden */
  }

  .project-features-list {
    display: none;
  }

  .project-card-footer {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: transparent;
    border-top: 1px dashed var(--border);
  }

  .project-tags {
    display: none;
  }

  .project-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .project-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 38px;
    font-size: 13px;
  }

  .skill-category-card {
    padding: 20px 16px;
  }

  .feature-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .feature-card:hover {
    transform: none;
  }

  .process-track,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .process-step,
  .location-body,
  .testimonial-card {
    padding: 20px 16px;
  }

  .step-num-badge {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .faq-list {
    margin-top: 24px;
  }

  .faq-question {
    padding: 15px 16px;
    font-size: 14px;
    min-height: 48px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 13.5px;
  }

  .final-cta-card {
    padding: 36px 18px;
    border-radius: var(--radius-xl);
  }

  .final-cta-title {
    font-size: clamp(24px, 6.5vw, 32px);
    margin-bottom: 12px;
  }

  .final-cta-text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .cta-contact-info {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .container {
    padding-inline: 14px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-role {
    font-size: 9.5px;
  }

  .brand-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .project-icon {
    width: 40px;
    height: 40px;
  }

  .project-name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {

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

/* =============================================
   LOADING SCREEN
   ============================================= */

/* Prevent flash of unstyled content while loader is active */
body.is-loading {
  overflow: hidden;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, rgb(21, 19, 18));
  transition: opacity 0.55s var(--ease, cubic-bezier(0.16,1,0.3,1)),
              transform 0.55s var(--ease, cubic-bezier(0.16,1,0.3,1));
  will-change: opacity, transform;
}

.loader-screen.loader-done {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  user-select: none;
}

/* Avatar circle */
.loader-logo {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #722F37);
  box-shadow: 0 0 0 4px var(--accent-soft, rgba(114,47,55,0.12));
  display: block;
}

/* Pulsing ring */
.loader-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent, #722F37);
  opacity: 0;
  animation: loader-ring-pulse 1.6s ease-out infinite;
}

@keyframes loader-ring-pulse {
  0%   { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* Progress bar */
.loader-bar-wrap {
  width: 180px;
  height: 3px;
  background: var(--border, rgba(175,174,162,0.18));
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent, #722F37);
  border-radius: 99px;
  transition: width 0.25s ease;
}

/* Label */
.loader-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-3, #7a7970);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .loader-pulse {
    animation: none;
  }
  .loader-screen {
    transition: opacity 0.2s linear;
  }
}

/* ==========================================================
   Usability audit refinements — responsive and consistent UI
   ========================================================== */
:root {
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
}

/* Never allow the mobile navigation to participate in desktop layout. */
.mobile-menu { display: none; }
.mobile-menu[aria-hidden="true"] { visibility: hidden; }
.cmd-palette-backdrop[aria-hidden="true"] { visibility: hidden; }
.cmd-palette-backdrop.is-open[aria-hidden="true"] { visibility: visible; }

/* Shared control sizing keeps header and hero actions aligned. */
.btn {
  min-height: 44px;
  padding-block: 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.2;
}
.btn-sm {
  min-height: 38px;
  padding-block: 9px;
}
.hero-actions { gap: 14px; }
.hero-actions .btn { min-width: 164px; justify-content: center; }
.hero-social { margin-top: 8px; gap: 10px; }
.hero-social .social-icon-btn { flex: 0 0 40px; }

/* Lower the terminal's contrast so the introduction and primary action lead. */
.terminal-card {
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16);
  border-color: var(--border);
}
.terminal-header { opacity: .88; }
.terminal-body { opacity: .88; }
.profile-card { margin-top: 16px; }

/* Consistent readable body text and stable project-card headers. */
.hero-subtext, .section-desc { line-height: 1.7; }
.project-card-header { min-height: 104px; align-items: flex-start; }
.project-card-header .project-brand { min-width: 0; }
.project-name { overflow-wrap: anywhere; }
.project-filter-bar { justify-content: flex-start; flex-wrap: wrap; }
.filter-btn { min-height: 38px; padding: 9px 14px; font-size: 13px; }

/* Equal-height skill cards and consistent tag rhythm. */
.skills-grid { align-items: stretch; }
.skill-category-card { height: 100%; display: flex; flex-direction: column; }
.skill-tags-cloud { display: flex; align-items: flex-start; align-content: flex-start; gap: 8px; }
.skill-pill { max-width: 100%; overflow-wrap: anywhere; }

/* Footer groups remain balanced without mixing static biography with links. */
.footer-grid { align-items: start; }
.footer-links, .footer-contact { overflow-wrap: anywhere; }
.footer-contact { gap: 12px; }

/* Accessible keyboard focus and motion preferences. */
a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent, #8b8cff);
  outline-offset: 3px;
}
/* Remove blue outline from all buttons and button-styled links */
button:focus,
button:focus-visible,
button:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
a.btn:focus,
a.btn:focus-visible,
a.btn:active,
[class*="btn"]:focus,
[class*="btn"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
@media (min-width: 1025px) {
  .mobile-menu, .menu-btn { display: none !important; }
  .site-nav { display: flex; }
}
@media (max-width: 1024px) {
  .mobile-menu { display: block; }
  .site-nav { display: none !important; }
}
@media (max-width: 768px) {
  .project-filter-bar { align-self: stretch; }
  .project-card-header { min-height: 0; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 600px) {
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .hero-social { margin-top: 10px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
