/* =========================================================
   Rebekah Mugenyi — Portfolio
   Monochrome chrome, image-driven color, code-styled type.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500&family=Bangers&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Patrick+Hand&display=swap');

:root {
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --paper: #ffffff;
  --line: #e2e2e2;
  --chip: #f0f0f0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --max-width: 1100px;
  --gutter: 32px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f2f2f2;
  --ink-soft: #a3a3a3;
  --paper: #0e0e0e;
  --line: #2a2a2a;
  --chip: #1c1c1c;
  color-scheme: dark;
}


/* ---------- Manifesto (blueprint) ---------- */
.mf { --mf-blue: #1d4ed8; --mf-tint: rgba(29, 78, 216, 0.08); }
:root[data-theme="dark"] .mf { --mf-blue: #7aa2ff; --mf-tint: rgba(122, 162, 255, 0.14); }

.mf-ico { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .2s ease; }
.mf-tab:hover .mf-ico, .mf-node:hover .mf-ico { transform: rotate(-8deg) scale(1.12); }

.mf-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--mf-tint) 1px, transparent 1px), linear-gradient(90deg, var(--mf-tint) 1px, transparent 1px);
  background-size: 28px 28px; }
.mf-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 16px 0; max-width: 18ch; }
.mf-lead { max-width: 60ch; color: var(--ink-soft); line-height: 1.6; margin-bottom: 28px; }
.mf-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.mf-h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 16px; }
.mf-note { color: var(--ink-soft); margin: 0 0 20px; }

.mf-btn { display: inline-block; padding: 12px 22px; border: 1.5px solid var(--mf-blue); border-radius: 8px; background: var(--mf-blue); color: var(--paper); font-family: var(--font-code); font-size: .95rem; text-decoration: none; cursor: pointer; }
.mf-btn-ghost { background: transparent; color: var(--mf-blue); }
.mf-btn:focus-visible, .mf-tab:focus-visible, .mf-node:focus-visible, .mf-panel:focus-visible, .mf-check input:focus-visible { outline: 3px solid var(--mf-blue); outline-offset: 3px; }

