/*-----------------------------------*\
  #elite.css  —  amber / espresso  •  flat, elite, sovereign
  Loaded AFTER style.css. One confident accent (amber/gold) on a
  deep espresso base. Plainer surfaces (no heavy glass), grid kept.
\*-----------------------------------*/

/*-----------------------------------*\
  #DESIGN TOKENS
\*-----------------------------------*/

:root,
:root[data-theme="dark"] {
  --void:            hsl(36, 24%, 4%);
  --ink-900:         hsl(36, 26%, 6%);
  --ink-800:         hsl(36, 24%, 8%);
  --ink-700:         hsl(36, 20%, 11%);
  --surface:         hsl(36, 24%, 7.5%);
  --surface-2:       hsl(36, 22%, 10%);
  --panel:           hsla(40, 60%, 88%, 0.022);
  --panel-2:         hsla(40, 60%, 88%, 0.045);
  --hairline:        hsla(40, 45%, 80%, 0.11);
  --hairline-strong: hsla(40, 55%, 82%, 0.22);

  --text-hi:  hsl(38, 56%, 95%);
  --text-mid: hsl(37, 18%, 67%);
  --text-low: hsl(37, 12%, 49%);

  --accent:     hsl(36, 86%, 60%);
  --accent-2:   hsl(35, 100%, 71%);
  --accent-dim: hsla(36, 86%, 60%, 0.14);
  --accent-ink: hsl(36, 45%, 7%);
  --glow:       hsla(36, 90%, 58%, 0.32);

  --grid-line:  hsla(40, 60%, 70%, 0.05);
  --aurora:     hsla(36, 90%, 52%, 0.10);

  --shadow-1: 0 10px 28px -16px hsla(36, 50%, 2%, 0.7);
  --shadow-2: 0 16px 44px -22px hsla(36, 50%, 2%, 0.72);
  --shadow-3: 0 24px 56px -26px hsla(36, 50%, 2%, 0.78);
  --shadow-4: 0 28px 64px -30px hsla(36, 50%, 2%, 0.82);
  --shadow-5: 0 36px 80px -34px hsla(36, 60%, 1%, 0.85);
}

:root[data-theme="light"] {
  --void:            hsl(40, 30%, 95%);
  --ink-900:         hsl(40, 36%, 99%);
  --ink-800:         hsl(40, 30%, 98%);
  --ink-700:         hsl(40, 24%, 95%);
  --surface:         hsl(40, 40%, 99.5%);
  --surface-2:       hsl(40, 30%, 97%);
  --panel:           hsla(36, 40%, 20%, 0.02);
  --panel-2:         hsla(36, 40%, 20%, 0.045);
  --hairline:        hsla(36, 35%, 20%, 0.12);
  --hairline-strong: hsla(36, 40%, 18%, 0.22);

  --text-hi:  hsl(36, 32%, 12%);
  --text-mid: hsl(36, 14%, 33%);
  --text-low: hsl(36, 12%, 50%);

  --accent:     hsl(33, 82%, 46%);
  --accent-2:   hsl(31, 84%, 40%);
  --accent-dim: hsla(33, 82%, 46%, 0.12);
  --accent-ink: hsl(40, 40%, 99%);
  --glow:       hsla(33, 82%, 48%, 0.16);

  --grid-line:  hsla(36, 40%, 20%, 0.06);
  --aurora:     hsla(33, 82%, 50%, 0.08);

  --shadow-1: 0 10px 26px -18px hsla(36, 30%, 20%, 0.22);
  --shadow-2: 0 16px 40px -24px hsla(36, 30%, 20%, 0.22);
  --shadow-3: 0 22px 52px -28px hsla(36, 30%, 20%, 0.24);
  --shadow-4: 0 26px 60px -32px hsla(36, 30%, 20%, 0.26);
  --shadow-5: 0 32px 72px -36px hsla(36, 30%, 20%, 0.28);
}

/* map template variables onto the amber system */
:root {
  --smoky-black:           var(--void);
  --eerie-black-1:         var(--ink-800);
  --eerie-black-2:         var(--surface);
  --onyx:                  var(--panel-2);
  --jet:                   var(--hairline);
  --white-1:               var(--text-hi);
  --white-2:               var(--text-hi);
  --light-gray:            var(--text-mid);
  --light-gray-70:         var(--text-low);
  --orange-yellow-crayola: var(--accent);
  --vegas-gold:            var(--accent);
  --bittersweet-shimmer:   var(--accent-2);

  --bg-gradient-onyx: linear-gradient(150deg, var(--surface-2), var(--surface));
  --bg-gradient-jet: var(--surface);
  --bg-gradient-yellow-1: var(--accent);
  --bg-gradient-yellow-2: var(--surface);
  --border-gradient-onyx: linear-gradient(150deg, var(--accent-dim), var(--hairline) 70%);
  --text-gradient-yellow: linear-gradient(120deg, var(--accent), var(--accent-2));

  --ff-poppins: 'Inter', system-ui, sans-serif;
  --ff-display: 'Sora', 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --transition-1: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-2: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/*-----------------------------------*\
  #GLOBAL
\*-----------------------------------*/

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text-mid);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.1px;
  transition: background 0.4s ease, color 0.4s ease;
}

