/* ============================================================
   CODELAB.SH — Platform Stylesheet
   W&M · Antonio Mastropaolo
   Design: Light academic with W&M Forest Green + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* W&M Brand */
  --wm-green:      #115740;
  --wm-green-dark: #0A3A28;
  --wm-green-mid:  #1A6B4A;
  --wm-green-mist: #EDF4F0;
  --wm-gold:       #B9975B;
  --wm-gold-light: #D4B07A;
  --wm-gold-pale:  #FBF5EB;

  /* Platform Palette */
  --bg:        #F7F8F6;
  --surface:   #FFFFFF;
  --text:      #111827;
  --text-2:    #4B5563;
  --text-3:    #9CA3AF;
  --border:    #E5E7EB;
  --border-md: #D1D5DB;

  /* Semantic */
  --primary:      var(--wm-green);
  --primary-dark: var(--wm-green-dark);
  --accent:       var(--wm-gold);

  /* Sizing */
  --nav-h:    68px;
  --radius:   12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Typography ---- */
.serif { font-family: 'Playfair Display', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', monospace; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
p  { color: var(--text-2); font-size: 1rem; line-height: 1.7; }

.lead { font-size: clamp(1rem, 2.5vw, 1.15rem); line-height: 1.75; }

/* ---- Layout ---- */
.container { width: 100%; padding: 0 clamp(24px, 5vw, 8%); }
.container-sm { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 8%); }
.hero-content-width { max-width: 720px; }

/* ---- Navigation ---- */
.platform-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--wm-green-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  height: 100%; width: 100%; padding: 0 clamp(24px, 5vw, 8%);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 32px);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: #FFFFFF; letter-spacing: -0.01em; white-space: nowrap;
}
.nav-logo .logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.nav-logo .logo-mark svg { width: 34px; height: 34px; }

