/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #faf8f5;
  --bg-soft:     #f3ede6;
  --surface:     #ffffff;
  --border:      #e8ddd4;
  --text:        #2c2420;
  --text-muted:  #8a7a72;
  --accent:      #b87d8a;
  --accent-soft: #eddde0;
  --rose:        #9a5568;
  --rose-soft:   #f0d4da;
  --ink:         #3d2e28;
  --nav-h:       72px;
  --transition:  .35s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg:          #1a1512;
  --bg-soft:     #221d19;
  --surface:     #2a2320;
  --border:      #3d3330;
  --text:        #f0e8e0;
  --text-muted:  #9a8880;
  --accent:      #9a5568;
  --accent-soft: #2e1820;
  --rose:        #8b2040;
  --rose-soft:   #2a0e18;
  --ink:         #f0e8e0;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── CUSTOM CURSOR ──────────────────────────────────── */
body { cursor: none; }
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform .1s, width .25s, height .25s, background .25s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform .18s ease, width .25s, height .25s, opacity .25s;
  opacity: .5;
}
body.hovering #cursor { width: 16px; height: 16px; background: var(--rose); }
body.hovering #cursor-ring { width: 50px; height: 50px; opacity: .3; }

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: var(--rose-soft);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.1);
}
[data-theme="dark"] nav { background: #3a0d1e; }
[data-theme="dark"] nav.scrolled { border-color: #5a1530; }
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 500; letter-spacing: .04em;
  color: var(--rose);
}
[data-theme="dark"] .nav-logo { color: #fff; }
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem);
  list-style: none;
}
.nav-links a {
  font-size: .8rem; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rose);
  position: relative; padding-bottom: 2px;
  transition: color var(--transition);
}
[data-theme="dark"] .nav-links a { color: rgba(255,255,255,.7); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--rose);
  transition: width var(--transition);
}
[data-theme="dark"] .nav-links a::after { background: #fff; }
.nav-links a:hover { color: var(--ink); }
[data-theme="dark"] .nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
  width: 42px; height: 22px;
  background: rgba(154,85,104,.15);
  border: 1.5px solid rgba(154,85,104,.3);
  border-radius: 11px;
  position: relative;
  cursor: none;
  transition: background var(--transition), border-color var(--transition);
}
.theme-btn::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rose);
  transition: transform var(--transition), background var(--transition);
}
[data-theme="dark"] .theme-btn::after { transform: translateX(20px); background: #fff; }
[data-theme="dark"] .theme-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }

/* ── HERO ────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 8vw, 8rem) 4rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-deco {
  position: absolute; right: -6vw; top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--rose-soft) 0%, var(--accent-soft) 55%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}
.hero-deco-2 {
  position: absolute; left: -4vw; bottom: 5vh;
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .35; pointer-events: none;
}
.hero-eyebrow {
  font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 400; margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300; line-height: 1.05;
  color: var(--ink);
  max-width: 14ch;
  opacity: 0; animation: fadeUp .9s .4s forwards;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 2rem;
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted); max-width: 44ch;
  line-height: 1.75; font-weight: 300;
  opacity: 0; animation: fadeUp .9s .6s forwards;
}
.hero-cta {
  margin-top: 2.8rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s .8s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border-radius: 2px;
  cursor: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent); color: #fff;
  border: 1.5px solid var(--accent);
}
.btn-primary:hover { background: var(--rose); border-color: var(--rose); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeIn 1.2s 1.4s both;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s 1.6s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SECTION COMMONS ─────────────────────────────────── */
section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 8vw, 8rem); }
.section-label {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  margin-bottom: .9rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.15; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--rose); }
.divider {
  width: 48px; height: 1px;
  background: linear-gradient(to right, var(--accent), var(--rose));
  margin: 1.4rem 0 2.4rem;
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s, transform .7s;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── ABOUT ───────────────────────────────────────────── */
#about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.about-text p {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.85; color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.1rem;
}
.about-text p strong { color: var(--text); font-weight: 500; }
.skills-grid {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.8rem;
}
.skill-tag {
  padding: .35rem .9rem;
  font-size: .72rem; letter-spacing: .08em;
  border: 1px solid var(--border);
  border-radius: 2px; color: var(--text-muted);
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }
.about-portrait {
  position: relative;
  width: clamp(160px, 18vw, 240px);
  align-self: stretch;
}
.portrait-frame {
  width: 100%; height: 100%; aspect-ratio: unset;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--rose-soft) 100%);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-muted); font-style: italic;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.portrait-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 8px,
    var(--border) 8px, var(--border) 8.5px
  );
  opacity: .25;
}
.portrait-placeholder { position: relative; z-index: 1; text-align: center; }
.portrait-placeholder span { display: block; font-size: 2.5rem; margin-bottom: .5rem; opacity: .4; }
.portrait-deco {
  position: absolute; bottom: -1rem; right: -1rem;
  width: 80px; height: 80px;
  border: 1.5px solid var(--rose);
  border-radius: 50%; opacity: .3;
}