.mf-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.mf-tab, .mf-node { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: .95rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.mf-tab[aria-selected="true"], .mf-node[aria-pressed="true"] { border-color: var(--mf-blue); color: var(--mf-blue); background: var(--mf-tint); }

.mf-panel { margin-top: 20px; padding: 24px; border: 1.5px dashed var(--mf-blue); border-radius: 12px; }
.mf-panel[hidden] { display: none; }
.mf-panel h3 { font-family: var(--font-display); margin: 0 0 12px; }
.mf-panel dl { display: grid; grid-template-columns: 9rem 1fr; gap: 12px 20px; margin: 0; }
.mf-panel dt { font-family: var(--font-code); color: var(--mf-blue); font-size: .9rem; }
.mf-panel dd { margin: 0; line-height: 1.6; max-width: 65ch; }

.mf-card { padding: 22px; border: 1.5px solid var(--line); border-radius: 12px; background-color: var(--paper); }
.mf-check { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.mf-check label { display: flex; gap: 12px; align-items: center; cursor: pointer; line-height: 1.4; }
.mf-check input { width: 20px; height: 20px; accent-color: var(--mf-blue); flex-shrink: 0; }
#mfBar { width: 100%; height: 12px; accent-color: var(--mf-blue); }
.mf-status { font-family: var(--font-code); margin: 10px 0 16px; }

.mf-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.mf-node { flex-direction: column; justify-content: center; padding: 16px 8px; text-align: center; }
.mf-node .mf-ico { width: 2em; height: 2em; }
.mf-node.linked { border-color: var(--mf-blue); border-style: dashed; box-shadow: 0 0 0 4px var(--mf-tint); }
.mf-linknote { margin: 0; line-height: 1.6; }

.mf-end p { max-width: 65ch; line-height: 1.7; }
.mf-quote { font-family: var(--font-display); font-size: 1.2rem; border-left: 3px solid var(--mf-blue); padding-left: 16px; }

@media (max-width: 640px) {
  .mf-hero { padding: 48px 0 40px; }
  .mf-nodes { grid-template-columns: repeat(2, 1fr); }
  .mf-panel dl { grid-template-columns: 1fr; gap: 4px; }
  .mf-panel dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf *, .mf *::before, .mf *::after { transition: none !important; animation: none !important; }
}




/* Static black-line icon SVGs need inverting in dark mode */
[data-theme="dark"] .footer-icons img,
[data-theme="dark"] .logo-marks img {
  filter: invert(1);
}

body { transition: background-color 0.2s ease, color 0.2s ease; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-marks {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-marks img { width: 34px; height: 34px; }

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-code);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  width: 34px;
  height: 34px;
  font-family: var(--font-code);
  font-size: 16px;
  color: var(--ink);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Hero / page intro ---------- */

.hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.code-line {
  font-family: var(--font-code);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 20px;
  max-width: 760px;
}

.code-line .tok-fn { color: var(--ink); }
.code-line .tok-str { color: #2f6f4f; }
.code-line .tok-punct { color: var(--ink-soft); }

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  margin: 0;
  letter-spacing: -0.01em;
}

.page-intro-text {
  max-width: 320px;
  font-size: 14px;
  color: var(--ink-soft);
}

.page-intro-text p { margin: 0 0 6px; }
.page-intro-text .muted { color: #9a9a9a; font-size: 13px; }

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 24px;
  margin-right: 150px;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tag filters ---------- */

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 44px;
}

.tag-filter {
  font-family: var(--font-code);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-soft);
  border: 1px solid transparent;
  cursor: pointer;
}

.tag-filter:hover { color: var(--ink); }

.tag-filter.active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Marquee rows (home page) ---------- */

.work-heading {
  font-family: var(--font-code);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.marquee-row {
  margin-bottom: 48px;
}

.marquee-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 10px;
  padding: 0 var(--gutter);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.marquee-caption .proj-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.marquee-caption .proj-tag {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.marquee-caption .proj-desc {
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1;
}

.marquee-caption .see-project {
  font-family: var(--font-code);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.marquee-row:nth-child(2n) .marquee-track {
  animation-direction: reverse;
}

.marquee-viewport:hover .marquee-track,
.marquee-track.paused {
  animation-play-state: paused;
}

.marquee-track img,
.marquee-track .placeholder-tile {
  width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-viewport { overflow-x: auto; }
}

/* ---------- Placeholder tiles (used until real images are dropped in) ---------- */

.placeholder-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-code);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: var(--ph-color, #999);
  line-height: 1.4;
}

/* ---------- Project grid (projects.html) ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.project-card {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.project-card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-card .thumb img,
.project-card .thumb .placeholder-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .see-project {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-soft);
}

.project-card:hover .see-project { color: var(--ink); }

.project-card[hidden] { display: none; }

/* ---------- Big link rows (home page: projects / press / about) ---------- */

.big-links { margin: 40px 0 56px; }

.big-link-caption {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.big-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.big-link:last-child { border-bottom: 1px solid var(--line); }

.big-link .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.big-link .sub {
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.big-link:hover .label { color: var(--ink-soft); }

/* ---------- About page details ---------- */

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-details h3 {
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.about-details p { margin: 0; font-size: 15px; }
.about-details a.see-work { font-family: var(--font-code); font-size: 12px; border-bottom: 1px solid var(--ink); }

/* ---------- Press page ---------- */

.press-list { display: flex; flex-direction: column; gap: 0; }

.press-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.press-item:last-child { border-bottom: 1px solid var(--line); }

.press-outlet {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  width: 160px;
  flex-shrink: 0;
}

.press-body { flex: 1; min-width: 220px; }

.press-headline { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 6px; }

.press-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }

.press-link { font-family: var(--font-code); font-size: 12px; border-bottom: 1px solid var(--ink); }

.press-link.disabled {
  color: #b5b5b5;
  border-color: #d8d8d8;
  cursor: default;
}

/* ---------- Project detail page ---------- */

.detail-hero {
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 32px;
}

.detail-hero img, .detail-hero .placeholder-tile { width: 100%; height: 100%; object-fit: cover; }

.detail-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.detail-meta div h3 { font-family: var(--font-code); font-size: 11px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.detail-meta div p { margin: 0; font-size: 14px; }

.detail-body p { font-size: 16px; max-width: 700px; }

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.detail-gallery img, .detail-gallery .placeholder-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.back-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Sidequests (comic-book "coming soon" that peels away) ---------- */

.sidequest-stage {
  position: relative;
  min-height: 60vh;
  margin: 16px 0 48px;
}

.comic-page {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-image: radial-gradient(#111 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  background-color: #ffe14d;
  border: 6px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  transform-origin: top right;
  transition: transform 0.7s cubic-bezier(.36,.07,.19,.97), opacity 0.55s ease 0.12s;
}

[data-theme="dark"] .comic-page {
  background-color: #3a2f00;
}

.comic-page.peeling {
  transform: rotate(28deg) translate(55%, -35%) scale(0.82);
  opacity: 0;
  pointer-events: none;
}

.comic-page.peeled-hidden {
  display: none;
}

.comic-burst {
  font-family: 'Bangers', cursive;
  font-size: clamp(48px, 10vw, 110px);
  color: #ff3b3b;
  -webkit-text-stroke: 3px #111;
  transform: rotate(-4deg);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 6px 6px 0 #111;
}

.comic-sub {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--ink);
  text-shadow: none;
  transform: rotate(2deg);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* Peeling corner affordance, top right of the poster */

.peel-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 78px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.peel-corner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 46px 46px 0;
  border-color: transparent #fff5c2 transparent transparent;
  filter: drop-shadow(-3px 3px 4px rgba(0,0,0,0.35));
  transition: border-width 0.2s ease;
}

[data-theme="dark"] .peel-corner::before {
  border-color: transparent #6b5600 transparent transparent;
}

.peel-corner:hover::before,
.peel-corner:focus-visible::before {
  border-width: 0 58px 58px 0;
}

.peel-arrow {
  position: absolute;
  top: -34px;
  right: 24px;
  z-index: 3;
  pointer-events: none;
  color: var(--ink);
  animation: arrow-bob 1.3s ease-in-out infinite;
}

.peel-arrow svg { display: block; }

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* Construction-site reveal, sits behind the poster */

.construction-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  background: var(--chip);
  border: 6px dashed #ffcc00;
  border-radius: 10px;
  padding: 60px 24px;
  overflow: hidden;
}

.construction-tape {
  position: absolute;
  left: -24px;
  right: -24px;
  height: 32px;
  background: repeating-linear-gradient(135deg, #111 0 18px, #ffcc00 18px 36px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.construction-tape.top { top: 24px; transform: rotate(-2deg); }
.construction-tape.bottom { bottom: 24px; transform: rotate(2deg); }

.construction-label {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: #ffcc00;
  padding: 7px 16px;
  border: 2px solid #111;
  transform: rotate(-1deg);
}

.construction-cone { width: 56px; height: 70px; }

/* Extra scattered decor — kept small so the panel doesn't get busy */

.construction-decor {
  position: absolute;
  z-index: 1;
  opacity: 0.95;
}

.construction-decor.cone-sm { width: 32px; height: 40px; bottom: 20px; left: 20px; transform: rotate(-9deg); }
.construction-decor.cone-sm-2 { width: 26px; height: 33px; top: 66px; right: 22px; transform: rotate(7deg); }
.construction-decor.cone-sm-3 { width: 30px; height: 38px; top: 66px; left: 24px; transform: rotate(10deg); }
.construction-decor.cone-sm-4 { width: 28px; height: 35px; bottom: 22px; left: 40%; transform: rotate(-6deg); }
.construction-decor.hazard-triangle { width: 34px; height: 34px; top: 108px; left: 22px; transform: rotate(-4deg); }
.construction-decor.vehicle { width: 92px; height: auto; bottom: 18px; left: 58%; }

/* Blogs — a plain card, deliberately NOT construction-themed */

.blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

.blog-cta:hover { transform: translateY(-2px); border-color: var(--ink); }

.blog-cta svg { flex-shrink: 0; }

.blog-cta-text { text-align: left; }

.blog-cta-text .title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.blog-cta-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
}




/* ---------- Sidequests: TOP SECRET folder doorway ---------- */
.secret-doorway { position: absolute; top: 16%; right: 7%; z-index: 2; display: block; width: 170px; height: 150px; text-decoration: none; transform: rotate(4deg); transition: transform .2s ease; }
.secret-doorway:hover, .secret-doorway:focus-visible { transform: rotate(1deg) translateY(-4px); }
.secret-doorway:focus-visible { outline: 3px solid #111; outline-offset: 6px; }
.sf-back, .sf-front, .sf-paper { position: absolute; left: 0; right: 0; display: block; }
.sf-back { top: 14px; bottom: 22px; background: #d9b560; border-radius: 4px 8px 6px 6px; }
.sf-back::before { content: ""; position: absolute; top: -14px; left: 0; width: 70px; height: 16px; background: #d9b560; border-radius: 6px 6px 0 0; }
.sf-paper { top: 24px; left: 10px; right: 10px; height: 90px; padding: 14px 12px; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .6s ease; }
.sf-paper i { display: block; height: 3px; margin-bottom: 9px; background: #8fb0ff; }
.sf-paper i:nth-child(2) { width: 70%; } .sf-paper i:nth-child(4) { width: 50%; }
.sf-front { top: 40px; bottom: 22px; background: #f0d28a; border-radius: 4px 6px 6px 6px; box-shadow: 0 3px 8px rgba(0,0,0,.25); transform-origin: bottom; transition: transform .6s ease; display: flex; align-items: center; justify-content: center; }
.sf-stamp { font-family: 'Bangers', var(--font-display), sans-serif; font-size: 1.5rem; letter-spacing: .06em; color: #c62828; border: 3px solid #c62828; border-radius: 4px; padding: 2px 10px; transform: rotate(-8deg); opacity: .9; }
.sf-hint { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--font-code); font-size: .8rem; color: #111; }
.secret-doorway.open .sf-front { transform: scaleY(.18); }
.secret-doorway.open .sf-paper { transform: translateY(-34px); }
@media (max-width: 640px) {
  .secret-doorway { position: relative; top: auto; right: auto; margin: 24px auto 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .secret-doorway, .sf-front, .sf-paper { transition: none; }
}

/* The Rabbit Hole teaser — tucked in a corner of the same revealed area */

.rabbit-hole-teaser {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 4%;
  display: block;
  transform: rotate(-5deg);
  transition: transform 0.15s ease;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
}

.rabbit-hole-teaser:hover { transform: rotate(-5deg) translateY(-4px) scale(1.03); }

.rabbit-hole-graphic { width: 215px; height: auto; display: block; }

@media (max-width: 640px) {
  .sidequest-stage { min-height: 78vh; }
  .comic-burst { -webkit-text-stroke: 2px #111; }
  .construction-decor.cone-sm-2,
  .construction-decor.cone-sm-3,
  .construction-decor.cone-sm-4,
  .construction-decor.hazard-triangle,
  .construction-decor.vehicle { display: none; }
  .rabbit-hole-teaser {
    position: static;
    margin-top: 4px;
    transform: rotate(-3deg);
  }
  .rabbit-hole-graphic { width: 170px; margin: 0 auto; }
}

/* ---------- Blog ("Sidequests" — Medium-style reading layout) ---------- */

.blog-hero { padding: 8px 0 12px; }

.blog-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 52px);
  margin: 0 0 8px;
}

.blog-subtitle { font-size: 15px; color: var(--ink-soft); max-width: 480px; margin: 0; }

.blog-list { display: flex; flex-direction: column; margin-top: 24px; }

.blog-card {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.blog-card:last-child { border-bottom: 1px solid var(--line); }

.blog-card .cover {
  width: 160px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; }

.blog-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 6px;
}

.blog-card .card-excerpt { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; max-width: 520px; }

.blog-card .card-meta { font-family: var(--font-code); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; }

/* Post reading view */

.post-meta {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0 0 28px;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-cover.natural {
  aspect-ratio: auto;
}

.post-cover.natural img {
  height: auto;
  object-fit: contain;
}

.post-body {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.75;
  max-width: 680px;
  color: var(--ink);
}

.post-body p { margin: 0 0 26px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 48px; }

.post-tag {
  font-family: var(--font-code);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-soft);
}

/* ---------- The Rabbit Hole (tunnel scroll page) ---------- */

.tunnel {
  position: relative;
  background: linear-gradient(
    to bottom,
    #c98a4b 0%,
    #a5703c 8%,
    #7a4a22 22%,
    #5a3d22 40%,
    #3a2812 60%,
    #201509 80%,
    #0b0704 100%
  );
  border-radius: 10px;
  margin: 16px 0 0;
  padding: 60px 20px 100px;
  overflow: hidden;
}

.tunnel-intro {
  text-align: center;
  max-width: 440px;
  margin: 0 auto 60px;
  font-family: var(--font-code);
  font-size: 13px;
  color: #f3e6d0;
}

.tunnel-track {
  position: absolute;
  top: 160px;
  bottom: 140px;
  left: 50%;
  width: 0;
  border-left: 3px dashed rgba(243, 230, 208, 0.4);
}

.tunnel-path { position: relative; display: flex; flex-direction: column; gap: 90px; }

.tunnel-stop {
  position: relative;
  width: 46%;
  background: #f3e6d0;
  border: 2px solid #6b4423;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tunnel-stop.in-view { opacity: 1; transform: translateY(0); }

.tunnel-stop.left { align-self: flex-start; margin-left: 2%; }
.tunnel-stop.right { align-self: flex-end; margin-right: 2%; }

.tunnel-stop::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f3e6d0;
  border: 2px solid #6b4423;
}

.tunnel-stop.left::after { right: -34px; transform: translateY(-50%); }
.tunnel-stop.right::after { left: -34px; transform: translateY(-50%); }

.tunnel-stop-label {
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
  color: #8a5a2e;
  margin: 0 0 6px;
}

.tunnel-stop img.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tunnel-stop h3 {
  font-family: 'Patrick Hand', cursive;
  font-size: 22px;
  margin: 0 0 6px;
  color: #2e2015;
}

.tunnel-stop p {
  font-size: 14px;
  color: #4a3520;
  margin: 0 0 10px;
}

.tunnel-stop a.dig-link {
  font-family: var(--font-code);
  font-size: 12px;
  color: #6b4423;
  border-bottom: 1px solid #6b4423;
}

.tunnel-stop .dig-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.tunnel-end {
  text-align: center;
  max-width: 360px;
  margin: 100px auto 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 22px;
  color: #f3e6d0;
}

.tunnel-end .back-link {
  color: #f3e6d0;
  margin-top: 14px;
  display: inline-block;
}

@media (max-width: 640px) {
  .tunnel-track { left: 24px; }
  .tunnel-stop.left, .tunnel-stop.right { width: calc(100% - 56px); margin-left: 56px; margin-right: 0; align-self: flex-start; }
  .tunnel-stop.left::after, .tunnel-stop.right::after { left: -34px; right: auto; }
}


.blizzard-stamp {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eaf8ff, #8ee7ff 55%, #3f9fdc 100%);
  border: 3px solid #14528f;
  outline: 2px dashed rgba(255,255,255,0.75);
  outline-offset: -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-14deg);
  box-shadow: 0 5px 10px rgba(0,0,0,0.35);
  z-index: 5;
  font-family: var(--font-code);
  color: #0d3b66;
}

.blizzard-stamp .icon { font-size: 20px; line-height: 1; }

.blizzard-stamp .label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact .contact-label {
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.footer-contact .contact-email {
  font-family: var(--font-code);
  font-size: 14px;
}

.footer-icons { display: flex; gap: 12px; }

.footer-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icons img { width: 18px; height: 18px; }

.footer-icons a.filled { background: var(--ink); }

.signature {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-details { grid-template-columns: 1fr; }
  .page-title-row { flex-direction: column-reverse; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: var(--gutter);
    top: 70px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 8px;
    gap: 14px;
    z-index: 10;
  }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .marquee-track img, .marquee-track .placeholder-tile { width: 220px; height: 160px; }
  .footer-cta, .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }

  .marquee-caption {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .marquee-caption .proj-name { order: 1; }
  .marquee-caption .see-project { order: 2; margin-left: auto; }
  .marquee-caption .proj-desc {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }
}



/* ---------- Stickerville ---------- */

.download-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.download-all-btn:hover { transform: translateY(-2px); }

.sticker-sheet {
  background: linear-gradient(135deg, #8a8f98, #5a6068);
  border-radius: 16px;
  padding: 56px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 22px;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 48px;
}

.sticker {
  --r: 0deg;
  position: relative;
  width: 150px;
  text-align: center;
  transform: rotate(var(--r));
  transition: transform 0.15s ease;
  cursor: pointer;
}

.sticker:hover { transform: rotate(var(--r)) translateY(-6px) scale(1.05); z-index: 5; }

.tilt-a { --r: -8deg; }
.tilt-b { --r: 6deg; }
.tilt-c { --r: -4deg; }
.tilt-d { --r: 9deg; }
.tilt-e { --r: -6deg; }
.tilt-f { --r: 3deg; }

.nudge-up { margin-top: -14px; }
.nudge-down { margin-top: 16px; }
.nudge-mid { margin-top: 0; }

.sticker-art { position: relative; }

.sticker-art img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.sticker-explainer {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 6;
}

.sticker-explainer::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111;
}

.sticker:hover .sticker-explainer,
.sticker.show-explainer .sticker-explainer { opacity: 1; }

.sticker-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sticker-name {
  font-family: var(--font-code);
  font-size: 11px;
  color: #fff;
}

.sticker-download {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.15);
  text-decoration: none;
}

.sticker-download:hover { background: #e8e8e8; }

/* Stickerville teaser, inside the sidequests reveal panel */

.stickerville-teaser {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 5%;
  transform: translateY(-50%) rotate(-8deg);
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.stickerville-teaser:hover { transform: translateY(-54%) rotate(-8deg); }

.stickerville-teaser .pack svg { width: 76px; height: 76px; display: block; margin: 0 auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }

.stickerville-teaser .pack-label {
  display: block;
  margin-top: 4px;
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .stickerville-teaser { position: static; margin-top: 10px; transform: rotate(-4deg); }
  .stickerville-teaser:hover { transform: rotate(-4deg); }
  .sticker { width: 120px; }
}

/* Paste this whole file at the very END of css/style.css */

/* ---------- Folder: blue stamp + typed sheet (adds to the existing folder styles) ---------- */
.sf-front { flex-direction: column; gap: 8px; }
.sf-stamp2 { font-family: var(--font-code); font-size: .72rem; font-weight: 700; color: #1d4ed8; border: 2px solid #1d4ed8; border-radius: 3px; padding: 1px 8px; transform: rotate(5deg); opacity: .9; }
.sf-typed { display: block; margin-bottom: 10px; font: 700 .95rem 'Courier New', Courier, monospace; color: #111; }

/* ---------- Manifesto extras: photo, declassify, clearance, stamps, away demo ---------- */
.mf-hero { position: relative; }
.mf-portrait { position: absolute; top: 24px; right: 0; width: 140px; height: 140px; margin: 0; border: 1.5px solid var(--line); border-radius: 16px; background: var(--mf-tint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mf-portrait::before { content: "Rebekah Mugenyi"; padding: 8px; text-align: center; font-family: var(--font-code); font-size: .8rem; color: var(--ink-soft); }
.mf-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 641px) { .mf-hero > *:not(.mf-portrait) { max-width: calc(100% - 170px); } }
@media (max-width: 640px) { .mf-portrait { position: static; width: 110px; height: 110px; margin-bottom: 16px; } }

.mf-redact { position: relative; display: inline-block; cursor: pointer; }
.mf-redact::after { content: ""; position: absolute; inset: .08em -.1em; background: #111; transform: scaleX(0); transform-origin: left; transition: transform .7s ease; }
.mf-redact.redacted::after { transform: scaleX(1); }

.mf-clearance { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-code); font-size: .85rem; }
.mf-clearance progress { width: 140px; height: 10px; accent-color: var(--mf-blue); }
.mf-briefed { display: none; padding: 1px 10px; border: 2px solid #c62828; border-radius: 4px; color: #c62828; font-weight: 700; transform: rotate(-4deg); }
.mf-briefed.show { display: inline-block; animation: mf-thud .35s ease; }
@keyframes mf-thud { from { transform: rotate(-4deg) scale(1.8); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }

.mf-card-rel { position: relative; }
.mf-approved { position: absolute; bottom: 14px; right: 14px; padding: 2px 12px; border: 3px solid #2e7d32; border-radius: 4px; color: #2e7d32; font-family: 'Bangers', var(--font-display), sans-serif; font-size: 1.6rem; opacity: 0; transform: rotate(8deg) scale(1.6); transition: transform .25s ease, opacity .25s ease; pointer-events: none; }
.mf-approved.show { opacity: .9; transform: rotate(8deg) scale(1); }

.mf-switch { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.mf-switch input { width: 20px; height: 20px; accent-color: var(--mf-blue); }
.mf-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mf-member { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-family: var(--font-body); text-align: center; cursor: pointer; }
.mf-member em { font-style: normal; font-family: var(--font-code); font-size: .78rem; }
.mf-member:focus-visible, .mf-switch input:focus-visible { outline: 3px solid var(--mf-blue); outline-offset: 3px; }
.mf-member.gone { opacity: .75; border-style: dashed; }
.mf-member.stalled { border-color: #c62828; color: #c62828; }
.mf-member.covered { border-color: #2e7d32; color: #2e7d32; }
@media (max-width: 640px) { .mf-members { grid-template-columns: 1fr; } }

/* ---------- Manifesto: Suggestions / Comments button ---------- */
.mf-suggest { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; --mf-blue: #1d4ed8; --mf-tint: rgba(29, 78, 216, 0.12); }
:root[data-theme="dark"] .mf-suggest { --mf-blue: #7aa2ff; --mf-tint: rgba(122, 162, 255, 0.18); }
.mf-suggest-btn { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--mf-blue); border-radius: 999px; background: var(--paper); color: var(--mf-blue); font-family: var(--font-code); font-size: .9rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: box-shadow .2s ease, transform .2s ease; }
.mf-suggest-btn:hover, .mf-suggest-btn[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--mf-tint), 0 2px 12px rgba(0,0,0,.15); transform: translateY(-2px); }
.mf-suggest-btn:focus-visible, .mf-suggest-link:focus-visible { outline: 3px solid var(--mf-blue); outline-offset: 3px; }
.mf-suggest-btn .mf-ico { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mf-cursor { animation: mf-blink 1.1s steps(2, start) infinite; }
@keyframes mf-blink { to { opacity: 0; } }

.mf-suggest-panel { width: min(280px, calc(100vw - 32px)); padding: 16px; border: 1.5px dashed var(--mf-blue); border-radius: 12px; background: var(--paper); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.mf-suggest.js-on:not(.open) .mf-suggest-panel { display: none; }
.mf-suggest-title { margin: 0 0 12px; font-family: var(--font-display); line-height: 1.3; }
.mf-suggest-link { display: block; padding: 10px 12px; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); font-family: var(--font-code); font-size: .85rem; text-decoration: none; }
.mf-suggest-link:hover { border-color: var(--mf-blue); background: var(--mf-tint); }

@media (max-width: 480px) { .mf-suggest-btn { padding: 11px 14px; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) {
  .mf-cursor { animation: none; }
  .mf-suggest-btn { transition: none; }
}

/* Manifesto photo: larger and pulled in from the edge on desktop */
@media (min-width: 641px) {
  .mf-portrait { width: 200px; height: 200px; right: 24px; top: 50%; transform: translateY(-50%); }
  .mf-hero > *:not(.mf-portrait) { max-width: calc(100% - 240px); }
}
@media (min-width: 1000px) {
  .mf-portrait { width: 260px; height: 260px; right: 48px; }
  .mf-hero > *:not(.mf-portrait) { max-width: calc(100% - 320px); }
}

/* Phone: smaller TOP SECRET folder, top-right corner, clear of the hazard tape */
@media (max-width: 640px) {
  .secret-doorway { position: absolute; top: 70px; right: 8px; margin: 0; transform: rotate(4deg) scale(.55); transform-origin: top right; }
  .secret-doorway:hover, .secret-doorway:focus-visible { transform: rotate(1deg) scale(.55); }
  .sf-hint { font-size: 1.5rem; }
}

/* Phone: photo is a contained square, with the headline and text below it */
@media (max-width: 640px) {
  .mf-portrait { position: relative !important; top: auto !important; right: auto !important; transform: none !important; width: 220px !important; height: 220px !important; margin: 0 0 20px; z-index: 0; }
}



/* Commitment section: let the text use the full page width */
.mf-end p { max-width: none; }
.mf-quote { max-width: none; }

/* Commitment section: justified text */
.mf-end p { text-align: justify; hyphens: auto; }
.mf-end p:last-of-type { text-align: left; }

/* ---------- Arduino for Everyone (A4e) ---------- */
.a4e-doorway { position: absolute; top: 20%; left: 21%; z-index: 2; display: block; text-align: center; text-decoration: none; transform: rotate(-5deg); transition: transform .15s ease; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.a4e-doorway:hover, .a4e-doorway:focus-visible { transform: rotate(-2deg) translateY(-4px); }
.a4e-doorway:focus-visible { outline: 3px solid #111; outline-offset: 6px; }
.a4e-doorway svg { width: 96px; height: auto; display: block; margin: 0 auto; }
.a4e-label { display: inline-block; margin-top: 4px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-family: var(--font-code); font-size: 14px; font-weight: 700; }
@media (max-width: 640px) { .a4e-doorway { position: static; margin-top: 8px; } }

.a4e-stage { min-height: 55vh; display: flex; align-items: center; justify-content: center; }
.a4e-chapter { padding-bottom: 6px; border-bottom: 3px solid var(--ink); color: var(--ink); font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 4.5rem); font-weight: 700; transition: color .15s ease, border-color .15s ease; }
.a4e-chapter:hover, .a4e-chapter:focus-visible { color: #00979d; border-color: #00979d; }
.a4e-chapter:focus-visible { outline: 3px solid #00979d; outline-offset: 8px; }
@media (prefers-reduced-motion: reduce) { .a4e-doorway, .a4e-chapter { transition: none; } }