:root {
  --bg: #f3eee3;
  --bg-soft: #e8dfcf;
  --surface: rgba(255, 251, 245, 0.7);
  --surface-strong: rgba(20, 26, 34, 0.08);
  --line: rgba(24, 29, 36, 0.12);
  --text: #101820;
  --muted: rgba(16, 24, 32, 0.74);
  --accent: #d86f3d;
  --accent-soft: #f0b552;
  --signal: #7de4dd;
  --danger: #cc5a51;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --font-display: "Avenir Next", "Futura PT", Futura, "Helvetica Neue", sans-serif;
  --font-body: "Neue Haas Grotesk Text", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(135, 101, 196, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(216, 111, 61, 0.08), transparent 26%),
    linear-gradient(180deg, #f6f1e6 0%, #f0e7d8 32%, #ebe1d1 60%, #f4edde 100%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

.top-nav,
.section-nav {
  position: sticky;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(0.9rem, 2vw, 1.5rem);
  backdrop-filter: blur(18px);
}

.top-nav {
  top: 0;
  background: rgba(246, 241, 230, 0.88);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.section-nav {
  top: 60px;
  background: rgba(243, 238, 227, 0.82);
  border-bottom: 1px solid rgba(16, 24, 32, 0.06);
  justify-content: center;
  flex-wrap: wrap;
}

.brand-mark,
.top-nav a,
.section-nav a,
.artist-social {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.top-nav-links,
.section-nav {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-nav-links a:last-child {
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #0c1016;
  box-shadow: 0 12px 28px rgba(216, 111, 61, 0.22);
}

@media (min-width: 981px) {
  .top-nav {
    position: sticky;
    justify-content: center;
    min-height: 68px;
  }

  .brand-mark {
    position: absolute;
    left: clamp(0.9rem, 2vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
  }

  .top-nav-links {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
  }
}

.section-nav a {
  padding: 0.25rem 0.4rem;
  color: rgba(16, 24, 32, 0.74);
}

.section,
.hero {
  position: relative;
  padding: 2.5rem clamp(0.9rem, 2vw, 1.5rem);
}

.hero {
  min-height: min(78vh, 680px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
}

.hero-media,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-cube-scene {
  position: relative;
  width: min(34vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1100px;
  filter: drop-shadow(0 26px 34px rgba(16, 24, 32, 0.2));
}

.hero-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cubeDrift 22s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.3rem;
  border: 1px solid rgba(16, 24, 32, 0.1);
  background: rgba(255, 251, 245, 0.46);
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.15);
  backface-visibility: hidden;
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.cube-front {
  transform: translateZ(170px);
}

.cube-back {
  transform: rotateY(180deg) translateZ(170px);
}

.cube-right {
  transform: rotateY(90deg) translateZ(170px);
}

.cube-left {
  transform: rotateY(-90deg) translateZ(170px);
}

.cube-top {
  transform: rotateX(90deg) translateZ(170px);
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(170px);
}

.hero-copy {
  max-width: 380px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  max-width: 11ch;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

.hero-count {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  letter-spacing: 0.28em;
  color: var(--text);
}

.hero-subtext {
  max-width: none;
  margin-top: 0.8rem;
  white-space: nowrap;
}

.hero-actions,
.viewer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #0c1016;
}

.button-ghost {
  background: rgba(255, 251, 245, 0.48);
  border-color: var(--line);
  color: var(--text);
}

.button-dark {
  background: #101820;
  border-color: #101820;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.22);
}

.button-dark:hover {
  background: #0b1117;
  border-color: #0b1117;
}

.button-full {
  width: 100%;
}

.section-grid,
.artist,
.access {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 0.65rem;
}

.section-copy.narrow {
  margin-bottom: 0.55rem;
}

.viewer .section-copy,
.states .section-copy.narrow {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.viewer .section-copy {
  max-width: 1100px;
}

.states .section-copy.narrow {
  max-width: 1200px;
}

.viewer .section-copy h2,
.states .section-copy.narrow h2 {
  max-width: 19ch;
}

.viewer .section-copy p,
.states .section-copy.narrow p {
  max-width: 60ch;
}

.origins-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.origin-card,
.philosophy-panel,
.access-panel,
.artist-frame,
.viewer-frame {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.8), rgba(249, 243, 233, 0.54));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.origin-card img,
.floating-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.origin-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(16, 24, 32, 0.7);
}

.viewer-stage {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.72fr);
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  margin-inline: auto;
}

.viewer-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0.65rem;
  max-width: 560px;
}

.viewer-layer,
.viewer-overlay {
  position: absolute;
  inset: 0.65rem;
  border-radius: calc(var(--radius) - 0.4rem);
}

.viewer-layer {
  width: calc(100% - 1.3rem);
  height: calc(100% - 1.3rem);
  object-fit: cover;
}

.viewer-primary {
  filter: saturate(0.95) brightness(0.96);
}

.viewer-secondary {
  opacity: 0;
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.02);
}

.viewer-overlay {
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(243, 238, 227, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.06));
}

.viewer-controls {
  padding: 0.8rem;
  background: rgba(255, 251, 245, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.viewer-scale {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: rgba(16, 24, 32, 0.76);
}

input[type="range"] {
  width: 100%;
  appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--accent) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: -8px;
  background: var(--text);
  border: 2px solid #0d1117;
}

.floating-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
  margin-top: 1rem;
  perspective: 1400px;
  max-width: 1120px;
  margin-inline: auto;
}

.floating-card {
  position: relative;
  width: 100%;
  max-width: 238px;
  justify-self: center;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  will-change: transform;
}

.floating-card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: slowFlip 18s cubic-bezier(0.2, 0.7, 0.2, 1) infinite alternate;
  will-change: transform;
}

.floating-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  background: rgba(255, 251, 245, 0.32);
}

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

