/* ============================================================
   Illia Hudz — Portfolio
   Shared stylesheet for index.html, modules.html, about.html
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg:        #ffffff;   /* white */
  --bg-soft:   #f5f7fa;   /* subtle panel fill */
  --ink:       #16181a;   /* near-black */
  --ink-soft:  #4d5358;   /* muted body text */
  --ink-faint: #868d92;   /* captions, dates */
  --accent:    #4A6FA5;   /* slate blue */
  --accent-soft:#e7edf5;
  --on-accent: #ffffff;   /* text on accent-filled surfaces */
  --line:      #e6e8ec;   /* hairline borders */

  --display: "Playfair Display", Georgia, serif;
  --sans:    "DM Sans", system-ui, sans-serif;

  --maxw: 980px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #14161a;   /* near-black, cool */
  --bg-soft:   #1d2026;   /* raised panel */
  --ink:       #f1f2f4;   /* near-white */
  --ink-soft:  #b4b9c0;   /* muted body text */
  --ink-faint: #7e848c;   /* captions, dates */
  --accent:    #8aa9de;   /* lifted slate blue for contrast */
  --accent-soft:#232b3a;
  --on-accent: #11141a;   /* dark text on the light-blue accent */
  --line:      #2a2e37;   /* hairline borders */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { padding-block: clamp(4rem, 10vw, 7rem); }
section + section { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 2.5rem; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-soft); position: relative; padding-block: 0.25rem;
  transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Language toggle */
.lang-toggle {
  height: 38px; padding: 0 .85rem; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* Hamburger (mobile menu) toggle — hidden on desktop */
.nav-toggle { display: none; }
.nav-toggle svg { width: 19px; height: 19px; }

/* Mobile nav: collapse links into a dropdown */
@media (max-width: 640px) {
  .nav-right { gap: 0.6rem; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    border: 1px solid var(--line); border-radius: 999px; background: transparent;
    color: var(--ink-soft); cursor: pointer; transition: color .2s ease, border-color .2s ease;
  }
  .nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--pad);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .nav-links.open { max-height: 60vh; opacity: 1; pointer-events: auto; padding: 0.25rem var(--pad) 1rem; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 3rem; max-width: 560px; display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.contact-form input,
.contact-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0.7rem 0.85rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { justify-self: start; cursor: pointer; }
.form-status { margin: 0.25rem 0 0; font-size: 0.92rem; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.7rem 1.25rem; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(5rem, 16vw, 9rem) clamp(4rem, 10vw, 7rem); }
.hero h1 { font-size: clamp(2.75rem, 1.5rem + 6vw, 5.25rem); font-weight: 600; }
.hero .role {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); font-weight: 500;
  color: var(--accent); margin: 1.25rem 0 0.75rem;
}
.hero .tagline {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-soft);
  max-width: 36ch; line-height: 1.55; margin: 0 0 2.5rem;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Skills / pill groups ---------- */
.skill-group { margin-bottom: 2.25rem; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  font-size: 0.88rem; letter-spacing: 0.01em;
  padding: 0.42rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pill:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-left: 2.5rem; padding-bottom: 2.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-meta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.4rem;
}
.tl-item h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.tl-place { color: var(--ink-soft); }
.tl-place .accent { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-lead { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-family: var(--display); font-weight: 500; max-width: 24ch; margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list a, .contact-list span.row {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.15rem); color: var(--ink);
  transition: color .2s ease;
}
.contact-list a:hover { color: var(--accent); }
.contact-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* Contact card variant (about page) */
.contact-card {
  border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-soft); max-width: 460px;
}

/* ---------- Footer ---------- */
footer.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.02em;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ============================================================
   MODULES PAGE
   ============================================================ */
.page-head { padding-block: clamp(4rem, 12vw, 7rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.5rem); }
.page-head p { color: var(--ink-soft); max-width: 52ch; margin: 1rem 0 0; }

.controls { margin-bottom: 2.5rem; }
.search-box { position: relative; margin-bottom: 1.5rem; }
.search-box svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-faint); pointer-events: none;
}
.search-box input {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem 0.85rem 2.85rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box input::placeholder { color: var(--ink-faint); }
.search-box input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink-soft); cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.results-meta { font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 1.5rem; }

.module-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }

.module-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem;
  background: var(--bg); display: flex; flex-direction: column; gap: 0.65rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.module-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 24px -16px rgba(74,111,165,0.5);
}
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.module-badge {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft); padding: 0.28rem 0.6rem; border-radius: 4px;
}
.module-cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.module-card h3 { font-family: var(--display); font-size: 1.18rem; line-height: 1.2; }
.module-card .de-title { font-size: 0.78rem; color: var(--ink-faint); font-style: italic; margin: -0.25rem 0 0; }
.module-card p.desc { font-size: 0.9rem; color: var(--ink-soft); margin: 0.15rem 0 0; line-height: 1.55; }