/* atmosphere: kept grid + a single soft warm glow (no animated blobs) */
.bg-canvas {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% -8%, var(--aurora), transparent 62%),
    radial-gradient(45% 38% at 100% 0%, var(--aurora), transparent 60%),
    var(--void);
  transition: background 0.4s ease;
}
.bg-canvas::before, .bg-canvas::after { content: none; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 86%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 86%);
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px;
  margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  opacity: 0; mix-blend-mode: screen; transition: opacity 0.4s ease; will-change: transform;
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/*-----------------------------------*\
  #SURFACES (flat, no heavy glass)
\*-----------------------------------*/

.sidebar, article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  isolation: isolate;
}
.sidebar::after, article::after { content: none; }
/* thin top highlight only */
.sidebar::before, article::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  pointer-events: none; z-index: 2;
}
@media (min-width: 1024px) { .sidebar, article { box-shadow: var(--shadow-5); } }

/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/

.h2, .h3, .h4, .h5,
.article-title, .timeline-item-title, .project-title,
.blog-item-title, .service-item-title, .form-title {
  font-family: var(--ff-display);
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

.article-title {
  font-weight: 600; font-size: 28px; position: relative;
  padding-bottom: 16px; margin-bottom: 30px;
}
.article-title::after {
  position: absolute; bottom: 0; left: 0;
  width: 46px; height: 3px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 16px var(--glow);
}
.timeline .title-wrapper .h3 { font-family: var(--ff-display); }

/*-----------------------------------*\
  #SIDEBAR / IDENTITY
\*-----------------------------------*/

.avatar-box {
  position: relative; background: var(--accent);
  border-radius: 20px; padding: 2px;
  box-shadow: 0 8px 24px -12px var(--glow);
}
.avatar-box img { border-radius: 18px; display: block; }

.info-content .name {
  font-family: var(--ff-display); font-weight: 700;
  letter-spacing: -0.025em; color: var(--text-hi);
}
.info-content .title {
  font-family: var(--ff-mono); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 10px; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 5px 12px;
}

.info_more-btn { background: var(--accent); box-shadow: var(--shadow-1); }
.info_more-btn::before { background: var(--ink-800); }
.info_more-btn span, .info_more-btn ion-icon { color: var(--accent); }

.icon-box { background: var(--accent-dim); color: var(--accent); border-radius: 11px; }
.icon-box::before { background: var(--surface); border-radius: 10px; }

.contact-title {
  font-family: var(--ff-mono); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 10px; color: var(--text-low);
}
.contact-info :is(.contact-link, address, time) { color: var(--text-mid); }
.contact-info .contact-link:hover { color: var(--accent); }

/* resume trigger button styled like a link */
.resume-trigger {
  font: inherit; color: var(--text-mid); display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-7, 14px); transition: var(--transition-1); cursor: pointer;
}
.resume-trigger::after { content: "↗"; font-family: var(--ff-mono); font-size: 11px; color: var(--accent); }
.resume-trigger:hover { color: var(--accent); }

.social-link, .social-item-contact .social-link {
  font-size: 18px; color: var(--text-low);
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 11px;
  background: var(--panel); transition: var(--transition-1);
}
.social-link:hover, .social-item-contact .social-link:hover {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  transform: translateY(-3px); box-shadow: var(--shadow-2);
}
.social-list { gap: 12px; flex-wrap: wrap; }

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  background: var(--surface);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--shadow-2);
}
.navbar-link {
  font-family: var(--ff-mono); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500; color: var(--text-low);
  position: relative; padding: 18px 4px; transition: color var(--transition-1);
}
.navbar-link:hover { color: var(--text-hi); }
.navbar-link.active { color: var(--accent); }
.navbar-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%);
  background: var(--accent); box-shadow: 0 0 10px 1px var(--glow);
}
@media (min-width: 1024px) { .navbar { border-radius: 0 22px 0 18px; } }

/*-----------------------------------*\
  #THEME TOGGLE
\*-----------------------------------*/

