@import url('https://fonts.googleapis.com/css2?family=Arsenal:wght@400;500;600&family=League+Spartan:wght@400;500;600&family=Staatliches&display=swap');

* { box-sizing: border-box; }

:root {
  --bg: #10171d;
  --surface: #18242e;
  --surface-2: #233340;
  --surface-3: #3d5b70;
  --text: #e7eef4;
  --muted: #9fb2c1;
  --line: #2f4352;
  --accent: #7db4e9;
  --accent-strong: #1e70bc;
  --accent-deep: #1167b9;
  --accent-soft: #92c4f3;
  --button-text: #0d1821;
  --shadow: rgb(0 0 0 / .28);
  --max: 1180px;
  --header-height: 82px;
}

html[data-theme="light"] {
  --bg: #f4f7f9;
  --surface: #eaf0f4;
  --surface-2: #dde7ee;
  --surface-3: #c8d8e3;
  --text: #1b2a35;
  --muted: #5d7383;
  --line: #c3d1db;
  --accent: #1167b9;
  --accent-strong: #1e70bc;
  --accent-deep: #0d568f;
  --accent-soft: #3d5b70;
  --button-text: #f8fbfd;
  --shadow: rgb(22 47 64 / .13);
}

html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Arsenal", Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  transition: background .18s ease, color .18s ease;
}
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;

  width: 100%;
  min-height: var(--header-height);
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;

  border-bottom: 1px solid var(--line);
  background: var(--bg);

  transform: translateY(0);

  transition:
    transform 240ms cubic-bezier(.2, .8, .2, 1),
    background-color 180ms ease,
    border-color 180ms ease;

  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

/*
 * The fixed header is removed from normal document flow.
 * Keep its original vertical space so page content does not
 * jump underneath it.
 */
#site-shell {
  min-height: var(--header-height);
}

/*
 * Keep programmatic scrolling / anchors clear of the navbar.
 */
html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}
.brand,
.nav-drawer-brand {
  font-family: "Staatliches", Impact, sans-serif;
  letter-spacing: .11em;
  text-decoration: none;
  white-space: nowrap;
}
.brand { font-size: 1.32rem; }
.site-nav { display: flex; justify-content: center; gap: 28px; }
.site-nav a,
.nav-drawer-links a {
  font-family: "League Spartan", Arial, sans-serif;
  text-decoration: none;
}
.site-nav a {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-tools { display: flex; align-items: center; gap: 17px; color: var(--muted); }
.language-switch { display: flex; align-items: center; gap: 6px; }
.text-button,
.theme-toggle,
.menu-toggle,
.nav-drawer-close {
  border: 0;
  background: none;
  cursor: pointer;
}
.text-button { padding: 3px; font-size: .78rem; letter-spacing: .1em; }
.text-button.is-active { color: var(--accent); }
.theme-toggle { padding: 4px; font-size: 1.18rem; line-height: 1; }
.menu-toggle {
  display: none;

  min-height: 44px;
  padding: 8px 11px;

  align-items: center;
  gap: 9px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--text);
}

.menu-toggle-label {
  display: block;

  font-family: "League Spartan", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
}

.menu-toggle-icon {
  display: block;

  width: 18px;
  flex: 0 0 18px;
}

.menu-toggle-icon span {
  display: block;

  width: 100%;
  height: 1px;

  margin: 4px 0;

  background: currentColor;
}

.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(4 10 14 / .7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  width: min(88vw, 390px);
  height: 100dvh;
  padding: 26px 28px 34px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px var(--shadow);
  transform: translateX(100%);
  transition: transform .24s ease;
}
.nav-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.nav-drawer-brand { font-size: 1.12rem; }
.nav-drawer-close { color: var(--text); font-size: 2rem; line-height: 1; padding: 0 4px; }
.nav-drawer-links { display: flex; flex-direction: column; margin-top: 32px; }
.nav-drawer-links a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.55rem; }
.nav-drawer-links a:hover,
.nav-drawer-links a[aria-current="page"] { color: var(--accent); }
.nav-drawer-tools { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open .nav-drawer { transform: translateX(0); }

main { max-width: var(--max); margin: 0 auto; padding: 70px 32px 110px; min-height: calc(100vh - 165px); }
.page-intro { max-width: 980px; margin-bottom: 72px; }
.page-intro.compact { margin-bottom: 52px; }
.eyebrow,
.project-type,
.contact-label,
.year-heading {
  font-family: "League Spartan", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .74rem; }
h1, h2, h3 {
  font-family: "Staatliches", Impact, sans-serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: .015em;
}
h1 { margin: 0 0 27px; font-size: clamp(3.2rem, 8vw, 7.4rem); }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.home-placeholder { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; }
.home-placeholder h1 { max-width: 850px; white-space: pre-line; }
.home-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; flex-wrap: wrap; }
.button-link,
.contact-form button {
  display: inline-block;
  padding: 11px 19px;
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: var(--button-text);
  text-decoration: none;
  cursor: pointer;
}
.button-link:hover,
.contact-form button:hover { background: var(--accent); border-color: var(--accent); }
.text-link { color: var(--muted); }
.text-link:hover { color: var(--accent); }

