:root {
  --text: #1f2937;
  --muted: #374151;
  --link: #1e40af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --surface: #fcfcfd;
  --surface-accent: #f8fafc;
  --accent-soft: #dbeafe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(920px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

nav a {
  margin-left: 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
}

nav a:hover,
nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.hero {
  padding: 5.5rem 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 760px;
  font-size: 1.14rem;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.hero-supporting {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.hero-proof {
  max-width: 760px;
  margin-top: 0.75rem;
  color: #374151;
}

.hero-divider {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--link), #93c5fd);
  margin: 0 0 3.5rem;
}

.projects {
  padding: 0 0 4.5rem;
}

.projects h2 {
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.project-list {
  display: grid;
  gap: 1.5rem;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

.project-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--surface), var(--surface-accent));
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-3px);
}

.project-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.project-card p {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #3151c6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-button:hover,
.project-button:focus-visible {
  background: #2743a8;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(49, 81, 198, 0.18);
}

.secondary-button {
  background: #ffffff;
  color: #3151c6;
  border: 1px solid #3151c6;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #f5f7ff;
  color: #2743a8;
  border-color: #2743a8;
}

.project-status {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
}

.case-study-page {
  max-width: 920px;
}

.case-study-page p,
.case-study-page li {
  line-height: 1.8;
  font-size: 1.03rem;
}

.case-study-figure figcaption {
  margin-top: 0.75rem;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.55;
}

.case-study-page h1 {
  margin-bottom: 1rem;
}

.case-study-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.case-study-page p,
.case-study-page li {
  line-height: 1.75;
  font-size: 1.02rem;
}

.case-study-page ul {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
}
.snapshot-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.snapshot-table th {
  text-align: left;
  width: 220px;
  background: #f3f4f6;
  padding: 0.9rem;
  font-weight: 700;
  vertical-align: top;
  border: 1px solid var(--border);
}

.snapshot-table td {
  padding: 0.9rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.case-study-figure {
  margin: 1.5rem 0 2rem;
}

.case-study-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.case-study-figure figcaption {
  margin-top: 0.7rem;
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.5;
}
/* =========================================
   CASE STUDY PAGE SPACING + RHYTHM PATCH
   ========================================= */

.case-study-page {
  max-width: 920px;
}

.case-study-page h1 {
  margin-bottom: 1.5rem;
}

.case-study-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.case-study-page p {
  margin: 0 0 0.8rem 0;
  line-height: 1.45;
}

.case-study-page .eyebrow {
  margin-bottom: 0.5rem;
}

.case-section {
  margin-top: 2rem;
}

.case-section:first-of-type {
  margin-top: 0;
}

.executive-summary p:last-child,
.positioning-statement p:last-child,
.challenge-section p:last-child,
.design-strategy p:last-child,
.learning-architecture p:last-child,
.scaffolding-section p:last-child,
.authentic-performance p:last-child,
.outcome-reflection p:last-child {
  margin-bottom: 0;
}

.compact-top {
  margin-top: 1.5rem;
}

/* Project Snapshot */
.snapshot-table {
  margin-top: 0.75rem;
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
}

.snapshot-table th,
.snapshot-table td {
  vertical-align: top;
  line-height: 1.35;
  padding: 0.7rem 0.8rem;
}

/* What This Project Demonstrates */
.demonstrates-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.demonstrates-item {
  margin: 0;
}

.demonstrates-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* Reasoning sequence */
.reasoning-sequence {
  margin: 0.9rem 0;
  font-weight: 700;
}

/* Figures */
.case-study-figure {
  margin: 1.75rem 0 1.75rem;
}

.case-study-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-figure figcaption {
  margin-top: 0.45rem;
  line-height: 1.35;
}

/* Key Design Decisions */
.decisions-intro {
  margin-bottom: 1rem;
}

.decision-list {
  display: grid;
  gap: 1rem;
}

.decision-item p:last-child {
  margin-bottom: 0;
}

/* Ending rhythm */
.outcome-reflection p {
  margin-bottom: 0.95rem;
}

/* Buttons */
.project-actions {
  margin-top: 2rem;
}

/* Mobile */
@media (max-width: 700px) {
  .case-study-page h2 {
    margin-top: 1.75rem;
  }

  .case-section {
    margin-top: 1.75rem;
  }

  .case-study-figure {
    margin: 1.5rem 0;
  }

  .snapshot-table th,
  .snapshot-table td {
    padding: 0.65rem 0.7rem;
  }
}
/* HERO SPACING ADJUSTMENT */

.hero-subhead {
  margin-bottom: 1.1rem;
}

.hero-supporting {
  margin-bottom: 0.8rem;
}

.section {
  margin-top: 2.5rem;
}

.section h2 {
  margin-bottom: 1.25rem;
}

.project-card {
  margin-bottom: 1.25rem;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card h3 {
  margin-bottom: 0.65rem;
}

.project-card p {
  margin-bottom: 0.8rem;
}

.project-card .project-type {
  margin-bottom: 0.55rem;
}

.project-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 2rem;
}
.case-study-figure-wide {
  text-align: center;
}

.case-study-figure-wide figcaption {
  text-align: left;
  max-width: 900px;
  margin: 0.75rem auto 0;
}
.case-study-closing {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.project-actions {
  margin-top: 1.5rem;
}
