/* =========================================================
   Amir Mustafa — Portfolio · Aurora Flux
   Premium glass UI, scroll animations, full responsive
   Theme variables applied at runtime by assets/js/themes.js
   ========================================================= */

:root {
  --bg:        #0a0e17;
  --bg-2:      #111827;
  --bg-3:      #1a2234;
  --fg:        #f0f4f8;
  --muted:     #8892a4;
  --line:      rgba(255,255,255,0.08);
  --brass:     #3b82f6;
  --brass-soft:#60a5fa;
  --steel:     #818cf8;

  --font-heading: 'Syne';
  --font-body:    'DM Sans';
  --font-mono:    'JetBrains Mono';

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max:       1200px;

  --glass:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --shadow:    0 8px 32px rgba(0,0,0,0.25);
  --glow:      0 0 60px color-mix(in srgb, var(--brass) 25%, transparent);

  --nav-h:     72px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  max-width: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-theme="light"] {
  --glass: rgba(255,255,255,0.65);
  --glass-border: rgba(0,0,0,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
}

::selection {
  background: color-mix(in srgb, var(--brass) 35%, transparent);
  color: var(--fg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading), sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mono { font-family: var(--font-mono), monospace; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

#main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--steel));
  box-shadow: 0 0 12px var(--brass-soft);
  transition: width 0.1s linear;
}

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 {
  width: 55vw; height: 55vw;
  max-width: 600px; max-height: 600px;
  background: color-mix(in srgb, var(--brass) 40%, transparent);
  top: -15%; left: -10%;
}
.orb-2 {
  width: 45vw; height: 45vw;
  max-width: 500px; max-height: 500px;
  background: color-mix(in srgb, var(--steel) 35%, transparent);
  bottom: 10%; right: -12%;
  animation-delay: -6s;
}
.orb-3 {
  width: 30vw; height: 30vw;
  max-width: 350px; max-height: 350px;
  background: color-mix(in srgb, var(--brass-soft) 30%, transparent);
  top: 45%; left: 35%;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

/* ── Glass utilities ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.glass-card:hover {
  border-color: color-mix(in srgb, var(--brass) 40%, var(--glass-border));
  box-shadow: var(--shadow), var(--glow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--fg) 0%, var(--brass-soft) 50%, var(--steel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-spring);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading), sans-serif;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.brand-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid color-mix(in srgb, var(--brass) 50%, transparent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--brass) 25%, transparent);
}
.brand-text { display: none; }
@media (min-width: 640px) { .brand-text { display: inline; } }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  background: color-mix(in srgb, var(--brass) 12%, transparent);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  overflow: visible;
}

.icon-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--fg);
  border-radius: 12px;
  transition: all 0.25s var(--ease-out);
}
.icon-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}
.icon-btn:active { transform: scale(0.94); }

select#color-theme-select {
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  cursor: pointer;
  max-width: 140px;
}
select#color-theme-select option { color: #111; background: #fff; }

/* Language picker with flags */
.lang-picker {
  position: relative;
  z-index: 100;
}
.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: clamp(148px, 18vw, 188px);
  padding: 10px 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--fg);
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.lang-picker-trigger:hover {
  border-color: color-mix(in srgb, var(--brass) 45%, transparent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--brass) 12%, transparent);
}
.lang-picker.open .lang-picker-trigger {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent);
}
.lang-flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-chevron {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.lang-picker.open .lang-chevron { transform: rotate(180deg); color: var(--brass); }

.lang-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: min(420px, 60vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
  background: color-mix(in srgb, var(--bg-2) 96%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 24px 48px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.lang-picker-search-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.lang-picker-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.lang-picker-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  color: var(--fg);
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-picker-search::placeholder {
  color: var(--muted);
}
.lang-picker-search:focus {
  border-color: color-mix(in srgb, var(--brass) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 14%, transparent);
}
.lang-picker-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.lang-picker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.lang-picker-option-hidden {
  display: none !important;
}
.lang-picker-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.lang-picker.open .lang-picker-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-picker-menu[aria-hidden="true"] {
  pointer-events: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.lang-option:hover {
  background: color-mix(in srgb, var(--brass) 10%, transparent);
}
.lang-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--brass) 16%, transparent);
  font-weight: 600;
}
.lang-option-flag {
  font-size: 26px;
  line-height: 1;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.lang-option-text {
  flex: 1;
  min-width: 0;
}
.lang-option-name {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.lang-option-code {
  display: block;
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.lang-option-check {
  color: var(--brass);
  font-size: 14px;
  opacity: 0;
  flex-shrink: 0;
}
.lang-option[aria-selected="true"] .lang-option-check { opacity: 1; }

.lang-picker-list::-webkit-scrollbar { width: 6px; }
.lang-picker-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 16px; right: 16px;
    background: color-mix(in srgb, var(--bg-2) 95%, transparent);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(8px);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: flex; }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav {
    height: auto;
    min-height: var(--nav-h);
  }
  .nav-inner {
    flex-wrap: nowrap;
    height: auto;
    min-height: var(--nav-h);
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-mark {
    gap: 8px;
    font-size: 14px;
    min-width: 0;
    flex: 1;
  }
  .brand-avatar {
    width: 34px;
    height: 34px;
  }
  .brand-text {
    display: none;
  }
  .nav-tools {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 6px;
  }
  select#color-theme-select {
    display: none;
  }
  .lang-picker {
    flex: 0 0 auto;
    min-width: 0;
  }
  .lang-picker-trigger {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 8px 10px;
    gap: 6px;
  }
  .lang-label,
  .lang-chevron {
    display: none;
  }
  .lang-picker-menu {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 24px));
  }
  .icon-btn,
  .nav-burger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}

