/* ============================================================
   VLAD — 2026 VAMPIRE GLASS PORTFOLIO
   Design tokens
   ============================================================ */
:root {
  /* Dark theme (default) — Ferrari red / matte white / near-black executive palette */
  --c-void: #050505;
  --c-void-2: #0b0b0b;
  --c-surface: rgba(255,255,255,0.045);
  --c-surface-strong: rgba(255,255,255,0.08);
  --c-border: rgba(255,255,255,0.08);
  --c-crimson: #8b0000;
  --c-burgundy: #a11217;
  --c-violet: #5a0c10;
  --c-ice: #a11217;
  --c-silver: #f5f5f5;
  --c-text: #eaeaea;
  --c-text-dim: #b5b5b5;
  --c-gold: #a11217;
  --c-gold-bright: #d21e26;

  --grad-atmosphere: radial-gradient(60% 60% at 20% 20%, rgba(139,0,0,0.22), transparent 60%),
                      radial-gradient(50% 50% at 85% 15%, rgba(161,18,23,0.18), transparent 60%),
                      radial-gradient(70% 70% at 50% 100%, rgba(90,12,16,0.32), transparent 60%);
  --grad-accent: linear-gradient(135deg, var(--c-crimson), var(--c-violet));
  --grad-gold: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold));

  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 100px;
}

[data-theme="light"] {
  --c-void: #f7f5f5;
  --c-void-2: #ece8e8;
  --c-surface: rgba(20,10,10,0.04);
  --c-surface-strong: rgba(20,10,10,0.07);
  --c-border: rgba(20,10,10,0.1);
  --c-crimson: #8b0000;
  --c-burgundy: #a11217;
  --c-violet: #6b0f14;
  --c-ice: #a11217;
  --c-silver: #4a4242;
  --c-text: #171313;
  --c-text-dim: #5c5454;
  --c-gold: #8b0000;
  --c-gold-bright: #a11217;

  --grad-atmosphere: radial-gradient(60% 60% at 20% 10%, rgba(139,0,0,0.1), transparent 60%),
                      radial-gradient(50% 50% at 90% 20%, rgba(161,18,23,0.08), transparent 60%),
                      radial-gradient(70% 70% at 50% 100%, rgba(90,12,16,0.06), transparent 60%);
}

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

body {
  margin: 0;
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grad-atmosphere);
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 3px; }

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

main { position: relative; z-index: 2; }

/* ---------- Glass utility ---------- */
.glass {
  background: var(--c-surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---------- Layout ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ice);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 48px;
  max-width: 18ch;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-void);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-sigil { width: 64px; height: 64px; }
.sigil-svg { width: 100%; height: 100%; }
.sigil-face { fill: none; stroke: url(#sigilGrad); }
.sigil-face--outer { stroke: var(--c-violet); stroke-width: 2; opacity: 0.9; animation: sigil-spin 3s linear infinite; transform-origin: 50px 50px; }
.sigil-face--inner { stroke: var(--c-crimson); stroke-width: 2; animation: sigil-spin-rev 2.2s linear infinite; transform-origin: 50px 50px; }
.sigil-line { stroke: var(--c-ice); stroke-width: 1; opacity: 0.5; }
@keyframes sigil-spin { to { transform: rotate(360deg); } }
@keyframes sigil-spin-rev { to { transform: rotate(-360deg); } }
.loader-word {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: var(--c-text-dim);
  margin: 0;
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 998;
  background: transparent;
}
#scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--c-violet);
}

/* ---------- Cursor / trail ---------- */
#cursor-glow {
  position: fixed; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161,18,23,0.18), transparent 70%);
  pointer-events: none; z-index: 5; transform: translate(-50%,-50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}
.trail-dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-ice); pointer-events: none; z-index: 5;
  transform: translate(-50%,-50%);
}

/* ---------- Navigation ---------- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px clamp(20px, 5vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              padding 0.4s var(--ease);
}
#site-nav.is-scrolled {
  background: rgba(5,5,5,0.74);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--c-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  padding-top: 12px; padding-bottom: 12px;
}
[data-theme="light"] #site-nav.is-scrolled { background: rgba(247,245,245,0.82); }

/* Brand lockup: monogram + stacked name/tagline/subtag */
.brand-lockup { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--c-text);
}
.brand-name-accent { color: var(--c-crimson); }
.brand-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 0.68rem; color: var(--c-text-dim); letter-spacing: 0.02em;
}
.brand-subtag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-text-dim);
}
.brand-subtag i { font-style: normal; color: var(--c-crimson); margin: 0 1px; }

