/* ═══════════════════════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #161616;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #e8e4dc;
  --muted:    #6b6760;
  --muted2:   #4a4744;
  --accent:   #c8b89a;
  --accent2:  #4a7c59;
  --white:    #ffffff;

  --font-display: 'DM Serif Display', serif;
  --font-mono:    'DM Mono', monospace;
  --font-sans:    'Syne', sans-serif;

  --nav-h: 87px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Light mode variables ────────────── */
[data-theme="light"] {
  --bg:       #f5f3ef;
  --surface:  #ede9e2;
  --surface2: #e2ddd6;
  --border:   rgba(30,20,10,0.1);
  --border2:  rgba(30,20,10,0.17);
  --text:     #1e1c18;
  --muted:    #72706a;
  --muted2:   #a8a5a0;
  --accent:   #7a6040;
  --accent2:  #2d5e3a;
  --white:    #12110e;
}

/* ── Smooth theme transition ─────────── */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 0.38s ease,
    color            0.3s  ease,
    border-color     0.32s ease,
    box-shadow       0.32s ease !important;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
body.loading    { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

/* ── Scrollbar custom ────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ── Scroll progress bar (top of page) ──────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, transparent, var(--accent) 30%, var(--white) 100%);
  z-index: 9998;
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(200,184,154,0.4);
}

/* ═══════════════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-name {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--white);
  letter-spacing: -0.03em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}
.loader-name-text { overflow: hidden; }
.loader-name-text span {
  display: inline-block;
  transform: translateY(100%);
  animation: lReveal 0.7s var(--ease-out) 0.1s forwards;
}
.loader-name-text em {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  transform: translateY(100%);
  animation: lReveal 0.7s var(--ease-out) 0.25s forwards;
}
@keyframes lReveal { to { transform: translateY(0); } }
.loader-bar {
  width: 120px; height: 1px;
  background: var(--border);
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  animation: lBar 0.8s var(--ease) 0.15s forwards;
}
@keyframes lBar { to { width: 100%; } }

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  transition: background 0.5s var(--ease), border-bottom 0.5s;
}
nav.scrolled {
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 1.1s forwards;
}
.nav-logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 43px;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 1.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.nav-links { display: flex; list-style: none; gap: 38px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Nav controls group (lang + theme) ─ */
.nav-controls {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.nav-controls:hover { border-color: var(--accent); }

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.lang-toggle:hover { color: var(--accent); }

/* ── Theme toggle button ─────────────── */
.theme-toggle {
  position: relative;
  width: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.25s;
  overflow: hidden;
}
.theme-toggle:hover { color: var(--accent); }

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  top: 50%; left: 50%;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* dark mode (default): sun visible, moon hidden */
.theme-icon-sun  { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
.theme-icon-moon { transform: translate(-50%, -50%) scale(0.4) rotate(-45deg); opacity: 0; }
/* light mode: moon visible, sun hidden */
[data-theme="light"] .theme-icon-sun  { transform: translate(-50%, -50%) scale(0.4) rotate(45deg); opacity: 0; }
[data-theme="light"] .theme-icon-moon { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 38px 48px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 29px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.open { pointer-events: all; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px calc(96px + var(--nav-h));
  position: relative;
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-line {
  position: absolute;
  top: 0; left: 192px;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
  pointer-events: none;
}

.hero-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 19px;
  opacity: 0;
  animation: sUp 0.7s var(--ease-out) 1.05s forwards;
}
.hero-index::before { content:''; display:block; width:48px; height:1px; background:var(--muted); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(68px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 10px;
}
.hero-name-line {
  display: block;
  opacity: 0;
  transform: translateY(72px);
  animation: sUp 0.8s var(--ease-out) forwards;
}
.hero-name-line:nth-child(1) { animation-delay: 1.15s; }
.hero-name-line:nth-child(2) { animation-delay: 1.27s; }
@keyframes sUp { to { opacity:1; transform:translateY(0); } }

.hero-name em { font-style: italic; color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  letter-spacing: 0.03em;
  max-width: 504px;
  line-height: 1.8;
  margin-top: 38px;
  margin-bottom: 58px;
  opacity: 0;
  animation: sUp 0.7s var(--ease-out) 1.38s forwards;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0;
  animation: sUp 0.7s var(--ease-out) 1.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 3px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  right: 48px; bottom: 96px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.9s forwards;
}
.scroll-line {
  width: 1px; height: 72px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: sPulse 2.2s ease-in-out infinite;
}
@keyframes sPulse {
  0%,100% { opacity:.4; transform:scaleY(1); }
  50% { opacity:1; transform:scaleY(.65); }
}

/* ═══════════════════════════════════════════════════════
   HERO VISUAL (desktop right column)
═══════════════════════════════════════════════════════ */
.hero-visual {
  display: none;
  position: absolute;
  right: max(80px, 11vw);
  top: 56%;
  transform: translateY(-50%);
  width: 460px;
  height: 500px;
  pointer-events: none;
  transition: transform 0.9s var(--ease-out);
}
@media (min-width: 1100px) { .hero-visual { display: block; } }

/* ── Orb ─────────────────────────── */
.hv-orb {
  position: absolute;
  left: 50%; top: 50%;
  width: 118px; height: 118px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: hvAppear 0.9s var(--ease-out) 1.4s forwards;
}
.hv-orb-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 0 48px rgba(200,184,154,0.07), inset 0 0 24px rgba(200,184,154,0.03);
}
.hv-orb-icon {
  width: 56px; height: 24px;
  color: var(--accent);
  opacity: 0.9;
}
.hv-orb-ring {
  position: absolute;
  border-radius: 50%;
}
.hv-orb-ring--1 {
  inset: -22px;
  border: 1px solid rgba(200,184,154,0.18);
  animation: hvRotate 14s linear infinite;
}
.hv-orb-ring--1::after {
  content: '';
  position: absolute; top: -4px; left: 50%;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(200,184,154,0.4);
}
.hv-orb-ring--2 {
  inset: -46px;
  border: 1px dashed rgba(200,184,154,0.07);
  animation: hvRotate 24s linear infinite reverse;
}
.hv-orb-ring--2::after {
  content: '';
  position: absolute; bottom: -3px; left: 35%;
  width: 5px; height: 5px;
  background: var(--muted2);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ── Cards ─────────────────────────── */
.hv-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  width: 162px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  transition:
    border-color 0.3s var(--ease),
    box-shadow   0.3s var(--ease),
    transform    0.15s var(--ease);
  animation:
    hvAppear 0.7s var(--ease-out) var(--in-d) forwards,
    hvFloat  4.8s ease-in-out var(--fl-d) infinite;
}
.hv-card:hover {
  border-color: rgba(200,184,154,0.3);
  box-shadow: 0 10px 36px rgba(0,0,0,0.45), 0 0 18px rgba(200,184,154,0.09);
}
.hv-card:hover .hv-card-icon { background: rgba(200,184,154,0.06); }

.hv-card--1 { top:  30px; left: 14px;  --in-d: 1.65s; --fl-d: 0s;     }
.hv-card--2 { top:  80px; right: 14px; --in-d: 1.85s; --fl-d: -1.2s;  }
.hv-card--3 { bottom: 80px; left: 14px;  --in-d: 2.05s; --fl-d: -2.4s;  }
.hv-card--4 { bottom: 30px; right: 14px; --in-d: 2.25s; --fl-d: -0.6s;  }

.hv-card-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease);
}
.hv-card-icon img { display: block; }
.hv-icon-invert { filter: invert(1) brightness(0.85); }
.hv-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-card-name {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hv-card-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Dot grid ─────────────────────── */
.hv-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(200,184,154,0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black, transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 1.3s;
}
.hv-dots.hv-ready { opacity: 1; }

/* ── Keyframes ─────────────────────── */
@keyframes hvFloat {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}
@keyframes hvRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes hvAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hvOrbIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1);    }
}