/* ── EXPERIENCE & EDUCATION ─────────────────────────── */
#experience { background: var(--bg); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin-top: 1rem;
}
.timeline-line {
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--rose), transparent);
  position: relative;
}
.timeline-line::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.timeline-col { display: flex; flex-direction: column; gap: 2rem; }
.timeline-col.right { margin-top: 3rem; }
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem 1.6rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(184,125,138,.1);
}
.card-type {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: .6rem;
}
.card-type.edu { color: var(--rose); }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 500; color: var(--ink);
  line-height: 1.3; margin-bottom: .3rem;
}
.card-company {
  font-size: .8rem; color: var(--text-muted); margin-bottom: .9rem;
}
.card-period {
  font-size: .7rem; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft);
  display: inline-block; padding: .2rem .6rem;
  border-radius: 2px; margin-bottom: .9rem;
}
.card-period.edu { color: var(--rose); background: var(--rose-soft); }
.card-desc {
  font-size: .82rem; color: var(--text-muted);
  line-height: 1.7; font-weight: 300;
}

/* ── PROJECTS ───────────────────────────────────────── */
#projects { background: var(--bg-soft); }
.projects-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.project-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(to right, var(--accent-soft), transparent);
  transition: width var(--transition);
  z-index: 0;
}
.project-item:hover::before { width: 100%; }
.project-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--border); position: relative; z-index: 1;
  transition: color var(--transition);
}
.project-item:hover .project-num { color: var(--accent); }
.project-info { position: relative; z-index: 1; }
.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 500; color: var(--ink);
  margin-bottom: .25rem;
  transition: color var(--transition);
}
.project-item:hover .project-name { color: var(--accent); }
.project-desc {
  font-size: .8rem; color: var(--text-muted);
  font-weight: 300; line-height: 1.6;
  max-width: 55ch;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .6rem;
}
.project-tag {
  font-size: .65rem; letter-spacing: .06em;
  padding: .15rem .5rem;
  border: 1px solid var(--border);
  border-radius: 2px; color: var(--text-muted);
}
.project-arrow {
  position: relative; z-index: 1;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.project-item:hover .project-arrow {
  border-color: var(--accent); color: var(--accent);
  transform: rotate(45deg);
}

/* ── PASSIONS ─────────────────────────────────────────── */
#passions { background: var(--bg); }
.passions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.passion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.passion-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--rose));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.passion-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184,125,138,.1);
}
.passion-card:hover::after { transform: scaleX(1); }
.passion-icon {
  font-size: 1.6rem; margin-bottom: 1rem;
  width: 52px; height: 52px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.passion-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500; color: var(--ink);
  margin-bottom: .6rem;
}
.passion-text {
  font-size: .82rem; color: var(--text-muted);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 1.5rem;
}
.passion-photo {
  margin-top: auto;
  padding-top: 0;
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-style: italic;
  overflow: hidden;
}
.passion-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Easter Egg card */
.passion-card.easter {
  border-style: dashed;
  cursor: none;
  align-self: start;
}
.easter-hint {
  font-size: .7rem; color: var(--text-muted);
  letter-spacing: .08em; margin-top: 1rem;
  opacity: .6;
}
.easter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .8rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rose);
  cursor: none;
  position: relative;
  transition: color var(--transition);
}
.easter-btn::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--rose-soft);
  transition: background var(--transition);
}
.easter-btn:hover { color: var(--accent); }
.easter-btn:hover::after { background: var(--accent-soft); }

