:root {
  --ink: #2e2729;
  --ink-soft: #655a5e;
  --rose-900: #6d3746;
  --rose-700: #9d5c6e;
  --rose-600: #ad6b7b;
  --rose-300: #ddb0b9;
  --rose-200: #ecd0d5;
  --rose-100: #f7e8ea;
  --cream: #fffaf5;
  --paper: #fffefd;
  --sage: #7d9284;
  --sage-light: #e4ece5;
  --gold: #b58b57;
  --line: #eadcdb;
  --shadow-sm: 0 8px 24px rgba(88, 54, 63, 0.08);
  --shadow-md: 0 20px 55px rgba(88, 54, 63, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 7% 8%, rgba(236, 208, 213, .38), transparent 23rem),
    radial-gradient(circle at 92% 18%, rgba(228, 236, 229, .55), transparent 27rem),
    var(--cream);
  color: var(--ink);
  font-family: Arial, Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--rose-900);
  color: #fff;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(157, 92, 110, .14);
  background: rgba(255, 250, 245, .9);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 32px rgba(88, 54, 63, .08); background: rgba(255,250,245,.97); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px 15px 15px 6px;
  background: linear-gradient(145deg, var(--rose-700), var(--rose-900));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 18px rgba(109, 55, 70, .2);
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 11px 15px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--rose-900); background: var(--rose-100); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--rose-100); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 999px; background: var(--rose-900); }

#main-content { min-height: 70vh; outline: none; }
.page { animation: page-in .45s ease both; }
.page-width { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tight { padding: 54px 0; }
.section-kicker, .eyebrow {
  margin: 0 0 12px;
  color: var(--rose-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-title {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-lead { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 72px 0 88px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -130px; top: 30px; background: rgba(236, 208, 213, .34); filter: blur(2px); }
.hero::after { width: 300px; height: 300px; left: -120px; bottom: -60px; background: rgba(228, 236, 229, .7); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(44px, 7vw, 90px); align-items: center; }
.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--ink);
}
.hero-copy h1 em { display: block; color: var(--rose-700); font-style: normal; }
.hero-copy .hero-subtitle { max-width: 660px; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--rose-900); color: #fff; box-shadow: 0 12px 24px rgba(109, 55, 70, .22); }
.button-secondary { border-color: var(--rose-300); background: rgba(255,255,255,.65); color: var(--rose-900); }
.button-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button svg { width: 18px; height: 18px; }

.profile-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(157, 92, 110, .22);
  border-radius: 36px 36px 36px 12px;
  background: rgba(255, 254, 253, .84);
  box-shadow: var(--shadow-md);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: -14px 30px auto auto;
  width: 78px;
  height: 28px;
  transform: rotate(4deg);
  background: rgba(221, 176, 185, .5);
  border: 1px solid rgba(157, 92, 110, .08);
}
.avatar-monogram {
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  margin-bottom: 28px;
  border-radius: 50% 50% 50% 18%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 24%),
    linear-gradient(145deg, var(--rose-200), #d8c3ba 52%, var(--sage-light));
  color: var(--rose-900);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.45);
}
.profile-card h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.profile-card .role { margin: 8px 0 24px; color: var(--rose-700); font-weight: 700; }
.profile-meta { display: grid; gap: 12px; margin: 0; }
.profile-meta div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.profile-meta dt { color: var(--ink-soft); font-size: 13px; }
.profile-meta dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }


.profile-card--featured {
  overflow: hidden;
}
.profile-card--featured::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 236, 229, .95) 0%, rgba(228, 236, 229, .2) 62%, transparent 72%);
}
.profile-photo-stack {
  position: relative;
  margin: -18px -18px 18px;
}
.profile-photo-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--rose-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(109, 55, 70, .1);
}
.profile-photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 92, 110, .12);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(247, 232, 234, .92), rgba(255, 255, 255, .98));
  box-shadow: var(--shadow-md);
}
.profile-photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.18);
}
.floating-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px 18px 18px 8px;
  background: linear-gradient(145deg, var(--rose-700), var(--rose-900));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 10px 20px rgba(109, 55, 70, .22);
}

.profile-photo-tag,
.floating-badge {
  display: none !important;
}
.profile-card--featured {
  padding: 18px 18px 30px;
}
.profile-card--featured h2 {
  font-size: 24px;
}
.intro-panel--home {
  align-items: stretch;
}
.quote-card--soft {
  background: linear-gradient(145deg, #8d5161, #6d3746);
}
.page-hero--about::before {
  content: "";
  position: absolute;
  left: 6%;
  bottom: -58px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(228, 236, 229, .58);
}
.intro-panel--about {
  align-items: start;
}
.about-visual {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 18px;
}
.about-photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(157, 92, 110, .18);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.about-photo-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 28px;
  left: 26px;
  top: 16px;
  z-index: 2;
  transform: rotate(-6deg);
  background: rgba(221, 176, 185, .55);
  border: 1px solid rgba(157, 92, 110, .1);
}
.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #faf5f3;
}
.about-photo-card figcaption {
  padding: 16px 18px 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.quote-card--mini {
  position: relative;
  top: auto;
  padding: 24px 24px 26px;
  border-radius: 24px;
}
.quote-card--mini blockquote {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.6;
}

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.65); }
.stat strong { display: block; color: var(--rose-900); font-size: 29px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 12px; }

