/* --- Warm, friendly pastel palette (WCAG AA where required) --- */
:root {
  /* Distinct pastel surfaces */
  --sage: #A8C5A8;
  --peach: #F5E0D4;
  --honey: #E8D9A8;
  --sand: #E8E2D8;
  --cream: #FAF7F2;
  --pastel-orange: #F2E2D4;
  /* Warm accent (pastel orange) – links, buttons, focus */
  --accent: #E0A068;
  --accent-hover: #C87A40;
  --accent-text: #A65C2E;
  --accent-bg: rgba(224, 160, 104, 0.15);

  --text: #3A3530;
  --text-secondary: #5C554D;
  --text-muted: #6B6359;

  --heading: #3A3530;

  --border: rgba(58, 53, 48, 0.14);
  --border-strong: rgba(58, 53, 48, 0.22);
  --bg-card: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --ease: 0.2s ease;
  --ease-slow: 0.35s ease;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: flex-end;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-link:hover {
  color: var(--accent-hover);
}

.nav-link:focus-visible,
.project-card-link:focus-visible,
.footer-icon-link:focus-visible,
.project-back-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-link-back {
  margin-right: auto;
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
  max-width: 64rem;
  margin: 0 auto;
  gap: var(--space-xl);
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--peach);
  box-shadow: 0 8px 32px rgba(58, 53, 48, 0.08);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-inner {
  max-width: 42rem;
  text-align: center;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  margin: 0 0 var(--space-xs);
}

.hero-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-md);
}

.hero-slogan {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 var(--space-md);
}

.hero-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-lg);
}

.hero-resume-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.hero-resume-btn:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 160, 104, 0.28);
}

.hero-resume-btn:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

/* --- Sections --- */
.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.section.work {
  max-width: 56rem;
  padding-top: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--space-xl);
  letter-spacing: 0.02em;
}

/* --- Project grid (pop of colour + clear hover) --- */
.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border-radius: 10px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.project-card:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58, 53, 48, 0.1);
}

.project-card:focus-within:hover {
  box-shadow: 0 0 0 2px var(--accent), 0 12px 32px rgba(58, 53, 48, 0.1);
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  transition: color var(--ease);
  border-radius: 10px;
}

.project-card-link:focus {
  outline: none;
}

.project-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-card-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.project-card-figure img {
  width: 100%;
  max-width: 14rem;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(1.6);
}

.project-card--sage .project-card-figure {
  background: rgba(168, 197, 168, 0.45);
}
.project-card--peach .project-card-figure {
  background: rgba(245, 224, 212, 0.7);
}
.project-card--beige .project-card-figure {
  background: rgba(232, 217, 168, 0.5);
}
.project-card--cream .project-card-figure {
  background: rgba(232, 226, 216, 0.65);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: var(--space-md);
  padding-top: var(--space-sm);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--space-xs);
  line-height: 1.25;
}

.project-card-tagline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color var(--ease), color var(--ease);
}

.project-card-link:hover .project-card-cta,
.project-card-link:focus-visible .project-card-cta {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section headline + image (Work, About, Reviews) — image above headline, centered --- */
.section-headline-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-headline-row .section-title {
  margin: 0;
}

.section-headline-image {
  display: block;
  max-width: min(400px, 100%);
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- About (eigene One-Line-Zeichnung als Bild) --- */
.about-content {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.about-content--block-2 {
  margin-top: 1.5rem;
}

.about-lead {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 var(--space-md);
}

.about-body {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.about-body:last-of-type {
  margin-bottom: 0;
}

/* --- Skills block (About section) --- */
.skills-block {
  max-width: 42rem;
  margin: 3rem auto 0;
}
.skills-heading {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--space-xs);
}
.skills-tagline {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-text);
  margin: 0 0 var(--space-lg);
  line-height: 1.3;
}
.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.skills-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.skills-item:first-child {
  padding-top: 0;
}
.skills-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.skills-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--pastel-orange);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.skills-item-text {
  min-width: 0;
}
.skills-item-title {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.25rem 0;
}
.skills-item-desc {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.skills-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0.5rem 0;
}

.skills-tags-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skills-tags-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.skills-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.skills-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-text);
  background: var(--accent-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(224, 160, 104, 0.22);
  line-height: 1.3;
}