/* ── Hero Banner (mobile-first) ── */
.hero-banner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px) 0 40px;
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

/* Curved shape backdrop — inspired by original portfolio banner */
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.banner-shape {
  position: absolute;
  border-radius: 50%;
}
.banner-shape-navy {
  width: clamp(420px, 58vw, 720px);
  height: clamp(420px, 58vw, 720px);
  left: -18%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--brass) 85%, #0a1628), color-mix(in srgb, var(--steel) 60%, #0a1628));
  opacity: 0.92;
  animation: bannerDrift 20s ease-in-out infinite;
}
.banner-shape-gray {
  width: clamp(300px, 42vw, 520px);
  height: clamp(300px, 42vw, 520px);
  left: 8%;
  top: 18%;
  background: color-mix(in srgb, var(--bg-3) 70%, var(--muted));
  opacity: 0.35;
  animation: bannerDrift 16s ease-in-out infinite reverse;
}
.banner-shape-accent {
  width: clamp(200px, 28vw, 340px);
  height: clamp(200px, 28vw, 340px);
  left: 28%;
  bottom: 8%;
  border: 3px solid color-mix(in srgb, var(--brass) 30%, transparent);
  background: transparent;
  animation: bannerPulse 6s ease-in-out infinite;
}

@keyframes bannerDrift {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 16px)) translateX(12px); }
}
@keyframes bannerPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.banner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.banner-visual {
  order: -1;
  max-width: min(280px, 78vw);
  width: 100%;
  margin: 0 auto;
  min-height: auto;
}

.banner-photo-wrap {
  width: min(240px, 72vw);
  margin: 0 auto;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
}

.banner-name {
  font-size: clamp(32px, 9vw, 48px);
  margin-bottom: 12px;
  max-width: 100%;
}

.banner-role {
  font-size: clamp(16px, 4.2vw, 20px);
  max-width: 100%;
}

.banner-specialist {
  text-align: center;
  font-size: clamp(14px, 3.8vw, 16px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.banner-motto {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
}

.hero-stats {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  justify-content: stretch;
}

.stat-card {
  max-width: none;
  padding: 14px 10px;
}

.stat-num {
  font-size: clamp(26px, 7vw, 32px);
}

.stat-label {
  font-size: 11px;
  line-height: 1.25;
}

.tag-marquee {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  margin-bottom: 24px;
}

.tag-marquee .tag {
  font-size: 12px;
  padding: 8px 14px;
}

.btn-row {
  justify-content: center;
  width: 100%;
}

.btn-row .btn {
  flex: 1 1 100%;
  justify-content: center;
  padding: 14px 20px;
}

.banner-shape-navy {
  left: -35%;
  opacity: 0.65;
  width: min(420px, 95vw);
  height: min(420px, 95vw);
}

@media (max-width: 430px) {
  .banner-contact-item {
    padding: 12px 14px;
  }
  .banner-contact-text {
    font-size: 12px;
  }
  .banner-contact-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (min-width: 901px) {
  .hero-banner {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    overflow: hidden;
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px);
    padding-bottom: 32px;
  }

  .banner-grid {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 5vw, 56px);
    text-align: left;
  }

  .banner-visual {
    order: 0;
    max-width: none;
    width: auto;
    min-height: clamp(320px, 42vw, 480px);
  }

  .banner-photo-wrap {
    width: clamp(260px, 36vw, 380px);
    margin: 0;
  }

  .banner-content {
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }

  .banner-name {
    font-size: clamp(42px, 6.5vw, 68px);
    margin-bottom: 18px;
  }

  .banner-role {
    font-size: clamp(19px, 2.4vw, 24px);
  }

  .banner-specialist {
    text-align: left;
    font-size: clamp(16px, 1.85vw, 18px);
  }

  .banner-motto {
    padding: 16px 28px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 720px;
    margin-bottom: 28px;
  }

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

  .stat-num {
    font-size: clamp(32px, 4vw, 38px);
  }

  .stat-label {
    font-size: 13px;
  }

  .tag-marquee {
    margin-bottom: 32px;
  }

  .tag-marquee .tag {
    font-size: 14px;
    padding: 10px 18px;
  }

  .btn-row .btn {
    flex: 0 1 auto;
    padding: 16px 28px;
  }

  .banner-shape-navy {
    left: -18%;
    opacity: 0.92;
    width: clamp(420px, 58vw, 720px);
    height: clamp(420px, 58vw, 720px);
  }
}

/* Branding photo panel */
.banner-visual {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-photo-wrap {
  position: relative;
  width: min(240px, 72vw);
  margin: 0 auto;
  aspect-ratio: 1;
  z-index: 2;
}

.banner-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--brass) 70%, #fff);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--bg) 80%, transparent),
    0 20px 60px rgba(0,0,0,0.35),
    0 0 80px color-mix(in srgb, var(--brass) 20%, transparent);
  animation: ringGlow 4s ease-in-out infinite;
}
@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg) 80%, transparent), 0 20px 60px rgba(0,0,0,0.35), 0 0 40px color-mix(in srgb, var(--brass) 15%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg) 80%, transparent), 0 24px 70px rgba(0,0,0,0.4), 0 0 80px color-mix(in srgb, var(--brass) 35%, transparent); }
}