.no-results {
  text-align: center; color: var(--ink-faint); padding: 3rem 0; font-size: 1rem;
}
.no-results.hidden { display: none; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { max-width: 60ch; }
.about-intro p { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); }
.about-intro p + p { margin-top: 1.25rem; }
.about-intro strong { color: var(--ink); font-weight: 600; }

/* "What I can offer" closing note */
.offer-note { color: var(--ink-soft); max-width: 60ch; margin: 1.6rem 0 0; }

/* Bio with photo */
.about-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 760px) { .about-layout { grid-template-columns: 260px 1fr; gap: 3.5rem; } }
.about-layout .about-intro { max-width: none; }

.photo {
  aspect-ratio: 4 / 5; width: 100%; border-radius: 6px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(74,111,165,0.06) 11px, rgba(74,111,165,0.06) 12px),
    var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center; gap: 0.6rem;
  color: var(--ink-faint); text-align: center;
}
.photo svg { width: 34px; height: 34px; color: var(--accent); opacity: 0.7; }
.photo span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

.lang-table { width: 100%; border-collapse: collapse; max-width: 520px; }
.lang-table th, .lang-table td { text-align: left; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); }
.lang-table th {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.lang-table td { color: var(--ink); }
.lang-table td.level { color: var(--accent); font-weight: 500; }
.lang-table tr:last-child td { border-bottom: 0; }

.hobby-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.85rem;
}
.hobby {
  border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1rem;
  display: flex; align-items: center; gap: 0.7rem; background: var(--bg);
  font-weight: 500; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.hobby:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.hobby .emoji { font-size: 1.4rem; line-height: 1; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.project-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem;
  background: var(--bg); display: flex; flex-direction: column; gap: 0.85rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.project-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(74,111,165,0.55);
}
.project-card .pj-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.project-card h2 { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin: 0.1rem 0 0; }
.project-card .pj-de { font-size: 0.82rem; color: var(--ink-faint); font-style: italic; margin: 0; }
.project-card p.pj-desc { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.6; flex: 1; }
.project-card .pills { margin-top: 0.1rem; }

.pj-tag {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px dashed var(--line); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.pj-tag svg { width: 13px; height: 13px; }

.project-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.project-links .btn { padding: 0.6rem 1.05rem; font-size: 0.85rem; }

.pj-shot {
  display: block; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; line-height: 0; margin: 0.2rem 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pj-shot:hover { border-color: var(--accent); box-shadow: 0 8px 24px -16px rgba(74,111,165,0.5); }
.pj-shot img { width: 100%; height: auto; display: block; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  z-index: 100; will-change: transform;
}

/* ---------- Hero: rotating word, entrance, scroll cue ---------- */
.rotator { color: var(--accent); display: inline-block; }
.rotator .word { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.rotator .word.swap { opacity: 0; transform: translateY(-0.3em); }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-stagger > * { opacity: 0; animation: riseIn .7s cubic-bezier(.2,.6,.2,1) forwards; }
.hero-stagger > *:nth-child(1) { animation-delay: .05s; }
.hero-stagger > *:nth-child(2) { animation-delay: .15s; }
.hero-stagger > *:nth-child(3) { animation-delay: .25s; }
.hero-stagger > *:nth-child(4) { animation-delay: .35s; }
.hero-stagger > *:nth-child(5) { animation-delay: .45s; }
.hero-stagger > *:nth-child(6) { animation-delay: .55s; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2.75rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  transition: color .2s ease;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { width: 16px; height: 16px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 3rem; }
.stat .num { font-family: var(--display); font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.7rem); font-weight: 600; line-height: 1; color: var(--ink); }
.stat .label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .55rem; }

/* ---------- Now / Currently strip ---------- */
.now-card { border-left: 2px solid var(--accent); padding: .25rem 0 .25rem 1.6rem; }
.now-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.now-list li { color: var(--ink-soft); }
.now-list .tag { color: var(--ink); font-weight: 500; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: .7rem; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Section dot nav (scrollspy) ---------- */
.dot-nav { position: fixed; right: 1.6rem; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: .9rem; }
.dot-nav a { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-faint); position: relative; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.dot-nav a:hover { border-color: var(--accent); transform: scale(1.25); }
.dot-nav a.active { background: var(--accent); border-color: var(--accent); }
.dot-nav a span {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: .72rem; letter-spacing: .03em; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line); padding: .15rem .55rem; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.dot-nav a:hover span { opacity: 1; }
@media (max-width: 860px) { .dot-nav { display: none; } }

/* ---------- Hover polish ---------- */
.pill { transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.pill:hover { transform: translateY(-2px); }
.contact-list a { transition: color .2s ease, transform .2s ease; }
.contact-list a:hover { transform: translateX(4px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .pill:hover, .module-card:hover, .hobby:hover, .theme-toggle:hover,
  .lang-toggle:hover, .contact-list a:hover, .dot-nav a:hover { transform: none; }
  body { transition: none; }
  .hero-stagger > * { animation: none; opacity: 1; }
  .scroll-cue svg, .pulse::after { animation: none; }
  .rotator .word { transition: none; }
}