/* --- Reviews (click-through carousel) — fully centered like hero --- */
.reviews-carousel {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reviews-track {
  position: relative;
  min-height: 14rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.review-slide {
  margin: 0;
  padding: 0;
  text-align: center;
  flex: 1 0 auto;
  min-height: 0;
}

.review-slide[hidden] {
  display: none;
}

.review-quote {
  position: relative;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin: 0 0 var(--space-sm);
  padding: 0;
  text-align: center;
}

.review-quote::before,
.review-quote::after {
  font-family: var(--font-body);
  font-size: 2.5rem;
  line-height: 0.72;
  color: var(--accent-text);
  opacity: 0.85;
  font-style: normal;
  vertical-align: -0.28em;
  display: inline-block;
}

.review-quote::before {
  content: "\201C";
  margin-right: 0.06em;
}

.review-quote::after {
  content: "\201D";
  margin-left: 0.06em;
}

.review-cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: normal;
  margin-left: 0;
  text-align: center;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-shrink: 0;
}

.reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.reviews-btn:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  background: var(--accent-bg);
}

.reviews-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reviews-dots {
  display: flex;
  gap: var(--space-xs);
}

.reviews-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.reviews-dots button:hover {
  background: var(--text-muted);
}

.reviews-dots button[aria-selected="true"] {
  background: var(--accent-text);
  transform: scale(1.2);
}

.reviews-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.footer-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-sm);
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ease);
  border-radius: 4px;
}

.footer-icon-link:hover {
  color: var(--accent-hover);
}

.footer-icon {
  flex-shrink: 0;
  display: block;
  width: 28px;
  height: 28px;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-xl);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(58, 53, 48, 0.08);
  transition: transform var(--ease), box-shadow var(--ease), color var(--ease), border-color var(--ease);
}

.back-to-top:hover {
  transform: scale(1.08);
  color: var(--accent-text);
  border-color: var(--accent-text);
  box-shadow: 0 4px 20px rgba(58, 53, 48, 0.1);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.back-to-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
}

.back-to-top-text {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width var(--ease), opacity var(--ease);
}

.back-to-top:hover .back-to-top-text {
  max-width: 6rem;
  opacity: 1;
}

/* --- Project detail pages --- */
.project-page {
  background: #fafaf8;
}

.project-page .site-header {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.project-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: calc(4rem + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.project-article {
  margin: 0;
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(58, 53, 48, 0.08);
  border: 1px solid var(--border);
}

.project-label {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-sm);
}

.project-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--space-xl);
}

.project-detail-content .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
  font-weight: 500;
}

.project-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: 0 0 var(--space-2xl);
}

@media (max-width: 640px) {
  .project-detail-row {
    grid-template-columns: 1fr;
  }
}

.project-detail-block {
  min-width: 0;
}

.project-detail-block h2 {
  margin-top: 0;
}

.project-detail-content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--heading);
  margin: var(--space-2xl) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent-text);
  letter-spacing: 0.02em;
}

.project-detail-content h2:first-of-type,
.project-detail-row + h2 {
  margin-top: 0;
}

.project-detail-content p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.project-detail-content p:last-child {
  margin-bottom: 0;
}

/* Demo row: video left, explanation right */
.project-demo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin: 0 0 var(--space-2xl);
}

@media (max-width: 720px) {
  .project-demo-row {
    grid-template-columns: 1fr;
  }
}

.project-demo-explanation {
  min-width: 0;
}

.project-demo-explanation__text {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.6;
}

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

/* Demo section (same spacing as other project-detail sections) */
.project-demo-section {
  margin-bottom: 0;
}

/* Smartphone frame around project demo video (modern iPhone style) */
.project-demo-video {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 0;
  padding: 8px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-demo-video__bezel {
  border-radius: 2rem;
  overflow: hidden;
  background: #000;
}

/* Modern iPhone proportions (e.g. 15/16: ~9:19.5) */
.project-demo-video__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  background: #000;
}

/* Dynamic Island–style pill */
.project-demo-video__screen::before {
  content: "";
  display: block;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-demo-video__player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.project-demo-video__player:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* WCAG checklist — desktop frame (project 3) */
.wcag-desktop-wrap {
  margin: 0 0 var(--space-2xl);
}

.wcag-desktop-frame {
  max-width: 640px;
  margin: 0 auto;
  background: #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.wcag-desktop-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #e0e0e0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wcag-desktop-dots {
  display: flex;
  gap: 6px;
}

.wcag-desktop-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c2c2c2;
}

