/* ==========================================================================
   Global
   ========================================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #141414;
  --color-border: #262626;
  --color-text: #f2f1ee;
  --color-text-muted: #8a8a86;
  --color-accent: #ccff33;
  --color-project-accent: #39ff14;
  --color-index-accent: #00e5ff;
  --radius: 2px;
  --max-width: 1200px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
  cursor: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 106.25%;
  cursor: none;
}

@media (pointer: coarse) {
  html {
    cursor: auto;
  }
}

body {
  margin: 0;
  font-family: "Blinker", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

input[type="text"]:not(.formkit-input),
input[type="email"]:not(.formkit-input),
input[type="tel"]:not(.formkit-input),
textarea:not(.formkit-input) {
  cursor: text;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 62px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-18%, -37%);
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 150ms ease;
}

#custom-cursor.is-visible {
  opacity: 1;
}

#custom-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: blur(1.1px);
}

#custom-cursor .ghost-layer {
  mix-blend-mode: screen;
  animation: ghostFloat 3600ms ease-in-out infinite;
}

#custom-cursor .ghost-main {
  color: var(--color-accent);
  opacity: 0.6;
  filter: drop-shadow(0 0 6px var(--color-accent));
}

#custom-cursor .ghost-crease {
  opacity: 0.4;
}

#ghost-hand-shape .ghost-thumb,
#ghost-hand-shape .ghost-index,
#ghost-hand-shape .ghost-middle,
#ghost-hand-shape .ghost-ring,
#ghost-hand-shape .ghost-pinky {
  transition: transform 380ms cubic-bezier(0.34, 1.1, 0.64, 1);
}

#ghost-hand-shape .ghost-thumb {
  transform-origin: 30px 84px;
}

#ghost-hand-shape .ghost-index {
  transform-origin: 38px 68px;
}

#ghost-hand-shape .ghost-middle {
  transform-origin: 50px 65px;
}

#ghost-hand-shape .ghost-ring {
  transform-origin: 62px 68px;
}

#ghost-hand-shape .ghost-pinky {
  transform-origin: 70px 74px;
}

#ghost-hand-shape.is-pinching .ghost-thumb {
  transform: rotate(42deg);
}

#ghost-hand-shape.is-pinching .ghost-index {
  transform: rotate(-26deg);
}

#ghost-hand-shape.is-pinching .ghost-middle {
  transform: rotate(-10deg);
}

#ghost-hand-shape.is-pinching .ghost-ring {
  transform: rotate(-8deg);
}

#ghost-hand-shape.is-pinching .ghost-pinky {
  transform: rotate(-6deg);
}

#custom-cursor .ghost-palm-dot {
  opacity: 0.9;
  filter: drop-shadow(0 0 8px var(--color-project-accent));
  animation: ghostFloat 3600ms ease-in-out infinite;
}

#custom-cursor .ghost-gem-ring {
  fill: none;
  stroke-width: 1;
  opacity: 0;
  transform-origin: 50px 90px;
  animation: gemRingPulse 2600ms ease-out infinite;
}

#custom-cursor .ghost-gem-ring-2 {
  animation-delay: 1300ms;
}

@keyframes gemRingPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.5);
  }
  70% {
    opacity: 0;
    transform: scale(1.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

#custom-cursor .ghost-gem-glint {
  animation: ghostFloat 3600ms ease-in-out infinite, gemGlintPulse 2600ms ease-in-out infinite;
}

@keyframes gemGlintPulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

#custom-cursor .ghost-gem-sparkle {
  opacity: 0;
  animation: ghostFloat 3600ms ease-in-out infinite, gemSparkleFlash 4400ms ease-in-out infinite;
}

@keyframes gemSparkleFlash {
  0%, 87%, 100% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  93% {
    opacity: 0;
  }
}

#custom-cursor .ghost-cyan {
  color: #00e5ff;
  opacity: 0;
  animation: ghostFloat 3600ms ease-in-out infinite, ghostGlitchCyan 5200ms steps(1) infinite;
}

#custom-cursor .ghost-magenta {
  color: #ff2ec4;
  opacity: 0;
  animation: ghostFloat 3600ms ease-in-out infinite, ghostGlitchMagenta 6100ms steps(1) infinite;
}

#custom-cursor.is-hovering-link .ghost-main {
  filter: drop-shadow(0 0 11px var(--color-accent));
}

@keyframes ghostFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes ghostGlitchCyan {
  0%, 89%, 100% {
    opacity: 0;
  }
  90%, 94% {
    opacity: 0.5;
  }
}

@keyframes ghostGlitchMagenta {
  0%, 91%, 100% {
    opacity: 0;
  }
  92%, 96% {
    opacity: 0.5;
  }
}

#custom-cursor.is-waving .cursor-hand-wave {
  animation: cursorHandWave 750ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes cursorHandWave {
  0% {
    transform: rotate(0deg);
  }
  22% {
    transform: rotate(-13deg);
  }
  48% {
    transform: rotate(9deg);
  }
  72% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

#custom-cursor.is-pushing .cursor-hand-wave {
  animation: cursorHandPush 400ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes cursorHandPush {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(11px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

main {
  flex: 1 0 auto;
  transition: opacity 420ms ease;
}

.home-page main {
  flex: 0 0 auto;
}

.home-page .site-footer {
  flex: 1 0 auto;
  display: flex;
}

.home-page .site-footer .container {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  width: 100%;
}

.home-page .site-footer .container > p {
  align-self: end;
  padding-bottom: 12px;
  margin-top: 0;
}

.page-enter {
  opacity: 0;
}

.site-footer {
  transition: opacity 420ms ease;
}

body.page-fade-out main,
body.page-fade-out .site-footer {
  opacity: 0;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  color: var(--color-text-muted);
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: "Silkscreen", monospace;
  font-size: 19.2px;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
  animation: neonFlicker 6s infinite;
}

.logo:hover {
  color: var(--color-accent);
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 55% { opacity: 0.5; }
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 4px 6px;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color var(--transition), background-size var(--transition);
}

.main-nav a:hover {
  color: var(--color-text);
  background-size: 100% 1px;
}

.main-nav a.active {
  color: var(--color-text);
  background-size: 100% 1px;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin: 0;
  border: none;
  background-color: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color var(--transition), background-size var(--transition);
}

.dropdown-toggle .caret {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.dropdown-toggle.active,
.has-dropdown:hover .dropdown-toggle,
.has-dropdown:focus-within .dropdown-toggle,
.has-dropdown.is-open .dropdown-toggle {
  color: var(--color-text);
  background-size: 100% 1px;
}

.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown:focus-within .dropdown-toggle .caret,
.has-dropdown.is-open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-6px);
  min-width: 140px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 4px 14px;
  line-height: 1.3;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  background-image: none;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--color-accent);
  background-color: rgba(204, 255, 51, 0.06);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  position: relative;
  display: inline-flex;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.icon-link:hover {
  color: var(--color-accent);
}

.icon-link svg {
  width: 19px;
  height: 19px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  font-size: 0.6rem;
  font-weight: 700;
  background-color: var(--color-accent);
  color: #0a0a0a;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: neonFlicker 6s infinite;
}

@media (max-width: 640px) {
  .logo {
    font-size: 0.95rem;
    order: 1;
  }

  .nav-group {
    display: contents;
  }

  .header-icons {
    order: 2;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }
}

/* ==========================================================================
   Hero (full-bleed)
   ========================================================================== */