/* Animated logo paths */
.nav-logo .logo-mark svg .logo-left {
  stroke-dasharray: 22; stroke-dashoffset: 22;
  animation: draw-bracket 0.6s ease-out 0.2s forwards, bracket-glow 4s ease-in-out 1.5s infinite;
}
.nav-logo .logo-mark svg .logo-right {
  stroke-dasharray: 22; stroke-dashoffset: 22;
  animation: draw-bracket 0.6s ease-out 0.4s forwards, bracket-glow 4s ease-in-out 1.8s infinite;
}
.nav-logo .logo-mark svg .logo-slash {
  stroke-dasharray: 20; stroke-dashoffset: 20;
  animation: draw-slash 0.5s ease-out 0.7s forwards, slash-pulse 4s ease-in-out 2s infinite;
}
.nav-logo .logo-mark svg .logo-cursor {
  opacity: 0;
  animation: cursor-blink 1s step-end 1.2s 3, cursor-fade 0.4s ease-out 4.2s forwards;
}
@keyframes draw-bracket {
  to { stroke-dashoffset: 0; }
}
@keyframes draw-slash {
  to { stroke-dashoffset: 0; }
}
@keyframes bracket-glow {
  0%, 100% { stroke: #B9975B; filter: drop-shadow(0 0 0 transparent); }
  50% { stroke: #D4B97A; filter: drop-shadow(0 0 3px rgba(185,151,91,0.4)); }
}
@keyframes slash-pulse {
  0%, 100% { stroke: rgba(255,255,255,0.55); }
  50% { stroke: rgba(255,255,255,0.85); }
}
@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes cursor-fade {
  to { opacity: 0; }
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.72);
  transition: all 0.2s; letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { color: var(--wm-gold-light); background: rgba(185,151,91,0.12); }
.nav-right {
  display: flex; align-items: center; gap: 12px;
}
.nav-instructor {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nav-instructor::before { content: ''; width: 1px; height: 18px; background: rgba(255,255,255,0.15); }

/* ---- Year Selector ---- */
.year-selector {
  position: relative; display: inline-flex;
}
.year-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600; font-family: 'Inter', sans-serif;
  background: rgba(185,151,91,0.12); color: var(--wm-gold-light);
  border: 1px solid rgba(185,151,91,0.25);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.year-pill:hover { background: rgba(185,151,91,0.2); }
.year-pill .caret { font-size: 0.55rem; opacity: 0.6; }
.year-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px; z-index: 200; overflow: hidden;
}
.year-selector.open .year-dropdown { display: block; }
.year-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 0.78rem; color: var(--text);
  text-decoration: none; transition: background 0.15s;
}
.year-option:hover { background: var(--wm-green-mist); }
.year-option.current { font-weight: 600; color: var(--wm-green); }
.year-option .yr-badge {
  font-size: 0.62rem; padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.year-option.current .yr-badge { background: rgba(17,87,64,0.08); color: var(--wm-green); }
.year-option:not(.current) .yr-badge { background: rgba(185,151,91,0.1); color: #8B6914; }

/* Archive banner */
.archive-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 20px; padding-top: calc(var(--nav-h) + 10px);
  background: rgba(185,151,91,0.1);
  border-bottom: 1px solid rgba(185,151,91,0.2);
  font-size: 0.82rem; color: #8B6914;
}
.archive-banner a {
  color: var(--wm-green); font-weight: 600; text-decoration: none;
}
.archive-banner a:hover { text-decoration: underline; }

/* ---- Section Labels ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--wm-gold);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--wm-gold); border-radius: 2px; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.tag-green  { background: rgba(17,87,64,0.10);  color: #0E6B48;         border: 1px solid rgba(17,87,64,0.25); }
.tag-gold   { background: rgba(185,151,91,0.12); color: #8B6914;        border: 1px solid rgba(185,151,91,0.35); }
.tag-blue   { background: #EEF2FF;              color: #4338CA;         border: 1px solid #C7D2FE; }
.tag-purple { background: #F3F0FF;              color: #6D28D9;         border: 1px solid #D8D0FE; }
.tag-teal   { background: #ECFDF8;              color: #0F766E;         border: 1px solid #86EFCE; }
.tag-rose   { background: rgba(244,63,94,0.10); color: #E11D48;        border: 1px solid rgba(244,63,94,0.25); }
.tag-red    { background: #FEF2F2;              color: #DC2626;         border: 1px solid #FECACA; }
.tag-amber  { background: #FFFBEB;              color: #B45309;         border: 1px solid #FDE68A; }
.tag-cyan   { background: #ECFEFF;              color: #0E7490;         border: 1px solid #A5F3FC; }
.tag-indigo { background: #EEF2FF;              color: #3730A3;         border: 1px solid #A5B4FC; }
.tag-slate  { background: #F1F5F9;              color: #475569;         border: 1px solid #CBD5E1; }
.tag-special {
  background: linear-gradient(135deg, rgba(217,119,6,0.12), rgba(185,151,91,0.10));
  color: #92400E; border: 1px solid rgba(217,119,6,0.3);
  font-weight: 600; letter-spacing: 0.02em;
}
.tag-value {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  color: #065F46; border: 1px solid rgba(5,150,105,0.25);
  font-weight: 700; letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--wm-green); color: white; border-color: var(--wm-green);
}
.btn-primary:hover { background: var(--wm-green-mid); border-color: var(--wm-green-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(17,87,64,0.3); }
.btn-outline-white {
  background: transparent; color: white; border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-outline-green {
  background: transparent; color: var(--wm-green); border-color: var(--wm-green);
}
.btn-outline-green:hover { background: var(--wm-green); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-icon { font-size: 1rem; }

/* ---- Hero ---- */
.platform-hero {
  background: var(--wm-green-dark);
  padding: calc(var(--nav-h) + clamp(40px, 8vw, 80px)) 0 clamp(48px, 8vw, 100px);
  position: relative; overflow: hidden;
}
/* Subtle grid pattern */
.platform-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Gold accent line */
.platform-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wm-gold), var(--wm-gold-light), var(--wm-gold));
}

