/* ═══════════════════════════════════════════════════════
   MARCELO AGUILAR PINO — Shared Stylesheet
   Dark Navy + Orange palette · Cormorant Garamond + Lato
═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  /* Backgrounds */
  --bg:        #0E1C35;
  --bg-2:      #0A1628;
  --bg-card:   #152340;
  --bg-card-2: #1A2B50;
  --bg-input:  rgba(255,255,255,0.05);

  /* Orange — primary accent */
  --orange:        #E8640F;
  --orange-dark:   #C4520C;
  --orange-light:  #F07A2A;
  --orange-faint:  rgba(232,100,15,0.12);
  --orange-border: rgba(232,100,15,0.35);

  /* Text */
  --white:  #ffffff;
  --muted:  rgba(255,255,255,0.60);
  --dimmer: rgba(255,255,255,0.32);

  /* Borders / dividers */
  --border: rgba(255,255,255,0.08);

  /* Motion */
  --ease:     cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-out: cubic-bezier(0.16,1,0.3,1);

  /* Per-page hero glow (overridden inline) */
  --hero-glow-color: rgba(232,100,15,0.12);
  --hero-glow-x: 50%;
  --hero-glow-y: 44%;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(232,100,15,0.30); color: var(--white); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--orange); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(14,28,53,0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.45s, border-color 0.45s, box-shadow 0.45s;
}
.site-nav.scrolled {
  background: rgba(10,22,40,0.97);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 2px 28px rgba(0,0,0,0.45);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-brand:hover { opacity: 0.7; }

.nav-list {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
}
.nav-list a {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}
.nav-list a:hover  { color: var(--white); }
.nav-list a.active { color: var(--orange-light); }
.nav-list a:hover::after  { width: 100%; }
.nav-list a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav-mobile a:hover { color: var(--orange-light); }

/* ═══════════════════════════════════════════════════════
   HERO — CINEMATIC (dark navy + photo)
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 6rem;
  background: var(--bg);
}

/* Photo layer — visible with dark overlay */
.hero-photo-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.38;
  z-index: 0;
  animation: kenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

/* Dark navy atmosphere overlay */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(14,28,53,0.62) 0%,
      rgba(14,28,53,0.28) 25%,
      rgba(14,28,53,0.28) 70%,
      rgba(14,28,53,0.82) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at var(--hero-glow-x) var(--hero-glow-y),
      var(--hero-glow-color) 0%,
      transparent 65%
    );
}

/* Orange cinematic bars */
.hero-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--orange-border) 30%, var(--orange-border) 70%, transparent 100%);
  opacity: 0;
  animation: fadeIn 1.4s 1.6s forwards;
}
.hero-bar--top    { top: 5%; }
.hero-bar--bottom { bottom: 5%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.35s forwards;
}

.hero-rule {
  width: 42px; height: 1px;
  background: var(--orange);
  margin: 0 auto 2.6rem;
  transform: scaleX(0);
  opacity: 0;
  animation: ruleIn 0.9s 0.55s var(--ease) forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.65s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--orange-light);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeUp 1s 0.82s forwards;
  min-height: 1.4em;
}

.hero-role {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.55rem 1.4rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 9%; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dimmer);
  opacity: 0;
  animation: fadeIn 1s 1.6s forwards;
}
.scroll-line {
  display: block;
  width: 1px; height: 0;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollDrop 2s 2.2s ease infinite;
}
@keyframes scrollDrop {
  0%   { height: 0;    opacity: 1; }
  100% { height: 44px; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   INDEX — PROFILE CARDS
═══════════════════════════════════════════════════════ */
.profiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.2rem 2.4rem 2.6rem;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  text-decoration: none;
  color: inherit;
  min-height: 40vh;
}
.profile-card:last-child { border-right: none; }

.pc-ghost {
  position: absolute;
  top: 1.6rem; right: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(232,100,15,0.1);
  user-select: none;
  transition: color 0.5s;
}
.profile-card:hover .pc-ghost { color: rgba(232,100,15,0.25); }

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-light) 50%, var(--orange-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 130%, rgba(232,100,15,0.08) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
}
.profile-card:hover { background: var(--bg-card-2); }
.profile-card:hover::before { transform: scaleX(1); }
.profile-card:hover::after  { opacity: 1; }