#nav-list { display: flex; align-items: center; gap: 6px; }
#nav-list a {
  position: relative; display: inline-block; padding: 8px 4px;
  font-size: 0.86rem; color: var(--c-text-dim);
  transition: color 0.3s ease;
  white-space: nowrap;
  margin: 0 10px;
}
#nav-list a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 100%; height: 2px; background: var(--c-crimson);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
#nav-list a:hover { color: var(--c-crimson); }
#nav-list a:hover::after { transform: translateX(-50%) scaleX(1); }
#nav-list a.is-active { color: var(--c-crimson); }
#nav-list a.is-active::after { transform: translateX(-50%) scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#theme-toggle, #palette-trigger {
  position: relative;
  border: 1px solid var(--c-border);
  background: var(--c-surface-strong);
  color: var(--c-text-dim);
  border-radius: 100px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
#palette-trigger { width: auto; padding: 0 12px; font-family: var(--font-mono); }
#theme-toggle:hover, #palette-trigger:hover { color: var(--c-text); transform: translateY(-1px); }
.toggle-icon { position: absolute; transition: opacity 0.3s ease, transform 0.3s ease; }
.toggle-icon--moon { opacity: 1; }
.toggle-icon--sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .toggle-icon--moon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .toggle-icon--sun { opacity: 1; transform: rotate(0); }

.nav-cta {
  padding: 10px 20px; margin-left: 4px; border-radius: 100px;
  border: 1px solid var(--c-gold); color: var(--c-gold);
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  background: var(--grad-gold); color: #ffffff; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(161,18,23,0.35);
}

#nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; flex-shrink: 0; }
#nav-burger span { width: 20px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ---------- Command palette ---------- */
#command-palette { position: fixed; inset: 0; z-index: 2000; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(5,2,8,0.6); backdrop-filter: blur(6px); }
.palette-panel {
  position: relative; max-width: 560px; margin: 12vh auto 0;
  background: var(--c-void-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(161,18,23,0.15);
  overflow: hidden;
  animation: palette-in 0.25s var(--ease);
}
@keyframes palette-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.palette-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--c-border); }
.palette-icon { color: var(--c-violet); }
#palette-input { flex: 1; background: none; border: none; color: var(--c-text); font-size: 1.05rem; font-family: var(--font-body); outline: none; }
#palette-input::placeholder { color: var(--c-text-dim); }
.palette-input-row kbd { font-family: var(--font-mono); font-size: 0.7rem; color: var(--c-text-dim); border: 1px solid var(--c-border); padding: 2px 6px; border-radius: 6px; }
#palette-results { max-height: 320px; overflow-y: auto; padding: 8px; }
#palette-results li a, #palette-results li button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius-s); background: none; border: none; color: var(--c-text-dim);
  font-size: 0.92rem; text-align: left;
}
#palette-results li a:hover, #palette-results li button:hover, #palette-results li a.is-selected, #palette-results li button.is-selected {
  background: var(--c-surface-strong); color: var(--c-text);
}
#palette-results li span.pr-arrow { opacity: 0.5; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(45% 45% at 70% 40%, rgba(139,0,0,0.25), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-grid {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.eyebrow[data-reveal], .section-title[data-reveal] { opacity: 1; }

/* Small badge/pill above the heading */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; margin: 0 0 26px; border-radius: 100px;
  border: 1px solid var(--c-border); background: var(--c-surface);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-text-dim);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-gold); box-shadow: 0 0 8px var(--c-gold);
}

/* Main heading — the largest, most dominant element on the page */
.hero-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--c-text);
}
.hero-heading .accent {
  color: var(--c-gold); /* fallback if background-clip:text is unsupported */
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-heading .accent {
    background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold) 60%, #5a0c10);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: var(--c-text-dim);
  max-width: 54ch;
  margin: 0 0 34px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
}
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 30px rgba(139,0,0,0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139,0,0,0.45); }
.btn--gold { background: var(--grad-gold); color: #ffffff; box-shadow: 0 10px 30px rgba(161,18,23,0.35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(161,18,23,0.5); }
.btn--ghost { background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-surface-strong); transform: translateY(-2px); }

/* Trust indicators */
.hero-trust { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.hero-trust li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.84rem; color: var(--c-text-dim);
}
.trust-check {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(161,18,23,0.15); border: 1px solid var(--c-gold);
  color: var(--c-gold); font-size: 0.66rem;
}

/* Hero visual / portrait */
.hero-visual { position: relative; min-height: 860px; display: flex; align-items: center; justify-content: center; }

/* The portrait slot is intentionally borderless/backgroundless by default —
   drop in a transparent-background PNG and it blends straight into the
   page with just a soft ambient glow behind it, no visible card edge.
   A dashed outline only appears while the slot is empty, so you can see
   where to place the image while editing. */
