:root {
  --background: #000;
  --foreground: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --placeholder: #d9d9d9;
  --tag: #1f1f1f;
  --panel: #141414;
  --line: rgba(255, 255, 255, 0.2);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
button:focus-visible { outline: 1px solid var(--foreground); outline-offset: 3px; }

/* ---------- Worlds (pannable grids) ---------- */

#stage { position: fixed; inset: 0; overflow: hidden; }
.world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.is-dragging, .is-dragging * { cursor: grabbing !important; }
.world-layer { position: absolute; left: 0; top: 0; will-change: transform; }

.item { position: absolute; overflow: hidden; background: var(--tag); }
.item img, .item video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.item img { opacity: 0; transition: opacity 600ms var(--ease-out-soft); }
.item img.is-loaded { opacity: 1; }
.item.is-placeholder { background: var(--placeholder); }

/* Home items */
.world-home {
  transition: transform var(--home-dur, 1100ms) var(--ease-out-soft), opacity 800ms var(--ease-out-soft);
}
.world-home.is-receding { transform: scale(1.4); opacity: 0; pointer-events: none; }
.world-home.is-receding .item { transition-delay: 0ms; }
.world-home.is-hidden { visibility: hidden; }
.world-home.no-transition { transition: none; }
.home-item { cursor: url("../assets/arrow-cursor.svg") 13 14, pointer; transition: opacity 500ms var(--ease-out-soft), transform 600ms var(--ease-out-soft); }
.home-item::after, .project-item.is-zoomable::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3);
  opacity: 0; transition: opacity 400ms var(--ease-out-soft); pointer-events: none;
}
.item-label {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  opacity: 0; transition: opacity 300ms var(--ease-out-soft); pointer-events: none;
}
.home-item.is-placeholder .item-label { color: #000; }
.home-item.is-placeholder::after { background: rgba(0, 0, 0, 0.08); }
@media (hover: hover) and (pointer: fine) {
  .project-item.is-zoomable { transition: transform 600ms var(--ease-out-soft); }
  html:not(.is-dragging) .home-item:not(.is-dimmed):hover::after,
  html:not(.is-dragging) .home-item:not(.is-dimmed):hover .item-label,
  html:not(.is-dragging) .project-item.is-zoomable:hover::after { opacity: 1; }
  html:not(.is-dragging) .home-item:not(.is-dimmed):hover,
  html:not(.is-dragging) .project-item.is-zoomable:hover { transform: scale(1.1); z-index: 3; }
}
.home-item.is-dimmed { opacity: 0.1; cursor: grab; }

/* Grid crossfade when the Logo filter swaps the item set */
.world-home.is-swap-out { opacity: 0; transform: scale(0.96); pointer-events: none; }
.world-home.is-swap-in { opacity: 0; transform: scale(1.04); }
.home-item.has-veil::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0.03); pointer-events: none; }

/* ---------- Playground ---------- */