.hero-content { position: relative; z-index: 1; }
.hero-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.hero-meta .pill {
  background: rgba(185,151,91,0.18); border: 1px solid rgba(185,151,91,0.3);
  color: var(--wm-gold-light); padding: 5px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
}
.hero-meta .sep { color: rgba(255,255,255,0.2); }
.hero-title { color: #FFFFFF; margin-bottom: 24px; }
.hero-title .italic { font-style: italic; color: var(--wm-gold-light); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem); color: rgba(255,255,255,0.65);
  max-width: 580px; margin-bottom: clamp(24px, 5vw, 40px); line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Featured Teaching Card ---- */
.featured-section {
  padding: 96px 0 80px;
  background: var(--surface);
}
.section-intro { margin-bottom: 48px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}
.feature-card-body { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.feature-card-tags { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.feature-card-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--text); margin-bottom: 16px; }
.feature-card-desc { font-size: 1rem; color: var(--text-2); line-height: 1.7; margin-bottom: 32px; }
.feature-card-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.meta-pair { display: flex; flex-direction: column; gap: 3px; }
.meta-key { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.meta-val { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.feature-card-visual {
  background: var(--wm-green-dark);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; gap: 16px;
  min-height: 360px;
}
.feature-card-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* Mini mock screens inside the visual */
.mock-screen {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 12px 16px;
  width: 100%; max-width: 260px;
  backdrop-filter: blur(4px);
}
.mock-screen-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.mock-screen-dot { width: 7px; height: 7px; border-radius: 50%; }
.mock-screen-title { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.mock-line { height: 7px; border-radius: 100px; margin-bottom: 5px; }
.mock-line:last-child { margin-bottom: 0; }

/* ---- Teaching Grid ---- */
.teaching-section {
  padding: 80px 0 96px;
  background: var(--bg);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none; display: block;
  cursor: pointer;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wm-green);
}
.module-card-bar {
  height: 5px;
}
.module-card-body { padding: 28px; }
.module-card-date {
  font-size: 0.72rem; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.module-card h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.module-card p { font-size: 0.88rem; line-height: 1.6; }
.module-card-footer {
  padding: 16px 28px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.module-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.module-tag {
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: var(--wm-green-mist); color: var(--wm-green);
  border: 1px solid rgba(17,87,64,0.15);
}
.module-cta {
  font-size: 0.8rem; font-weight: 600; color: var(--wm-green);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.module-cta .arrow { transition: transform 0.2s; }
.module-card:hover .arrow { transform: translateX(4px); }

/* Empty module card (placeholder) */
.module-card.empty {
  border-style: dashed; background: transparent;
  box-shadow: none; cursor: default;
}
.module-card.empty:hover { transform: none; box-shadow: none; border-color: var(--border); }
.module-card-empty-body {
  padding: 40px 28px; text-align: center;
}
.module-card-empty-body .empty-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.3; }
.module-card-empty-body p { font-size: 0.82rem; color: var(--text-3); }

/* ---- Projects Section ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 48px;
  position: relative; z-index: 1;
}
.project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  text-decoration: none; display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(185,151,91,0.35);
}
.project-card-top {
  height: 8px;
}
.project-card-body { padding: 24px; }
.project-semester {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wm-gold-light); margin-bottom: 10px;
}
.project-card h4 { color: #FFFFFF; margin-bottom: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; }
.project-card .project-desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 14px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tag {
  font-size: 0.65rem; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace;
}
.project-card-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
}
.project-authors { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.project-link-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.project-card:hover .project-link-arrow {
  background: var(--wm-gold); border-color: var(--wm-gold); color: var(--wm-green-dark);
}

/* Coming soon project card */
.project-card.coming-soon {
  border-style: dashed; background: rgba(255,255,255,0.02);
  cursor: default;
}
.project-card.coming-soon:hover { transform: none; background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.1); }

/* ---- About / Bio Section ---- */
.about-section {
  padding: 96px 0;
  background: var(--surface);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start;
}
.about-avatar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.about-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--wm-green-dark);
  border: 4px solid var(--wm-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700; color: var(--wm-gold-light);
  overflow: hidden;
  flex-shrink: 0;
}
.about-affiliation {
  text-align: center; font-size: 0.82rem; color: var(--text-3); line-height: 1.5;
}
.about-affiliation strong { color: var(--text); display: block; font-size: 1rem; font-family: 'Inter'; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.about-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--wm-green);
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.about-link:hover { background: var(--wm-green-mist); border-color: var(--wm-green); }

/* ── Footer ─────────────────────────────────────────────────── */
.platform-footer {
  background: var(--wm-green-dark);
  border-top: 2px solid var(--wm-gold);
  padding: 20px 0;
}
.platform-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.platform-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
}
.platform-footer .footer-brand {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.platform-footer .footer-brand span {
  color: var(--wm-gold-light);
}
.platform-footer .footer-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.platform-footer .footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.platform-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.platform-footer .footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: color 0.2s;
}
.platform-footer .footer-links a:hover {
  color: var(--wm-gold-light);
}
/* Project detail page footer */
.footer-grid, .footer-bottom { display: none; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0; gap: 32px; flex-wrap: wrap;
}
.footer-inner .footer-left { display: flex; align-items: center; gap: 12px; }
.footer-inner .footer-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.4; }
.footer-nav {
  display: flex; align-items: center; gap: 24px;
  list-style: none; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.footer-nav a:hover { color: var(--wm-gold-light); }

/* ---- Teaching Page specific ---- */
.teaching-hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 80px)) 0 clamp(48px, 8vw, 80px);
  background: var(--wm-green-dark);
  border-bottom: 4px solid var(--wm-gold);
  position: relative; overflow: hidden;
}
.teaching-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.teaching-hero h1 { color: #FFFFFF; }
.teaching-hero p { color: rgba(255,255,255,0.6); }

/* ---- Projects Page specific ---- */
.projects-page-hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 80px)) 0 clamp(48px, 8vw, 80px);
  background: var(--wm-green-dark);
  border-bottom: 4px solid var(--wm-gold);
  position: relative; overflow: hidden;
}
.projects-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.projects-page-hero h1 { color: #FFFFFF; }
.projects-page-hero p { color: rgba(255,255,255,0.6); }

/* Semester divider */
.semester-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 56px 0 28px;
}
.semester-divider h3 {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; min-width: 0;
}
.semester-divider::before, .semester-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.semester-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  background: var(--wm-green-mist); color: var(--wm-green);
  border: 1px solid rgba(17,87,64,0.2);
}