.floating-back {
  transform: rotateY(180deg);
}

.float-a {
  animation: driftA 15s ease-in-out infinite;
}

.float-b {
  animation: driftB 17s ease-in-out infinite;
}

.float-c {
  animation: driftC 16s ease-in-out infinite;
}

.float-d {
  animation: driftD 18s ease-in-out infinite;
}

.float-e {
  animation: driftE 16.5s ease-in-out infinite;
}

.float-f {
  animation: driftF 17.5s ease-in-out infinite;
}

.float-g {
  animation: driftG 15.5s ease-in-out infinite;
}

.float-h {
  animation: driftH 18.5s ease-in-out infinite;
}

.philosophy {
  padding-top: 1rem;
}

.philosophy-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(127, 97, 184, 0.12), rgba(216, 111, 61, 0.07)),
    rgba(255, 251, 245, 0.52);
}

.philosophy-panel h2,
.philosophy-panel p {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.philosophy-panel p:last-child {
  margin-top: 1rem;
}

.artist {
  display: block;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.artist-panel {
  max-width: 980px;
  padding: 2rem 2.2rem;
  border-radius: 30px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.88), rgba(247, 240, 228, 0.7)),
    radial-gradient(circle at top right, rgba(123, 83, 190, 0.08), transparent 28%);
  box-shadow: 0 26px 48px rgba(16, 24, 32, 0.12);
}

.artist-heading {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.1rem;
}

.artist-heading-copy {
  display: grid;
  gap: 0.5rem;
}

.artist-heading-copy h2 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  max-width: none;
}

.artist-social {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 24, 32, 0.72);
}

.artist-portrait-inline .artist-frame {
  position: relative;
  padding: 0.7rem;
  width: 164px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(125, 228, 221, 0.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(216, 111, 61, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(123, 83, 190, 0.12), rgba(232, 224, 208, 0.92));
}

.artist-portrait-inline .artist-frame::before,
.artist-portrait-inline .artist-frame::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(125, 228, 221, 0.22);
  border-radius: 24px;
}

.artist-portrait-inline .artist-frame::after {
  inset: 15% 9% 12% 12%;
  border-color: rgba(240, 181, 82, 0.22);
}

.artist-portrait-shell {
  position: absolute;
  inset: 14%;
  border-radius: 18px;
  overflow: hidden;
  animation: portraitPulse 16s ease-in-out infinite;
  background:
    linear-gradient(145deg, rgba(15, 24, 36, 0.12), rgba(61, 53, 96, 0.08));
}