/* ═══════════════════════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════════════════════ */
section { padding: 144px 48px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 58px;
  display: flex;
  align-items: center;
  gap: 19px;
}
.section-label::after { content:''; flex:1; max-width:80px; height:1px; background:var(--border); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(43px, 5vw, 77px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 29px;
}

.fade-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
#about { max-width: 1200px; margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
  margin-top: 86px;
}
.about-text p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 38px 34px;
  transition: border-color 0.35s, background 0.35s;
}
.stat-box:hover { border-color: var(--accent); background: var(--surface2); }
.stat-num {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════ */
#skills {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.skills-inner { max-width: 1200px; margin: 0 auto; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 72px;
}

.skill-cat {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 38px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s;
  outline: none;
}
.skill-cat:hover { border-color: rgba(200,184,154,.3); background: #0d0d0d; }
.skill-cat.open  { border-color: var(--accent); background: #0d0d0d; }

.skill-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skill-cat-arrow {
  font-size: 19px;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.35s var(--ease-out), color 0.25s;
  user-select: none;
}
.skill-cat.open .skill-cat-arrow { transform: rotate(45deg); color: var(--accent); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.skill-cat:hover .skill-tag { color: var(--muted); }

/* Shared drawer */
.skill-drawer {
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-out), opacity 0.4s var(--ease), margin 0.4s;
  margin: 0;
}
.skill-drawer.open { max-height: 576px; opacity: 1; margin: 2px 0; }

.skill-drawer-inner {
  background: #0c0c0c;
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  padding: 48px;
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 48px;
  align-items: start;
}

.drawer-label {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.drawer-label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
}

.drawer-content { display: flex; flex-direction: column; gap: 24px; }
.drawer-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.drawer-items { display: flex; flex-wrap: wrap; gap: 12px; }
.drawer-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 17px 19px;
  border-radius: 2px;
  min-width: 132px;
}
.drawer-item-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.drawer-item-lvl {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.level-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin-top: 8px;
  overflow: hidden;
}
.level-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  width: 0;
  transition: width 0.9s var(--ease-out) 0.2s;
}
.skill-drawer.open .level-fill { width: var(--lvl); }