.banner-photo-main {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  animation: photoFloat 5s ease-in-out infinite;
}
.banner-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.banner-photo-inset {
  position: absolute;
  top: 4%;
  left: 0;
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 4;
  animation: insetFloat 6s ease-in-out infinite;
}
.banner-photo-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .banner-photo-inset {
    left: -18%;
    top: 0;
    width: clamp(58px, 15vw, 76px);
    height: clamp(58px, 15vw, 76px);
  }
}
@keyframes insetFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.banner-location {
  position: static;
  margin: 14px auto 0;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 11px;
  z-index: 3;
  transform: none;
  animation: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  width: max-content;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .banner-location {
    font-size: clamp(9px, 2.5vw, 11px);
    padding: 8px 12px;
    letter-spacing: 0.03em;
  }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 901px) {
  .banner-visual {
    min-height: clamp(320px, 42vw, 480px);
  }
  .banner-photo-wrap {
    width: clamp(260px, 36vw, 380px);
    margin: 0;
  }
  .banner-location {
    position: absolute;
    bottom: 6%;
    right: -4%;
    margin: 0;
    animation: floatCard 4s ease-in-out infinite;
  }
}

/* Banner content panel */
.banner-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 901px) {
  .banner-content {
    align-items: flex-start;
    text-align: left;
    max-width: 680px;
  }
}

.banner-name {
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
}
.banner-role {
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--fg);
  font-weight: 600;
  max-width: 52ch;
  margin: 0 0 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.banner-specialist {
  font-size: clamp(16px, 1.85vw, 18px);
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 90%, var(--muted));
  max-width: 100%;
  margin: 0 0 14px;
  line-height: 1.65;
  padding: 16px 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--glass) 90%, transparent);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brass);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
}
.banner-loc {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 75%, var(--brass));
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.banner-motto {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--fg) 0%, color-mix(in srgb, var(--fg) 90%, var(--brass)) 100%);
  color: var(--bg);
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
body[data-theme="light"] .banner-motto {
  background: linear-gradient(135deg, #12161c, #1e293b);
  color: #f0f4f8;
}
.banner-motto .pulse-dot {
  background: var(--brass-soft);
  box-shadow: 0 0 8px var(--brass);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 60%, transparent); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}
.stat-card {
  padding: 14px 10px;
  border-radius: 14px;
  min-width: 0;
  max-width: none;
  text-align: center;
}
@media (min-width: 901px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 720px;
    margin-bottom: 28px;
  }
  .stat-card { padding: 16px 18px; }
}
.stat-num {
  display: block;
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(32px, 4vw, 38px);
  font-weight: 800;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-body), sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Hero — employer / client logo highlight */
.employer-brands {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto 22px;
  text-align: center;
}
.employer-brands-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.employer-brands-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 639px) {
  .employer-brands-grid {
    grid-template-columns: repeat(4, 58px);
    justify-content: center;
    gap: 8px;
  }
  .employer-brand {
    border-radius: 8px;
  }
}
@media (min-width: 640px) {
  .employer-brands-grid {
    grid-template-columns: repeat(4, 72px);
    justify-content: center;
    gap: 10px;
  }
}
@media (min-width: 901px) {
  .employer-brands {
    margin: 0 0 26px;
    text-align: left;
  }
  .employer-brands-grid {
    grid-template-columns: repeat(7, 76px);
    justify-content: flex-start;
    gap: 10px;
  }
}
.employer-brand {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.employer-brand.glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.employer-brand:hover {
  border-color: color-mix(in srgb, var(--brass) 40%, var(--glass-border));
  transform: translateY(-2px);
}
.employer-brand img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) contrast(1.06) saturate(1.05);
  opacity: 0.94;
  transition: filter 0.35s, opacity 0.35s, transform 0.35s var(--ease-out);
}
.employer-brand:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
body[data-theme="light"] .employer-brand img {
  filter: grayscale(0.15) contrast(1.08);
  opacity: 0.92;
}

/* Tag marquee */
.tag-marquee {
  overflow: hidden;
  margin-bottom: 32px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tag-marquee-track {
  display: flex;
  gap: 10px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.tag-marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tag {
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: color-mix(in srgb, var(--fg) 85%, var(--muted));
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.tag:hover {
  transform: translateY(-1px);
  border-color: var(--brass);
  color: var(--brass);
}

/* Buttons */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: clamp(15px, 1.5vw, 16px);
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brass), var(--steel));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--brass) 40%, transparent);
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-glow:hover::after { transform: translateX(100%); }

.btn-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}
.btn:active { transform: scale(0.97); }

/* Banner contact strip — brand icon + label + link text */
.banner-contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 960px) {
  .banner-contact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .banner-contact { grid-template-columns: 1fr; }
}
.banner-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--glass) 85%, transparent);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.banner-contact-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brass) 35%, var(--glass-border));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.banner-contact-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--brass);
  font-size: 18px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, filter 0.25s, transform 0.25s;
}
.banner-contact-item:not([class*="banner-contact-item--"]):hover .banner-contact-icon {
  background: linear-gradient(135deg, var(--brass), var(--steel));
  color: #fff;
  border-color: transparent;
}