.artist-portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 17, 27, 0.06), rgba(8, 17, 27, 0.06)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 50%, transparent 50%);
  background-size: auto, 12px 12px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.artist-line {
  color: var(--text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

.access {
  padding-bottom: 4.5rem;
}

.access-panel {
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(216, 111, 61, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(125, 228, 221, 0.08), transparent 32%),
    rgba(255, 251, 245, 0.54);
}

.access-step {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.access-step.is-active {
  color: var(--text);
}

.step-index {
  min-width: 2.4rem;
  color: var(--accent-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding-top: 0.25rem;
}

.waitlist-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.waitlist-action {
  display: grid;
  gap: 0.6rem;
  padding: 0.15rem 0 0.35rem;
}

.form-status {
  color: rgba(16, 24, 32, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.waitlist-form label {
  display: grid;
  gap: 0.5rem;
}

.waitlist-form span {
  color: rgba(16, 24, 32, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.waitlist-form input,
.waitlist-form textarea {
  min-height: 3rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(255, 251, 245, 0.84);
  color: var(--text);
  padding: 0 1rem;
}

.waitlist-form textarea {
  min-height: 7.5rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  font: inherit;
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(8px, -10px, 0) rotate(1deg);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }
  50% {
    transform: translate3d(-7px, -12px, 0) rotate(-0.9deg);
  }
}

@keyframes driftC {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.8deg);
  }
  50% {
    transform: translate3d(7px, -11px, 0) rotate(0.85deg);
  }
}

@keyframes driftD {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.7deg);
  }
  50% {
    transform: translate3d(-8px, -9px, 0) rotate(-0.85deg);
  }
}

@keyframes driftE {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.6deg);
  }
  50% {
    transform: translate3d(7px, -10px, 0) rotate(0.8deg);
  }
}

@keyframes driftF {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.9deg);
  }
  50% {
    transform: translate3d(-6px, -9px, 0) rotate(-0.8deg);
  }
}

@keyframes driftG {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.1deg);
  }
  50% {
    transform: translate3d(8px, -12px, 0) rotate(0.9deg);
  }
}

@keyframes driftH {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.6deg);
  }
  50% {
    transform: translate3d(-5px, -10px, 0) rotate(-0.75deg);
  }
}