/* Tabs (filter) */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 8px 20px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all 0.2s;
}
.filter-tab.active { background: var(--wm-green); color: white; border-color: var(--wm-green); }
.filter-tab:hover:not(.active) { border-color: var(--wm-green); color: var(--wm-green); }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.text-white { color: #FFFFFF; }
.text-gold { color: var(--wm-gold-light); }
.gap-grid { display: grid; gap: 24px; }

/* ---- Animations ---- */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: slideUp 0.5s ease both; }
.animate-up-1 { animation-delay: 0.1s; }
.animate-up-2 { animation-delay: 0.2s; }
.animate-up-3 { animation-delay: 0.3s; }

/* ---- Back link (inside vibe coding pages) ---- */
.platform-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  padding: 10px 0;
  position: relative; z-index: 1;
}
.platform-breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.platform-breadcrumb a:hover { color: var(--wm-gold-light); }
.platform-breadcrumb .sep { color: rgba(255,255,255,0.2); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .feature-card { grid-template-columns: minmax(0, 1fr); }
  .feature-card-visual { min-height: 240px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-avatar-wrap { flex-direction: row; }
}
@media (max-width: 640px) {
  h1 { font-size: 2.4rem; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-instructor { display: none; }
  .platform-footer .footer-row { flex-direction: column; text-align: center; gap: 12px; }
  .platform-footer .footer-left { flex-wrap: wrap; justify-content: center; }
  .platform-footer .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-inner .footer-left { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .feature-card-body { padding: 28px; }
  .feature-card-visual { min-height: 180px; padding: 32px 20px; }
  .feature-card-meta { gap: 16px; }
  .module-card-body { padding: 20px; }
  .module-card-footer { padding: 12px 20px 16px; }
  .project-card-body { padding: 18px; }
  .project-card-footer { padding: 10px 18px 14px; }
  .about-avatar { width: 120px; height: 120px; font-size: 2.6rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .btn-sm { padding: 8px 16px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 16px; }
  .platform-hero { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .teaching-hero { padding: calc(var(--nav-h) + 24px) 0 24px; }
  .projects-page-hero { padding: calc(var(--nav-h) + 24px) 0 24px; }
  .hero-meta { gap: 8px; font-size: 0.75rem; margin-bottom: 20px; }
  .lead { font-size: 0.92rem; }
  .feature-card-body { padding: 20px; }
  .feature-card-desc { font-size: 0.88rem; margin-bottom: 20px; }
  .feature-card-visual { min-height: 140px; padding: 24px 16px; }
  .about-grid { gap: 24px; }
  .about-avatar { width: 100px; height: 100px; font-size: 2.2rem; }
  .about-avatar-wrap { flex-direction: column; align-items: center; }
  .about-links { gap: 8px; }
  .about-link { font-size: 0.78rem; padding: 7px 12px; }
  .module-grid { gap: 16px; }
  .project-grid { gap: 16px; }
  .eyebrow { font-size: 0.65rem; margin-bottom: 10px; }
  .semester-divider { gap: 10px; }
  .semester-divider::before, .semester-divider::after { display: none; }
  .semester-divider h3 { white-space: normal; text-align: center; font-size: 0.72rem; }
}

/* ---- Large Screens ---- */
@media (min-width: 1800px) {
  .container { padding: 0 10%; }
}
@media (min-width: 2400px) {
  .container { padding: 0 12%; }
}