/* Brand logo chips — official colors, white icon */
.banner-contact-icon--linkedin {
  background: #0a66c2;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--github {
  background: #24292f;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--youtube {
  background: #ff0000;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--portfolio {
  background: #0284c7;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--email {
  background: #ea4335;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--phone {
  background: #16a34a;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--whatsapp {
  background: #25d366;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--twitter {
  background: #0f1419;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--discord {
  background: #5865f2;
  border-color: transparent;
  color: #fff;
}
.banner-contact-icon--teams {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
  color: #fff;
}
.banner-contact-icon--botim {
  background: transparent;
  border-color: transparent;
  padding: 0;
  overflow: visible;
}
.banner-contact-icon--botim img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.banner-contact-icon--replit {
  background: transparent;
  border-color: transparent;
  padding: 0;
  overflow: visible;
}
.banner-contact-icon--replit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.banner-contact-icon--teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
}
.banner-contact-item[class*="banner-contact-item--"]:hover .banner-contact-icon {
  color: #fff;
  border-color: transparent;
  filter: brightness(1.08);
  transform: scale(1.05);
}
.banner-contact-item--linkedin:hover { border-color: color-mix(in srgb, #0a66c2 45%, var(--glass-border)); }
.banner-contact-item--github:hover { border-color: color-mix(in srgb, #24292f 55%, var(--glass-border)); }
.banner-contact-item--youtube:hover { border-color: color-mix(in srgb, #ff0000 45%, var(--glass-border)); }
.banner-contact-item--portfolio:hover { border-color: color-mix(in srgb, #0284c7 45%, var(--glass-border)); }
.banner-contact-item--email:hover { border-color: color-mix(in srgb, #ea4335 45%, var(--glass-border)); }
.banner-contact-item--phone:hover { border-color: color-mix(in srgb, #16a34a 45%, var(--glass-border)); }

.banner-contact-item[class*="banner-contact-item--"] .banner-contact-label {
  color: #fff;
  opacity: 0.72;
}
.banner-contact-item[class*="banner-contact-item--"] .banner-contact-text {
  color: #fff;
  opacity: 0.95;
}
body[data-theme="light"] .banner-contact-item[class*="banner-contact-item--"] .banner-contact-label {
  color: #000;
  opacity: 0.65;
}
body[data-theme="light"] .banner-contact-item[class*="banner-contact-item--"] .banner-contact-text {
  color: #000;
  opacity: 1;
}
.banner-contact-item[class*="banner-contact-item--"] {
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
}
.banner-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.banner-contact-label {
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.banner-contact-text {
  font-family: var(--font-body), sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 88%, var(--muted));
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .banner-contact-text { white-space: normal; }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ── Sections ── */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
}
.section-alt {
  background: color-mix(in srgb, var(--bg-2) 50%, transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brass) 15%, transparent);
  font-weight: 600;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 46px);
  max-width: 680px;
  line-height: 1.12;
}

.section-quote {
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  line-height: 1.55;
  text-align: right;
}
@media (max-width: 720px) { .section-quote { text-align: left; } }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-body p {
  color: var(--muted);
  font-size: 16px;
  max-width: 65ch;
  line-height: 1.75;
}
.about-body strong { color: var(--fg); font-weight: 600; }

.interest-chips { margin-top: 28px; }
.chip-group { margin-bottom: 20px; }
.chip-group h4 {
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 10px;
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg-3) 60%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip.accent {
  border-color: color-mix(in srgb, var(--brass) 30%, transparent);
  color: var(--fg);
}

.fact-list { padding: 0 !important; overflow: hidden; }
.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 16px;
  transition: background 0.25s;
}
.fact:last-child { border-bottom: none; }
.fact:hover { background: color-mix(in srgb, var(--brass) 5%, transparent); }
.fact-k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.fact-v { text-align: right; font-weight: 500; }

.qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-sm);
}
.qr-box img { width: 88px; height: 88px; border-radius: 8px; }
.qr-box p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* ── Abilities (skills) ── */
.abilities-section-title {
  font-size: clamp(22px, 3.2vw, 32px);
  max-width: 920px;
  line-height: 1.35;
}
.abilities-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
@media (max-width: 820px) {
  .abilities-board { grid-template-columns: 1fr; }
}
.ability-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 28px);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.45s;
}
.ability-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brass), var(--steel));
  border-radius: 4px 0 0 4px;
  opacity: 0.9;
}
.ability-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brass) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.ability-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brass) 40%, var(--glass-border));
  box-shadow: var(--shadow);
}
.ability-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ability-card-icon {
  flex-shrink: 0;
  width: clamp(52px, 8vw, 60px);
  height: clamp(52px, 8vw, 60px);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: clamp(22px, 3.5vw, 26px);
  color: #fff;
  background: linear-gradient(145deg, var(--brass), var(--steel));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brass) 35%, transparent);
}
.ability-card-meta { min-width: 0; }
.ability-card-title {
  margin: 0 0 4px;
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}
.ability-card-count {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ability-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ability-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
  border: 1px solid var(--line);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease-out);
}
body[data-theme="light"] .ability-chip {
  background: color-mix(in srgb, var(--bg-3) 35%, #fff);
}
.ability-chip:hover {
  color: var(--brass);
  border-color: color-mix(in srgb, var(--brass) 45%, var(--line));
  background: color-mix(in srgb, var(--brass) 12%, transparent);
  transform: translateY(-2px);
}
.ability-chip-label {
  line-height: 1.25;
}
.ability-chip-logo {
  flex-shrink: 0;
  line-height: 1;
}
.ability-chip-logo.devicon {
  font-size: 22px;
}
.ability-chip-logo[class*="fa-"] {
  width: 22px;
  font-size: 17px;
  text-align: center;
  color: color-mix(in srgb, var(--fg) 88%, var(--brass));
}
.ability-chip:hover .ability-chip-logo[class*="fa-"] {
  color: var(--brass);
}
.ability-chip-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ── Projects ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s;
  position: relative;
  isolation: isolate;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brass) 10%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
  box-shadow: var(--shadow);
}
.project-card:hover::before { opacity: 1; }

