:root {
  /* exact from mark.jpg */
  --ink: #2c222d;
  --paper: #ffffff;
  --muted-dark: #a89aa8;
  --muted-light: #6e646f;
  --ember: #c4a07a;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
}

.scene-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
  will-change: background-color;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.nav-brand,
.nav-lk,
.nav-right,
.nav-links a,
.lang-btn,
.to-top {
  pointer-events: auto;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  padding: 0.2rem 0.15rem;
  transition: opacity 0.2s ease, color 0.3s ease;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-icon {
  display: block;
  flex-shrink: 0;
}

.nav[data-theme="ink"] .lang-btn {
  color: var(--paper);
}

.nav[data-theme="paper"] .lang-btn {
  color: var(--ink);
}

.nav[data-theme="split"] .lang-btn {
  /* left side = ink half */
  color: var(--paper);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav[data-theme="ink"] .nav-right {
  color: var(--paper);
}

.nav[data-theme="paper"] .nav-right,
.nav[data-theme="split"] .nav-right {
  color: var(--ink);
}

.nav-lk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2rem;
  padding: 0 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
  border: 1px solid currentColor;
  background: transparent;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-lk:hover {
  opacity: 1;
}

.nav[data-theme="ink"] .nav-lk:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.nav[data-theme="paper"] .nav-lk:hover,
.nav[data-theme="split"] .nav-lk:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.15rem;
}

.nav-links a {
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav {
  animation: fade-in 1.4s var(--ease) 0.35s both;
}

.to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 25;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 34, 45, 0.2);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease),
    background 0.2s ease,
    color 0.2s ease;
}

.to-top.is-visible {
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  opacity: 1;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.nav[data-theme="ink"] ~ .to-top,
body:has(.nav[data-theme="ink"]) .to-top {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(44, 34, 45, 0.88);
  color: var(--paper);
}

body:has(.nav[data-theme="ink"]) .to-top:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.scenes {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: transparent;
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
}

/* Scene 1 — same two colors as the mark */
.scene-logo {
  background: transparent;
}

.scene-logo::before,
.scene-logo::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  z-index: 0;
  animation: panel-in-left 1.7s var(--ease) both;
}

.scene-logo::before {
  background: var(--ink);
}

  .scene-logo::after {
  left: auto;
  right: 0;
  background: var(--paper);
  animation-name: panel-in-right;
  opacity: var(--paper-fade, 1);
}

.logo-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: var(--logo-fade, 1);
}

.logo-mark {
  width: min(48vw, 240px);
  height: min(48vw, 240px);
  display: block;
  border-radius: 0;
  box-shadow: none;
  /* silhouette mask — no mix-blend (broken on iOS) */
  background: linear-gradient(90deg, var(--paper) 50%, var(--ink) 50%);
  -webkit-mask: url(mark.png) center / contain no-repeat;
  mask: url(mark.png) center / contain no-repeat;
  animation: mark-in 1.6s var(--ease) 0.75s both;
  transition: transform 0.7s var(--ease);
}

.logo-mark:hover {
  transform: scale(1.03);
}

.scene-logo h1,
.logo-title {
  position: relative;
  margin: 1.35rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
  animation: title-in 1.45s var(--ease) 0.9s both;
}

.logo-title .ch {
  display: inline-block;
  color: var(--paper);
  transition: color 0.35s ease;
}

.scene-logo p,
.logo-tag {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  animation: title-in 1.45s var(--ease) 1.2s both;
}

.logo-tag .ch {
  display: inline-block;
  color: var(--paper);
  transition: color 0.35s ease;
}

.logo-title .ch.is-paper,
.logo-tag .ch.is-paper {
  color: var(--ink);
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: #fff;
  mix-blend-mode: difference;
  opacity: calc(0.5 * var(--logo-fade, 1));
  animation:
    fade-in 1.3s var(--ease) 2s both,
    bob 2.8s ease-in-out 3s infinite;
}

/* Scene 2 — about */
.scene-about {
  background: transparent;
  color: var(--paper);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: flex-start;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

.about-inner {
  width: min(520px, 100%);
}

.about-inner h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.about-body {
  margin-top: 0.2rem;
}

.about-body p {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted-dark);
  max-width: 36em;
}

.about-body .about-lead {
  margin-top: 0.55rem;
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 500;
}

.about-points {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.about-points li {
  margin: 0;
  padding: 0.02rem 0 0.02rem 0.85rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--paper);
  opacity: 0.9;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 1px;
  background: var(--ember);
}