.portrait-frame {
  position: relative;
  width: min(950px, 115%);
  height: min(820px, 68vw);
  border-radius: var(--radius-l);
  z-index: 3;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  background:
    radial-gradient(55% 55% at 50% 38%, rgba(161,18,23,0.38), transparent 72%),
    radial-gradient(50% 50% at 50% 92%, rgba(161,18,23,0.32), transparent 72%);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
}
.portrait-frame--empty {
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-l);
  background: var(--c-surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.portrait-frame--empty::before { display: none; }
.portrait-empty-label {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-text-dim); padding: 20px; line-height: 1.6;
}
.portrait-frame--empty .portrait-empty-label { display: flex; }
.portrait-empty-label code { color: var(--c-ice); display: inline-block; margin-top: 6px; }

/* Soft pool of light beneath the portrait's feet, like studio ground lighting */
.portrait-ground-glow {
  position: absolute;
  left: 50%; bottom: 2%;
  width: 68%; height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(161,18,23,0.4), transparent 75%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

/* Desktop only: let the portrait slightly overlap the bottom edge of the
   hero section, like it's stepping into the next section. */
@media (min-width: 981px) {
  .hero { overflow: visible; }
  .hero-visual { margin-bottom: -70px; }
}

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--c-border); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 4;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--c-ice); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }

/* ============ TOOLS OF THE TRADE ============ */
.tools-marquee {
  overflow: hidden;
  position: relative;
  padding: 12px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.tools-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: tools-scroll 38s linear infinite;
}
.tools-marquee:hover .tools-track { animation-play-state: paused; }
@keyframes tools-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tool-card {
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}
.tool-card:hover { transform: scale(1.08); z-index: 2; }
.tool-card-inner {
  width: 132px;
  padding: 22px 14px;
  border-radius: var(--radius-m);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  animation: tool-float 3.6s ease-in-out infinite;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.tool-card:nth-child(even) .tool-card-inner { animation-delay: 1.2s; }
.tool-card:nth-child(3n) .tool-card-inner { animation-delay: 2s; }
.tool-card:hover .tool-card-inner {
  border-color: var(--c-gold);
  box-shadow: 0 16px 40px rgba(161,18,23,0.28);
}
@keyframes tool-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.tool-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-gold);
  color: #ffffff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.tool-name {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-dim);
  line-height: 1.4;
}

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.about-lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.5; color: var(--c-text); margin: 0; }
.about-pillars { display: grid; gap: 16px; }
.pillar { padding: 26px 28px; display: flex; align-items: center; gap: 18px; }
.pillar-index { font-family: var(--font-mono); color: var(--c-crimson); font-size: 0.85rem; }
.pillar h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0; font-weight: 600; }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.skill-card { padding: 26px; }
.skill-card h3 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-ice); margin: 0 0 18px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 8px 14px; border-radius: 100px; font-size: 0.84rem;
  background: var(--c-surface-strong); border: 1px solid var(--c-border);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, color 0.25s ease;
}
.skill-tag:hover { transform: translateY(-3px); border-color: var(--c-violet); color: var(--c-text); }

/* ============ EXPERIENCE ============ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--c-crimson), var(--c-violet));
  transform-origin: top; transform: scaleY(0);
}
.timeline.is-visible::before { transform: scaleY(1); transition: transform 1.2s var(--ease); }
.timeline-item { position: relative; padding: 0 0 42px 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-void); border: 2px solid var(--c-violet); box-shadow: 0 0 12px rgba(161,18,23,0.6);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--c-text-dim); }
.timeline-item h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 6px 0 8px; }
.timeline-item p { margin: 0; color: var(--c-text-dim); max-width: 60ch; line-height: 1.6; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card {
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(161,18,23,0.18), transparent 70%);
}
.service-card:hover::after { opacity: 1; }
.service-card:hover { transform: translateY(-4px); border-color: var(--c-violet); }
.service-index { display: block; font-family: var(--font-mono); color: var(--c-crimson); font-size: 0.85rem; margin-bottom: 14px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px; }
.service-card p { margin: 0; color: var(--c-text-dim); line-height: 1.6; font-size: 0.94rem; }

/* ============ WHY WORK WITH ME ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card { padding: 30px; position: relative; }
.why-check {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%;
  background: var(--grad-accent); color: #fff; font-size: 0.9rem; flex-shrink: 0;
}
.why-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.why-card p { margin: 0; color: var(--c-text-dim); line-height: 1.6; font-size: 0.92rem; }

/* ============ WORKS ============ */
.works-hint { font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-text-dim); margin: -32px 0 28px; }
.works-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.works-filter {
  padding: 9px 18px; border-radius: 100px; font-size: 0.84rem;
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-dim);
  transition: all 0.25s ease;
}
.works-filter.is-active, .works-filter:hover { background: var(--c-surface-strong); color: var(--c-text); border-color: var(--c-violet); }
.works-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--c-border);
  background: linear-gradient(160deg, rgba(161,18,23,0.14), rgba(139,0,0,0.1));
  cursor: pointer;
}
.work-card:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 3px; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work-card:hover img { transform: scale(1.06); }
.work-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; background: linear-gradient(0deg, rgba(5,2,10,0.85) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.35s ease;
}
.work-card:hover .work-card-overlay, .work-card:focus-visible .work-card-overlay { opacity: 1; }
.work-card-cat { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-ice); }
.work-card h3 { color: #fff; font-family: var(--font-display); margin: 6px 0 4px; font-size: 1.2rem; }
.work-card p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.86rem; }
.work-card-count {
  display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--c-ice); letter-spacing: 0.04em;
}
.work-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-dim); text-align: center; padding: 20px; }