.theme-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-1);
  transition: var(--transition-1);
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle ion-icon { font-size: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (min-width: 1250px) { .theme-toggle { top: 24px; right: 28px; } }

/*-----------------------------------*\
  #SERVICE CARDS
\*-----------------------------------*/

.service-item {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.service-item::before { display: none; }
.service-item:hover {
  transform: translateY(-5px); border-color: var(--accent);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--accent-dim);
}
.service-icon-box ion-icon { font-size: 34px; color: var(--accent); }
.service-icon-box img { filter: sepia(0.4) saturate(1.6) hue-rotate(-5deg); }
.service-item-text { color: var(--text-low); }

/*-----------------------------------*\
  #EXPERIENCE  (enhanced timeline cards)
\*-----------------------------------*/

.timeline { margin-bottom: 34px; }
.timeline .title-wrapper { margin-bottom: 22px; gap: 12px; }

.timeline-list { padding-left: 26px; position: relative; }
/* continuous rail */
.timeline-list::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent-dim), var(--hairline));
}
.timeline-item { position: relative; }
.timeline-item:not(:last-child) { margin-bottom: 16px; }
.timeline-item:not(:last-child)::before { display: none; }
/* node on the rail */
.timeline-item::after {
  content: ""; position: absolute; left: -26px; top: 22px;
  width: 11px; height: 11px; border-radius: 50%; transform: none;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px var(--accent-dim); outline: none;
  transition: var(--transition-1);
}

/* turn each item into a card */
.resume .timeline-item {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 16px 18px;
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.resume .timeline-item:hover {
  transform: translateX(4px); border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.resume .timeline-item:hover::after { box-shadow: 0 0 0 4px var(--accent-dim), 0 0 14px 2px var(--glow); }

.timeline-item-title { color: var(--text-hi); font-size: 16px; margin-bottom: 4px; }
.timeline-list span {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--accent); display: inline-block;
  background: var(--accent-dim); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px;
}
.timeline-text { color: var(--text-low); font-size: 14px; }
.timeline-text a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.timeline-text a:hover { border-color: var(--accent); }

/*-----------------------------------*\
  #PROFESSIONAL EXPERIENCE (company → roles, promotions)
\*-----------------------------------*/

.xp-list { display: grid; gap: 16px; }

.xp-company {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.xp-company:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--accent-dim);
}

.xp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.xp-logo {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 19px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
}
.xp-company:hover .xp-logo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.xp-company-name { font-family: var(--ff-display); font-size: 16.5px; color: var(--text-hi); letter-spacing: -0.01em; }
.xp-company-meta {
  font-family: var(--ff-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-low); margin-top: 4px;
}

/* roles — a mini vertical progression timeline */
.xp-roles { position: relative; padding-left: 24px; }
/* connecting rail only when there are 2+ roles (a real promotion path) */
.xp-roles:has(.xp-role + .xp-role)::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-dim));
  border-radius: 2px;
}
.xp-role { position: relative; }
.xp-role + .xp-role { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hairline); }
.xp-role::before {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.xp-role.current::before { background: var(--accent); }
.xp-role.current::after {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--accent); animation: xpPulse 2s ease-out infinite;
}
@keyframes xpPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { opacity: 0; }
}

.xp-role-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.xp-role-title { font-family: var(--ff-display); font-size: 14.5px; color: var(--text-hi); }
.xp-role-date {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-dim); border-radius: 6px; padding: 3px 8px;
  margin-left: auto;
}
.xp-badge {
  font-family: var(--ff-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 3px 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.xp-badge::before { content: "▲"; font-size: 7px; }
.xp-points { list-style: none; margin: 0; padding: 0; }
.xp-points li {
  position: relative; padding-left: 16px; color: var(--text-low);
  font-size: 13.5px; line-height: 1.6;
}
.xp-points li + li { margin-top: 6px; }
.xp-points li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7;
}
.xp-points a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.xp-points a:hover { border-color: var(--accent); }

/*-----------------------------------*\
  #TOOLS & TECH
\*-----------------------------------*/

.tech { margin-bottom: 34px; }
.tech-cloud { display: grid; gap: 20px; }
.tech-label {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; color: var(--text-low); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.tech-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.tech-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-chip {
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-mid);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--surface-2);
  cursor: default; transition: var(--transition-1);
}
.tech-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-low); transition: var(--transition-1); flex: none;
}
.tech-chip:hover {
  transform: translateY(-3px); color: var(--text-hi);
  border-color: var(--accent); background: var(--accent-dim);
}
.tech-chip:hover::before { background: var(--accent); box-shadow: 0 0 8px var(--glow); }