@keyframes slowFlip {
  0%,
  24% {
    transform: rotateY(0deg);
  }
  76% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes cubeDrift {
  0%,
  100% {
    transform: rotateX(-18deg) rotateY(24deg) rotateZ(-3deg);
  }
  25% {
    transform: rotateX(8deg) rotateY(92deg) rotateZ(2deg);
  }
  50% {
    transform: rotateX(16deg) rotateY(180deg) rotateZ(-4deg);
  }
  75% {
    transform: rotateX(-6deg) rotateY(268deg) rotateZ(2deg);
  }
}

@keyframes portraitPulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(0.92);
  }
  50% {
    transform: scale(1.025);
    filter: saturate(1.06);
  }
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .artist,
  .access,
  .viewer-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-media {
    order: 2;
    display: grid;
    justify-items: center;
  }

  .top-nav,
  .section-nav {
    position: static;
  }

  .hero-cube-scene {
    width: min(64vw, 240px);
    perspective: 900px;
    filter: drop-shadow(0 18px 24px rgba(16, 24, 32, 0.16));
  }

  .hero-cube {
    animation: cubeDriftMobile 18s ease-in-out infinite;
    transform: rotateX(-14deg) rotateY(22deg) rotateZ(-2deg);
  }

  .cube-face {
    display: block;
  }

  .cube-front {
    transform: translateZ(120px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(120px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(120px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(120px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(120px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(120px);
  }

  .origins-panels {
    grid-template-columns: 1fr;
  }

  .floating-gallery {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    perspective: none;
    align-items: start;
  }

  .floating-card {
    position: relative;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    aspect-ratio: 1 / 1;
  }

  .floating-card-3d {
    animation: none;
  }

  .artist-heading {
    align-items: flex-start;
  }

  .artist-panel {
    padding: 1.5rem;
  }

  .section-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(243, 238, 227, 0.94);
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 251, 245, 0.72);
    border: 1px solid rgba(16, 24, 32, 0.08);
    white-space: nowrap;
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding: 1.6rem 0.9rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    max-width: none;
    font-size: 1.7rem;
  }

  .floating-gallery {
    grid-template-columns: 1fr;
  }

  .top-nav {
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.9rem;
  }

  .brand-mark {
    font-size: 0.88rem;
  }

  .top-nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero {
    gap: 1.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-subtext {
    max-width: 11ch;
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 0.9rem;
  }

  .hero-cube-scene {
    width: min(74vw, 210px);
    margin-top: 0.25rem;
  }

  .hero-cube {
    animation: cubeDriftMobile 16s ease-in-out infinite;
  }

  .cube-front {
    transform: translateZ(105px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(105px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(105px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(105px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(105px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(105px);
  }

  .viewer-stage {
    gap: 1rem;
  }

  .viewer-frame {
    max-width: none;
    width: 100%;
  }

  .viewer-controls {
    padding: 0.95rem;
  }

  .viewer-buttons {
    flex-direction: column;
  }

  .viewer-buttons .button {
    width: 100%;
  }

  .artist-heading {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0.8rem;
  }

  .artist-heading-copy {
    justify-items: center;
  }

  .artist-heading-copy h2 {
    font-size: 2.25rem;
  }

  .artist-portrait-inline .artist-frame {
    width: 140px;
  }

  .artist-panel {
    padding: 1.25rem;
  }

  .states .section-copy.narrow,
  .viewer .section-copy,
  .intro .section-copy {
    gap: 0.8rem;
  }

  .section-nav {
    padding: 0.65rem 0.9rem;
  }

  .floating-gallery {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 0.85rem;
    align-items: stretch;
  }

  .floating-card {
    width: auto !important;
    max-width: none;
    justify-self: auto;
    animation-duration: 8.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }

  .floating-card-3d {
    min-height: 100%;
    animation: slowFlipMobile 24s ease-in-out infinite;
  }

  .floating-face {
    border-radius: 16px;
  }

  .states h2 {
    max-width: 12ch;
  }

  .states .section-copy.narrow {
    margin-bottom: 0.9rem;
  }

  .floating-card:nth-child(1) {
    width: 72% !important;
    justify-self: left;
    animation: mobileFloatA 8.5s ease-in-out infinite !important;
  }

  .floating-card:nth-child(2) {
    width: 62% !important;
    justify-self: right;
    animation: mobileFloatB 9.5s ease-in-out infinite !important;
  }

  .floating-card:nth-child(3) {
    width: 68% !important;
    justify-self: left;
    margin-top: 0.35rem;
    animation: mobileFloatC 8s ease-in-out infinite !important;
  }

  .floating-card:nth-child(4) {
    width: 58% !important;
    justify-self: right;
    animation: mobileFloatB 10s ease-in-out infinite !important;
  }

  .floating-card:nth-child(5) {
    width: 66% !important;
    justify-self: left;
    margin-top: 0.25rem;
    animation: mobileFloatA 9s ease-in-out infinite !important;
  }

  .floating-card:nth-child(6) {
    width: 60% !important;
    justify-self: right;
    animation: mobileFloatC 8.8s ease-in-out infinite !important;
  }

  .floating-card:nth-child(2) .floating-card-3d,
  .floating-card:nth-child(5) .floating-card-3d {
    animation-duration: 28s;
    animation-delay: -6s;
  }

  .floating-card:nth-child(3) .floating-card-3d,
  .floating-card:nth-child(6) .floating-card-3d {
    animation-duration: 26s;
    animation-delay: -11s;
  }

  .floating-card:nth-child(n + 7) {
    display: none;
  }
}

@keyframes cubeDriftMobile {
  0%,
  100% {
    transform: rotateX(-18deg) rotateY(18deg) rotateZ(-2deg);
  }
  50% {
    transform: rotateX(14deg) rotateY(156deg) rotateZ(2deg);
  }
}

@keyframes slowFlipMobile {
  0%,
  42% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  92%,
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes mobileFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.4deg);
  }
  50% {
    transform: translate3d(6px, -10px, 0) rotate(1.1deg);
  }
}

@keyframes mobileFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1.2deg);
  }
  50% {
    transform: translate3d(-7px, -12px, 0) rotate(-1deg);
  }
}

@keyframes mobileFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.9deg);
  }
  50% {
    transform: translate3d(5px, -8px, 0) rotate(0.8deg);
  }
}