.project-card.feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
@media (max-width: 780px) {
  .project-card.feature {
    flex-direction: column;
  }
}

.project-card.feature:not(.has-logo) .project-thumb {
  width: 46%;
  aspect-ratio: auto;
  min-height: 240px;
}
@media (max-width: 780px) {
  .project-card.feature:not(.has-logo) .project-thumb {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16/10;
  }
}

/* Featured + logo: default square (e.g. TAMM) */
.project-card.feature.has-logo .project-thumb {
  width: 120px;
  flex: 0 0 120px;
  aspect-ratio: 1;
  min-height: 120px;
  max-height: 120px;
  align-self: center;
  margin: 16px 0 16px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

/* Featured logo panel — Northern Trust, Eli Lilly, TAMM (same width & logo scale) */
.project-card.feature.has-logo.project-card--logo-wide .project-thumb {
  flex: 0 0 clamp(260px, 34vw, 360px);
  width: clamp(260px, 34vw, 360px);
  min-width: 260px;
  max-width: 360px;
  min-height: 100%;
  max-height: none;
  aspect-ratio: auto;
  align-self: stretch;
  margin: 0;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--glass-border);
}
.project-card--logo-wide .project-thumb.is-logo {
  background: linear-gradient(165deg, #ffffff 0%, #eef1f6 100%);
}
.project-card--logo-wide .project-thumb.is-logo img,
.project-card.feature.has-logo.project-card--logo-wide .project-thumb.is-logo img {
  object-fit: contain;
  object-position: center;
  padding: 32px 40px;
  width: 100%;
  height: 100%;
}
.project-card--logo-wide .project-thumb-shade {
  opacity: 0;
}
.project-card--logo-wide:hover .project-thumb-shade {
  opacity: 0;
}

@media (max-width: 780px) {
  .project-card.feature.has-logo .project-thumb,
  .project-card.feature.has-logo.project-card--logo-wide .project-thumb {
    width: 100%;
    flex: none;
    min-width: 0;
    max-height: none;
    min-height: auto;
    aspect-ratio: 16/10;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    align-self: auto;
  }
  .project-card--logo-wide .project-thumb.is-logo img {
    padding: 20px 24px;
  }
}

.project-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
  flex-shrink: 0;
}
.project-thumb.is-logo {
  background: var(--glass);
}
.project-card.has-logo .project-thumb-shade {
  background: linear-gradient(to top, rgba(10, 14, 23, 0.35), transparent 50%);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out), filter 0.4s;
}
.project-thumb.is-logo img {
  object-fit: cover;
  padding: 0;
  filter: none;
}
.project-card.feature.has-logo:not(.project-card--logo-wide) .project-thumb.is-logo img {
  object-fit: cover;
}
.project-card:not(.feature) .project-thumb.is-logo img {
  object-fit: contain;
  padding: 20px 24px;
}
.project-card:hover .project-thumb img { transform: scale(1.06); filter: brightness(1.05); }
.project-card.has-logo:hover .project-thumb.is-logo img { transform: scale(1.03); }

.project-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.55), transparent 45%);
  opacity: 0.85;
  transition: opacity 0.35s;
  pointer-events: none;
}
.project-card:hover .project-thumb-shade { opacity: 1; }

.project-thumb-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 2;
  text-decoration: none;
}
.project-thumb-link i { font-size: 13px; opacity: 0.9; }
.project-card:hover .project-thumb-link { opacity: 1; }
@media (hover: none) {
  .project-thumb-link {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.55), transparent 50%);
    align-items: flex-end;
    padding-bottom: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .project-card.has-logo .project-thumb-shade {
    opacity: 0.25;
  }
}
@media (max-width: 720px) {
  .project-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .project-thumb img {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

.project-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.project-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.project-index {
  font-size: 11px;
  color: var(--brass-soft);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
  background: color-mix(in srgb, var(--brass) 8%, transparent);
  flex-shrink: 0;
  margin-top: 2px;
}
.project-body h3 {
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.project-desc {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--fg) 68%, var(--muted));
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-subtitle {
  margin: 6px 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-card--detail .project-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: pre-line;
}
.project-card.feature .project-desc { -webkit-line-clamp: 5; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.project-tag {
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 4px;
  color: color-mix(in srgb, var(--fg) 55%, var(--muted));
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
  border: 1px solid var(--glass-border);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.project-card:hover .project-tag {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--brass) 30%, transparent);
  background: color-mix(in srgb, var(--brass) 10%, transparent);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, color 0.25s;
}
.project-link i { font-size: 14px; opacity: 0.9; }
.project-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brass) 50%, transparent);
  background: color-mix(in srgb, var(--brass) 14%, transparent);
  color: var(--fg);
}
.project-link--github:hover { border-color: color-mix(in srgb, #fff 25%, transparent); }
.project-link--gitlab:hover { border-color: #fc6d26; background: color-mix(in srgb, #fc6d26 18%, transparent); }
.project-link--demo:hover { border-color: color-mix(in srgb, #ef4444 45%, transparent); background: color-mix(in srgb, #ef4444 12%, transparent); }
.project-link--site:hover { border-color: color-mix(in srgb, var(--brass-soft) 55%, transparent); }

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brass), var(--steel), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 24px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-item--current {
  border-color: color-mix(in srgb, var(--brass) 35%, var(--glass-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brass) 8%, transparent);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 36px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brass);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brass) 50%, transparent);
  transition: transform 0.3s var(--ease-spring);
}
.tl-item.open::before {
  transform: scale(1.3);
  background: var(--brass);
}
.tl-item:hover { border-color: color-mix(in srgb, var(--brass) 30%, transparent); }

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  cursor: pointer;
  padding: 20px 24px;
  flex-wrap: wrap;
  transition: background 0.25s;
}
.tl-head:hover { background: color-mix(in srgb, var(--brass) 3%, transparent); }

