:root {
  --ink: #fffaf2;
  --muted: #bdb4a8;
  --paper: #10100e;
  --paper-soft: #171612;
  --panel: #fffdf8;
  --panel-soft: #f1eee7;
  --line: rgba(255, 250, 242, 0.15);
  --line-dark: #d8d0c4;
  --black: #15130f;
  --red: #d83d31;
  --blue: #255fb8;
  --yellow: #e5b62f;
  --green: #4a8b69;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(16, 16, 14, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  background:
    linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--blue) 50% 75%, var(--ink) 75% 100%);
  border: 1px solid rgba(255, 250, 242, 0.78);
  display: inline-block;
  height: 18px;
  width: 36px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  min-height: 36px;
  padding: 7px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(255, 250, 242, 0.64);
  outline: none;
}

.hero {
  align-items: center;
  display: flex;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 4vw, 54px);
  position: relative;
}

.hero-content {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.about-heading h2,
.contact-section h2,
.modal-info h2,
.story-section h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-size: clamp(58px, 10vw, 140px);
}

.hero-line {
  color: rgba(255, 250, 242, 0.78);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  margin: 26px 0 34px;
  max-width: 560px;
}

.hero-link,
.contact-link {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--black);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  width: fit-content;
}

.hero-link:hover,
.contact-link:hover,
.hero-link:focus-visible,
.contact-link:focus-visible {
  outline: 1px solid rgba(255, 250, 242, 0.7);
  outline-offset: 3px;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 14, 0.94) 0%, rgba(16, 16, 14, 0.72) 42%, rgba(16, 16, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 16, 14, 0.82) 0%, rgba(16, 16, 14, 0) 34%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-image {
  height: 100%;
  inset: 0;
  max-height: none;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.86;
  position: absolute;
  width: 100%;
}

.work-section,
.about-section,
.contact-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 54px);
  scroll-margin-top: 86px;
}

.section-intro {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  margin: 0 auto 34px;
  max-width: 1360px;
  padding-top: 34px;
}

.section-intro h2,
.about-heading h2,
.contact-section h2 {
  font-size: clamp(34px, 5vw, 76px);
}

.section-intro p:last-child,
.about-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 34px;
  max-width: 1360px;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  min-height: 38px;
  padding: 8px 13px;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--black);
  outline: none;
}

.artwork-grid {
  display: grid;
  gap: 48px 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0 auto;
  max-width: 1360px;
}

.artwork-card {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  min-height: 100%;
  padding: 0;
  text-align: left;
}

.artwork-card:hover,
.artwork-card:focus-visible {
  outline: none;
}

.artwork-card.is-hidden {
  display: none;
}

.artwork-image {
  align-items: center;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid rgba(255, 250, 242, 0.12);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.artwork-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 420ms ease;
  width: 100%;
}

.artwork-card:hover .artwork-image img,
.artwork-card:focus-visible .artwork-image img {
  transform: scale(1.025);
}

.artwork-card:hover .artwork-image,
.artwork-card:focus-visible .artwork-image {
  border-color: rgba(255, 250, 242, 0.58);
}

.artwork-meta {
  display: grid;
  gap: 9px;
  padding: 14px 0 0;
}

.artwork-title-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.artwork-title-block {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.artwork-meta h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  min-width: 0;
}

.card-technique-icon {
  align-items: center;
  color: rgba(255, 250, 242, 0.72);
  display: flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  opacity: 0.9;
  overflow: visible;
  pointer-events: none;
  width: 36px;
}

.card-technique-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.artwork-count {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.material {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.swatches {
  display: none;
}

.about-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: clamp(26px, 5vw, 70px);
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
}

.about-section .eyebrow,
.about-copy p {
  color: var(--muted);
}

.artist-portrait {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 999px;
  height: 92px;
  margin-bottom: 24px;
  object-fit: cover;
  width: 92px;
}

.about-copy {
  columns: 2 320px;
  column-gap: clamp(28px, 5vw, 64px);
}

.about-copy p {
  break-inside: avoid;
  margin: 0 0 18px;
}

.contact-section {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(216, 61, 49, 0.12), rgba(229, 182, 47, 0.1), rgba(37, 95, 184, 0.12)),
    var(--paper-soft);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-link.secondary {
  background: transparent;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 54px);
}

.modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.78);
  inset: 0;
  position: absolute;
}

.modal-panel {
  background: #10100e;
  border: 1px solid rgba(255, 250, 242, 0.22);
  box-shadow: var(--shadow);
  inset: clamp(10px, 2vw, 28px);
  overflow: hidden;
  position: absolute;
}

.modal-close {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  color: var(--black);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
}

.story-scroll {
  height: 100%;
  overflow: auto;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: min(760px, calc(100svh - 56px));
}

.modal-media {
  align-items: center;
  background: #060605;
  display: grid;
  min-height: 0;
  overflow: hidden;
  padding: clamp(20px, 4vw, 54px);
  place-items: center;
  position: relative;
}

.modal-media img {
  max-height: calc(100svh - 110px);
  object-fit: contain;
  width: 100%;
}

.modal-arrow {
  align-items: center;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(21, 19, 15, 0.14);
  color: var(--black);
  cursor: pointer;
  display: flex;
  font-size: 26px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  z-index: 2;
}

.modal-arrow.prev {
  left: 14px;
}

.modal-arrow.next {
  right: 14px;
}

.modal-info {
  background: var(--paper-soft);
  border-left: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 76px 30px 30px;
}

.modal-info h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.modal-info p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.modal-kicker,
.modal-size {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-title-line {
  align-items: center;
  display: flex;
  gap: 16px;
}

.modal-title-line h2 {
  min-width: 0;
}

.title-technique-icon {
  align-items: center;
  color: rgba(255, 250, 242, 0.84);
  display: flex;
  flex: 0 0 76px;
  height: 76px;
  justify-content: center;
  overflow: visible;
  width: 76px;
}

.title-technique-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.story-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-top: 18px;
}

.story-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  margin-top: 10px;
  text-transform: uppercase;
}

.story-facts dd {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.story-section {
  border-top: 1px solid rgba(255, 250, 242, 0.1);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  padding: clamp(34px, 5vw, 68px);
}

.story-section h3 {
  font-size: clamp(32px, 4vw, 58px);
}

.story-section p:not(.section-label) {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 0;
  max-width: 520px;
}

.process-slot {
  align-items: center;
  background: #060605;
  border: 1px solid rgba(255, 250, 242, 0.16);
  color: var(--ink);
  display: flex;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
}

.process-slot {
  flex-direction: column;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 260px;
  text-transform: uppercase;
}

.play-mark {
  border-bottom: 22px solid transparent;
  border-left: 34px solid var(--ink);
  border-top: 22px solid transparent;
  display: block;
  height: 0;
  margin-bottom: 16px;
  width: 0;
}

.views-section {
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
}

.modal-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.thumb-button {
  aspect-ratio: 1;
  background: var(--panel);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.thumb-button.is-active {
  border-color: var(--ink);
}

.thumb-button img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.thread-line {
  animation: drawThread 2.6s ease-in-out infinite;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}

@keyframes drawThread {
  0% { stroke-dashoffset: 760; }
  48%, 78% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -760; }
}

.puzzle-piece {
  animation: puzzleReorder 3s ease-in-out infinite;
  transform: translate(var(--x), var(--y));
}

@keyframes puzzleReorder {
  0%, 18% { transform: translate(var(--x), var(--y)); }
  48% { transform: translate(calc(var(--x) + var(--sx)), calc(var(--y) + var(--sy))); }
  78%, 100% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))); }
}

.rubik-icon {
  overflow: visible;
}

.rubik-base {
  opacity: 0.34;
}

.rubik-layer {
  transform-box: fill-box;
  transform-origin: center;
}

.rubik-layer-top {
  animation: rubikTopLayer 3.6s ease-in-out infinite;
}

.rubik-layer-middle {
  animation: rubikMiddleLayer 3.6s ease-in-out infinite;
}

.rubik-layer-side {
  animation: rubikSideLayer 3.6s ease-in-out infinite;
}