.wcag-desktop-dots span:nth-child(1) { background: #ff5f57; }
.wcag-desktop-dots span:nth-child(2) { background: #febc2e; }
.wcag-desktop-dots span:nth-child(3) { background: #28c840; }

.wcag-desktop-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.wcag-desktop-body {
  background: #f5f5f5;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md);
}

.wcag-checklist-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.wcag-checklist-progress {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.wcag-key-rules {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wcag-key-rules__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--space-sm);
}

.wcag-key-rules__list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wcag-key-rules__list li {
  margin-bottom: 0.35rem;
}

.wcag-key-rules__list li:last-child {
  margin-bottom: 0;
}

/* Checklist content (shared + desktop variant) */
.wcag-checklist {
  flex: 1;
}

#wcag-checklist-scroll:focus {
  outline: none;
}

#wcag-checklist-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wcag-checklist--desktop {
  padding: 0;
}

.wcag-checklist--desktop .wcag-checklist__item {
  cursor: default;
}

.wcag-checklist__group {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
}

.wcag-checklist__group:last-child {
  margin-bottom: 0;
}

/* Pastel section backgrounds (Figma-style) */
.wcag-checklist__group--pastel-0 {
  background: rgba(210, 195, 180, 0.4);
  border: 1px solid rgba(224, 160, 104, 0.22);
}

.wcag-checklist__group--pastel-1 {
  background: rgba(224, 160, 104, 0.18);
  border: 1px solid rgba(224, 160, 104, 0.28);
}

.wcag-checklist__group--pastel-2 {
  background: rgba(136, 176, 199, 0.25);
  border: 1px solid rgba(136, 176, 199, 0.35);
}

.wcag-checklist__group--pastel-3 {
  background: rgba(180, 199, 136, 0.25);
  border: 1px solid rgba(180, 199, 136, 0.35);
}

.wcag-checklist__group--pastel-4 {
  background: rgba(168, 197, 168, 0.25);
  border: 1px solid rgba(168, 197, 168, 0.35);
}

.wcag-checklist__group--pastel-5 {
  background: rgba(160, 180, 199, 0.25);
  border: 1px solid rgba(136, 160, 199, 0.35);
}

.wcag-checklist__principle {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  padding-bottom: 2px;
}

.wcag-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  margin: 0 0 0.35rem;
  padding: 2px 0;
}

.wcag-checklist__item:last-child {
  margin-bottom: 0;
}

.wcag-checklist__input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-text);
  cursor: pointer;
}

.wcag-checklist__input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.wcag-checklist__input:disabled {
  cursor: default;
  opacity: 0.8;
}

.wcag-checklist__item a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* Outcome facts tile (project detail) */
.outcome-tile {
  background: rgba(224, 160, 104, 0.15);
  border: 1px solid rgba(224, 160, 104, 0.28);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.outcome-tile-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 var(--space-md);
  padding: 0;
  border: none;
  letter-spacing: 0.02em;
}

.outcome-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outcome-fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.outcome-fact:first-child {
  padding-top: 0;
}

.outcome-fact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text);
}

.outcome-fact-icon svg {
  display: block;
}

.outcome-fact-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

/* Key Decisions (project detail) */
.key-decisions {
  margin-top: 0;
}

.key-decisions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.key-decisions-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .key-decisions-row {
    grid-template-columns: 1fr;
  }
}

.key-decision {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.key-decision-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-text);
  margin: 0 0 var(--space-md);
  line-height: 1.3;
}

.key-decision-body {
  margin: 0;
}

/* Override .project-detail-content p margin so meta items are tighter */
.project-detail-content .key-decision-meta {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.25rem;
}

.project-detail-content .key-decision-meta:last-child {
  margin-bottom: 0;
}

.key-decision-meta strong {
  color: var(--heading);
  font-weight: 600;
  display: inline;
  margin-right: 0.25em;
}

.project-back-wrap {
  margin: var(--space-2xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.project-back-link {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}

.project-back-link:hover {
  color: var(--accent-text);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.visible {
    transform: none;
  }
  .project-card:hover {
    transform: none;
  }
}