/* ═══════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════ */
#projects { max-width: 1200px; margin: 0 auto; }

.projects-list { margin-top: 72px; }

.project-row {
  display: grid;
  grid-template-columns: 68px 1fr auto auto;
  align-items: center;
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.35s var(--ease), border-color 0.3s;
  position: relative;
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-row:hover { padding-left: 19px; border-color: var(--border2); }
.project-row:hover .project-name { color: var(--accent); }

.project-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 0.08em;
}
.project-info { min-width: 0; }
.project-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.project-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.status-dev  { color: #c8a44a; background: rgba(200,164,74,.08); border: 1px solid rgba(200,164,74,.2); }
.status-done { color: var(--accent2); background: rgba(74,124,89,.08); border: 1px solid rgba(74,124,89,.2); }

.project-row::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.project-row:hover::after { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════════════════
   PROJECT MODAL
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 29px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 4px;
  width: 100%;
  max-width: 816px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s var(--ease-out);
  position: relative;
}
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-thumb { background: var(--border2); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 43px 48px 34px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 19px;
  width: 41px; height: 41px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.25s, border-color 0.25s;
  line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }

.modal-body { padding: 43px 48px; display: flex; flex-direction: column; gap: 38px; }

.modal-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.modal-badge-year { color: var(--muted); border: 1px solid var(--border); }
.modal-badge-cat  { color: var(--accent); border: 1px solid rgba(200,184,154,.25); background: rgba(200,184,154,.06); }

.modal-desc { font-family: var(--font-sans); font-size: 18px; color: var(--muted); line-height: 1.85; }

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 17px;
}
.modal-features { display: flex; flex-direction: column; gap: 12px; }
.modal-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text);
  line-height: 1.5;
}
.modal-feature::before { content:'-'; color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; }

.modal-stack { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-tech {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 7px 17px;
  border-radius: 2px;
}

.modal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}
.modal-link-primary { background: var(--accent); color: var(--bg); }
.modal-link-primary:hover { background: var(--white); }
.modal-link-ghost { color: var(--muted); border: 1px solid var(--border); }
.modal-link-ghost:hover { color: var(--text); border-color: var(--muted); }
.modal-link-disabled { color: var(--muted2); border: 1px solid var(--border); cursor: not-allowed; opacity: .45; }

/* ── Modal screenshots gallery ─────────────────── */
.modal-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.modal-gallery::-webkit-scrollbar { height: 3px; }
.modal-gallery::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.modal-gallery-img {
  height: 216px;
  width: auto;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  object-fit: cover;
  cursor: zoom-in;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.modal-gallery-img:hover { border-color: var(--accent); transform: scale(1.02); }

/* ── Lightbox ───────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 29px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 3px;
  border: 1px solid var(--border2);
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-size: 19px;
  width: 43px; height: 43px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, border-color 0.25s;
}
.lightbox-close:hover { color: var(--text); border-color: var(--muted); }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-size: 22px;
  width: 48px; height: 48px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, border-color 0.25s;
}
.lightbox-arrow:hover { color: var(--text); border-color: var(--muted); }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
#contact { border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 72px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 43px 34px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), background 0.35s;
  cursor: pointer;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--surface2); }
.contact-icon { font-size: 24px; margin-bottom: 7px; opacity: .8; }
.contact-type { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.contact-value { font-family: var(--font-sans); font-size: 17px; color: var(--text); word-break: break-all; }
.contact-hint { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: auto; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  padding: 43px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .05em; }

/* ═══════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 38px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  padding: 12px 26px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════
   LIGHT MODE SPECIFIC OVERRIDES
   (hardcoded dark values not covered by CSS vars)
═══════════════════════════════════════════════════════ */
[data-theme="light"] nav.scrolled {
  background: rgba(245,243,239,0.95);
  border-bottom-color: rgba(30,20,10,0.1);
}
[data-theme="light"] .mobile-menu {
  background: rgba(245,243,239,0.99);
  border-bottom-color: rgba(30,20,10,0.1);
}
[data-theme="light"] .skill-cat:hover { background: var(--surface2); }
[data-theme="light"] .skill-cat.open  { background: var(--surface2); }
[data-theme="light"] .skill-drawer-inner { background: var(--surface); }
[data-theme="light"] .modal            { background: var(--surface); }
[data-theme="light"] .modal-header     { background: var(--surface); }
[data-theme="light"] .modal-overlay    { background: rgba(180,175,168,0.6); }
[data-theme="light"] #fluid-canvas     { opacity: 0.06; mix-blend-mode: multiply; }
[data-theme="light"] #connections-canvas { opacity: 0.12; filter: invert(1); }
[data-theme="light"] .hv-icon-invert   { filter: none; }
[data-theme="light"] .loader-name      { color: var(--white); }

/* ═══════════════════════════════════════════════════════
   EXPERIENCE & CERTIFICATIONS
═══════════════════════════════════════════════════════ */
#experience {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.exp-inner { max-width: 1200px; margin: 0 auto; }

.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 72px;
  align-items: start;
}