.intro-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 44px; align-items: start; }
.quote-card {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 34px;
  border-radius: 28px 28px 8px 28px;
  background: var(--rose-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.quote-card .quote-mark { font-size: 64px; line-height: .7; color: var(--rose-300); }
.quote-card blockquote { margin: 24px 0 0; font-size: 21px; line-height: 1.55; font-weight: 700; }
.prose { max-width: 780px; }
.prose h2, .prose h3, .prose h4 { line-height: 1.25; color: var(--ink); }
.prose h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; }
.prose h3 { margin: 42px 0 14px; font-size: 24px; }
.prose h4 { margin: 28px 0 10px; font-size: 18px; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin: 8px 0; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 44px; }
.project-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card:nth-child(1), .project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(5), .project-card:nth-child(6) { grid-column: span 6; }
.project-card:hover { transform: translateY(-6px); border-color: var(--rose-300); box-shadow: var(--shadow-md); }
.project-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--card-wash, var(--rose-100));
  transition: transform .3s ease;
}
.project-card:hover::after { transform: scale(1.2); }
.project-index { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-index span:first-child { color: var(--rose-700); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.project-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--card-wash, var(--rose-100)); color: var(--rose-900); }
.project-icon svg { width: 23px; height: 23px; }
.project-card h3 { position: relative; z-index: 1; max-width: 520px; margin: 52px 0 14px; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; letter-spacing: -.028em; }
.project-card p { position: relative; z-index: 1; max-width: 540px; margin: 0; color: var(--ink-soft); }
.project-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--rose-900); font-size: 13px; font-weight: 800; }

.page-hero { position: relative; overflow: hidden; padding: 78px 0 64px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.page-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -120px; top: -120px; border-radius: 50%; background: var(--rose-100); }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(40px, 6vw, 78px); line-height: 1.03; letter-spacing: -.045em; }
.page-hero p { max-width: 700px; margin: 20px 0 0; color: var(--ink-soft); font-size: 18px; }
.page-number { display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid var(--rose-300); border-radius: 50% 50% 50% 18%; color: var(--rose-900); background: var(--paper); font-size: 42px; font-weight: 800; box-shadow: var(--shadow-sm); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; color: var(--ink-soft); font-size: 13px; }
.breadcrumbs a { color: var(--rose-700); text-decoration: none; font-weight: 700; }

.assignment-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 3; }
.overview-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.overview-card h3 { margin: 0 0 10px; color: var(--rose-900); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.overview-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.report-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 54px; align-items: start; }
.report-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,253,.92); box-shadow: var(--shadow-sm); }
.report-toc strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-700); }
.report-toc a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--ink-soft); font-size: 13px; text-decoration: none; transition: .2s ease; }
.report-toc a:hover { color: var(--rose-900); background: var(--rose-100); }
.report-content { min-width: 0; }
.report-section { scroll-margin-top: calc(var(--header-h) + 24px); margin-bottom: 70px; }
.report-section:last-child { margin-bottom: 0; }
.report-section > h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 42px); line-height: 1.16; letter-spacing: -.025em; }
.report-section > h3 { margin: 36px 0 16px; font-size: 23px; line-height: 1.3; }
.report-section > h4 { margin: 28px 0 12px; font-size: 18px; }
.report-section p { margin: 0 0 17px; color: var(--ink-soft); }
.report-section ul, .report-section ol { margin: 0 0 22px; padding-left: 23px; color: var(--ink-soft); }
.report-section li { margin: 9px 0; }
.report-section .lead-note { padding: 22px 24px; border-left: 4px solid var(--rose-700); border-radius: 0 14px 14px 0; background: var(--rose-100); color: var(--ink); }

.step-list { display: grid; gap: 20px; counter-reset: steps; }
.step-card { position: relative; padding: 24px 24px 24px 78px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.step-card::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--rose-100); color: var(--rose-900); font-size: 13px; font-weight: 900; }
.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; }

