/* ════════════════════════════════════════════════
   OPCION 2 — Shared Styles
   Inter · #f5f5f5 bg · Gold accent · White cards
════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:          #f5f5f5;
  --white:       #ffffff;
  --gold:        #c9a96e;
  --gold-dark:   #a8813f;
  --gold-light:  #e8c98a;
  --gold-bg:     rgba(201,169,110,0.08);
  --text:        #1a1a1a;
  --text-muted:  #666666;
  --text-light:  #999999;
  --border:      rgba(0,0,0,0.08);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 32px rgba(0,0,0,0.1);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.14);
  --radius:      8px;
  --radius-lg:   16px;
  --ease:        cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(201,169,110,0.25); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── TYPOGRAPHY UTILS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  text-wrap: pretty;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  text-wrap: pretty;
  margin-top: 1rem;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-dark);
  transition: opacity 0.25s;
}
.nav-brand:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--gold-bg); }
.nav-links a:hover::after { width: 60%; }
.nav-links a.active { color: var(--gold-dark); font-weight: 600; }
.nav-links a.active::after { width: 60%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.25s;
}
.nav-toggle:hover { background: var(--gold-bg); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  z-index: 199;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.6rem 2rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.nav-drawer a:hover { color: var(--gold-dark); background: var(--gold-bg); }

/* ── 01 — HERO ── */
#inicio {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#inicio::before {
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 5rem;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border: 1px solid rgba(201,169,110,0.2);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  min-height: 1.6em;
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero-name span { color: var(--gold-dark); }
.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,129,63,0.35);
}
.btn-gold:active { transform: none; }
.btn-gold svg { width: 18px; height: 18px; }

/* Hero image frame — Ken Burns EFFECT 1 */
.hero-img-wrap { position: relative; }
.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
  background-color: #c8bba8;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-img-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #c8bba8;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-badge-stat {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
}
.badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon svg { width: 20px; height: 20px; color: var(--gold-dark); }
.badge-text { line-height: 1.2; }
.badge-num { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.badge-lbl { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

/* ── 02 — SOBRE MÍ ── */
#sobre-mi { background: var(--bg); }
.about-portrait { display: flex; justify-content: center; margin-bottom: 3.5rem; }
.about-portrait-img {
  width: 140px; height: 140px;
  border-radius: 50%;
  background-image: url('../../images/imagen_05.jpg');
  background-size: cover;
  background-position: center top;
  background-color: #c8bba8;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold), var(--shadow-md);
  flex-shrink: 0;
}
.section-head-wrap { position: relative; margin-bottom: 4rem; }
.section-ghost-num {
  position: absolute;
  top: -2.5rem; left: -0.5rem;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.section-head-content { position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.skills-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.skill { margin-bottom: 1.6rem; }
.skill:last-child { margin-bottom: 0; }
.skill-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.skill-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.skill-pct  { font-size: 0.78rem; font-weight: 600; color: var(--gold-dark); }
.skill-track { height: 6px; background: rgba(0,0,0,0.07); border-radius: 100px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 100px;
  width: 0;
  transition: width 1.2s var(--ease);
}

/* ── 03 — DIMENSIONES ── */
#dimensiones { background: var(--white); }
.dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.dim-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.dim-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-bg) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.dim-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,169,110,0.3); }
.dim-card:hover::before { opacity: 1; }
.dim-icon {
  width: 52px; height: 52px;
  background: var(--gold-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: background 0.35s;
}
.dim-card:hover .dim-icon { background: rgba(201,169,110,0.16); }
.dim-icon svg { width: 26px; height: 26px; color: var(--gold-dark); }
.dim-card-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.65rem; position: relative; }
.dim-card-desc  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.4rem; position: relative; text-wrap: pretty; }
.dim-card-link  {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: gap 0.3s var(--ease);
  position: relative;
}
.dim-card:hover .dim-card-link { gap: 0.7rem; }
.dim-card-link svg { width: 14px; height: 14px; }