.about-body .about-punch {
  margin-top: 1.1rem;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Scene 3 — artists roster */
.scene-artists {
  background: transparent;
  color: var(--paper);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: flex-start;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.artists-inner {
  width: min(920px, 100%);
}

.artists-inner h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.artists-lead {
  margin: 0.65rem 0 0;
  color: var(--muted-dark);
  max-width: 28rem;
  line-height: 1.45;
}

.artists-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .artists-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.artist-card {
  display: grid;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    filter 0.25s ease;
  transition-delay: calc(var(--i, 0) * 40ms);
}

.scene.is-in .artist-card {
  opacity: 1;
  transform: none;
}

.artist-card:hover {
  filter: brightness(1.08);
}

.artist-card:hover .artist-photo {
  transform: scale(1.03);
}

.artist-photo {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: #3a303b;
  transition: transform 0.35s var(--ease);
}

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

.artist-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.artist-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-stat {
  font-size: 0.75rem;
  color: var(--muted-dark);
  letter-spacing: 0.01em;
}

.artists-empty {
  margin: 1rem 0 0;
  color: var(--muted-dark);
}

/* Scene 4 — collaboration */
.scene-collab {
  background: transparent;
  color: var(--ink);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: flex-start;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.collab-inner {
  width: min(560px, 100%);
}

.collab-lead {
  margin: 1rem 0 0;
  color: var(--muted-light);
  line-height: 1.5;
}

.collab-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1.5rem;
}

.collab-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.collab-form .collab-full {
  grid-column: 1 / -1;
}

.collab-form input,
.collab-form textarea {
  appearance: none;
  border: 1px solid rgba(44, 34, 45, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.7rem 0.8rem;
  border-radius: 0;
}

.collab-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.collab-form input:focus,
.collab-form textarea:focus {
  outline: 2px solid rgba(44, 34, 45, 0.35);
  outline-offset: 1px;
}

.collab-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.collab-submit {
  margin-top: 0;
}

.collab-submit:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.collab-status {
  margin: 0;
  font-size: 0.92rem;
}

.collab-status.is-ok {
  color: #2f9e5e;
}

.collab-status.is-err {
  color: #a33b3b;
}

.scene-collab .meta {
  margin-top: 1.5rem;
  color: var(--muted-light);
}

.artist-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 0.95rem 1.65rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition:
    transform 0.35s var(--ease),
    background 0.25s ease,
    color 0.25s ease;
}

.artist-cta:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}

.scene-inner {
  width: min(560px, 100%);
}

.scene-inner > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.15s var(--ease),
    transform 1.15s var(--ease);
}

.scene.is-in .scene-inner > *:nth-child(1) {
  transition-delay: 0.12s;
}
.scene.is-in .scene-inner > *:nth-child(2) {
  transition-delay: 0.28s;
}
.scene.is-in .scene-inner > *:nth-child(3) {
  transition-delay: 0.44s;
}
.scene.is-in .scene-inner > *:nth-child(4) {
  transition-delay: 0.6s;
}
.scene.is-in .scene-inner > *:nth-child(5) {
  transition-delay: 0.76s;
}
.scene.is-in .scene-inner > *:nth-child(6) {
  transition-delay: 0.9s;
}

.scene.is-in .scene-inner > * {
  opacity: 1;
  transform: translateY(0);
}

.links li {
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

.scene.is-in .links li {
  opacity: 1;
  transform: translateX(0);
}

.scene.is-in .links li:nth-child(1) {
  transition-delay: 0.5s;
}
.scene.is-in .links li:nth-child(2) {
  transition-delay: 0.7s;
}
.scene.is-in .links li:nth-child(3) {
  transition-delay: 0.9s;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

.scene h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.scene-inner > p {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.scene-about .about-body p {
  color: var(--muted-dark);
}

.scene-about .about-body .about-lead,
.scene-about .about-body .about-punch,
.scene-about .about-points li {
  color: var(--paper);
}

.links {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.links a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(44, 34, 45, 0.12);
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}

.links li:last-child a {
  border-bottom: 1px solid rgba(44, 34, 45, 0.12);
}

.links a:hover {
  color: #8a6238;
  padding-left: 0.35rem;
}

.links span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.links strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
}

.meta {
  margin-top: 1.25rem !important;
  font-size: 0.92rem !important;
}

@keyframes panel-in-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes panel-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.04em;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 640px) {
  /* no scroll-wash on mobile — kills flicker */
  .scene-wash {
    display: none;
  }

  .scene-about {
    background: var(--ink);
  }

  .scene-artists {
    background: var(--ink);
  }

  .scene-collab {
    background: var(--paper);
  }

  .collab-form {
    grid-template-columns: 1fr;
  }

  .nav-right {
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav {
    padding: 0.85rem 1rem;
  }

  .scene-logo {
    padding: 0 1.25rem 2.5rem;
    --paper-fade: 1;
    --logo-fade: 1;
  }

  .scene-logo::before,
  .scene-logo::after {
    width: 100%;
    height: 50%;
    inset: 0 0 auto 0;
    /* promote layers — less flicker with blend */
    transform: translateZ(0);
  }

  .scene-logo::after {
    top: auto;
    bottom: 0;
    height: 50%;
    opacity: 1;
    animation-name: panel-in-up;
  }

  .scene-logo::before {
    animation-name: panel-in-down;
  }

  /* mark centered on the horizontal cut */
  .logo-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100%, 22rem);
    transform: translate(-50%, calc(-0.5 * min(58vw, 190px)));
    opacity: 1;
  }

  .logo-mark {
    width: min(58vw, 190px);
    height: min(58vw, 190px);
    margin-inline: auto;
    /* horizontal split through the mark */
    background: linear-gradient(180deg, var(--paper) 50%, var(--ink) 50%);
  }

  .logo-mark:hover {
    transform: none;
  }

  /* title fully on paper — solid ink, no blend */
  .logo-title,
  .logo-tag {
    left: 0 !important;
    color: var(--ink) !important;
    mix-blend-mode: normal;
    animation: title-in 1.2s var(--ease) 0.5s both;
  }

  .logo-title {
    margin-top: 1rem;
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
  }

  .logo-title .ch,
  .logo-tag .ch {
    color: var(--ink) !important;
    transition: none;
  }

  .logo-tag {
    font-size: 0.95rem;
  }

  .nav {
    padding: 1.1rem 1.15rem;
    font-size: 0.82rem;
    gap: 1rem;
  }

  .scroll-hint {
    mix-blend-mode: normal;
    color: var(--ink);
    opacity: 0.45;
  }
}

@keyframes panel-in-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes panel-in-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .scene-logo::before,
  .scene-logo::after,
  .logo-mark,
  .scene-logo h1,
  .scene-logo p,
  .scroll-hint,
  .scene-inner > *,
  .links li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scenes {
    scroll-snap-type: none;
  }
}