.tl-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.tl-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  aspect-ratio: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: border-color 0.25s;
}
.tl-logo--brand {
  overflow: hidden;
  background: var(--glass);
  border-color: var(--glass-border);
}
.tl-logo--brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: none;
  opacity: 1;
  display: block;
}
.tl-logo--fallback {
  overflow: hidden;
  background: var(--glass);
  border-color: var(--glass-border);
}
.tl-logo--fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
}
.tl-logo:not(.tl-logo--brand):not(.tl-logo--fallback) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tl-item:hover .tl-logo,
.tl-item.open .tl-logo {
  border-color: color-mix(in srgb, var(--brass) 22%, var(--glass-border));
}
.tl-copy { min-width: 0; padding-top: 2px; }
.tl-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.tl-org {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--fg);
}
.tl-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: color-mix(in srgb, var(--brass-soft) 90%, var(--fg));
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 22%, transparent);
}
.tl-role {
  margin-top: 5px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  max-width: 42rem;
}
.tl-client {
  margin-top: 5px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.tl-aside {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}
.tl-meta {
  text-align: right;
  white-space: nowrap;
  line-height: 1.45;
}
.tl-period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 88%, var(--muted));
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.tl-location {
  margin-top: 3px;
  font-family: var(--font-mono), monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--glass);
  transition: all 0.35s var(--ease-spring);
}
.tl-item.open .tl-toggle {
  transform: rotate(45deg);
  border-color: var(--brass);
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 12%, transparent);
}

.tl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.tl-item.open .tl-body { max-height: 2000px; }
.tl-body-in {
  padding: 4px 24px 22px;
  margin: 0 24px 20px;
  border-top: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent);
}
.tl-skills {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--fg) 72%, var(--muted));
  margin-bottom: 10px;
  padding: 0 0 0 12px;
  border-left: 2px solid color-mix(in srgb, var(--brass) 35%, transparent);
  background: transparent;
  border-radius: 0;
}
.tl-skills + .tl-skills { margin-top: -4px; }
.tl-points {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  color: color-mix(in srgb, var(--fg) 70%, var(--muted));
  font-size: 0.875rem;
  list-style: disc;
}
.tl-points li {
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 0.15rem;
}
.tl-points li::marker { color: color-mix(in srgb, var(--brass) 45%, var(--muted)); }

@media (max-width: 640px) {
  .timeline { padding-left: 24px; }
  .tl-item::before { left: -24px; width: 12px; height: 12px; }
  .tl-head { padding: 16px 18px; align-items: flex-start; }
  .tl-aside { margin-left: auto; flex-direction: row; align-items: flex-start; gap: 10px; }
  .tl-meta { white-space: normal; text-align: right; }
  .tl-logo { width: 48px; height: 48px; border-radius: 5px; }
  .tl-body-in { padding: 4px 0 18px; margin: 0 18px 16px; }
  .tl-role { font-size: 0.8125rem; }
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.edu-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.edu-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brass) 30%, transparent);
  box-shadow: var(--shadow);
}
.edu-card:hover::after { transform: scaleX(1); }

.edu-period {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--brass);
  margin-bottom: 12px;
}
.edu-card h4 { font-size: 18px; margin: 0 0 8px; }
.edu-degree { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.edu-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Videos (centered cinematic embeds) ── */
.video-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 40px);
  max-width: min(860px, 100%);
  margin: 0 auto;
}
.video-wide {
  width: 100%;
  overflow: hidden;
  padding: 0 !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-2) 92%, var(--brass) 6%),
    color-mix(in srgb, var(--bg-3) 70%, transparent)
  );
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px color-mix(in srgb, var(--brass) 8%, transparent) inset;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s,
    border-color 0.35s;
}
.video-wide:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brass) 38%, var(--glass-border));
  box-shadow:
    0 22px 48px color-mix(in srgb, var(--brass) 14%, transparent),
    0 0 0 1px color-mix(in srgb, var(--brass) 22%, transparent) inset;
}
.video-wide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
}
.video-wide-title {
  margin: 0;
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-wide-title::before {
  content: "\f167";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-size: 15px;
  color: #ff0000;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #ff0000 12%, var(--bg-2));
  border: 1px solid color-mix(in srgb, #ff0000 25%, transparent);
  flex-shrink: 0;
}
.video-wide-playlist {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--line));
  background: color-mix(in srgb, var(--brass) 8%, transparent);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease-out);
}
.video-wide-playlist:hover {
  color: var(--fg);
  border-color: var(--brass);
  background: color-mix(in srgb, var(--brass) 16%, transparent);
  transform: translateY(-1px);
}
.video-wide .video-frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  width: calc(100% - 32px);
  max-width: 100%;
  margin: 16px auto 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid color-mix(in srgb, var(--line) 80%, #fff 8%);
}
.video-wide .video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: inherit;
}