.pc-num { font-size: 0.55rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.9rem; }
.pc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; line-height: 1.25;
  color: var(--white); margin-bottom: 0.65rem; transition: color 0.4s;
}
.profile-card:hover .pc-title { color: var(--orange-light); }
.pc-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.65; margin-bottom: 2rem; }
.pc-cta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--white); transition: gap 0.4s var(--ease);
}
.profile-card:hover .pc-cta { gap: 1.1rem; }
.pc-cta-bar { display: block; width: 14px; height: 1px; background: var(--orange); transition: width 0.4s var(--ease); }
.profile-card:hover .pc-cta-bar { width: 24px; }

/* ═══════════════════════════════════════════════════════
   INDEX — BIO STRIP
═══════════════════════════════════════════════════════ */
.bio-strip {
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.bio-label { font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; }
.bio-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; line-height: 1.2; color: var(--white);
}
.bio-heading em { display: block; font-style: italic; color: var(--orange-light); }
.bio-rule { width: 38px; height: 1px; background: var(--orange); margin-top: 1.5rem; }
.bio-text { font-size: 0.88rem; color: var(--muted); line-height: 1.92; }
.bio-text p + p { margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════
   PROFILE PAGES — CONTENT SECTIONS
═══════════════════════════════════════════════════════ */
.section { padding: 7rem 4rem; background: var(--bg); }
.section--alt { background: var(--bg-2); }
.section-inner { max-width: 1120px; margin: 0 auto; }

.sec-head { display: grid; grid-template-columns: 88px 1fr; gap: 2.5rem; align-items: start; margin-bottom: 4.5rem; }
.sh-num { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 300; color: rgba(232,100,15,0.12); line-height: 1; user-select: none; }
.sh-eyebrow { font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.8rem; }
.sh-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1.12; color: var(--white); margin-bottom: 1.1rem; }
.sh-rule { width: 36px; height: 1px; background: var(--orange); }

.section-lead { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 1.65vw, 1.15rem); font-style: italic; color: var(--muted); line-height: 1.85; max-width: 700px; margin-bottom: 3.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.prose p { font-size: 0.88rem; color: var(--muted); line-height: 1.9; margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.8rem; }
.tag { font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-light); border: 1px solid var(--orange-border); padding: 0.35rem 0.82rem; transition: background 0.3s, border-color 0.3s; cursor: default; }
.tag:hover { background: var(--orange-faint); border-color: rgba(232,100,15,0.55); }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); margin-bottom: 4rem; }
.stat-cell { padding: 2rem; border-right: 1px solid var(--border); position: relative; }
.stat-cell:last-child { border-right: none; }
.stat-cell::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 1.1s var(--ease); }
.stat-cell.lit::before { width: 100%; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--white); line-height: 1; margin-bottom: 0.35rem; }
.stat-l { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Bullet list */
.bullet-list { list-style: none; }
.bullet-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; color: var(--muted); line-height: 1.68; }
.bullet-list li:first-child { border-top: 1px solid var(--border); }
.bullet-list li::before { content: ''; display: block; min-width: 16px; height: 1px; background: var(--orange); margin-top: 0.62em; flex-shrink: 0; }

/* Blockquote */
.blockquote { border-left: 2px solid var(--orange); padding: 1rem 0 1rem 2.2rem; margin: 3.5rem 0; }
.bq-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.05rem, 1.65vw, 1.25rem); font-style: italic; font-weight: 300; color: var(--white); line-height: 1.65; margin-bottom: 0.65rem; }
.bq-attr { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); }

/* 2×2 mini stats */
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.mini-stat { background: var(--bg-card); padding: 1.8rem 1.6rem; }
.mini-stat .stat-n { font-size: 2rem; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 4rem; background: var(--border); }
.photo-cell { aspect-ratio: 1; background: var(--bg-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; position: relative; overflow: hidden; transition: background 0.4s; }
.photo-cell::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(232,100,15,0.1) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s; }
.photo-cell:hover { background: var(--bg-card-2); }
.photo-cell:hover::before { opacity: 1; }
.photo-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: rgba(255,255,255,0.18); line-height: 1; transition: color 0.4s; position: relative; }
.photo-cell:hover .photo-num { color: rgba(232,100,15,0.6); }
.photo-label { font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dimmer); text-align: center; padding: 0 0.75rem; position: relative; }