.year-section { padding-top: 24px; margin-top: 72px; border-top: 1px solid var(--line); }
.year-heading { margin: 0 0 34px; color: var(--muted); font-size: .83rem; }
.project-entry { display: grid; grid-template-columns: minmax(220px, 36%) 1fr; gap: clamp(30px, 6vw, 76px); padding-bottom: 68px; margin-bottom: 68px; border-bottom: 1px solid var(--line); align-items: start; }
.project-entry:last-child { margin-bottom: 0; }
.poster-frame { min-height: 390px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.poster-frame img { display: block; width: 100%; height: auto; }
.poster-placeholder { padding: 24px; color: var(--muted); text-align: center; font-size: .9rem; }
.project-type { margin: 0 0 12px; color: var(--accent); font-size: .72rem; }
.project-date {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: "League Spartan", Arial, sans-serif;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.project-composer { margin: 9px 0 17px; color: var(--muted); font-size: 1.08rem; }
.project-meta { margin: 0 0 18px; color: var(--muted); }
.project-description { max-width: 660px; margin-top: 24px; }

.project-funding {
  max-width: 720px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

.project-institutions {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.project-links a { border-bottom: 1px solid var(--accent-strong); color: var(--accent-soft); font-family: "League Spartan", Arial, sans-serif; font-size: .75rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

.artist-biog { max-width: 930px; margin-bottom: 74px; }
.artist-biog h2,
.engagements h2 { margin-bottom: 26px; }
.artist-biog h4 { margin: 0; font-family: "Arsenal", Arial, sans-serif; font-size: 1rem; font-weight: 400; }
.engagements ul { list-style: none; padding: 0; margin: 0; }
.engagements li { padding: 22px 0; border-top: 1px solid var(--line); }
.engagements li h1 { font-size: 2rem; }
.engagements li h3 { margin: 0 0 8px; font-family: "Arsenal", Arial, sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.engagements li h4 { margin: 0; }
.engagements li > a { margin-right: 14px; color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(48px, 8vw, 100px); }
.contact-details p { margin-top: 0; }
.contact-label { margin-bottom: 7px !important; color: var(--accent); font-size: .72rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; }
input, textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 190px; resize: vertical; }
.contact-form button { width: fit-content; }
.form-note, .loading-note { color: var(--muted); }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 28px 32px 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 18px; }
  .site-nav { display: none; }
  .site-tools { justify-self: end; }
  .site-tools > .language-switch,
  .site-tools > .theme-toggle { display: none; }
  .menu-toggle { display: inline-flex; }
  .project-entry,
  .contact-grid { grid-template-columns: 1fr; }
  .poster-frame { max-width: 460px; min-height: 320px; }
}

@media (max-width: 520px) {
  .site-header { padding: 19px 20px; }
  .brand { font-size: 1.12rem; }
  main { padding: 52px 20px 84px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .page-intro h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
  .nav-drawer { width: min(92vw, 360px); padding: 22px 24px 30px; }
}

.project-entry.no-poster {
  grid-template-columns: 1fr;
}

.project-entry.no-poster .project-content {
  max-width: 820px;
}


.poster-carousel {
  width: 100%;
}

.poster-carousel-frame {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.poster-carousel-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poster-carousel-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.poster-carousel-button {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.poster-carousel-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.poster-carousel-position {
  color: var(--muted);
  font-family: "League Spartan", Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-align: center;
}

.project-detail {
  max-width: 720px;
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.project-detail-label {
  color: var(--accent);
  font-family: "League Spartan", Arial, sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-detail-productions {
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}


/* Theme icon */
.theme-icon {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  font-size: 1.18rem;
  line-height: 1;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: inline-block;
}

/* Carousel slides: author CSS must respect the hidden state */
.poster-carousel-frame img[hidden] {
  display: none;
}

/* -------------------------------------------------------------
   ARTIST PAGE
------------------------------------------------------------- */

.artist-page-intro {
  margin-bottom: 1.75rem;
}

.artist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.artist-action-button {
  min-height: 56px;
  min-width: 190px;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border-color, currentColor);
  border-radius: 12px;
  background: var(--surface-raised, transparent);
  color: inherit;
  font: inherit;
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.artist-action-button:hover {
  transform: translateY(-1px);
}

.artist-action-button:active {
  transform: translateY(0);
}

.artist-action-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.artist-action-button-secondary {
  opacity: 0.9;
}

.artist-action-icon {
  font-size: 0.78em;
  opacity: 0.72;
  flex: 0 0 auto;
}

.artist-biography-slide {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;

  transition:
    grid-template-rows 340ms cubic-bezier(.2, .8, .2, 1),
    opacity 240ms ease,
    visibility 0s linear 340ms;
}

.artist-biography-slide.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;

  transition:
    grid-template-rows 340ms cubic-bezier(.2, .8, .2, 1),
    opacity 240ms ease,
    visibility 0s;
}

.artist-biography-slide-inner {
  overflow: hidden;
}

.artist-biography-card {
  margin: 0 0 2.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--border-color, currentColor);
  border-radius: 16px;
}

.artist-biography-card h2 {
  margin-top: 0;
}

.artist-biography-copy {
  max-width: 78ch;
}

.artist-biography-copy p {
  line-height: 1.75;
}

.artist-biography-copy p:last-child {
  margin-bottom: 0;
}

.artist-biography-copy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Make the inherited old archive links easier to hit. */

.legacy-artist-content a {
  display: inline-block;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  margin: 0.15rem 0.2rem 0.15rem 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.35;
}

.legacy-artist-content a:hover {
  text-decoration: underline;
}

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

  .artist-action-button {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 1rem 1.15rem;
    font-size: 1.05rem;
  }

  .legacy-artist-content a {
    min-height: 44px;
    padding: 0.65rem 0.8rem;
  }
}

/* -------------------------------------------------------------
   ARTIST PDF / PRINT VIEW
------------------------------------------------------------- */

@media print {
  body.artist-print-mode #site-shell,
  body.artist-print-mode #site-footer,
  body.artist-print-mode .artist-actions {
    display: none !important;
  }

  body.artist-print-mode .artist-biography-slide {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.artist-print-mode .artist-biography-slide-inner {
    overflow: visible !important;
  }

  body.artist-print-mode .artist-biography-card {
    border: 0;
    padding: 0;
    margin-bottom: 2rem;
  }

  body.artist-print-mode .legacy-artist-content a {
    border: 0;
    padding: 0;
    margin: 0;
    min-height: 0;
    text-decoration: underline;
  }

  body.artist-print-mode a {
    color: inherit;
  }
}

/* -------------------------------------------------------------
   ETC. / ΚΤΛ.
------------------------------------------------------------- */

.etc-intro {
  margin-bottom: 1.5rem;
}

.etc-instructions {
  margin-top: 1rem;
  max-width: 50rem;
  opacity: 0.72;
  font-style: italic;
}

.etc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.etc-control {
  min-height: 48px;
  padding: 0.7rem 1.05rem;

  border: 1px solid currentColor;
  border-radius: 999px;

  background: transparent;
  color: inherit;

  font-family: "League Spartan", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.etc-control:hover {
  transform: translateY(-2px);
}

.etc-control:active {
  transform: translateY(0);
}

.etc-playground {
  position: relative;

  width: 100%;
  min-height: 900px;

  margin-top: 1rem;
  margin-bottom: 5rem;

  overflow: hidden;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  isolation: isolate;

  /*
   * Empty space is now interactive: clicking it shuffles all tokens.
   */
  cursor: crosshair;
}

.etc-token {
  position: absolute;

  max-width: min(320px, calc(100vw - 3rem));

  z-index: 1;

  /*
   * Position is controlled by the physics loop. A CSS transition
   * here would fight the requestAnimationFrame movement.
   */
  will-change: left, top;
}

.etc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0.75rem 1rem;

  border: 1px solid currentColor;
  border-radius: 999px;

  background:
    color-mix(
      in srgb,
      var(--surface) 72%,
      transparent
    );

  color: inherit;

  font-family: "League Spartan", sans-serif;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 600;
  line-height: 1.1;

  text-align: center;
  text-decoration: none;

  box-shadow:
    0 8px 22px rgb(0 0 0 / 0.08);

  backdrop-filter: blur(5px);

  transform:
    translateY(0)
    rotate(var(--etc-tilt, 0deg));

  animation:
    etc-float var(--etc-duration, 4s)
    ease-in-out
    var(--etc-delay, 0s)
    infinite alternate;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease,
    scale 160ms ease;

  cursor: pointer;
}

.etc-link:hover {
  box-shadow:
    0 14px 34px rgb(0 0 0 / 0.18);
}

.etc-token.is-bumping .etc-link {
  scale: 1.035;
}

.etc-token.is-shuffling .etc-link {
  scale: 0.9;
  opacity: 0.72;
}

.etc-token.is-used {
  z-index: 3;
}

.etc-token.is-used .etc-link {
  opacity: 0.67;

  background:
    color-mix(
      in srgb,
      var(--accent) 14%,
      var(--surface)
    );

  border-style: dashed;
}

.etc-token.is-used .etc-link::after {
  content: " ✓";
  margin-left: 0.35rem;
  opacity: 0.8;
}

.etc-token.is-used.is-fleeing {
  z-index: 8;
}

.etc-token.is-used.is-fleeing .etc-link {
  opacity: 0.92;

  box-shadow:
    0 16px 38px rgb(0 0 0 / 0.24);

  border-color: var(--accent);
}

.etc-token.is-dodging .etc-link {
  animation:
    etc-float var(--etc-duration, 4s)
    ease-in-out
    var(--etc-delay, 0s)
    infinite alternate,
    etc-panic 400ms cubic-bezier(.18, .85, .28, 1);
}

@keyframes etc-float {
  from {
    transform:
      translate(-3px, -9px)
      rotate(var(--etc-tilt, 0deg));
  }

  35% {
    transform:
      translate(7px, -2px)
      rotate(calc(var(--etc-tilt, 0deg) * -0.45));
  }

  70% {
    transform:
      translate(-5px, 8px)
      rotate(calc(var(--etc-tilt, 0deg) * 0.65));
  }

  to {
    transform:
      translate(6px, 3px)
      rotate(calc(var(--etc-tilt, 0deg) * -1));
  }
}

@keyframes etc-panic {
  0% {
    scale: 1;
  }

  28% {
    scale: 0.88;
  }

  58% {
    scale: 1.12;
  }

  100% {
    scale: 1;
  }
}

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

  .etc-control {
    width: 100%;
    min-height: 52px;
  }

  .etc-playground {
    min-height: 1700px;
    cursor: default;
  }

  .etc-link {
    min-height: 52px;
    max-width: 190px;

    padding: 0.75rem 0.9rem;

    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etc-link {
    animation: none;
  }

  .etc-token {
    will-change: auto;
  }
}

/* -------------------------------------------------------------
   PHOTO BENTO
------------------------------------------------------------- */

#app {
  position: relative;
  isolation: isolate;
}

.home-bento-intro {
  position: relative;
  z-index: 2;
}

.home-bento-section {
  position: relative;
  z-index: 2;

  margin-top: 2rem;
  margin-bottom: 5rem;
}

.home-bento-toolbar {
  display: flex;
  justify-content: flex-end;

  margin-bottom: 0.8rem;
}

.bento-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  min-height: 46px;

  padding: 0.65rem 1rem;

  border: 1px solid currentColor;
  border-radius: 999px;

  background: transparent;
  color: inherit;

  font-family: "League Spartan", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.bento-shuffle:hover {
  transform: rotate(-2deg) scale(1.03);
}

.bento-shuffle:active {
  transform: scale(0.97);
}

.bento-shuffle > span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

.home-bento {
  position: relative;

  width: 100%;
  height: clamp(720px, 72vw, 1040px);

  overflow: hidden;

  border-radius: 22px;
}

.bento-tile {
  --bento-x: 0px;
  --bento-y: 0px;
  --bento-image-x: 0px;
  --bento-image-y: 0px;

  position: absolute;

  overflow: visible;

  transform:
    translate(
      var(--bento-x),
      var(--bento-y)
    );

  transition:
    left 720ms cubic-bezier(.22, .8, .25, 1),
    top 720ms cubic-bezier(.22, .8, .25, 1),
    width 720ms cubic-bezier(.22, .8, .25, 1),
    height 720ms cubic-bezier(.22, .8, .25, 1),
    transform 160ms ease,
    opacity 180ms ease;
}

.home-bento.is-shuffling .bento-tile {
  opacity: 0.55;
}

.bento-image-wrap {
  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 14px;

  background:
    rgb(120 130 140 / 0.08);

  box-shadow:
    0 10px 30px rgb(0 0 0 / 0.12);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.bento-image {
  display: block;

  width: calc(100% + 14px);
  height: calc(100% + 14px);

  margin: -7px;

  object-fit: cover;
  object-position: center;

  transform:
    translate(
      var(--bento-image-x),
      var(--bento-image-y)
    )
    scale(1.02);

  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.bento-tile:hover {
  z-index: 10;
}

.bento-tile:hover .bento-image-wrap {
  transform: scale(1.015);

  box-shadow:
    0 18px 45px rgb(0 0 0 / 0.2);
}

.bento-download {
  position: absolute;

  right: 12px;
  bottom: 12px;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;

  background: rgb(10 15 20 / 0.72);
  color: white;

  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;

  opacity: 0;
  transform: translateY(5px);

  backdrop-filter: blur(8px);

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.bento-tile:hover .bento-download,
.bento-download:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-download:hover {
  background: rgb(10 15 20 / 0.92);
}

/* -------------------------------------------------------------
   AMBIENT BENTO — INTERNAL PAGES
------------------------------------------------------------- */

.ambient-bento {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;

  opacity: 0.08;
}

.ambient-bento img {
  position: absolute;

  display: block;

  max-width: 24vw;

  border-radius: 14px;

  object-fit: cover;

  filter:
    grayscale(0.45)
    contrast(0.9);

  transform:
    rotate(var(--ambient-rotate, 0deg));

  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      black 18%,
      black 78%,
      transparent 100%
    );
}

#app > :not(.ambient-bento) {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   BENTO — TABLET
------------------------------------------------------------- */

@media (max-width: 900px) {
  .home-bento {
    height: 900px;
  }

  .bento-shuffle-label {
    display: none;
  }

  .ambient-bento {
    opacity: 0.055;
  }
}

/* -------------------------------------------------------------
   BENTO — MOBILE
------------------------------------------------------------- */

@media (max-width: 640px) {
  .home-bento-toolbar {
    margin-bottom: 0.6rem;
  }

  .bento-shuffle {
    width: 48px;
    min-height: 48px;

    justify-content: center;

    padding: 0;
  }

  .home-bento {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    grid-auto-rows: 180px;
    grid-auto-flow: dense;

    gap: 8px;

    height: auto;

    overflow: visible;

    border-radius: 0;
  }

  .bento-tile {
    position: relative !important;

    left: auto !important;
    top: auto !important;

    width: auto !important;
    height: auto !important;

    transform: none !important;

    transition:
      opacity 180ms ease,
      scale 180ms ease;
  }

  .bento-tile:nth-child(5n + 1) {
    grid-row: span 2;
  }

  .bento-tile:nth-child(7n + 3) {
    grid-column: span 2;
  }

  .bento-image-wrap {
    border-radius: 10px;
  }

  .bento-download {
    width: 44px;
    height: 44px;

    right: 8px;
    bottom: 8px;

    opacity: 0.88;
    transform: none;
  }

  .ambient-bento {
    display: none;
  }
}

/* -------------------------------------------------------------
   REDUCED MOTION
------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bento-tile,
  .bento-image,
  .bento-image-wrap,
  .bento-shuffle {
    transition: none !important;
  }
}

/* -------------------------------------------------------------
   HOME — BENTO ONLY
------------------------------------------------------------- */

.home-bento-only {
  margin-top: 1.25rem;
}

.home-bento-toolbar {
  gap: 0.65rem;
}

.bento-about {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0.65rem 1rem;

  border: 1px solid currentColor;
  border-radius: 999px;

  background: transparent;
  color: inherit;

  font-family: "League Spartan", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.bento-about:hover {
  transform: translateY(-2px);
}

.bento-about:active {
  transform: translateY(0);
}

/* -------------------------------------------------------------
   ABOUT OVERLAY
------------------------------------------------------------- */

.about-backdrop {
  position: fixed;
  inset: 0;

  z-index: 80;

  background: rgb(0 0 0 / 0.28);

  backdrop-filter: blur(2px);
}

.about-dialog {
  position: fixed;

  z-index: 81;

  top: 50%;
  left: 50%;

  width: min(760px, calc(100vw - 2rem));
  max-height: min(82vh, 860px);

  overflow: auto;

  transform: translate(-50%, -50%);

  padding: clamp(1.4rem, 3vw, 2.4rem);

  border: 1px solid rgb(150 175 195 / 0.28);
  border-radius: 18px;

  background:
    color-mix(
      in srgb,
      var(--page-background, #10191f) 95%,
      transparent
    );

  box-shadow:
    0 28px 90px rgb(0 0 0 / 0.38);

  backdrop-filter: blur(14px);
}

.about-dialog[hidden],
.about-backdrop[hidden] {
  display: none;
}

.about-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 1.4rem;
}

.about-dialog-header h2 {
  margin: 0;
}

.about-dialog-close {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 46px;
  height: 46px;

  border: 1px solid currentColor;
  border-radius: 999px;

  background: transparent;
  color: inherit;

  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;
}

.about-dialog-copy {
  max-width: 68ch;

  font-size: 1rem;
  line-height: 1.72;
}

.about-dialog-copy p {
  margin: 0 0 1.15rem;
}

.about-dialog-copy p:last-child {
  margin-bottom: 0;
}

body.about-open {
  overflow: hidden;
}

/* -------------------------------------------------------------
   STRONGER AMBIENT BENTO
------------------------------------------------------------- */

.ambient-bento {
  opacity: 0.15;
}

.ambient-bento img {
  max-width: 27vw;
}

@media (max-width: 900px) {
  .ambient-bento {
    opacity: 0.12;
  }
}

@media (max-width: 640px) {
  .bento-about {
    min-height: 48px;
    padding-inline: 1rem;
  }

  .about-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);

    padding: 1.25rem;

    border-radius: 14px;
  }

  .about-dialog-copy {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}

/* -------------------------------------------------------------
   LONG-PAGE SCROLL NAVIGATOR
------------------------------------------------------------- */

.scroll-navigator {
  position: fixed;

  z-index: 60;

  top: 50%;
  right: 16px;

  width: 180px;
  height: min(72vh, 680px);

  transform: translateY(-50%);

  pointer-events: none;
}

.scroll-navigator-rail {
  position: absolute;

  top: 0;
  right: 0;

  width: 34px;
  height: 100%;

  pointer-events: auto;

  cursor: ns-resize;
}

.scroll-navigator-rail::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  right: 8px;

  width: 1px;

  background: currentColor;

  opacity: 0.18;
}

.scroll-navigator-progress {
  position: absolute;

  top: 0;
  right: 8px;

  width: 1px;
  height: 0;

  background: currentColor;

  opacity: 0.55;

  pointer-events: none;
}

.scroll-navigator-current {
  position: absolute;

  right: 3px;

  width: 11px;
  height: 11px;

  border: 2px solid currentColor;
  border-radius: 999px;

  background: var(--surface);

  transform: translateY(-50%);

  pointer-events: none;

  transition: top 80ms linear;
}

.scroll-navigator-points {
  position: absolute;
  inset: 0;
}

.scroll-navigator-point {
  position: absolute;

  right: 5px;

  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background: currentColor;

  opacity: 0.26;

  transform: translateY(-50%);

  cursor: pointer;
}

.scroll-navigator-point.is-major {
  right: 2px;

  width: 13px;
  height: 13px;

  opacity: 0.72;
}

.scroll-navigator-point:hover {
  opacity: 1;
}

.scroll-navigator-year {
  position: absolute;

  right: 20px;
  top: 50%;

  transform: translateY(-50%);

  white-space: nowrap;

  font-family: "League Spartan", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;

  opacity: 0.72;

  pointer-events: none;
}

.scroll-navigator-tooltip {
  position: absolute;

  right: 48px;

  width: min(280px, calc(100vw - 100px));

  padding: 0.8rem 0.95rem;

  border: 1px solid var(--line);
  border-radius: 10px;

  background:
    color-mix(
      in srgb,
      var(--surface) 94%,
      transparent
    );

  color: var(--text);

  box-shadow:
    0 14px 38px rgb(0 0 0 / 0.24);

  backdrop-filter: blur(12px);

  pointer-events: none;
}

.scroll-navigator-tooltip[hidden] {
  display: none;
}

.scroll-navigator-tooltip-year {
  display: block;

  margin-bottom: 0.2rem;

  font-family: "League Spartan", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;

  opacity: 0.65;
}

.scroll-navigator-tooltip-title {
  display: block;

  font-family: "League Spartan", sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
}

.scroll-navigator-tooltip-meta {
  display: block;

  margin-top: 0.35rem;

  font-size: 0.72rem;
  line-height: 1.3;

  opacity: 0.58;

  max-height: 2.6em;
  overflow: hidden;
}

/* -------------------------------------------------------------
   MOBILE LONG-PAGE NAVIGATION
------------------------------------------------------------- */

.scroll-nav-mobile {
  display: none;
}

@media (max-width: 900px) {
  .scroll-navigator {
    display: none;
  }

  .scroll-nav-mobile {
    position: fixed;

    z-index: 70;

    right: 14px;
    top: 50%;
    bottom: auto;

    display: block;

    transform: translateY(-50%);
  }

  .scroll-nav-mobile-toggle {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    padding: 0;

    border: 1px solid currentColor;
    border-radius: 999px;

    background:
      color-mix(
        in srgb,
        var(--surface) 94%,
        transparent
      );

    color: var(--text);

    font-size: 1.25rem;

    box-shadow:
      0 10px 30px rgb(0 0 0 / 0.22);

  backdrop-filter: blur(10px);

    cursor: pointer;
  }

  .scroll-nav-mobile-panel {
    position: absolute;

    right: 64px;
    top: 50%;
    bottom: auto;

    width: min(330px, calc(100vw - 92px));

    transform: translateY(-50%);
    max-height: min(68vh, 620px);

    overflow: auto;

    padding: 0.5rem;

    border: 1px solid var(--line);
    border-radius: 14px;

    background:
      color-mix(
        in srgb,
        var(--surface) 96%,
        transparent
      );

    color: var(--text);

    box-shadow:
      0 18px 50px rgb(0 0 0 / 0.32);

  backdrop-filter: blur(14px);
  }

  .scroll-nav-mobile-panel[hidden] {
    display: none;
  }

  .scroll-nav-mobile-list {
    display: grid;
    gap: 0.25rem;
  }

  .scroll-nav-mobile-list button {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.65rem;

    width: 100%;

    padding: 0.72rem 0.75rem;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: inherit;

    text-align: left;

    cursor: pointer;
  }

  .scroll-nav-mobile-list button:hover,
  .scroll-nav-mobile-list button:focus-visible {
    background: rgb(130 160 185 / 0.12);
  }

  .scroll-nav-mobile-list span {
    font-family: "League Spartan", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;

    opacity: 0.62;
  }

  .scroll-nav-mobile-list strong {
    font-family: "League Spartan", sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-navigator-current {
    transition: none;
  }
}

/* -------------------------------------------------------------
   ABOUT — JELLYFISH WATERMARK
------------------------------------------------------------- */

.about-dialog {
  position: fixed;
  isolation: isolate;
}

.about-dialog::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background-image: url("../Jellyfish.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(68%, 520px);

  opacity: 0.09;

  filter:
    saturate(0.75)
    brightness(0.95);

  pointer-events: none;
}

.about-dialog-header,
.about-dialog-copy {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   ABOUT — THEME COLORS
------------------------------------------------------------- */

html[data-theme="dark"] .about-dialog {
  background: rgb(16 25 31 / 0.95);
  color: #e7edf2;
  border-color: rgb(150 175 195 / 0.28);
}

html[data-theme="light"] .about-dialog {
  background: rgb(245 248 250 / 0.95);
  color: #182229;
  border-color: rgb(55 75 90 / 0.18);

  box-shadow:
    0 28px 90px rgb(20 30 40 / 0.18);
}

html[data-theme="light"] .about-backdrop {
  background: rgb(30 45 55 / 0.18);
}


/* -------------------------------------------------------------
   SITE JELLYFISH — DESKTOP MARGIN
------------------------------------------------------------- */

.site-jellyfish {
  --jelly-x: 24px;
  --jelly-y: 120px;
  --jelly-scale: 1;

  position: fixed;

  z-index: 20;

  top: 0;
  left: 0;

  width: clamp(220px, 16.5vw, 320px);
  aspect-ratio: 0.78;

  transform:
    translate3d(
      var(--jelly-x),
      var(--jelly-y),
      0
    )
    scale(var(--jelly-scale));

  transform-origin: center;

  opacity: 1;

  cursor: help;
  outline: none;

  will-change: transform;
}

.site-jellyfish-canvas {
  display: block;

  width: 100%;
  height: 100%;

  pointer-events: none;

  opacity: 0.45;

  filter:
    grayscale(0.22)
    saturate(0.62)
    brightness(0.9);

  transition:
    opacity 240ms ease,
    filter 240ms ease;
}

.site-jellyfish:hover,
.site-jellyfish:focus-visible {
  --jelly-scale: 1.045;
}

.site-jellyfish:hover .site-jellyfish-canvas,
.site-jellyfish:focus-visible .site-jellyfish-canvas {
  opacity: 0.58;

  filter:
    grayscale(0)
    saturate(0.86)
    brightness(1.04);
}

.site-jellyfish-tooltip {
  position: absolute;

  left: calc(100% - 10px);
  top: 50%;

  width: min(320px, 28vw);

  padding: 1rem 1.1rem;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface);

  color: var(--text);

  box-shadow:
    0 18px 50px var(--shadow);

  backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;

  transform:
    translate(14px, -50%);

  pointer-events: none;

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.site-jellyfish-tooltip strong {
  display: block;

  margin-bottom: 0.45rem;

  color: var(--accent);

  font-family: "League Spartan", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-jellyfish-tooltip span {
  display: block;

  font-size: 0.92rem;
  line-height: 1.55;
}

.site-jellyfish:hover .site-jellyfish-tooltip,
.site-jellyfish:focus-visible .site-jellyfish-tooltip {
  opacity: 1;
  visibility: visible;

  transform:
    translate(0, -50%);
}

/*
 * Below this width the side margin is no longer large enough
 * to justify the decoration.
 */
@media (max-width: 1180px) {
  .site-jellyfish {
    display: none;
  }
}


/* Fixed navbar — reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* -------------------------------------------------------------
   ETC JELLYFISH — GAME CREATURE
------------------------------------------------------------- */

.etc-playground .site-jellyfish {
  --jelly-x: 24px;
  --jelly-y: 90px;
  --jelly-scale: 1;

  position: absolute;

  top: 0;
  left: 0;

  z-index: 5;

  display: block;

  /*
   * Square stage so the jellyfish can rotate freely
   * without clipping the long tentacles.
   */
  width: clamp(230px, 24vw, 330px);
  aspect-ratio: 1 / 1;

  overflow: visible;

  transform:
    translate3d(
      var(--jelly-x),
      var(--jelly-y),
      0
    )
    scale(var(--jelly-scale));

  transform-origin: center;

  cursor: help;

  will-change: transform;
}

.etc-playground .site-jellyfish-canvas {
  width: 100%;
  height: 100%;

  opacity: 0.56;

  filter:
    grayscale(0.02)
    saturate(1.12)
    brightness(1.03);
}

.etc-playground .site-jellyfish:hover,
.etc-playground .site-jellyfish:focus-visible {
  --jelly-scale: 1.045;
}

.etc-playground .site-jellyfish:hover .site-jellyfish-canvas,
.etc-playground .site-jellyfish:focus-visible .site-jellyfish-canvas {
  opacity: 0.62;

  filter:
    grayscale(0)
    saturate(1.12)
    brightness(1.05);
}

/*
 * When the jellyfish swims near the right side of the arena,
 * put the tooltip on its left so it stays inside the game field.
 */
.etc-playground
.site-jellyfish[data-tooltip-side="left"]
.site-jellyfish-tooltip {
  left: auto;
  right: calc(100% - 10px);

  transform:
    translate(-14px, -50%);
}

.etc-playground
.site-jellyfish[data-tooltip-side="left"]:hover
.site-jellyfish-tooltip,
.etc-playground
.site-jellyfish[data-tooltip-side="left"]:focus-visible
.site-jellyfish-tooltip {
  transform:
    translate(0, -50%);
}

@media (max-width: 640px) {
  .etc-playground .site-jellyfish {
    width: clamp(180px, 46vw, 230px);
  }

  .etc-playground .site-jellyfish-tooltip {
    position: absolute;

    left: var(--tooltip-local-left, 0px);
    right: auto;

    top: var(--tooltip-local-top, 0px);

    width: min(250px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);

    transform: none;

    z-index: 120;
  }

  .etc-playground
  .site-jellyfish:hover
  .site-jellyfish-tooltip,
  .etc-playground
  .site-jellyfish:focus-visible
  .site-jellyfish-tooltip,
  .etc-playground
  .site-jellyfish[data-tooltip-side="left"]:hover
  .site-jellyfish-tooltip,
  .etc-playground
  .site-jellyfish[data-tooltip-side="left"]:focus-visible
  .site-jellyfish-tooltip {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .etc-playground .site-jellyfish {
    will-change: auto;
  }
}

/* -------------------------------------------------------------
   ABOUT — MOBILE STICKY CLOSE
------------------------------------------------------------- */

@media (max-width: 640px) {
  .about-dialog-header {
    position: sticky;

    top: -1px;

    z-index: 4;

    margin:
      -0.35rem
      0
      1rem;

    padding:
      0.35rem
      0
      0.85rem;

    background:
      color-mix(
        in srgb,
        var(--bg) 96%,
        transparent
      );

    border-bottom:
      1px solid
      color-mix(
        in srgb,
        var(--line) 72%,
        transparent
      );
  }

  .about-dialog-header h2 {
    min-width: 0;

    font-size:
      clamp(
        2.25rem,
        12vw,
        3.5rem
      );
  }

  .about-dialog-close {
    position: relative;

    z-index: 5;

    flex: 0 0 46px;
  }
}

/* -------------------------------------------------------------
   ABOUT — MOBILE VIEWPORT POSITION
------------------------------------------------------------- */

@media (max-width: 640px) {
  .about-dialog {
    /*
     * Force the dialog back into the visible viewport even if an
     * inline top value has been introduced elsewhere.
     */
    top: calc(var(--header-height) + 8px) !important;
    bottom: 8px;

    left: 8px;
    right: 8px;

    width: auto;
    max-height: none;

    transform: none;

    padding: 1.25rem;

    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .about-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 1.25rem;
  }

  .about-dialog-close {
    flex: 0 0 46px;
  }
}

/* -------------------------------------------------------------
   ARTIST BIOGRAPHY — PDF FOOTER
------------------------------------------------------------- */

.artist-biography-footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 2rem;
  padding-top: 1.4rem;

  border-top: 1px solid var(--line);
}

.artist-biography-footer .artist-action-button {
  min-width: 180px;
}

@media (max-width: 640px) {
  .artist-biography-footer {
    justify-content: stretch;
  }

  .artist-biography-footer .artist-action-button {
    width: 100%;
  }
}