.exp-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Timeline ────────────────────── */
.exp-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border2) 70%, transparent);
}

.exp-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding-bottom: 34px;
}
.exp-item:last-child { padding-bottom: 0; }

.exp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--muted2);
  background: var(--surface);
  margin-top: 7px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}
.exp-dot--current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,184,154,.1);
}

.exp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s var(--ease);
}
.exp-card:hover { border-color: rgba(200,184,154,.3); }

.exp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.exp-company {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.exp-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.exp-type-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.exp-current-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  color: var(--accent2);
  background: rgba(74,124,89,.08);
  border: 1px solid rgba(74,124,89,.25);
}
.exp-role {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.exp-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exp-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 2px;
}
.exp-missions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin-top: 2px;
}
.exp-missions li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.exp-missions li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.exp-stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(200,184,154,.05);
  border: 1px solid rgba(200,184,154,.16);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ── Certifications ──────────────── */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s var(--ease);
}
.cert-card:hover { border-color: rgba(200,184,154,.3); }

.cert-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cert-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cert-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-badge--degree   { color: #c8a44a; background: rgba(200,164,74,.08); border: 1px solid rgba(200,164,74,.2); }
.cert-badge--language { color: var(--accent); background: rgba(200,184,154,.06); border: 1px solid rgba(200,184,154,.18); }
.cert-badge--online   { color: var(--accent2); background: rgba(74,124,89,.08); border: 1px solid rgba(74,124,89,.2); }

.cert-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.06em;
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.cert-date::before { content: '·'; margin-right: 12px; color: var(--border2); }

.cert-score {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cert-img {
  width: 100%;
  max-height: 164px;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.cert-img:hover { border-color: var(--accent); transform: scale(1.01); }

.cert-link-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 2px;
  width: fit-content;
  transition: color 0.25s, border-color 0.25s;
}
.cert-link-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 96px 24px; }
  #home { padding: 0 24px calc(72px + var(--nav-h)); }
  .hero-line { left: 80px; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 34px 24px; }
  .project-row { grid-template-columns: 48px 1fr; gap: 24px; }
  .project-tags, .project-status { display: none; }
  .skill-drawer-inner { grid-template-columns: 1fr; gap: 24px; }
  .modal-header, .modal-body { padding: 29px; }
  .exp-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   WEBGL FLUID CANVAS
═══════════════════════════════════════════════════════ */
#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* ── Hero background canvas ──────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 1.6s;
}
#hero-canvas.ready { opacity: 1; }

/* ── Connections canvas (skills bg) ──────────────── */
#connections-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Char reveal animation ───────────────────────── */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.15em) skewX(6deg);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.char.revealed {
  opacity: 1;
  transform: translateY(0) skewX(0deg);
}
/* italic chars in Ziani keep their style */
em .char { font-style: italic; }

/* ═══════════════════════════════════════════════════════
   HERO CURSOR HINT (desktop only)
═══════════════════════════════════════════════════════ */
.hero-cursor-hint {
  position: absolute;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2.4s forwards;
  pointer-events: none;
  user-select: none;
}
.cursor-hint-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(200,184,154,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: hintPulse 2.8s ease-in-out infinite;
}
.cursor-hint-icon::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(200,184,154,0.1);
  animation: hintRipple 2.8s ease-in-out infinite;
}
.cursor-hint-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.7;
}
.cursor-hint-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
@keyframes hintPulse {
  0%, 100% { border-color: rgba(200,184,154,0.2); }
  50%       { border-color: rgba(200,184,154,0.5); }
}
@keyframes hintRipple {
  0%        { transform: scale(1);   opacity: 0.6; }
  70%       { transform: scale(1.5); opacity: 0; }
  100%      { transform: scale(1.5); opacity: 0; }
}
/* Hide hint after first interaction + on mobile */
.hint-used .hero-cursor-hint { opacity: 0 !important; transition: opacity 0.6s; }
@media (max-width: 900px) {
  .hero-cursor-hint { display: none; }
}
