/* ── Queralt Prat-i-Pubill · Personal Site ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:      #F7F5F1;
  --fg:      #0D0D0D;
  --accent:  #B8976A;
  --muted:   #5E5A55;
  --subtle:  #D8D2C8;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img  { max-width: 100%; display: block; color: transparent; /* hide alt text on broken images */ }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Film grain overlay ──────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── Page transition — subtle fade only ──────────────────────── */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.page-veil.in { opacity: 1; pointer-events: all; }

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  transition: padding 0.4s var(--ease), background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Frosted glass nav on scroll — always legible */
nav.scrolled {
  padding: 16px 5vw;
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 1s 0.2s var(--ease) forwards;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links li:nth-child(1) a { animation-delay: 0.3s; }
.nav-links li:nth-child(2) a { animation-delay: 0.4s; }
.nav-links li:nth-child(3) a { animation-delay: 0.5s; }
.nav-links li:nth-child(4) a { animation-delay: 0.6s; }
.nav-links li:nth-child(5) a { animation-delay: 0.7s; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* White nav text on dark-hero inner pages (before scroll) */
body.dark-hero nav:not(.scrolled) .nav-logo,
body.dark-hero nav:not(.scrolled) .nav-links a {
  color: rgba(247, 245, 241, 0.9);
}
body.dark-hero nav:not(.scrolled) .nav-links a::after {
  background: rgba(247, 245, 241, 0.6);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 88svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.05em;
  user-select: none;
}

.hero-line {
  display: flex;
  justify-content: center;
  overflow: visible;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-line-1 { font-size: clamp(64px, 11vw, 180px); }
.hero-line-2 { font-size: clamp(32px, 5.5vw, 90px);  }

.hero-name .char {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  opacity: 0;
  transform: translateY(60px) rotate(3deg);
  will-change: transform, opacity;
  transition:
    opacity  1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
.hero-name .char.sp     { width: 0.35em; }
.hero-name .char.hyphen { position: relative; top: 0.08em; }
.hero-name .char.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.hero-sub {
  position: absolute;
  bottom: clamp(40px, 7vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.2s 2.5s var(--ease) forwards;
}
.hero-sub p {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  margin: 22px auto 0;
  animation: chevronFade 2.6s 3s ease-in-out infinite;
  opacity: 0;
}

/* ── Cursor star trail ───────────────────────────────────────── */
.cursor-star {
  position: fixed;
  pointer-events: none;
  color: var(--accent);
  line-height: 1;
  user-select: none;
  transform: translate(-50%, -50%);
  animation: star-rise 2.4s ease-out forwards;
  z-index: 9999;
}
@keyframes star-rise {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(1)   rotate(0deg);  }
  20%  { opacity: 0.65; }
  100% { opacity: 0;    transform: translate(calc(-50% + var(--dx)), calc(-50% - 55px)) scale(0.2) rotate(var(--rot)); }
}

/* ── Shared section styles ───────────────────────────────────── */
section { padding: clamp(48px, 6vw, 90px) 5vw; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--sans);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: clamp(28px, 4vw, 56px);
  color: var(--fg);
}

/* ── Reveal animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Full-bleed image ────────────────────────────────────────── */
.img-full {
  width: 100%;
  height: clamp(260px, 42vw, 560px);
  overflow: hidden;
  position: relative;
  background: var(--subtle);
}
.img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.img-full.visible img { transform: scale(1); }

.img-half {
  width: 100%;
  height: clamp(240px, 36vw, 460px);
  overflow: hidden;
  background: var(--subtle);
}
.img-half img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* ── Home intro ──────────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.intro-text p {
  font-size: clamp(16px, 1.8vw, 20px);
  font-family: var(--serif);
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1.5em;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { font-weight: 500; }

/* ── Nav cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
}
.card {
  position: relative;
  height: clamp(240px, 28vw, 360px);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.card-img {
  position: absolute;
  inset: 0;
  background: var(--subtle);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.85) saturate(0.8);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: background 0.5s var(--ease);
}
.card:hover .card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
.card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 3vw, 40px);
}
.card-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}
.card-arrow {
  display: inline-block;
  margin-top: 12px;
  width: 36px;
  height: 1px;
  background: var(--accent);
  position: relative;
  transition: width 0.4s var(--ease);
}
.card-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  transform: rotate(45deg);
}
.card:hover .card-arrow { width: 56px; }

/* ── Timeline ────────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--subtle);
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--subtle);
  position: relative;
  padding-left: clamp(20px, 3vw, 40px);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: clamp(36px, 4vw, 50px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  z-index: 1;
}
.timeline-no-line { padding-left: 0 !important; }
.timeline-no-line::before { display: none; }

.timeline-date {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 6px;
  line-height: 1.4;
}

.timeline-content h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--fg);
}
.timeline-content .org {
  font-family: var(--sans);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.timeline-content p {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}
.timeline-content .location {
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 8px;
  display: block;
}

/* ── Publication list ────────────────────────────────────────── */
.pub-list { list-style: none; }
.pub-item {
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--subtle);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-start: start;
}
.pub-year {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  color: var(--subtle);
  line-height: 1;
  padding-top: 4px;
}
.pub-content h3 {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--fg);
}
.pub-content .pub-meta {
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}
.pub-link {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.3s;
  display: inline-block;
}
.pub-link:hover { opacity: 0.6; }

/* ── Education cards ─────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.edu-card {
  border: 1px solid var(--subtle);
  padding: clamp(28px, 3vw, 44px);
  transition: border-color 0.3s, background 0.3s;
}
.edu-card:hover { border-color: var(--accent); background: rgba(184,151,106,0.03); }
.edu-card .year {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.edu-card h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 8px;
}
.edu-card .institution {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Language grid ───────────────────────────────────────────── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--subtle);
  margin-top: clamp(40px, 5vw, 60px);
}
.lang-item {
  background: var(--bg);
  padding: clamp(24px, 2.5vw, 36px);
}
.lang-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-style: italic;
  font-weight: 300;
  display: block;
  margin-bottom: 6px;
}
.lang-level {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Teaching stats bar ──────────────────────────────────────── */
.stats-section { padding-top: clamp(48px, 6vw, 90px); padding-bottom: 0; }
.stats-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  border-top: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
  padding: clamp(36px, 5vw, 64px) 0;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(24px, 4vw, 56px);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  display: block;
  margin-bottom: 10px;
}
.stat-word { font-size: clamp(28px, 3.8vw, 54px); }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: clamp(48px, 8vw, 80px);
  background: var(--subtle);
  justify-self: center;
}
.stats-note {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr; border-bottom: none; }
  .stat-block { border-bottom: 1px solid var(--subtle); padding: 28px 0; }
  .stat-divider { display: none; }
}

