/* ============ Tokens — paleta corporativa navy + dorado ============ */
:root {
  --bg: #f6f7fa;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --text: #0b1a33;
  --text-muted: #4f5b74;
  --border: #e1e5ee;
  --navy: #0b2545;
  --navy-2: #123061;
  --accent: #b8872f;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(184, 135, 47, 0.14);
  --navy-soft: rgba(11, 37, 69, 0.06);
  --shadow: 0 20px 40px -22px rgba(11, 26, 51, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(11, 26, 51, 0.35);
  --radius: 16px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c16;
    --bg-alt: #0c1322;
    --surface: #101a2c;
    --text: #eef1f8;
    --text-muted: #96a1b8;
    --border: #202c44;
    --navy: #0d1c33;
    --navy-2: #16294a;
    --accent: #d9ac54;
    --accent-2: #6ea1fb;
    --accent-soft: rgba(217, 172, 84, 0.16);
    --navy-soft: rgba(217, 172, 84, 0.06);
    --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

::selection { background: var(--accent); color: #10151f; }

/* ============ Keyframes ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmerSweep {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}
@keyframes scrollCue {
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* ============ Intro screen (video de bienvenida) ============ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-active { overflow: hidden; }

.intro-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 20% 15%, rgba(184, 135, 47, 0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(29, 78, 216, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #060c18 100%);
}

.intro-content {
  width: 100%;
  max-width: 880px;
  text-align: center;
  animation: fadeUp 0.7s var(--ease) both;
}

.intro-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.intro-title {
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.intro-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.intro-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  background: #000;
}
.intro-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 560px) {
  .intro-content { max-width: 100%; }
  .intro-subtitle { margin-bottom: 18px; }
  .intro-actions { margin-top: 20px; }
}

/* ============ Progress bar ============ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
  transition: width 0.12s ease-out;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(11, 26, 51, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.8; }

.logo-mark {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(11, 37, 69, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 10px 22px -12px rgba(11, 37, 69, 0.6);
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-15deg);
  z-index: -1;
}
.nav-cta:hover::before { animation: shimmerSweep 0.9s ease; }
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(11, 37, 69, 0.7); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.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); }

/* ============ Buttons (todos con animación) ============ */
.btn {
  --btnY: -3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn span { position: relative; z-index: 2; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(var(--btnY)); }
.btn:hover span { transform: translateX(2px); }
.btn:active { transform: translateY(-1px) scale(0.97); }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-120%) skewX(-15deg);
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { animation: shimmerSweep 0.9s ease; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
  box-shadow: 0 14px 28px -12px rgba(11, 37, 69, 0.55);
}
.btn-primary:hover { box-shadow: 0 20px 36px -14px rgba(11, 37, 69, 0.65); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-lg); }

/* ripple de clic para cualquier botón */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}
.btn-ghost .ripple { background: rgba(184, 135, 47, 0.35); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(650px 420px at 88% 8%, var(--accent-soft), transparent 60%),
    radial-gradient(550px 420px at 6% 95%, rgba(29,78,216,0.10), transparent 60%),
    var(--bg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--navy-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(600px 500px at 70% 20%, #000, transparent 75%);
  animation: gridDrift 16s linear infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-anim {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.1s);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  animation: pulseRing 1.8s ease infinite;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: floatY 6s ease-in-out infinite;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(11,37,69,0.35));
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.photo-frame:hover img { transform: scale(1.05); }

.stat-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-chip strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}
.stat-chip span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stat-chip-1 { top: 8%; left: -8%; animation: floatY 5s ease-in-out infinite; animation-delay: 0.4s; }
.stat-chip-2 { bottom: 6%; right: -6%; animation: floatY 5.5s ease-in-out infinite; animation-delay: 0.9s; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.3s ease;
}
.scroll-cue:hover { border-color: var(--accent); }
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  animation: scrollCue 1.8s ease infinite;
}

/* ============ Sections ============ */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
  transition: width 0.8s var(--ease) 0.15s;
}
.section-title.in-view::after { width: 72px; }

.section-text {
  color: var(--text-muted);
  max-width: 68ch;
  font-size: 1.02rem;
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item { position: relative; }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.timeline-item:hover .timeline-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.timeline-org {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.timeline-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.timeline-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ Education ============ */
.edu-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 620px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.edu-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.edu-card:hover .edu-icon { transform: rotate(-8deg) scale(1.08); }
.edu-card h3 { font-size: 1.1rem; margin-bottom: 4px; }

/* ============ Certifications ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cert-card h3 {
  font-size: 1.02rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cert-card ul { display: flex; flex-direction: column; gap: 14px; }

.cert-card li { display: flex; flex-direction: column; gap: 2px; transition: transform 0.25s var(--ease); }
.cert-card li:hover { transform: translateX(4px); }
.cert-card li span { font-size: 0.92rem; font-weight: 500; }
.cert-card li small { font-size: 0.78rem; color: var(--text-muted); }

/* ============ Skills ============ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: default;
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--navy);
  background: var(--accent-soft);
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  .skill-pill:hover { color: var(--accent); }
}

/* ============ Awards ============ */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.award-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.award-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.award-card:hover .award-icon { transform: scale(1.2) rotate(8deg); }
.award-card p { font-weight: 600; margin-bottom: 10px; font-size: 0.97rem; }
.award-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
a.contact-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
a.contact-card:active { transform: translateY(-2px) scale(0.98); }

.contact-icon {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
a.contact-card:hover .contact-icon { transform: scale(1.12) rotate(-6deg); }

.contact-card strong { display: block; font-size: 0.95rem; }
.contact-card small { color: var(--text-muted); font-size: 0.85rem; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.back-to-top:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.back-to-top:active { transform: translateY(-1px) scale(0.94); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-anim { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-cue span, .photo-frame, .stat-chip, .pulse-dot, .hero-bg::after { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 280px; margin: 0 auto; }
  .stat-chip-1 { left: -4%; }
  .stat-chip-2 { right: -4%; }
}

@media (max-width: 760px) {
  .logo span.logo-full { display: none; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 116px; }
  .section { padding: 76px 0; }
  .logo { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .stat-chip { padding: 9px 12px; }
  .stat-chip strong { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