[data-theme="dark"] .easter-btn { color: #c9a84c; }
[data-theme="dark"] .easter-btn::after { background: rgba(201,168,76,.25); }
[data-theme="dark"] .easter-btn:hover { color: #d4b96a; }
[data-theme="dark"] .easter-btn:hover::after {
  background: linear-gradient(to right, #c9a84c, #f0d080);
}

/* ── MINI-GAME MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,21,18,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  width: min(500px, 92vw);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none;
  font-size: 1.2rem; color: var(--text-muted); cursor: none;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--accent); }
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; margin-bottom: .5rem; color: var(--ink);
}
.modal-sub {
  font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 300;
}
#game-area { text-align: center; }
.word-display {
  display: flex; gap: .6rem; justify-content: center;
  margin: 1.5rem 0;
}
.letter-box {
  width: 44px; height: 52px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--ink);
  text-transform: uppercase;
  transition: all .3s;
}
.letter-box.correct { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.letter-box.present { background: var(--rose-soft); border-color: var(--rose); color: var(--rose); }
.letter-box.absent  { background: var(--bg-soft); border-color: var(--border); color: var(--text-muted); }
.game-keyboard {
  display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center;
  margin-top: 1rem;
}
.key-btn {
  padding: .5rem .7rem;
  border: 1px solid var(--border); border-radius: 2px;
  background: var(--bg-soft); color: var(--text);
  font-size: .78rem; font-weight: 500;
  cursor: none; transition: all .2s;
}
.key-btn:hover { border-color: var(--accent); color: var(--accent); }
.key-btn.wide { padding: .5rem 1rem; }
.game-msg {
  font-size: .82rem; color: var(--text-muted);
  min-height: 1.4rem; margin: .8rem 0;
}
.game-guesses { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .5rem; }
.guess-row { display: flex; gap: .6rem; justify-content: center; }

/* ── CONTACT / FOOTER ────────────────────────────────── */
#contact {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 8vw, 8rem);
  color: #f0e8e0;
}
.contact-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.contact-label {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1;
  color: #f0e8e0;
  margin-bottom: .5rem;
}
.contact-title em { font-style: italic; color: var(--accent); }
.contact-sub {
  font-size: .9rem; color: rgba(240,232,224,.5);
  font-weight: 300; max-width: 38ch; line-height: 1.8;
  margin-bottom: 2.8rem;
}
.contact-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 3.5rem;
}
.contact-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(240,232,224,.6);
  border-bottom: 1px solid rgba(240,232,224,.15);
  padding-bottom: 2px;
  cursor: none;
  transition: color var(--transition), border-color var(--transition);
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-link svg { width: 14px; height: 14px; fill: currentColor; }
.footer-bar {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,232,224,.1);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bar span {
  font-size: .72rem; color: rgba(240,232,224,.3); letter-spacing: .05em;
}

[data-theme="dark"] .passion-card.easter::after {
  background: linear-gradient(to right, #c9a84c, #f0d080);
}

/* ── DARK MODE FOOTER FIX ────────────────────────────── */
[data-theme="dark"] #contact {
  background: #0e0b09;
  color: #f0e8e0;
}
[data-theme="dark"] .contact-title { color: #f0e8e0; }
[data-theme="dark"] .footer-bar { border-top-color: rgba(240,232,224,.08); }

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}


/* ── HAMBURGER & MOBILE MENU ─────────────────────────── */
.hamburger { display: none; }
.mobile-menu { display: none; } /* hidden on desktop */

@media (max-width: 860px) {
  /* hide desktop nav links */
  .nav-links { display: none; }

  /* hamburger button */
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px; width: 32px; flex-shrink: 0;
  }
  .hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--rose);
    transition: all var(--transition);
  }
  [data-theme="dark"] .hamburger span { background: rgba(255,255,255,.8); }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* mobile dropdown */
  .mobile-menu {
    display: block;
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: var(--rose-soft);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }
  [data-theme="dark"] .mobile-menu {
    background: #3a0d1e;
    border-color: rgba(255,255,255,.08);
  }
  .mobile-menu.open {
    opacity: 1; pointer-events: all;
    transform: translateY(0);
  }

  /* logo inside mobile menu */
  .mobile-menu-header {
    display: flex; justify-content: center;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  [data-theme="dark"] .mobile-menu-header { border-color: rgba(255,255,255,.08); }
  .mobile-menu-header .logo-icon { width: 42px; height: 42px; }

  /* links */
  .mobile-menu ul { list-style: none; }
  .mobile-link {
    display: block; padding: .8rem 0;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--rose);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
  }
  [data-theme="dark"] .mobile-link {
    color: rgba(255,255,255,.75);
    border-color: rgba(255,255,255,.08);
  }
  .mobile-link:hover { color: var(--ink); }
  [data-theme="dark"] .mobile-link:hover { color: #fff; }
  .mobile-menu ul li:last-child .mobile-link { border-bottom: none; }
}
/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 860px) {
  /* ── no custom cursor on touch ── */
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }

  /* ── scroll indicator lower ── */
  #hero { padding-bottom: 10rem; }
  .hero-scroll { bottom: 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait {
    display: block;
    width: 100%;
    height: 280px;
    margin-top: 2rem;
    align-self: auto;
  }
  .portrait-frame { height: 100%; aspect-ratio: unset; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .timeline-col.right { margin-top: 0; }
  .project-item { grid-template-columns: 2.5rem 1fr auto; gap: 1rem; }
}
@media (max-width: 560px) {
  .contact-links { flex-direction: column; align-items: center; }
}