.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0 36px; }
.figure-grid.single { grid-template-columns: minmax(0, 1fr); }
.evidence-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.evidence-figure button { width: 100%; display: block; padding: 0; border: 0; background: #f8f4f1; cursor: zoom-in; }
.evidence-figure img { width: 100%; max-height: 520px; object-fit: contain; background: #f8f4f1; }
.evidence-figure figcaption { padding: 13px 16px 15px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; margin: 24px 0 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { background: var(--rose-100); color: var(--rose-900); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: rgba(247, 232, 234, .25); }
td ul { margin: 0; padding-left: 18px; }
.table-caption { margin: 0 0 9px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.prompt-card { margin: 18px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fff, #fff8f5); }
.prompt-card strong { display: block; margin-bottom: 8px; color: var(--rose-900); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.prompt-card p { margin: 0; color: var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: var(--sage-light); color: #465c4d; font-size: 12px; font-weight: 700; }

.reference-list { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: refs; }
.reference-list li { counter-increment: refs; position: relative; padding: 16px 18px 16px 55px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink-soft); overflow-wrap: anywhere; }
.reference-list li::before { content: counter(refs); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--rose-100); color: var(--rose-900); font-size: 12px; font-weight: 800; }

.download-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 54px; padding: 24px 26px; border: 1px solid var(--rose-300); border-radius: 20px; background: linear-gradient(120deg, var(--rose-100), #fff); }
.download-banner h3 { margin: 0 0 5px; font-size: 19px; }
.download-banner p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.assignment-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.assignment-nav a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-decoration: none; transition: .2s ease; }
.assignment-nav a:hover { border-color: var(--rose-300); transform: translateY(-2px); }
.assignment-nav small { display: block; color: var(--ink-soft); }
.assignment-nav strong { display: block; margin-top: 5px; color: var(--rose-900); }
.assignment-nav .next { text-align: right; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.summary-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-sm); }
.summary-card .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--rose-100); color: var(--rose-900); font-weight: 900; }
.summary-card h3 { margin: 30px 0 14px; font-size: 24px; line-height: 1.25; }
.summary-card p { margin: 0; color: var(--ink-soft); }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--ink); font-size: 13px; font-weight: 700; }

.site-footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 56px 0 32px; display: grid; grid-template-columns: 1fr auto; gap: 30px; border-top: 1px solid var(--line); }
.site-footer h2 { margin: 0 0 8px; font-size: 25px; }
.site-footer p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.footer-contact { display: grid; justify-items: end; gap: 8px; align-content: end; font-size: 13px; }
.footer-contact a { color: var(--rose-900); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px dashed var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 60px 24px 24px; background: rgba(35, 27, 30, .9); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 96vw); max-height: 82vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.lightbox p { max-width: 900px; margin: 14px auto 0; color: #fff; text-align: center; font-size: 13px; }
.lightbox-close { position: absolute; right: 22px; top: 16px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.not-found h1 { margin: 0; font-size: clamp(48px, 10vw, 120px); color: var(--rose-700); }
.not-found p { color: var(--ink-soft); }

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header { padding-inline: 20px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 8px); right: 20px; width: min(270px, calc(100vw - 40px)); display: none; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-md); }
  .main-nav.open { display: grid; }
  .main-nav a { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 620px; }
  .profile-card--featured { max-width: 640px; }
  .intro-panel { grid-template-columns: 1fr; }
  .quote-card { position: relative; top: auto; }
  .about-visual { position: relative; top: auto; }
  .project-card, .project-card:nth-child(n) { grid-column: span 6; }
  .report-layout { grid-template-columns: 1fr; }
  .report-toc { position: relative; top: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .report-toc strong { width: 100%; }
  .report-toc a { display: inline-flex; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-width { width: min(100% - 28px, var(--max)); }
  .brand-copy small { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero-copy h1 { font-size: clamp(45px, 14vw, 68px); }
  .stats-strip { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(n) { grid-column: auto; min-height: 285px; }
  .page-hero { padding: 54px 0 46px; }
  .page-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .page-number { width: 74px; height: 74px; font-size: 28px; order: -1; }
  .assignment-overview { grid-template-columns: 1fr; margin-top: 24px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .figure-grid { grid-template-columns: 1fr; }
  .step-card { padding-left: 22px; padding-top: 76px; }
  .step-card::before { left: 22px; }
  .download-banner { align-items: flex-start; flex-direction: column; }
  .assignment-nav { grid-template-columns: 1fr; }
  .assignment-nav .next { text-align: left; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; }
  .copyright { grid-column: 1; }
}

@media (max-width: 420px) {
  body { font-size: 15px; }
  .site-header { padding-inline: 14px; }
  .brand-copy strong { font-size: 13px; }
  .profile-card { padding: 24px; border-radius: 28px 28px 28px 10px; }
  
  .profile-meta div { grid-template-columns: 1fr; gap: 3px; }
  .hero-actions .button { width: 100%; }
  .project-card { padding: 22px; }
  .report-toc { padding: 14px; }
  .report-section > h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .site-header, .site-footer, .report-toc, .assignment-nav, .download-banner, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .page-width { width: 100%; }
  .page-hero { padding: 20px 0; }
  .assignment-overview { margin-top: 20px; }
  .report-layout { display: block; }
  .report-section { break-inside: avoid-page; }
  .evidence-figure, .table-wrap { box-shadow: none; }
}

/* Keep project call-to-action labels intact at every card width. */
.project-link { white-space: nowrap; }
.project-link svg { flex: 0 0 auto; width: 18px; height: 18px; }
