/* ============================================================
   SHARED STYLESHEET — used by every page
   ============================================================
   To change colors or fonts site-wide, edit the variables in
   the :root block below.
   ============================================================ */

:root {
  --bg-light: #e9ebee;
  --bg-dark: #1a1d22;
  --bg-mid: #4a4d52;
  --text-dark: #1a1d22;
  --text-light: #f5f6f8;
  --text-muted: #8a8d92;
  --accent: #2d2a8c;     /* deep indigo for stat boxes */
  --accent-hot: #ff6b35; /* highlight for box-office / awards */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
}

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

/* ============================================================
   TOP NAVIGATION BAR — appears on every page
   ============================================================ */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1.2rem 3rem;
  background: var(--bg-mid);
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
nav.topnav a {
  opacity: 0.85;
  transition: opacity 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.topnav a:hover {
  opacity: 1;
  border-bottom-color: var(--text-light);
}
nav.topnav a.active {
  opacity: 1;
  border-bottom-color: var(--text-light);
}

/* ============================================================
   HERO / ABOUT SECTION (used on index.html)
   ============================================================ */
section.hero {
  background: var(--bg-mid);
  color: var(--text-light);
  padding: 3rem 3rem 6rem;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   ISOMETRIC NAME BLOCK — the open 3D bracket framing the name
   ============================================================
   To resize: change max-width and min-height below.
   To change line thickness: edit stroke-width in .iso-frame line
   To change line color: edit stroke color in .iso-frame line
   ============================================================ */
.iso-name-block {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: 150px;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 2rem 6rem;
}
.iso-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.iso-frame line {
  stroke: #787878;
  stroke-width: 9;
  stroke-linecap: round;
  fill: none;
}
.iso-name-text {
  position: relative;
  z-index: 1;
  text-align: left;
}
.iso-name-text h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-light);
}
.iso-name-text .subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.6rem;
  color: var(--text-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  align-items: start;
}
.hero-photo {
  width: 280px;
  height: 340px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.hero-bio {
  font-size: 1.05rem;
  line-height: 1.6;
  padding-top: 0.5rem;
}
.hero-bio p { margin-bottom: 1rem; }

.section-jump {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.section-jump span { display: block; margin-top: 0.3rem; font-size: 1.2rem; }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section.content { padding: 4rem 3rem; }
section.content.light { background: var(--bg-light); color: var(--text-dark); }
section.content.dark  { background: var(--bg-dark);  color: var(--text-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  line-height: 1;
}
.section-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 2rem 0 1.5rem;
}

/* ============================================================
   RESEARCH / PUBLICATIONS LIST
   ============================================================ */
.pub-list { max-width: 1000px; }
.pub {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.pub-num {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 0.15rem;
}
.pub-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.pub-authors { font-size: 0.95rem; margin-bottom: 0.3rem; }
.pub-authors strong { font-weight: 700; }
.pub-status {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  font-style: italic;
}

/* ============================================================
   TEACHING SECTION
   ============================================================ */
.teaching-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.teaching-row:last-of-type { border-bottom: none; }
.teaching-date {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.teaching-date .year { font-size: 1.4rem; display: block; }
.course-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.course-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.rating-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.rating {
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  padding: 0.4rem 0.9rem;
  line-height: 1;
}
.rating-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================================
   SELECTED CLASS ACTIVITIES — photo cards with overlay text
   ============================================================
   To change number of columns: edit grid-template-columns
   To change card height: edit min-height in .activity-card
   To make overlay darker/lighter: edit the rgba() in the
     ::before pseudo-element below
   ============================================================ */
.activities-title {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.activity-card {
  position: relative;
  min-height: 280px;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #2a2d32;   /* shows if image fails to load */
  cursor: default;
  transition: transform 0.3s ease;
}
.activity-card:hover {
  transform: translateY(-4px);
}
.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.activity-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: var(--text-light);
  z-index: 1;
}
.activity-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.activity-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.92;
}

.testimonials {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 3rem;
  margin: 4rem -3rem -4rem;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  font-weight: 900;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

/* ===== Carousel ===== */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-viewport {
  overflow: hidden;
  flex: 1;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.testimonial-track .testimonial {
  flex: 0 0 100%;
  padding: 1rem 2rem;
}
.testimonial p {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 5rem;
}
.testimonial-source {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}
.testimonial-source strong { display: block; margin-top: 0.4rem; }

.carousel-arrow {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.testimonial-dots .dot:hover { background: rgba(255,255,255,0.5); }
.testimonial-dots .dot.active {
  background: var(--text-light);
  transform: scale(1.2);
}

/* ============================================================
   INDUSTRY / EXPERIENCE SECTION
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
}
.industry-card .placeholder-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #2a2d32, #4a4d52);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.industry-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.industry-card .location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.stat-large {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0.5rem 0;
}
.stat-tag {
  color: var(--accent-hot);
  font-size: 0.85rem;
  font-weight: 700;
}

.small-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  opacity: 0.7;
}

/* ============================================================
   CV PAGE
   ============================================================ */
.cv-embed {
  max-width: 900px;
  margin: 0 auto;
}
.cv-embed object {
  width: 100%;
  height: 80vh;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cv-fallback {
  padding: 2rem;
  background: #fff;
  text-align: center;
}
.cv-fallback a { text-decoration: underline; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
footer {
  background: var(--bg-mid);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 2rem;
}
footer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
footer p { font-size: 0.9rem; line-height: 1.6; opacity: 0.85; }
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Page-content version of contact (the standalone contact page) */
.contact-card {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem;
  border-radius: 4px;
  text-align: center;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-card p { font-size: 1rem; line-height: 1.7; }
.contact-card a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  nav.topnav { padding: 1rem; gap: 1rem; font-size: 0.8rem; flex-wrap: wrap; }
  section.hero, section.content { padding: 2rem 1.5rem; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-photo { width: 140px; height: 170px; }
  .section-title { font-size: 2rem; }
  .teaching-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .activities-grid { grid-template-columns: 1fr; }
  .testimonials { margin: 3rem -1.5rem -2rem; padding: 3rem 1.5rem; }
  .iso-name-block { padding: 1.5rem 1.5rem 2rem 2.5rem; }
  .iso-name-text h1 { font-size: 1.8rem; }
  .testimonial-carousel { gap: 0.3rem; }
  .testimonial-track .testimonial { padding: 0.5rem 0.5rem; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
}