/*-----------------------------------*\
  #FREELANCE
\*-----------------------------------*/

.freelance { margin-bottom: 34px; }
.freelance-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 580px) { .freelance-list { grid-template-columns: 1fr 1fr; } }
.freelance-card {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px; box-shadow: var(--shadow-1);
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.freelance-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-3); }
.freelance-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.freelance-card h4 { font-family: var(--ff-display); color: var(--text-hi); font-size: 16px; }
.freelance-card .fc-role {
  font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 999px; padding: 3px 9px;
}
.freelance-card p { color: var(--text-low); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.freelance-card a {
  font-family: var(--ff-mono); font-size: 12px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
}
.freelance-card a:hover { gap: 9px; }
.freelance-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 16px 20px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--ff-display); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-2); transition: var(--transition-1); cursor: pointer;
}
.freelance-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-3), 0 0 30px -8px var(--glow); }
.freelance-cta ion-icon { font-size: 20px; }

/*-----------------------------------*\
  #TESTIMONIALS
\*-----------------------------------*/

.testimonials-v2 { margin-bottom: 10px; }
.tm-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .tm-list { grid-template-columns: 1fr 1fr; } }
.tm-card {
  position: relative; background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 24px 22px 20px; box-shadow: var(--shadow-1);
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.tm-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-3); }
.tm-card .tm-mark { font-family: var(--ff-display); font-size: 54px; line-height: 0.6; color: var(--accent); height: 26px; display: block; opacity: 0.6; }
.tm-quote { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; margin-bottom: 18px; }
.tm-author { display: flex; align-items: center; gap: 12px; }
.tm-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 600;
  color: var(--accent-ink); background: var(--accent); font-size: 15px;
}
.tm-name { font-family: var(--ff-display); color: var(--text-hi); font-size: 14px; }
.tm-role { font-family: var(--ff-mono); color: var(--text-low); font-size: 11px; letter-spacing: 0.03em; }

/*-----------------------------------*\
  #PROJECTS  (enhanced cards)
\*-----------------------------------*/

.filter-list, .select-list, .blog-filter { gap: 10px; }
.filter-item button, .filter-select, .select-item button, .blog-filter button {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-low); transition: var(--transition-1);
}
.filter-item button:hover, .blog-filter button:hover { color: var(--text-hi); }
.filter-item button.active, .blog-filter button.active { color: var(--accent); }
.filter-item button.active::after { background: var(--accent); }
.filter-select-box .filter-select, .select-list {
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-mid);
}

