/* ============ Reset & Variables ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f4f0;
  --bg-alt: #efebe3;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --gold: #b3893f;
  --terracotta: #b1543a;
  --line: rgba(28, 26, 23, 0.12);
  --card-bg: #ffffff;
  --shadow: 0 20px 50px rgba(28, 26, 23, 0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Work Sans', 'Segoe UI', sans-serif;
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; border-radius: 12px; }

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

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  color: var(--ink);
}

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

/* ============ Dot Nav ============ */
.dotnav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 500;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink-soft);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.dot span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dot:hover span { opacity: 1; }
.dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

.menu-toggle {
  display: none;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 600;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ============ Sections ============ */
.section {
  position: relative;
  min-height: 100vh;
  padding: 7rem 8vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section:nth-of-type(even) { background: var(--bg-alt); }

.section-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

.sub-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ============ Decorative Shapes ============ */
.shape { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }

.shape-ring {
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.ring-1 { width: 420px; height: 420px; top: -140px; left: -140px; }
.ring-2 { width: 240px; height: 240px; bottom: 8%; left: 6%; border-color: rgba(179,137,63,0.35); }
.ring-3 { width: 320px; height: 320px; top: -80px; right: -100px; }
.ring-4 { width: 380px; height: 380px; bottom: -160px; right: -80px; }
.ring-5 { width: 260px; height: 260px; top: 5%; left: -100px; border-color: rgba(177,84,58,0.3); }
.ring-6 { width: 340px; height: 340px; top: -100px; right: 8%; }
.ring-7 { width: 300px; height: 300px; bottom: -120px; left: -80px; }
.ring-8 { width: 400px; height: 400px; top: -160px; left: 50%; }

.shape-blob {
  background: linear-gradient(135deg, rgba(179,137,63,0.18), rgba(177,84,58,0.12));
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  filter: blur(1px);
}
.blob-1 { width: 300px; height: 260px; bottom: -60px; right: 4%; animation: float 9s ease-in-out infinite; }
.blob-2 { width: 260px; height: 220px; top: 10%; right: -60px; animation: float 11s ease-in-out infinite reverse; }
.blob-3 { width: 280px; height: 240px; bottom: 6%; left: -60px; animation: float 10s ease-in-out infinite; }

.shape-square {
  border: 1.5px solid var(--line);
  transform: rotate(20deg);
}
.square-1 { width: 90px; height: 90px; top: 14%; right: 10%; animation: spin 22s linear infinite; }
.square-2 { width: 70px; height: 70px; bottom: 12%; right: 20%; animation: spin 18s linear infinite reverse; }

.shape-dot { border-radius: 50%; background: var(--gold); opacity: 0.5; }
.dot-a { width: 14px; height: 14px; top: 22%; right: 22%; animation: pulse 4s ease-in-out infinite; }
.dot-b { width: 9px; height: 9px; bottom: 30%; left: 30%; background: var(--terracotta); animation: pulse 5s ease-in-out infinite 1s; }
.dot-c { width: 16px; height: 16px; top: 20%; left: 12%; animation: pulse 4.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-14px, 18px) rotate(8deg); }
}
@keyframes spin { to { transform: rotate(380deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0.75; }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(28,26,23,0.25); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

/* ============ HERO ============ */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 700;
}
.hero h1 .accent { color: var(--terracotta); }

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

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

.hero-photo-frame {
  width: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--card-bg);
  transform: rotate(-2deg);
  transition: transform 0.4s;
}
.hero-photo-frame:hover { transform: rotate(0deg) scale(1.02); }
.hero-photo { aspect-ratio: 3/4; object-fit: cover; border-radius: 0; }

.stat-chip {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  perspective: 600px;
}
.chip-1 { top: -8%; left: -8%; color: var(--gold); }
.chip-2 { bottom: 6%; right: -10%; color: var(--terracotta); }
.chip-3 { top: 42%; left: -18%; width: 108px; height: 108px; font-size: 0.85rem; color: var(--ink); }

.chip-front, .chip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  backface-visibility: hidden;
  transition: transform 0.5s;
  border-radius: 50%;
}
.chip-back {
  transform: rotateY(180deg);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-chip:hover .chip-front, .stat-chip:focus .chip-front { transform: rotateY(-180deg); }
.stat-chip:hover .chip-back, .stat-chip:focus .chip-back { transform: rotateY(0deg); }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue-line {
  width: 1.5px;
  height: 36px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollline 1.8s ease-in-out infinite;
}
@keyframes scrollline {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  height: fit-content;
}
.about-headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--line);
}
.about-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1.2rem; }