.hero-full {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  color: inherit;
  text-decoration: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: filter, transform;
  transform: translateZ(0);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top left, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.5) 30%, rgba(10, 10, 10, 0) 60%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: right;
  animation: fadeUp 900ms ease both;
}

.hero-full .wordmark {
  font-family: "Silkscreen", monospace;
  font-size: clamp(14px, 1.6vw, 20px);
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
  line-height: 1.4;
}

.hero-full p {
  max-width: 320px;
  margin: 0 0 0 auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.hero-full .scramble-target {
  display: inline;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 4px 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.scramble-word {
  display: inline-block;
  white-space: nowrap;
}

.scramble-slot {
  display: inline;
  opacity: 0;
  filter: blur(3px);
  transition: opacity 550ms ease, filter 550ms ease, color 300ms ease;
}

.scramble-slot.is-visible {
  opacity: 1;
  filter: blur(0);
}

.scramble-slot.is-glitching {
  color: var(--color-accent);
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}

.scramble-slot.loading-dot {
  display: inline-block;
  animation-name: loadingDotGlitch;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-duration: var(--glitch-duration, 2400ms);
  animation-delay: var(--glitch-delay, 0ms);
}

@keyframes loadingDotGlitch {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 6px currentColor;
  }
  9% {
    opacity: 1;
  }
  12% {
    opacity: 0.15;
    text-shadow: none;
  }
  17% {
    opacity: 0.15;
    text-shadow: none;
  }
  20% {
    opacity: 1;
    text-shadow: 0 0 6px currentColor;
  }
  46% {
    opacity: 1;
  }
  49% {
    opacity: 0.2;
    text-shadow: none;
  }
  54% {
    opacity: 0.2;
    text-shadow: none;
  }
  57% {
    opacity: 1;
    text-shadow: 0 0 6px currentColor;
  }
  81% {
    opacity: 1;
  }
  84% {
    opacity: 0.3;
    text-shadow: none;
  }
  89% {
    opacity: 0.3;
    text-shadow: none;
  }
  92% {
    opacity: 1;
    text-shadow: 0 0 6px currentColor;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Page header (non-index pages)
   ========================================================================== */

.page-header {
  padding: 64px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: clamp(20.8px, 4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.page-header p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Thumbnail sidebar + large viewer
   (shared: Painting gallery, Photography/Installations detail pages)
   ========================================================================== */

.thumb-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 6px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 190px;
  height: 100vh;
  padding: 140px 16px 24px;
  overflow-y: auto;
}

.thumb-sidebar-header {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 12px;
}

.thumb-sidebar-header h1 {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: 0 0 6px;
}

.thumb-sidebar-header p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0;
}

.thumb-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  transition: opacity var(--transition), border-color var(--transition);
}

.thumb-button:hover {
  opacity: 0.85;
}

.thumb-button.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.thumb-icon {
  color: rgba(242, 241, 238, 0.85);
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.thumb-layout {
  margin-left: 190px;
  padding-bottom: 96px;
}

.thumb-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  min-width: 0;
}

.thumb-panel {
  display: none;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  text-align: center;
}

.thumb-panel.is-active {
  display: block;
  animation: thumbPanelIn 420ms ease both;
}

@keyframes thumbPanelIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.thumb-panel-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.thumb-panel-title {
  font-family: "Silkscreen", monospace;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.thumb-panel-media img,
.thumb-panel-media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  margin: 0 auto 10px;
  border-radius: var(--radius);
  object-fit: contain;
}

.thumb-panel-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: -4px 0 16px;
}

.thumb-panel-details {
  text-align: left;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.thumb-description {
  max-width: 640px;
  margin: 32px auto 0;
  padding-top: 16px;
  text-align: left;
  border-top: 1px solid var(--color-border);
}

.thumb-empty {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.thumb-click-zone {
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
}

.thumb-click-zone svg {
  width: 28px;
  height: 28px;
  opacity: 0;
  transition: opacity var(--transition);
}

.thumb-click-zone:hover svg {
  opacity: 0.5;
}

.thumb-click-zone.is-disabled {
  pointer-events: none;
}

.thumb-click-prev {
  left: 190px;
  width: calc(50% - 95px);
}

.thumb-click-next {
  right: 0;
  width: calc(50% - 95px);
}

@media (max-width: 860px) {
  .thumb-click-zone {
    display: none;
  }

  .thumb-sidebar {
    position: static;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    padding: 80px 16px 24px;
  }

  .thumb-layout {
    margin-left: 0;
  }

  .thumb-viewer {
    width: 100%;
    padding: 0 16px;
  }
}

/* ==========================================================================
   Full-bleed tile grid (index links, portfolio, products)
   ========================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  padding: 2px 0 96px;
}

.compact-tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
}

.compact-tile-grid .tile {
  aspect-ratio: 1 / 1;
}

.print-tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.print-tile-grid .tile {
  aspect-ratio: 1 / 1;
}

.remnants-page main {
  display: flex;
}

.remnants-page .site-footer {
  display: none;
}

.remnants-full {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.remnants-media {
  position: absolute;
  inset: 0;
  will-change: filter, transform;
  transform: translateZ(0);
}

.remnants-media img,
.remnants-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  background-color: var(--color-bg-alt);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.tile:hover .tile-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .tile-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile-overlay h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 4px;
}

.tile-overlay p {
  font-size: 0.8rem;
  color: #cfcfcb;
  margin: 0;
}

.tile-overlay .tile-price {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 6px;
}

.tile-overlay .btn {
  margin-top: 12px;
  align-self: flex-start;
  padding: 8px 18px;
  font-size: 0.68rem;
}

.tile-overlay .tile-sold-out {
  margin-top: 12px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Projects page (fixed left index, full-viewport scroll-snap panels)
   ========================================================================== */

.project-index {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 240px;
  height: 100vh;
  padding: 90px 24px 24px;
  overflow-y: auto;
}

.project-index-title {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: 0 0 8px;
}

.project-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-index-link {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.project-index-link:hover,
.project-index-link.is-active {
  color: var(--color-index-accent);
}

.projects-scroll {
  margin-left: 240px;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
}

.project-panel {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.project-panel-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: 0 48px;
}

.project-panel-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}

.project-panel-overlay {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: fit-content;
  max-width: 45%;
  margin-left: 64px;
  padding: 24px 28px;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius);
  text-align: left;
}

@keyframes projectTitleFlicker {
  0%, 100% { opacity: 1; }
  4% { opacity: 0.3; }
  6% { opacity: 1; }
  7% { opacity: 0.5; }
  9% { opacity: 1; }
  41% { opacity: 1; }
  43% { opacity: 0.4; }
  45% { opacity: 1; }
  77% { opacity: 1; }
  78% { opacity: 0.6; }
  80% { opacity: 1; }
}

.project-panel-overlay h3 {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: clamp(17.6px, 2.6vw, 28.8px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-project-accent);
  text-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
  animation: projectTitleFlicker 3.4s infinite;
  margin-bottom: 8px;
}

.project-panel-overlay p {
  font-size: 0.95rem;
  color: #cfcfcb;
  margin: 0;
}

.project-panel-overlay .scramble-slot,
.project-index-link .scramble-slot {
  display: inline-block;
  width: 1ch;
  text-align: center;
}

@media (max-width: 860px) {
  .project-index {
    position: static;
    width: 100%;
    height: auto;
    padding: 24px;
  }

  .project-index ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .projects-scroll {
    margin-left: 0;
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .project-panel {
    height: auto;
    min-height: 420px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    scroll-snap-align: none;
    scroll-margin-top: 110px;
  }

  .project-panel-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    flex: none;
    padding: 0;
  }

  .project-panel-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
  }

  .project-panel-overlay {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 24px;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-radius: 0;
  }
}

/* ==========================================================================
   Studio post page (back button + staggered vertical fade-in)
   ========================================================================== */

.back-button {
  position: fixed;
  top: 74px;
  left: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition), border-color var(--transition);
}