/* ── 04 — TRAYECTORIA ── */
#trayectoria { background: var(--bg); }
.timeline {
  position: relative;
  margin-top: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 5%, var(--border) 95%, transparent);
  transform: translateX(-50%);
}
.tl-row { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; margin-bottom: 0; position: relative; }
.tl-left  { padding: 0 2.5rem 3rem 0; text-align: right; }
.tl-center { display: flex; flex-direction: column; align-items: center; position: relative; padding: 0.3rem 0 3rem; }
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.tl-row:hover .tl-dot { transform: scale(1.35); box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(201,169,110,0.35); }
.tl-right { padding: 0 0 3rem 2.5rem; text-align: left; }
.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  max-width: 100%;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tl-row:hover .tl-card { box-shadow: var(--shadow-md); border-color: rgba(201,169,110,0.25); }
.tl-year  { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 0.25rem; }
.tl-title { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.tl-desc  { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.55; text-wrap: pretty; }

/* ── 05 — GALERÍA ── */
#galeria { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 3.5rem;
}
.gallery-cell {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-bg {
  position: absolute; inset: 0;
  transition: transform 0.55s var(--ease);
}
.gallery-cell:hover .gallery-bg { transform: scale(1.06); }
.gallery-bg-1,
.gallery-bg-2,
.gallery-bg-3,
.gallery-bg-4,
.gallery-bg-5,
.gallery-bg-6 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c8bba8;
}
.gallery-bg-1 { background-image: url('../../images/imagen_01.jpg'); }
.gallery-bg-2 { background-image: url('../../images/imagen_02.jpg'); }
.gallery-bg-3 { background-image: url('../../images/imagen_03.jpg'); }
.gallery-bg-4 { background-image: url('../../images/imagen_04.jpg'); }
.gallery-bg-5 { background-image: url('../../images/imagen_05.jpg'); }
.gallery-bg-6 { background-image: url('../../images/imagen_06.jpg'); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,20,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.38s var(--ease);
  padding: 1.5rem;
  text-align: center;
}
.gallery-cell:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-title { font-size: 0.9rem; font-weight: 600; color: #fff; line-height: 1.3; }
.gallery-overlay-sub   { font-size: 0.7rem; color: rgba(255,255,255,0.65); letter-spacing: 0.1em; text-transform: uppercase; }
.gallery-view-icon {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.gallery-view-icon svg { width: 16px; height: 16px; color: white; }

/* ── 06 — CONTACTO ── */
#contacto { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.2rem; }
.form-group:last-of-type { margin-bottom: 1.6rem; }
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none;
  resize: none;
}
input:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
textarea { min-height: 110px; }
.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(201,169,110,0.28);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168,129,63,0.32); }
.btn-submit:active { transform: none; }
.btn-submit span { position: relative; z-index: 1; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(201,169,110,0.07);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  margin-top: 1rem;
}
.form-success.show { display: block; }
.form-success p { font-size: 0.9rem; font-weight: 500; color: var(--gold-dark); }

.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(145deg, #e0ddd8 0%, #d0cec8 50%, #c4c0b8 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 28px);
}
.map-pin {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(201,169,110,0.5);
  position: relative; z-index: 1;
}
.map-pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.map-label {
  position: relative; z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  background: rgba(255,255,255,0.75);
  padding: 0.35rem 1rem;
  border-radius: 100px;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  width: 38px; height: 38px;
  background: var(--gold-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201,169,110,0.18);
}
.info-icon svg { width: 18px; height: 18px; color: var(--gold-dark); }
.info-text strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.info-text span   { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: #1a1a1a;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-size: 0.88rem; font-weight: 600; color: var(--gold); letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: #888888; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: #666666; width: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 0.5rem; }

/* ── KEYFRAMES & EFFECTS ── */

/* EFFECT 1: Ken Burns */
@keyframes kenBurns {
  0%   { transform: scale(1.0) translateZ(0); }
  100% { transform: scale(1.08) translateZ(0); }
}

/* EFFECT 4: Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.85em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* EFFECT 3: Fade-in reveals */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-img-wrap { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-badge-stat { bottom: -1rem; left: -0.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .dim-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .tl-row { grid-template-columns: 40px 1fr; }
  .tl-left { display: none; }
  .tl-left.tl-has-content { display: block; grid-column: 2; text-align: left; }
  .tl-center { align-items: flex-start; }
  .tl-right { padding-left: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  section { padding: 5rem 0; }
  .nav-inner { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  .hero-inner { padding: 0 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dim-grid { gap: 1rem; }
  footer { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, .fade-in, .skill-fill, .hero-img-bg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .skill-fill { width: var(--tw) !important; }
  .tw-cursor  { animation: none !important; }
}