/* ── Blog CTA ── */
.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-cta p { color: var(--muted); margin: 0; max-width: 60ch; }
.blog-cta a { color: var(--brass); font-weight: 600; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-loading,
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 16px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.45s;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
  box-shadow: var(--shadow);
}
.blog-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading), sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.blog-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-title {
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.blog-title:hover { color: var(--brass); }
.blog-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.blog-read {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: color 0.25s, gap 0.25s;
}
.blog-read:hover {
  color: var(--brass);
  gap: 10px;
}

/* ── Awards ── */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.award-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.award-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
  box-shadow: var(--shadow);
}
.award-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.award-thumb img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.award-card:hover .award-thumb img { transform: scale(1.08); }
.award-body { padding: 18px 20px; }
.award-body h4 { font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.award-body p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.award-time {
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  color: var(--steel);
  margin-top: 10px;
}

/* ── Testimonials ── */
.testi-stage {
  max-width: var(--max);
  margin: 0 auto;
}

.testi-people {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  margin-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.testi-people::-webkit-scrollbar { height: 4px; }
.testi-people::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.testi-person {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  min-width: 88px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  color: var(--muted);
  font-family: inherit;
}
.testi-person:hover {
  background: color-mix(in srgb, var(--brass) 8%, transparent);
  border-color: var(--glass-border);
}
.testi-person.active {
  background: color-mix(in srgb, var(--brass) 14%, transparent);
  border-color: color-mix(in srgb, var(--brass) 40%, transparent);
  color: var(--fg);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brass) 15%, transparent);
}
.testi-person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  transition: border-color 0.3s, transform 0.3s;
}
.testi-person.active .testi-person-avatar {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 25%, transparent);
}
.testi-person-name {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.testi-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px) !important;
  overflow: hidden;
}
.testi-card-glow {
  position: absolute;
  top: -40%; right: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brass) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.testi-content {
  position: relative;
  z-index: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.testi-content.fade-out {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
}

.testi-card-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}
.testi-copy {
  min-width: 0;
  flex: 1;
}
@media (max-width: 768px) {
  .testi-card-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .testi-photo-col { margin: 0 auto; }
  .testi-copy { text-align: left; }
}

.testi-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.testi-photo-frame {
  position: relative;
  width: clamp(180px, 22vw, 240px);
  aspect-ratio: 1;
}
.testi-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brass), var(--steel));
  opacity: 0.85;
  animation: testiRingPulse 5s ease-in-out infinite;
}
@keyframes testiRingPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.testi-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid var(--bg-2);
  box-shadow: var(--shadow);
  z-index: 1;
}

.testi-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  font-size: 14px;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}
.testi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brass) 12%, transparent);
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 25%, transparent);
}

.testi-icon {
  font-size: 36px;
  color: var(--brass);
  opacity: 0.35;
  margin-bottom: 16px;
  line-height: 1;
}
.testi-quote {
  font-size: clamp(15px, 1.85vw, 18px);
  line-height: 1.7;
  font-style: italic;
  color: color-mix(in srgb, var(--fg) 92%, var(--muted));
  margin: 0;
  max-width: none;
}

.testi-author {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testi-who {
  font-family: var(--font-heading), sans-serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.testi-role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.testi-time {
  font-size: 11px;
  color: color-mix(in srgb, var(--muted) 80%, var(--steel));
  margin-top: 10px;
  line-height: 1.5;
}

.testi-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.testi-nav-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
}
.testi-counter {
  font-size: 12px;
  color: var(--muted);
  min-width: 48px;
}
.testi-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.testi-dot:hover { background: var(--muted); }
.testi-dot.active {
  background: var(--brass);
  width: 24px;
  border-radius: 4px;
}

/* ── Contact ── */
.contact-section {
  padding-bottom: clamp(80px, 12vw, 140px);
}
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 640px;
}

.contact-quote {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 18ch;
  margin: 16px 0 28px;
  line-height: 1.2;
}