/* ============ PHOTO GALLERY LIGHTBOX ============ */
#photo-lightbox { position: fixed; inset: 0; z-index: 2100; }
.photo-lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,2,8,0.9); backdrop-filter: blur(10px); }
.photo-lightbox-panel {
  position: relative; max-width: 900px; margin: 4vh auto 0; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.photo-lightbox-close { position: absolute; top: -12px; right: 8px; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; z-index: 2; }
.photo-lightbox-stage { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.photo-lightbox-stage img {
  max-width: 100%; max-height: 68vh; border-radius: var(--radius-m);
  border: 1px solid var(--c-border); background: #000; object-fit: contain;
}
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.photo-lightbox-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.06); }
.photo-lightbox-nav--prev { left: -8px; }
.photo-lightbox-nav--next { right: -8px; }
.photo-lightbox-meta {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-text-dim); text-align: center;
}
#photo-lightbox-title { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.photo-lightbox-view { color: var(--c-ice); }
.photo-lightbox-view:hover { text-decoration: underline; }
.photo-lightbox-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.photo-lightbox-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.25s ease, border-color 0.25s ease;
}
.photo-lightbox-thumb:hover { opacity: 0.9; }
.photo-lightbox-thumb.is-active { opacity: 1; border-color: var(--c-violet); }

/* ============ VIDEO GALLERY ============ */
.video-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--c-border); position: relative; background: var(--c-void-2); }
.video-thumb-wrap { position: relative; aspect-ratio: 9/16; overflow: hidden; }
.video-thumb-wrap img, .video-thumb-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.video-card:hover .video-play-btn { transform: scale(1.1); background: rgba(255,255,255,0.25); }
.video-card-title { padding: 14px 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-text-dim); }

#video-lightbox { position: fixed; inset: 0; z-index: 2100; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,2,8,0.85); backdrop-filter: blur(8px); }
.lightbox-panel { position: relative; max-width: 420px; margin: 6vh auto 0; padding: 0 16px; }
.lightbox-panel video { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--c-border); background: #000; }
.lightbox-close { position: absolute; top: -44px; right: 8px; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-m); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--c-text);
  padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
}
.faq-q .faq-plus { flex-shrink: 0; font-size: 1.3rem; color: var(--c-violet); transition: transform 0.3s ease; }
.faq-item.is-open .faq-q .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 26px 22px; color: var(--c-text-dim); line-height: 1.6; }

/* ============ CONTACT / LET'S CONNECT ============ */
.contact-inner { text-align: center; }
.contact-title { margin: 0 auto 14px; max-width: 20ch; }
.contact-subtitle { font-family: var(--font-mono); font-size: 0.86rem; color: var(--c-text-dim); margin: 0 0 48px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: left;
}
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px; border-radius: var(--radius-m);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--c-crimson);
  background: var(--c-surface-strong);
  box-shadow: 0 20px 45px rgba(139,0,0,0.28);
}
.contact-card-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-surface-strong); border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card:hover .contact-card-icon {
  background: var(--grad-gold); border-color: var(--c-gold); color: #ffffff;
  transform: scale(1.08);
}
.contact-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--c-text); }
.contact-card-subtitle {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-dim);
  transition: color 0.35s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-card:hover .contact-card-subtitle { color: var(--c-gold); }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .contact-card { flex-direction: column; text-align: center; }
}

/* ============ FOOTER ============ */
#site-footer { position: relative; z-index: 2; padding: 60px 24px 40px; text-align: center; border-top: 1px solid var(--c-border); }
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-mark { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.05em; }
.footer-role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-text-dim); margin: 10px 0 20px; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.86rem; color: var(--c-text-dim); }
.footer-links a:hover { color: var(--c-text); }
.footer-copy { font-size: 0.76rem; color: var(--c-text-dim); margin: 0; }

/* ---------- Reveal animation base state ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.reveal-ready [data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