.contact-list { text-align: left; display: flex; flex-direction: column; gap: 0.7rem; }
.contact-list li { display: flex; flex-direction: column; font-size: 0.92rem; }
.contact-list .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 600; }
.contact-list a:hover { color: var(--terracotta); }

.about-bio p { margin-bottom: 1.1rem; color: var(--ink-soft); }

.photo-collage { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.tilt { width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow); transition: transform 0.35s; border: 6px solid var(--card-bg); }
.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(4deg); }
.tilt-left:hover, .tilt-right:hover { transform: rotate(0deg) translateY(-6px); }

.timeline { background: var(--card-bg); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.timeline-track { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.timeline-node {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.timeline-node:hover, .timeline-node.active { border-color: var(--gold); transform: translateY(-4px); }
.node-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.node-year { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.node-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.node-detail {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s, opacity 0.4s;
}
.timeline-node.active .node-detail { max-height: 60px; opacity: 1; margin-top: 0.3rem; }

/* ============ TABS (Communication) ============ */
.tabs { background: var(--card-bg); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.tab-buttons { display: flex; gap: 2.5rem; border-bottom: 1.5px solid var(--line); position: relative; flex-wrap: wrap; }
.tab-btn {
  background: none;
  border: none;
  padding: 0.8rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
}
.tab-btn.active { color: var(--ink); }
.tab-underline {
  position: relative;
  height: 2px;
  margin-top: -1.5px;
  background: var(--gold);
  width: 140px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.35s;
}

.tab-panel { display: none; padding-top: 2rem; }
.tab-panel.active { display: block; animation: fadein 0.5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.panel-text p { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 720px; }

.panel-gallery { display: grid; gap: 1rem; }
.collage-4 { grid-template-columns: repeat(4, 1fr); }
.collage-3 { grid-template-columns: repeat(3, 1fr); }
.panel-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.panel-gallery img:hover { transform: scale(1.04) translateY(-4px); box-shadow: var(--shadow); z-index: 2; }

/* ============ AWARDS ============ */
.awards-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.award-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s;
}
.award-card:hover { transform: translateY(-6px) rotate(-1deg); }
.award-icon { color: var(--gold); font-size: 1.3rem; }
.award-card p { font-size: 0.95rem; font-weight: 500; }

.awards-photos { display: flex; flex-direction: column; gap: 1.2rem; }
.awards-photos img { box-shadow: var(--shadow); }

/* ============ BEYOND ============ */
.beyond-switch { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.switch-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.switch-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }

.beyond-panel { display: none; }
.beyond-panel.active { display: block; animation: fadein 0.5s ease; }
.beyond-panel p { margin-top: 1.5rem; max-width: 720px; color: var(--ink-soft); }

/* ============ RESEARCH ============ */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.research-text p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.research-gallery { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-bg);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: opacity 0.35s ease;
}
.gallery-img.fading { opacity: 0; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background 0.25s, transform 0.25s;
}
.gallery-arrow:hover { background: var(--ink); color: var(--bg); transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-dots { display: flex; gap: 0.6rem; }
.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.gallery-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }

/* ============ CONTACT ============ */
.contact { justify-content: center; align-items: center; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.contact-pill {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.92rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.contact-pill:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.footer-note { margin-top: 3rem; color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .research-grid, .awards-layout { grid-template-columns: 1fr; }
  .hero-photo-wrap { margin-top: 3rem; }
  .stat-chip { position: static; display: inline-flex; margin: 0.6rem 0.5rem 0 0; width: 84px; height: 84px; }
  .hero-photo-wrap { flex-direction: column; align-items: center; }
  .timeline-track { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .dotnav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 240px;
    background: var(--card-bg);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    padding: 6rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .dotnav.mobile-open { display: flex; transform: translateX(0); }
  .dot { width: auto; height: auto; border: none; align-self: flex-start; }
  .dot span { position: static; opacity: 1; background: none; color: var(--ink); font-size: 0.95rem; padding: 0; transform: none; text-transform: none; letter-spacing: normal; }
  .dot.active span { color: var(--gold); font-weight: 600; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .section { padding: 6rem 6vw; }
  .collage-4, .collage-3 { grid-template-columns: 1fr 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .photo-collage { flex-wrap: wrap; }
  .tab-buttons { gap: 1.4rem; }
}