.contact-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-social-link {
  position: relative;
  display: inline-flex;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.28s var(--ease-out), filter 0.28s;
}
.contact-social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-family: var(--font-body), sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out),
    visibility 0.2s;
  box-shadow: var(--shadow);
  z-index: 20;
}
.contact-social-link:hover::after,
.contact-social-link:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.contact-social-link:hover {
  transform: translateY(-4px) scale(1.06);
}
.contact-social-link:hover .banner-contact-icon {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.contact-social-link .banner-contact-icon {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.contact-social-link .banner-contact-icon img {
  width: 30px;
  height: 30px;
}
.contact-social-link .banner-contact-icon--teams img {
  width: 36px;
  height: 36px;
  filter: none;
}
.contact-social-link .banner-contact-icon--replit {
  background: transparent;
  border-color: transparent;
}
.contact-social-link .banner-contact-icon--replit img {
  width: 56px;
  height: 56px;
  filter: none;
  object-fit: contain;
}
.contact-social-link .banner-contact-icon--botim {
  background: transparent;
  border-color: transparent;
}
.contact-social-link .banner-contact-icon--botim img {
  width: 56px;
  height: 56px;
  filter: none;
  object-fit: contain;
  border-radius: 50%;
}

/* ── Footer ── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tagline { font-size: 11px; opacity: 0.7; }

.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  color: var(--fg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.35s var(--ease-out);
  z-index: 900;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-top:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

/* ── About page (colleague-inspired) ── */
.page-hero-head { margin-bottom: clamp(32px, 5vw, 48px); }
.page-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.page-hero-line {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--steel));
  border-radius: 4px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(24px, 4vw, 36px);
  margin-bottom: clamp(40px, 6vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .about-page-grid { grid-template-columns: 1fr; }
}
.about-page-photo {
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-page-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 12%;
}
.about-page-intro { padding: clamp(24px, 4vw, 32px) !important; }
.about-page-role {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--brass);
  margin: 0 0 8px;
}
.about-page-employer {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: color-mix(in srgb, var(--fg) 92%, var(--muted));
}
.about-page-org {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 20px;
}
.about-meta-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
@media (max-width: 560px) { .about-meta-list { grid-template-columns: 1fr; } }
.about-meta-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}
.about-meta-list i {
  color: var(--brass);
  font-size: 11px;
  flex-shrink: 0;
}
.about-meta-k {
  font-weight: 600;
  color: var(--muted);
  min-width: 72px;
}
.about-meta-v { color: var(--fg); font-weight: 500; }
.about-meta-v:hover { color: var(--brass); }
.about-summary {
  font-size: 16px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--fg) 88%, var(--muted));
  margin: 0 0 20px;
}
.about-links { display: flex; flex-wrap: wrap; gap: 10px; }
.about-link-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  color: var(--brass);
  transition: all 0.25s;
}
.about-link-chip:hover {
  background: var(--brass);
  color: #fff;
  border-color: transparent;
}

.about-block { margin-bottom: clamp(36px, 5vw, 48px); }
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}
.block-title-line {
  width: 36px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
  flex-shrink: 0;
}

.skill-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}
@media (max-width: 768px) { .skill-bars-grid { grid-template-columns: 1fr; } }
.skill-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.skill-bar-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.skill-bar-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.skill-bar-track {
  height: 8px;
  background: color-mix(in srgb, var(--bg-3) 80%, transparent);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--brass), var(--steel));
  transition: width 1.1s var(--ease-out);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brass) 40%, transparent);
}

.personal-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.personal-skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.personal-skills-list i {
  color: var(--brass);
  margin-top: 5px;
  font-size: 12px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cert-card {
  padding: 20px !important;
  transition: transform 0.3s, border-color 0.3s;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
}
.cert-card h4 {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.cert-issuer {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.cert-when {
  font-size: 11px;
  color: var(--brass);
}

/* ── Resume page ── */
.resume-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.resume-updated {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}
@media (max-width: 960px) {
  .resume-layout { grid-template-columns: 1fr; }
}

.resume-col-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.resume-col-title-spaced { margin-top: 32px; }

.resume-edu-card {
  padding: 18px !important;
  margin-bottom: 16px;
  border-left: 3px solid var(--brass);
}
.resume-edu-degree {
  font-size: 16px;
  margin: 10px 0 4px;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.resume-edu-field,
.resume-edu-school,
.resume-edu-university {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
}
.resume-edu-desc {
  font-size: 13px;
  color: color-mix(in srgb, var(--muted) 90%, var(--fg));
  margin: 8px 0 0;
  line-height: 1.55;
}

.resume-date-pill {
  display: inline-block;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-3) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--fg);
}
.resume-date-pill.accent {
  background: color-mix(in srgb, var(--brass) 18%, transparent);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
  color: var(--brass-soft);
}

.resume-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.resume-highlights li { margin-bottom: 10px; }

.resume-timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid color-mix(in srgb, var(--brass) 35%, var(--line));
}
.resume-job {
  position: relative;
  margin-bottom: 28px;
}
.resume-job-marker {
  position: absolute;
  left: -35px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brass);
  box-shadow: 0 0 10px color-mix(in srgb, var(--brass) 45%, transparent);
}
.resume-job-body {
  padding: clamp(20px, 3vw, 28px) !important;
  position: relative;
}
.resume-job-body > .resume-date-pill.accent {
  position: absolute;
  top: 20px;
  right: 20px;
}
.resume-job-role {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  padding-right: 120px;
}
@media (max-width: 640px) { .resume-job-role { padding-right: 0; } }
.resume-job-company {
  font-size: 15px;
  color: var(--fg);
  margin: 12px 0 10px;
}
.resume-job-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 12px;
}
.resume-job-bullets {
  margin: 0 0 12px;
  padding-left: 18px;
  color: color-mix(in srgb, var(--fg) 80%, var(--muted));
  font-size: 14px;
  line-height: 1.65;
}
.resume-job-bullets li { margin-bottom: 6px; }
.resume-job-skills {
  font-size: 11px;
  color: var(--steel);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── Skip link & focus ── */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--brass);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