@keyframes rubikTopLayer {
  0%, 12%, 84%, 100% { transform: translate(0, 0) rotate(0deg); }
  28%, 42% { transform: translate(0, -8px) rotate(-16deg); }
}

@keyframes rubikMiddleLayer {
  0%, 22%, 84%, 100% { transform: translate(0, 0) skewY(0deg); }
  42%, 56% { transform: translate(-8px, 4px) skewY(12deg); }
}

@keyframes rubikSideLayer {
  0%, 34%, 84%, 100% { transform: translate(0, 0) skewY(0deg); }
  56%, 70% { transform: translate(8px, 2px) skewY(-14deg); }
}

.dice-icon {
  overflow: visible;
}

.dice-roll {
  animation: diceRollInPlace 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.dice-face {
  animation-duration: 3.6s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  opacity: 0;
}

.dice-face-1 { animation-name: diceFaceOne; }
.dice-face-2 { animation-name: diceFaceTwo; }
.dice-face-3 { animation-name: diceFaceThree; }
.dice-face-4 { animation-name: diceFaceFour; }
.dice-face-5 { animation-name: diceFaceFive; }
.dice-face-6 { animation-name: diceFaceSix; }

@keyframes diceRollInPlace {
  0%, 10% { transform: rotate(0deg) translate(0, 0); }
  18% { transform: rotate(78deg) translate(2px, -2px); }
  24%, 28% { transform: rotate(90deg) translate(0, 0); }
  36% { transform: rotate(158deg) translate(-2px, 2px); }
  42%, 46% { transform: rotate(180deg) translate(0, 0); }
  54% { transform: rotate(252deg) translate(2px, 1px); }
  60%, 64% { transform: rotate(270deg) translate(0, 0); }
  72% { transform: rotate(338deg) translate(-1px, -2px); }
  78%, 82% { transform: rotate(360deg) translate(0, 0); }
  90% { transform: rotate(434deg) translate(1px, 2px); }
  96%, 100% { transform: rotate(450deg) translate(0, 0); }
}

@keyframes diceFaceOne {
  0%, 15.9% { opacity: 1; }
  16%, 100% { opacity: 0; }
}

@keyframes diceFaceTwo {
  0%, 15.9%, 32%, 100% { opacity: 0; }
  16%, 31.9% { opacity: 1; }
}

@keyframes diceFaceThree {
  0%, 31.9%, 48%, 100% { opacity: 0; }
  32%, 47.9% { opacity: 1; }
}

@keyframes diceFaceFour {
  0%, 47.9%, 64%, 100% { opacity: 0; }
  48%, 63.9% { opacity: 1; }
}

@keyframes diceFaceFive {
  0%, 63.9%, 80%, 100% { opacity: 0; }
  64%, 79.9% { opacity: 1; }
}

@keyframes diceFaceSix {
  0%, 79.9% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

.pin {
  animation: pinDrop 2.4s ease-in-out infinite;
  transform: translateY(-32px);
}

.pin:nth-child(2n) { animation-delay: -0.25s; }
.pin:nth-child(3n) { animation-delay: -0.55s; }
.pin:nth-child(5n) { animation-delay: -0.8s; }

@keyframes pinDrop {
  0%, 18% { opacity: 0.34; transform: translateY(-18px); }
  40%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.34; transform: translateY(12px); }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    position: relative;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section-intro,
  .about-section,
  .contact-section,
  .story-hero,
  .story-section,
  .views-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(92svh - 68px);
  }

  .story-hero {
    min-height: 0;
  }

  .modal-media img {
    max-height: 62svh;
  }

  .modal-info {
    padding: 28px;
  }

  .modal-title-line {
    align-items: flex-start;
  }

  .title-technique-icon {
    flex-basis: 64px;
    height: 64px;
    width: 64px;
  }

  .modal-close {
    position: fixed;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 16px;
  }

  .site-nav a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-line {
    font-size: 20px;
  }

  .work-section,
  .about-section,
  .contact-section,
  .story-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-link {
    width: 100%;
  }

  .artwork-title-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