.back-button svg {
  width: 14px;
  height: 14px;
}

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

@media (max-width: 640px) {
  .back-button {
    position: static;
    margin: 16px 24px 0;
  }
}

.post-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: rgba(10, 10, 10, 0.6);
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity var(--transition), color var(--transition), border-color var(--transition);
}

.post-nav-arrow svg {
  width: 18px;
  height: 18px;
}

.post-nav-arrow:hover {
  opacity: 1;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.post-nav-prev {
  left: 24px;
}

.post-nav-next {
  right: 24px;
}

@media (max-width: 860px) {
  .post-nav-arrow {
    display: none;
  }
}

@keyframes studioFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-item {
  animation: studioFadeUp 4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.studio-post {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 100px;
}

.studio-post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.studio-post-headline {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: clamp(19.2px, 3.5vw, 28.8px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.studio-post-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.studio-media-image,
.studio-media-video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.studio-media-audio {
  width: 100%;
}

.studio-media-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: -4px 0 4px;
}

.studio-post-body {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.studio-post-body p {
  color: var(--color-text);
  font-size: 1rem;
}

/* ==========================================================================
   Section heading (Projects page groupings)
   ========================================================================== */

.section-heading {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: 15.2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 56px 0 4px;
}

.section-heading:first-of-type {
  margin-top: 8px;
}

/* ==========================================================================
   CV / exhibitions list
   ========================================================================== */

.cv-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.cv-section {
  margin-bottom: 52px;
}

.cv-section h2 {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-list li {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.cv-year {
  flex-shrink: 0;
  width: 56px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.cv-detail {
  flex: 1;
}

.cv-detail .cv-title {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cv-detail .cv-venue {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Print detail page (variant picker + PayPal checkout)
   ========================================================================== */

.print-detail {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.print-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.print-description {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 32px;
}

.print-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.variant-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: transparent;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition);
}

.variant-option:hover:not(:disabled) {
  border-color: var(--color-accent);
}

.variant-option.is-selected {
  border-color: var(--color-accent);
}

.variant-option:disabled {
  opacity: 0.4;
}

.variant-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.variant-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.variant-option.is-selected .variant-price {
  color: var(--color-accent);
}

.print-shipping-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: -18px 0 24px;
}

.print-checkout {
  max-width: 320px;
}

.print-checkout-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  padding: 11px 28px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: transparent;
  color: var(--color-text);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform 100ms ease;
}

.btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0a;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 1px dashed var(--color-accent);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.4;
}

.btn:disabled:hover {
  background-color: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.cart-page {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.cart-empty-message {
  color: var(--color-text-muted);
}

.cart-empty-message a {
  color: var(--color-accent);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
}

.cart-item-name {
  font-size: 0.9rem;
  color: var(--color-text);
}

.cart-item-variant,
.cart-item-qty {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--color-accent);
  white-space: nowrap;
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
      "image info remove"
      "image price remove";
    row-gap: 6px;
  }

  .cart-item-image {
    grid-area: image;
    width: 56px;
    height: 56px;
  }

  .cart-item-info {
    grid-area: info;
  }

  .cart-item-price {
    grid-area: price;
  }

  .cart-item-remove {
    grid-area: remove;
  }
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-top: 4px;
}

#cart-total {
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* ==========================================================================
   Forms (Contact page)
   ========================================================================== */

.form-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 110px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #55534e;
}

.field input:hover,
.field textarea:hover {
  border-color: #4a4a45;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.8rem;
  margin-top: 16px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
  padding: 2px 0 96px;
}

.gallery-box {
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-alt);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: color var(--transition), background-color var(--transition);
}

.gallery-box:hover {
  color: var(--color-accent);
  background-color: #1a1a1a;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 8px 0;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer .container > p {
  margin-top: 20px;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.footer-subscribe .formkit-form {
  max-width: 100% !important;
  margin: 0 auto !important;
}

.footer-subscribe .seva-fields {
  justify-content: center !important;
}

.footer-subscribe [data-style="clean"] {
  padding: 0 !important;
}

.footer-subscribe .formkit-fields {
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.footer-subscribe .formkit-field,
.footer-subscribe .formkit-submit {
  margin: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
}

.footer-subscribe .formkit-submit {
  flex: 0 0 auto !important;
}

.footer-subscribe .formkit-input {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--color-text) !important;
  font-family: "Blinker", sans-serif !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  padding: 10px 12px !important;
}

.footer-subscribe .formkit-input:focus {
  outline: none !important;
}

.footer-subscribe .formkit-submit {
  background-color: var(--color-accent) !important;
  border-radius: 0 !important;
}

.footer-subscribe .formkit-submit span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0a0a0a !important;
  font-size: 0.7rem;
  line-height: 1.2 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px !important;
}

.footer-subscribe .formkit-alert-success {
  background: var(--color-bg-alt) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-text) !important;
  margin: 8px auto !important;
  padding: 8px !important;
  font-size: 0.72rem !important;
}

.footer-subscribe .formkit-alert-error {
  background: var(--color-bg-alt) !important;
  border-color: #f2643b !important;
  color: #f2643b !important;
  margin: 8px auto !important;
  padding: 8px !important;
  font-size: 0.72rem !important;
}

.footer-subscribe .formkit-powered-by-convertkit-container {
  display: none !important;
}