.playground {
  position: fixed; inset: 0; z-index: 45; background: var(--background);
  opacity: 0; transition: opacity 500ms var(--ease-out-soft);
}
.playground[hidden] { display: none; }
.playground.is-open { opacity: 1; }
.play-list .list-layer { transform: translateY(80px); transition: transform 1000ms var(--ease-out-soft), opacity 220ms var(--ease-out-soft); }
.playground.is-open .play-list .list-layer { transform: none; }
.play-item { background: #111; }
.play-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.play-item.is-current .play-frame { pointer-events: auto; }
html.is-dragging .play-frame { pointer-events: none !important; }
.play-note {
  position: absolute; left: 20px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 8px;
  color: #000; pointer-events: none;
}
.play-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.list-caption.is-above { flex-direction: row; gap: 16px; }
.list-caption.is-above .lc-count { margin-top: 0; margin-left: auto; }
body.in-play .site-header, body.in-play .sound-btn { z-index: 50; }
body.in-about .site-header { z-index: 55; }
body.in-play .edge-fade.top, body.in-play .edge-fade.bottom { z-index: 46; }
.h-play.is-active { text-decoration: underline; text-underline-offset: 3px; }

/* Grid sinks away behind the list view */
.world-home.is-listed { transform: scale(0.94); opacity: 0; pointer-events: none; }

/* ---------- List view ---------- */

.world-list {
  position: absolute; inset: 0; z-index: 3; visibility: hidden; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: opacity 600ms var(--ease-out-soft), transform 900ms var(--ease-out-soft);
}
.world-list.is-on { visibility: visible; }
.world-list.is-behind { opacity: 0; transform: scale(0.94); pointer-events: none; }
.list-layer { position: absolute; inset: 0; transition: opacity 220ms var(--ease-out-soft); }
.world-list.is-swapping .list-layer, .world-list.is-swapping .list-caption { opacity: 0 !important; }
.list-item {
  position: absolute; left: 0; top: 0; display: none; overflow: hidden;
  background: var(--tag); border-radius: 2px; will-change: transform;
}
.list-item img {
  display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: 0; transition: opacity 500ms var(--ease-out-soft), transform 700ms var(--ease-out-soft);
}
.list-item img.is-loaded { opacity: 1; }
.list-shade { position: absolute; inset: 0; background: #000; opacity: 0.5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.is-dragging) .world-list:not(.is-morphing) .list-item.is-current:hover img { transform: scale(1.03); }
}
.list-caption {
  position: absolute; left: 0; top: 0; z-index: 2000;
  display: flex; flex-direction: column; gap: 2px; white-space: nowrap; pointer-events: none;
  opacity: 1; transition: opacity 400ms var(--ease-out-soft);
}
.list-caption > span { display: block; }
.lc-tags, .lc-count { color: var(--muted); }
.lc-count { margin-top: 10px; font-variant-numeric: tabular-nums; }
.world-list.is-morphing .list-caption { opacity: 0; transition-duration: 200ms; }
.list-caption.is-swap > span { animation: lc-in 600ms var(--ease-out-soft) both; }
.list-caption.is-swap > span:nth-child(2) { animation-delay: 50ms; }
.list-caption.is-swap > span:nth-child(3) { animation-delay: 100ms; }
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- View toggle (Grid View | List View) ---------- */

.views { display: flex; gap: 8px; white-space: nowrap; }
.view-btn { transition: opacity 200ms; }
.view-btn:not(.is-active) { opacity: 0.4; }
.view-btn:not(.is-active):hover { opacity: 0.8; }
.view-btn.is-active { text-decoration: underline; text-underline-offset: 3px; }
.v-sep { opacity: 0.4; }

/* Project items */
.world-project { z-index: 2; }
.world-project.is-entering { pointer-events: none; }
.world-project.is-leaving {
  transform: scale(0.8); opacity: 0; pointer-events: none;
  transition: transform 900ms var(--ease-out-soft), opacity 650ms var(--ease-out-soft);
}
.project-item { will-change: transform, opacity; }
.project-item.is-hero { z-index: 2; }
.project-item.is-zoomable { cursor: zoom-in; }

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

.site-header {
  align-items: start; /* every link sits on the same line as "Joe Furr", however tall the intro wraps */
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.h-role, .h-intro { pointer-events: none !important; }
.h-name { grid-column: span 1; position: relative; display: grid; justify-items: start; white-space: nowrap; pointer-events: none !important; }
.h-name > span { grid-area: 1 / 1; transition: opacity 400ms var(--ease-out-soft), transform 500ms var(--ease-out-soft); }
.h-back { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(6px); }
.h-back svg { transition: transform 250ms var(--ease-out-soft); }
.in-project .h-name { pointer-events: auto !important; }
.in-project .h-name-label { opacity: 0; transform: translateX(-6px); }
.in-project .h-back { opacity: 1; transform: none; transition-delay: 150ms; }
.in-project .h-name:hover .h-back svg { transform: translateX(-3px); }
.h-role { grid-column: span 3; }
.h-intro { grid-column: 5 / span 5; max-width: 560px; }
.h-play { grid-column: 10; justify-self: end; white-space: nowrap; }
.h-about { grid-column: 11; }
.h-email { grid-column: 12; text-align: right; }
.h-about:hover, .h-email:hover, .h-play:hover { opacity: 0.6; }
.h-intro, .home-only { transition: opacity 500ms var(--ease-out-soft); }
.in-project .h-intro, .in-project .home-only { opacity: 0; pointer-events: none; }

.nav {
  position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 30;
}
.nav-bar { display: flex; align-items: center; gap: 10px; height: 13.4px; width: 140px; }
.nav-bar .bar { display: block; height: 1px; background: var(--foreground); transition: width 300ms var(--ease-out-soft), opacity 300ms; }
.nav-name { opacity: 0; transform: translateX(-4px); transition: opacity 200ms, transform 200ms var(--ease-out-soft); white-space: nowrap; }
.nav-bar.is-hover .nav-name { opacity: 1; transform: none; }

.site-footer {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: var(--gutter);
  pointer-events: none;
}
.site-footer > * { pointer-events: auto; }
.filter { transition: opacity 200ms; }
.filters .filter:not(.is-active) { opacity: 0.4; }
.filters .filter:not(.is-active):hover { opacity: 0.8; }
.filter.is-active { text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; gap: 28px; }
.hint { color: var(--muted); }
.active-name { display: none; }

/* ---------- Close button ---------- */

.close-btn {
  position: fixed; left: 50%; bottom: var(--gutter); z-index: 40;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; min-width: 140px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 200ms, background 200ms, opacity 500ms var(--ease-out-soft), transform 500ms var(--ease-out-soft);
}
.close-btn:hover { border-color: rgba(255, 255, 255, 0.6); background: #1c1c1c; }

/* ---------- Project chrome ---------- */

.project-ui { position: fixed; inset: auto 0 0 0; z-index: 35; pointer-events: none; }
.p-meta > * {
  opacity: 0; transition: opacity 600ms var(--ease-out-soft), transform 600ms var(--ease-out-soft);
}
.p-meta {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; gap: 24px; align-items: baseline;
}
.p-meta > * { transform: translateY(8px); }
.p-name { min-width: 120px; }
.p-tags { color: var(--muted); }
.p-count { margin-left: auto; color: var(--muted); }
.project-ui.is-open { pointer-events: none; }
.project-ui.is-open .p-meta > * { opacity: 1; transform: none; }
.project-ui.is-open .p-name { transition-delay: 600ms; }
.project-ui.is-open .p-tags { transition-delay: 670ms; }
.project-ui.is-open .p-count { transition-delay: 740ms; }

/* ---------- Lightbox carousel ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: background 450ms var(--ease-out-soft), opacity 450ms var(--ease-out-soft);
  cursor: grab;
}
.lightbox.is-open { background: rgba(0, 0, 0, 0.97); }
.lightbox.is-closing { opacity: 0; pointer-events: none; }
.lightbox.is-dragging, .lightbox.is-dragging * { cursor: grabbing; }
.lb-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lb-slide { flex: 0 0 100vw; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media {
  display: block; object-fit: cover; background: var(--tag);
  cursor: pointer;
  opacity: 0.35; transition: opacity 400ms var(--ease-out-soft);
}
.lb-slide.is-active .lb-media { opacity: 1; }
.lb-live { position: relative; overflow: hidden; cursor: default; }
.lb-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-frame {
  position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: transparent;
  opacity: 0; transition: opacity 500ms var(--ease-out-soft);
}
.lb-frame.is-ready { opacity: 1; }
.lightbox.is-dragging .lb-frame { pointer-events: none; }

.lb-arrow, .lb-meta, .lb-bars {
  opacity: 0; transition: opacity 500ms var(--ease-out-soft) 250ms;
}
.lightbox.is-open .lb-arrow, .lightbox.is-open .lb-meta, .lightbox.is-open .lb-bars { opacity: 1; }
.lb-track { transition: opacity 220ms var(--ease-out-soft); }
.lightbox.is-wrapping .lb-track { opacity: 0; }
/* While the carousel is open the header's Back closes it, and Sound stays usable. */
body.lb-open .site-header { z-index: 65; }
body.lb-open .h-about, body.lb-open .h-email, body.lb-open .h-play { opacity: 0; pointer-events: none; }
body.lb-open .sound-btn { z-index: 65; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
}
.lb-arrow img { width: 26px; transition: transform 250ms var(--ease-out-soft); }
.lb-prev { left: 12px; }
.lb-prev img { transform: scaleX(-1); }
.lb-next { right: 12px; }
.lb-prev:hover img { transform: scaleX(-1) translateX(4px); }
.lb-next:hover img { transform: translateX(4px); }
.lightbox.is-open .lb-arrow:disabled { opacity: 0.2; cursor: default; }
.lb-meta {
  position: absolute; bottom: var(--gutter); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; pointer-events: none;
}
.lb-count { margin-right: 120px; color: var(--muted); }
.lb-count { font-variant-numeric: tabular-nums; }
.lb-bars {
  position: absolute; left: 50%; bottom: calc(var(--gutter) - 3px); transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 0;
}
.lb-bar { width: 9px; height: 22px; display: flex; align-items: flex-end; justify-content: center; }
.lb-bar::before {
  content: ""; width: 1px; height: 8px; background: var(--foreground); opacity: 0.45;
  transition: height 300ms var(--ease-out-soft), opacity 300ms;
}
.lb-bar:hover::before { opacity: 1; height: 13px; }
.lb-bar.is-active::before { height: 20px; opacity: 1; }

/* ---------- About ---------- */

.about {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background: transparent; transition: background-color 500ms var(--ease-out-soft);
  cursor: url("../assets/close-cursor.svg") 13 13, pointer;
}
.about[hidden] { display: none; }
.about[data-open="true"] { background: var(--background); }
.about .close-btn { opacity: 0; }
.about[data-open="true"] .close-btn { opacity: 1; transition-delay: 600ms; }
.about-grid {
  min-height: 100%; display: grid; grid-template-columns: 1fr auto; align-content: center;
  gap: 80px; padding: 64px var(--gutter) 100px;
}
.about-side { width: 480px; }
.tag { display: inline-flex; align-items: flex-start; gap: 12px; padding: 4px 8px; border-radius: 2px; background: var(--tag); }
.tag .dot { width: 4px; height: 4px; margin-top: 4px; background: var(--foreground); }
.about-lead { margin-top: 48px; max-width: 760px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.about-cols { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-cols h3 { font-size: 18px; font-weight: 400; }
.about-cols ul, .about-cols p { margin-top: 12px; list-style: none; color: var(--muted); letter-spacing: 0.02em; line-height: 1.6; }
.about-clients-tag { margin-top: 48px; }
.reveal {
  opacity: 0; transform: translateY(8px);
  transition: opacity 700ms var(--ease-out-soft), transform 700ms var(--ease-out-soft);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-open="true"] .reveal { opacity: 1; transform: none; transition-delay: calc(200ms + var(--i, 0) * 70ms); }

/* ---------- Mobile ---------- */

@media (max-width: 1023px) {
  .site-header { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; column-gap: 16px; }
  .h-name { grid-column: 1; }
  .h-play { grid-column: 2; grid-row: 1; }
  .h-role { display: none; }
  .h-intro { grid-column: 1 / span 4; grid-row: 2; color: var(--muted); }
  .h-about { grid-column: 3; grid-row: 1; }
  .h-email { grid-column: 4; grid-row: 1; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; }
  .about-side { width: auto; }
  .about-lead { font-size: 24px; margin-top: 32px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .nav, .hint { display: none; }
  .filters { display: none; }
  .active-name { display: block; }
  .close-btn { left: var(--gutter); right: var(--gutter); transform: none; width: auto; }
  .p-tags, .p-count-hint { display: none; }
  .p-meta { gap: 16px; }
  .p-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .p-count { white-space: nowrap; }
  .lb-arrow { display: none; }
  .site-footer .meta .copy { display: none; }
  .list-caption { flex-direction: row; gap: 12px; }
  .lc-tags { display: none; }
  .lc-count { margin-top: 0; }
  .lb-bars { bottom: calc(var(--gutter) + 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .world-home, .world-project.is-leaving, .reveal, .lightbox, .world-list { transition-duration: 1ms !important; }
}

/* ---------- Custom cursor ---------- */

html.custom-cursor, html.custom-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 1000; pointer-events: none; }
.cursor { opacity: 0; transition: opacity 200ms; }
.cursor.is-visible { opacity: 1; }
.c-ring {
  --s: 1; --p: 1;
  position: absolute; left: -30.74px; top: -30.74px; width: 61.48px; height: 61.48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: scale(calc(var(--s) * var(--p)));
  transition: transform 500ms var(--ease-out-soft), background 300ms, border-color 300ms;
}
.c-glyph {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform: rotate(45deg); opacity: 1;
  transition: transform 500ms var(--ease-out-soft), opacity 250ms;
}
.c-glyph i { position: absolute; background: #fff; }
.c-glyph i:first-child { width: 0.77px; height: 27.11px; left: -0.385px; top: -13.555px; }
.c-glyph i:last-child { width: 27.11px; height: 0.77px; left: -13.555px; top: -0.385px; }
.is-down .c-ring { --p: 0.88; }

[data-mode="x"] .c-ring { --s: 1; }
[data-mode="x"] .c-glyph { transform: rotate(45deg); }
[data-mode="plus"] .c-ring { --s: 1.3154; } /* 80.87 / 61.48, from the + cursor file */
[data-mode="plus"] .c-glyph { transform: rotate(90deg); }
[data-mode="neutral"] .c-ring { --s: 0.42; background: rgba(120, 120, 120, 0.55); border-color: rgba(255, 255, 255, 0.4); }
[data-mode="neutral"] .c-glyph { transform: rotate(45deg) scale(0.4); opacity: 0; }
[data-mode="ui"] .c-ring { --s: 0.14; background: #fff; border-color: transparent; }
[data-mode="ui"] .c-glyph { opacity: 0; transform: rotate(45deg) scale(0.4); }

/* ---------- Landing modal ---------- */

.intro {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, 0); transition: background 600ms var(--ease-out-soft);
}
.intro.is-open { background: rgba(0, 0, 0, 0.7); }
.intro-card {
  /* landing modal.svg at 1.25x */
  width: min(335px, 100%);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 17.85px 15.5px 22.5px;
  background: #141414; border: 1px solid #2b2b2b; border-radius: 11.2px;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 600ms var(--ease-out-soft) 150ms, transform 700ms var(--ease-out-soft) 150ms;
}
.intro.is-open .intro-card { opacity: 1; transform: none; }
.intro-screen {
  position: relative; aspect-ratio: 243.09 / 161.98; overflow: hidden;
  background: #000; border: 1px solid #2b2b2b; border-radius: 4.45px;
}
.intro-copy {
  margin: 34px auto 38px; max-width: 280px;
  font-size: 20.6px; line-height: 24.7px; text-align: center; color: #d1d1d1;
  letter-spacing: -0.01em;
}
.intro-btn {
  height: 39px; border-radius: 999px; background: #d1d1d1; color: #141414;
  text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  transition: background 200ms;
}
.intro-btn:hover { background: #fff; }
.intro-btn, .intro-btn:focus, .intro-btn:focus-visible { outline: none; border: 0; box-shadow: none; }
html.custom-cursor .intro-btn { cursor: pointer !important; }
.cursor[data-mode="hidden"] { opacity: 0 !important; }

.demo { position: absolute; left: 0; top: 0; width: 243.09px; height: 161.98px; transform-origin: 0 0; }
.demo-zoom { position: absolute; inset: 0; }
.demo-layer { position: absolute; left: 0; top: 0; }
.demo-item { position: absolute; background: #4c4c4c; }
.demo-item::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dark, 0); }
.demo-item.is-hero, .demo-flyer { background: #6a6a6a; }
.demo-project .demo-item { background: #3d3d3d; }
.demo-project .demo-item.is-hero { background: #6a6a6a; }
.demo-zoom.is-anim .demo-item { transition: none; }
.demo-flyer { z-index: 5; display: none; }

/* ---------- Edge gradients (legibility for header/footer text) ---------- */

.edge-fade { position: fixed; left: 0; right: 0; z-index: 25; pointer-events: none; }
.edge-fade.top { top: 0; height: 160px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.edge-fade.bottom { bottom: 0; height: 130px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.edge-fade.left, .edge-fade.right { top: 0; bottom: 0; right: auto; width: 140px; }
.edge-fade.left { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.edge-fade.right { left: auto; right: 0; background: linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
@media (max-width: 767px) { .edge-fade.left, .edge-fade.right { width: 48px; } }

/* ---------- Sound toggle ---------- */

.sound-btn {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 36;
  white-space: nowrap; transition: opacity 200ms;
}
.sound-btn:hover { opacity: 0.6; }
.site-footer .meta { margin-right: 120px; }
.p-count { margin-right: 120px; }