/* ── Teaching table ──────────────────────────────────────────── */
.teaching-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.teaching-stat {
  margin-bottom: 14px;
}
.teaching-stat .num {
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--fg);
  display: block;
}
.teaching-stat .label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* ── Speaking list ───────────────────────────────────────────── */
.speaking-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: clamp(16px, 2vw, 32px);
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--subtle);
  text-decoration: none;
  color: var(--fg);
  transition: background 0.2s;
}
.speaking-item:hover { background: rgba(184,151,106,0.04); }
.speaking-num {
  font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--muted);
}
.speaking-title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}
.speaking-meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── Horizontal image strip ──────────────────────────────────── */
.img-strip {
  display: grid;
  grid-template-columns: 3fr 2fr;
  height: clamp(240px, 32vw, 460px);
  gap: 2px;
  margin: 0 0 2px;
}
.img-strip .img-a, .img-strip .img-b {
  overflow: hidden;
  background: var(--subtle);
}
.img-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.img-strip.visible img { transform: scale(1.04) !important; }

/* ── Quote / pull text ───────────────────────────────────────── */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--fg);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 5vw, 80px) 5vw;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  padding: clamp(40px, 5vw, 60px) 5vw;
  border-top: 1px solid var(--subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 18px);
  font-style: italic;
  color: var(--fg);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Inner page hero ─────────────────────────────────────────── */
.page-hero {
  min-height: 38svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw clamp(36px, 5vw, 60px);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background: #1c1b19; /* dark fallback when image missing */
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(0.55);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 300;
  font-style: italic;
  color: rgba(247,245,241,0.92);
  line-height: 1.0;
  margin-bottom: 14px;
}
.page-hero .lead {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,245,241,0.5);
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes chevronFade {
  0%   { opacity: 0;    transform: rotate(45deg) translateY(-6px); }
  40%  { opacity: 0.65; transform: rotate(45deg) translateY(0);    }
  70%  { opacity: 0.65; transform: rotate(45deg) translateY(4px);  }
  100% { opacity: 0;    transform: rotate(45deg) translateY(8px);  }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(-5px); }
  50%       { transform: translateY(5px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(-2px) rotate(0.3deg); }
  50%       { transform: translateY(7px) rotate(-0.3deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .intro-grid,
  .teaching-intro { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .timeline-item::before { display: none; }
  .pub-item { grid-template-columns: 60px 1fr; }
  .speaking-item { grid-template-columns: 40px 1fr; }
  .speaking-meta { display: none; }
  .img-strip { grid-template-columns: 1fr; height: auto; }
  .img-strip .img-b { display: none; }
  nav { padding: 20px 5vw; }
  .hero-line-1 { font-size: clamp(52px, 14vw, 100px); }
  .hero-line-2 { font-size: clamp(26px, 7vw, 52px); }
}