.project-list { gap: 24px 22px; }
.project-item > a {
  display: block; padding: 10px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.project-item > a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--accent-dim);
}
.project-img {
  border-radius: 13px; overflow: hidden; margin: 0; height: 200px;
  border: 1px solid var(--hairline);
}
.project-img img {
  height: 100%; width: 100%; object-fit: cover;
  transition: transform var(--transition-2);
}
.project-item > a:hover .project-img img { transform: scale(1.06); }
.project-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 45%, hsla(36,40%,3%,0.55));
  opacity: 0; transition: var(--transition-1);
}
.project-item > a:hover .project-img::before { opacity: 1; }
.project-item-icon-box {
  background: var(--accent); color: var(--accent-ink);
  border: none; --ionicon-stroke-width: 45px;
  box-shadow: 0 8px 20px -8px var(--glow);
}
.project-title {
  color: var(--text-hi); font-size: 16px; margin: 14px 4px 6px; padding: 0;
  transition: color var(--transition-1);
}
.project-item > a:hover .project-title { color: var(--accent); }
.project-category {
  color: var(--text-low); font-size: 13px; line-height: 1.55;
  margin: 0 4px 6px; padding: 0;
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-filter { display: flex; flex-wrap: wrap; padding-left: 5px; margin-bottom: 26px; gap: 18px; }
.blog-filter button { position: relative; padding-bottom: 6px; }
.blog-filter button.active::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.blog-posts-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 580px) { .blog-posts-list { grid-template-columns: 1fr 1fr; } }
.blog-post-item > a {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: var(--shadow-1); overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.blog-post-item > a:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-3); }
.blog-post-item > a::before { display: none; }
.blog-banner-box { border-radius: 0; margin: 0; height: 200px; }
.blog-banner-box img { transition: transform var(--transition-1); }
.blog-post-item > a:hover .blog-banner-box img { transform: scale(1.06); }
.blog-cover-fallback {
  height: 200px; display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--accent-dim) 0 2px, transparent 2px 18px),
    linear-gradient(155deg, var(--surface-2), var(--ink-900));
}
.blog-cover-fallback span { font-family: var(--ff-mono); color: var(--accent); font-size: 12px; letter-spacing: 0.1em; }
.blog-content { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.blog-category { color: var(--accent); font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em; }
.blog-meta .dot { background: var(--text-low); }
.blog-meta time { color: var(--text-low); font-family: var(--ff-mono); font-size: 11px; }
.blog-item-title { color: var(--text-hi); font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.blog-text { color: var(--text-low); font-size: 14px; line-height: 1.6; }
.blog-tag-self, .blog-tag-ext {
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-low);
  margin-left: auto;
}
.blog-tag-self { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.blog-readmore {
  margin-top: auto; padding-top: 14px; font-family: var(--ff-mono); font-size: 12px;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.blog-empty { color: var(--text-low); font-family: var(--ff-mono); font-size: 13px; padding: 20px 5px; }

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.ec-form { margin-bottom: 30px; }
.ec-intent { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ec-intent input { display: none; }
.ec-intent label {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--text-low);
  padding: 9px 15px; border-radius: 11px; border: 1px solid var(--hairline);
  background: var(--surface-2); cursor: pointer; transition: var(--transition-1);
}
.ec-intent label:hover { color: var(--text-hi); border-color: var(--accent); }
.ec-intent input:checked + label { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.form-input {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 12px; color: var(--text-hi); transition: var(--transition-1);
}
.form-input::placeholder { color: var(--text-low); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-btn {
  background: var(--accent); border: none; color: var(--accent-ink);
  font-family: var(--ff-display); font-weight: 600; box-shadow: var(--shadow-2);
  transition: var(--transition-1); border-radius: 12px;
}
.form-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--shadow-3), 0 0 30px -8px var(--glow); }
.form-btn ion-icon { color: var(--accent-ink); }
#my-cal-inline { border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.mastodon-link { display: inline-block; margin-top: 8px; font-family: var(--ff-mono); font-size: 12px; color: var(--text-low); }
.mastodon-link:hover { color: var(--accent); }

/*-----------------------------------*\
  #RESUME DIALOG
\*-----------------------------------*/

.resume-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: hsla(36, 40%, 2%, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.resume-overlay.open { display: flex; animation: ovIn 0.25s ease both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }

.resume-modal {
  width: min(820px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: 18px; box-shadow: var(--shadow-5); overflow: hidden;
  animation: modalIn 0.32s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

.resume-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--hairline); background: var(--surface-2);
}
.resume-bar .rb-title {
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; color: var(--text-low); margin-right: auto;
}
.rb-btn {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text-mid);
  transition: var(--transition-1);
}
.rb-btn ion-icon { font-size: 15px; }
.rb-btn:hover { color: var(--text-hi); border-color: var(--accent); }
.rb-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rb-btn.primary:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rb-close { margin-left: 2px; width: 34px; height: 34px; padding: 0; justify-content: center; }

.resume-doc { overflow-y: auto; padding: 36px 40px; color: var(--text-mid); }
.resume-doc .rd-inner { max-width: 680px; margin: 0 auto; }
@media (max-width: 560px) { .resume-doc { padding: 24px 20px; } }

.resume-doc h1 { font-family: var(--ff-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--text-hi); }
.resume-doc h2 {
  font-family: var(--ff-display); font-size: 16px; color: var(--accent); margin-top: 30px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 6px; border-bottom: 1px solid var(--hairline);
}
.resume-doc h3 { font-family: var(--ff-display); font-size: 15px; color: var(--text-hi); margin-top: 18px; }
.resume-doc p, .resume-doc li { font-size: 14px; line-height: 1.65; }
.resume-doc > .rd-inner > p:first-of-type { color: var(--text-low); font-family: var(--ff-mono); font-size: 12.5px; }
.resume-doc ul { padding-left: 20px; margin: 8px 0; }
.resume-doc li { margin-top: 5px; }
.resume-doc li::marker { color: var(--accent); }
.resume-doc a { color: var(--accent); }
.resume-doc strong { color: var(--text-hi); }
.resume-doc hr { border: 0; height: 1px; background: var(--hairline); margin: 18px 0; }
.resume-doc em { color: var(--text-mid); font-style: normal; font-family: var(--ff-mono); font-size: 12px; }

/*-----------------------------------*\
  #SCROLLBAR
\*-----------------------------------*/

@media (min-width: 1250px) {
  body::-webkit-scrollbar-track { background: var(--void); }
  body::-webkit-scrollbar-thumb { border: 6px solid var(--void); background: var(--accent); border-radius: 20px; }
  body::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
}

/*-----------------------------------*\
  #ANIMATIONS
\*-----------------------------------*/

article.active { animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