/* ═══════════════════════════════════════════════════════
   PROFILE NAVIGATION
═══════════════════════════════════════════════════════ */
.profile-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: var(--bg-2); }
.pn-item { display: block; padding: 2.2rem 2rem; border-right: 1px solid var(--border); text-decoration: none; transition: background 0.35s; position: relative; }
.pn-item:last-child { border-right: none; }
.pn-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.pn-item:not(.pn-active):hover { background: var(--bg-card); }
.pn-item:not(.pn-active):hover::before { transform: scaleX(1); }
.pn-active { pointer-events: none; opacity: 0.4; }
.pn-num { font-size: 0.54rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.45rem; opacity: 0.7; }
.pn-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 400; color: var(--white); }
.pn-item:not(.pn-active):hover .pn-title { color: var(--orange-light); }

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════ */
.contact-section { padding: 5rem 4rem 7rem; max-width: 760px; margin: 0 auto; }
.contact-head { text-align: center; margin-bottom: 3.5rem; }
.contact-eyebrow { font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; }
.contact-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; line-height: 1.1; color: var(--white); }
.contact-rule { width: 38px; height: 1px; background: var(--orange); margin: 1.8rem auto; }
.contact-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
label { font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: 'Lato', sans-serif; font-size: 0.88rem; font-weight: 300;
  padding: 0.9rem 1.1rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,100,15,0.15); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.22); }
textarea { min-height: 130px; }

.btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange-light);
  font-family: 'Lato', sans-serif; font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  padding: 1rem 2.5rem; cursor: pointer;
  position: relative; overflow: hidden; transition: color 0.4s;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--orange); transform: translateX(-101%); transition: transform 0.45s cubic-bezier(0.77,0,0.175,1); }
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--white); }
.btn span { position: relative; z-index: 1; }

.form-confirm { display: none; text-align: center; padding: 2rem; border: 1px solid var(--orange-border); background: var(--orange-faint); }
.form-confirm.show { display: block; }
.form-confirm p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--orange-light); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 2rem 4rem; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; color: var(--orange-light); letter-spacing: 0.08em; }
.footer-copy { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--dimmer); }

/* ═══════════════════════════════════════════════════════
   KEYFRAMES & EFFECTS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ruleIn { to { transform: scaleX(1); opacity: 1; } }

/* 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.9em;
  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: Scroll-triggered reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.34s; }
.d4 { transition-delay: 0.46s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-nav { padding: 1.4rem 2.5rem; }
  .section  { padding: 6rem 2.5rem; }
  .bio-strip { padding: 5rem 2.5rem; gap: 3.5rem; }
  .site-footer { padding: 2rem 2.5rem; }
  .contact-section { padding: 4rem 2.5rem 6rem; }
}

@media (max-width: 860px) {
  .nav-list   { display: none; }
  .nav-toggle { display: flex; }
  .profiles { grid-template-columns: 1fr 1fr; border-top: none; }
  .profile-card { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 35vh; }
  .profile-card:nth-child(2) { border-right: none; }
  .bio-strip { grid-template-columns: 1fr; gap: 2.5rem; }
  .sec-head  { grid-template-columns: 1fr; gap: 0.6rem; }
  .sh-num    { font-size: 3.5rem; }
  .two-col   { grid-template-columns: 1fr; gap: 3rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-cell:nth-child(2) { border-right: none; }
  .stats-bar .stat-cell:nth-child(3) { border-top: 1px solid var(--border); grid-column: span 2; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-nav { grid-template-columns: 1fr 1fr; }
  .pn-item:nth-child(2) { border-right: none; }
  .pn-item:nth-child(3), .pn-item:nth-child(4) { border-top: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav { padding: 1.2rem 1.5rem; }
  .section  { padding: 5rem 1.5rem; }
  .bio-strip { padding: 4rem 1.5rem; }
  .profiles { grid-template-columns: 1fr; }
  .profile-card { border-right: 1px solid var(--border) !important; }
  .profile-nav { grid-template-columns: 1fr 1fr; }
  .btn { align-self: stretch; text-align: center; }
  .site-footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .contact-section { padding: 3rem 1.5rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-photo-bg { animation: none !important; }
  .tw-cursor { animation: none !important; }
}
