@import url("/type/fonts.css");

:root {
  color-scheme: dark;
  --ink: #000;
  --paper: #eae8df;
  --muted: #b9b5aa;
  --line: #34332e;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --header-height: 65px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 21px); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.65 var(--body); }
a { color: inherit; text-decoration: none; }
a:hover { color: white; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .94; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - clamp(36px, 9vw, 144px)), 1450px); margin-inline: auto; }
.mono { font: 400 .71rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.skip { position: fixed; z-index: 20; top: 8px; left: 8px; background: var(--paper); color: var(--ink); padding: 8px 10px; transform: translateY(-160%); }
.skip:focus { transform: none; color: var(--ink); }

.header { position: sticky; top: 0; z-index: 5; background: var(--ink); border-bottom: 1px solid var(--line); }
.masthead { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { width: min(100%, 155px); display: block; }
.masthead nav { display: flex; gap: clamp(20px,4vw,58px); font-size: .81rem; }
.masthead nav a, .language-switch { color: var(--muted); }
.masthead nav a:hover, .language-switch a:hover, .language-switch a[aria-current] { color: var(--paper); }
.language-switch { justify-self: end; display: flex; align-items: center; gap: 6px; font: 400 .73rem/1.4 var(--mono); }
.language-switch a { padding-block: 6px; }
.language-switch a + a { border-left: 1px solid var(--line); padding-left: 6px; }
.language-switch a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

.intro { padding-top: clamp(32px,5vw,75px); }
.intro-role { color: var(--muted); }
.intro h1 { margin-block: 12px 20px; }
.intro h1 img { width: min(100%, 820px); }
.intro-description { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-block: 1px solid var(--line); min-height: 48px; color: var(--muted); font: 400 .72rem/1.4 var(--mono); }
.intro-description a { padding-block: 10px; color: var(--paper); }
.intro-description a:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro-description a span { padding-left: 12px; }

.portfolio { padding-block: clamp(28px,4vw,59px) 86px; }
.index-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 15px 22px; padding-bottom: 25px; }
.index-heading h2, .contact h2 { font: 600 clamp(2.75rem,6vw,5.2rem)/.94 var(--display); letter-spacing: -.035em; }
.index-heading nav { display: flex; flex-wrap: wrap; gap: 9px 19px; color: var(--muted); font: 400 .71rem/1.4 var(--mono); }
.index-heading nav a { padding: 5px 0; }
.index-heading nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.category { display: grid; grid-template-columns: clamp(100px,14vw,198px) minmax(0, 1fr); gap: 17px 22px; padding-block: 20px 44px; border-top: 1px solid var(--line); }
.category h3 { max-width: 18ch; padding-top: 4px; color: var(--muted); font: 400 .75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.category ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(13px,2.2vw,32px); }
.category li { grid-column: span 2; min-width: 0; }
.category#fashion li:nth-child(-n+2) { grid-column: span 3; }
.category#fashion li:nth-child(2) { align-self: start; }
.category#visual li { grid-column: span 3; }
.project-link { display: block; }
.cover { display: block; overflow: hidden; aspect-ratio: 1; background: var(--ink); border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.project-link:hover .cover img { opacity: .77; }
.cover-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0 8px; font: 600 clamp(1.16rem,2.3vw,1.75rem)/1.1 var(--display); }
.cover-label span { flex: none; width: .60rem; height: .60rem; margin-right: .14rem; color: var(--muted); border-top: 1px solid; border-right: 1px solid; background: linear-gradient(135deg,transparent 46%,currentColor 47% 52%,transparent 53%); transition: transform .25s ease; }
.project-link:hover .cover-label span { transform: translate(2px,-2px); }

.about {
  display: grid;
  grid-template-columns: clamp(110px,14vw,202px) minmax(0,1fr);
  align-items: start;
  gap: clamp(22px,5vw,76px);
  border-block: 1px solid var(--line);
  padding-block: clamp(53px,8vw,116px);
}
.about h2 { font: 600 clamp(2.9rem,5vw,4.8rem)/.92 var(--display); letter-spacing: -.025em; }
.about-content { min-width: 0; }
.about-manifesto {
  max-width: 24ch;
  font: 600 clamp(3.25rem,7.25vw,7.7rem)/.88 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  align-items: start;
  gap: clamp(22px,4vw,64px);
  max-width: 830px;
  margin-top: clamp(32px,5vw,73px);
  padding-top: clamp(21px,3vw,41px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(.98rem,1.4vw,1.08rem);
  line-height: 1.75;
}
.about-body > div:nth-child(2) { margin-top: clamp(14px,3.25vw,45px); }
.about-body p + p { margin-top: 1em; }
@keyframes about-reveal {
  from { opacity: .75; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about-manifesto, .about-body > div {
      animation: about-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}
.contact { padding-block: 40px 57px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; }
.contact a { border-bottom: 1px solid var(--line); padding-bottom: 5px; overflow-wrap: anywhere; font: 600 clamp(1.6rem,4vw,3.8rem)/1.16 var(--display); }
.footer { border-top: 1px solid var(--line); color: var(--muted); font: 400 .72rem/1.4 var(--mono); }
.footer > div { display: flex; justify-content: space-between; gap: 14px; padding-block: 19px; }

.project-head { padding-block: 26px 22px; border-bottom: 1px solid var(--line); }
.project-meta { display: flex; justify-content: space-between; gap: 13px; color: var(--muted); }
.project-head h1 { margin-top: 14px; font: 600 clamp(4.1rem,12vw,11rem)/.94 var(--display); text-transform: uppercase; letter-spacing: -.027em; overflow-wrap: anywhere; }
.project-head h1 span { font: 400 clamp(1.5rem,4vw,3.7rem)/1 var(--body); color: var(--muted); }
.project-body.with-index { display: grid; grid-template-columns: clamp(102px,14vw,198px) minmax(0, 1fr); gap: 22px; }
.project-index { position: sticky; top: calc(var(--header-height) + 16px); align-self: start; display: grid; gap: 8px; padding: 14px 14px 12px 0; color: var(--muted); font: 400 .75rem/1.5 var(--mono); }
.project-index p { color: var(--paper); margin-bottom: 3px; }
.project-index a { padding: 2px 0; width: fit-content; }
.project-index a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.project-sections { min-width: 0; }
.chapter { padding-block: 30px 43px; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
.chapter h2 { margin-bottom: 20px; font: 600 clamp(2.15rem,4.7vw,4rem)/.94 var(--display); }
.chapter-content { min-width: 0; display: grid; gap: 23px; }
.original-copy { max-width: 67ch; color: var(--paper); font-size: clamp(1rem,1.4vw,1.115rem); }
.original-copy p + p { margin-top: 1em; }
.art { display: grid; gap: 19px; min-width: 0; align-items: start; }
.art figure { min-width: 0; }
.art figcaption { color: var(--muted); padding-top: 8px; font: 400 .74rem/1.5 var(--mono); }
.plate { background: var(--ink); display: grid; place-items: center; position: relative; min-width: 0; }
.plate img { width: 100%; max-height: 680px; object-fit: contain; }
.plate > span { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--paper); border: 1px solid var(--line); font: 400 1.05rem/1 var(--mono); }
.plate:hover > span { background: var(--paper); color: var(--ink); }
.wide .original-copy { grid-row: 2; }
.wide .plate img { width: auto; max-width: 100%; max-height: min(72vw,760px); }
.split .art, .plates .art, .named-art .art { grid-template-columns: repeat(2,minmax(0,1fr)); }
.references .art { grid-template-columns: repeat(3,minmax(0,1fr)); }
.references .plate img { max-height: 390px; }
.split .plate img, .named-art .plate img { max-height: 555px; }
.text-aside .chapter-content { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: start; }
.text-aside .plate img { max-height: 440px; }
.named-art .art { max-width: 1050px; }
.project-next { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; padding-block: 23px 34px; font: 400 .76rem/1.5 var(--mono); }
.project-next a:last-child { font: 600 clamp(1.9rem,4vw,3.4rem)/1 var(--display); }

.lightbox { color: var(--paper); background: var(--ink); border: 1px solid var(--line); padding: 0; width: min(93vw,1400px); max-height: 94dvh; overflow: auto; }
.lightbox::backdrop { background: #000e; }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--ink); padding: 6px 8px 6px 15px; font: 400 .76rem/1.4 var(--mono); }
.lightbox button { color: var(--paper); background: var(--ink); border: 1px solid var(--line); min-width: 42px; min-height: 42px; cursor: pointer; font-size: 1.24rem; }
.lightbox button:hover { color: var(--ink); background: var(--paper); }
.lightbox img { max-height: 80dvh; object-fit: contain; }
.lightbox figcaption { padding: 8px 15px; color: var(--muted); font: 400 .75rem/1.4 var(--mono); white-space: pre-line; }

@media (max-width: 830px) {
  .about { grid-template-columns: 1fr; }
  .category { grid-template-columns: 1fr; gap: 13px; padding-bottom: 30px; }
  .category h3 { max-width: none; }
  .project-body.with-index { grid-template-columns: 1fr; gap: 0; }
  .project-index { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .project-index p { width: 100%; }
}
@media (max-width: 620px) {
  :root { --header-height: 56px; }
  .masthead { gap: 8px; }
  .masthead nav { gap: 10px; font-size: .72rem; }
  .brand { max-width: 103px; }
  .intro-description { margin-top: 0; }
  .portfolio { padding-bottom: 48px; }
  .category ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .category li, .category#fashion li:nth-child(-n+2), .category#visual li { grid-column: span 1; }
  .index-heading { padding-bottom: 17px; }
  .cover-label { padding-top: 8px; }
  .about-manifesto { max-width: 24ch; font-size: clamp(2.65rem,10vw,4.1rem); }
  .about-body { grid-template-columns: 1fr; gap: 1em; }
  .about-body > div:nth-child(2) { margin-top: 0; }
  .project-head { padding-block: 19px 16px; }
  .chapter { padding-block: 23px 30px; }
  .text-aside .chapter-content { grid-template-columns: 1fr; }
  .text-aside .art { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .references .art { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wide .plate img { max-height: 108vw; }
}
@media (max-width: 420px) {
  .masthead nav { gap: 7px; }
  .brand { min-width: 61px; }
  .language-switch { gap: 4px; font-size: .67rem; }
  .language-switch a + a { padding-left: 4px; }
  .split .art, .plates .art { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The artwork moves in a perspective space above a separate page index. */
.home .intro { padding-top: clamp(21px,3vw,42px); }

.intro-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 5px clamp(12px,3vw,39px); }
.intro-actions .soundtrack { display: grid; align-items: center; }
.soundtrack audio { width: min(260px,45vw); height: 32px; }
.sound-toggle { display: flex; align-items: center; gap: 8px; color: var(--paper); background: none; border: 0; padding: 8px 0; cursor: pointer; letter-spacing: .03em; }
.sound-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.sound-bars { height: 14px; display: flex; align-items: center; gap: 3px; }
.sound-bars i { display: block; background: currentColor; width: 1px; height: 6px; }
.sound-bars i:nth-child(2) { height: 12px; }
.playing .sound-bars i { animation: sound-motion .65s alternate ease-in-out infinite; }
.playing .sound-bars i:nth-child(2) { animation-delay: -.28s; }
.playing .sound-bars i:nth-child(3) { animation-delay: -.45s; }
@keyframes sound-motion { from { transform: scaleY(.4); } to { transform: scaleY(1.35); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.showroom { margin-top: 17px; }
.showroom-stage {
  --card: clamp(234px,32vw,420px);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  min-height: clamp(338px,38vw,548px);
  overflow: hidden;
  border: 1px solid var(--line);
  perspective: 1020px;
  touch-action: pan-y;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 10%,#252522 0%,#0d0d0d 57%,#050505 82%);
}
.showroom-room { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.showroom-room::before {
  content: "";
  position: absolute;
  inset: 52% -48% -92%;
  background: repeating-linear-gradient(90deg,#eae8df20 0 1px,transparent 1px 90px),
    repeating-linear-gradient(0deg,#eae8df20 0 1px,transparent 1px 68px);
  transform-origin: 50% 0;
  transform: perspective(430px) rotateX(65deg);
  mask-image: radial-gradient(ellipse at top,#0009,transparent 69%);
}
.showroom-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent 14%,#eae8df16 14.1%,transparent 14.2% 85.8%,#eae8df16 85.9%,transparent 86%),
    radial-gradient(ellipse at 50% 82%,#aaa28c26,transparent 31%);
  box-shadow: inset 0 0 140px #0009;
}
.showroom-deck { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform .32s ease-out; }
.showroom-card {
  --x: 0;
  --z: -360px;
  --angle: 0deg;
  position: absolute;
  width: var(--card);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  margin: calc(var(--card) / -2) 0 0 calc(var(--card) / -2);
  display: block;
  pointer-events: auto;
  padding: 6px;
  border: 1px solid #898477;
  background: #090909;
  box-shadow: 0 24px 35px #000d, 0 1px 21px #0009;
  opacity: 1;
  transform: translate3d(var(--x),0,var(--z)) rotateY(var(--angle));
  transition: transform .72s cubic-bezier(.22,.8,.24,1), opacity .4s ease, visibility .58s allow-discrete, filter .55s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.showroom-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.showroom-card[data-position="center"] { --z: 40px; --angle: -5deg; }
.showroom-card[data-position="left"] { --x: calc(var(--card) * -.91); --z: -170px; --angle: 37deg; }
.showroom-card[data-position="right"] { --x: calc(var(--card) * .91); --z: -170px; --angle: -37deg; }
.showroom-card[data-position="far-left"] { --x: calc(var(--card) * -1.54); --z: -365px; --angle: 57deg; }
.showroom-card[data-position="far-right"] { --x: calc(var(--card) * 1.54); --z: -365px; --angle: -57deg; }
.showroom-card:not([data-position="center"]) { filter: brightness(.72); }
.showroom-card:hover, .showroom-card:focus-visible { filter: brightness(1.1); }
.showroom-card[data-position="behind"] { opacity: 0; visibility: hidden; pointer-events: none; }
.showroom-controls { display: grid; grid-template-columns: auto minmax(0,1fr) auto; min-height: 61px; border-bottom: 1px solid var(--line); }
.showroom-controls button { min-width: 59px; padding-inline: 13px; background: transparent; color: var(--paper); border: 0; font: 400 1.35rem/1 var(--mono); cursor: pointer; }
.showroom-controls button:first-child { border-right: 1px solid var(--line); }
.showroom-controls button:last-child { border-left: 1px solid var(--line); }
.showroom-controls button:hover { background: var(--paper); color: var(--ink); }
.showroom-selection { grid-column: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px clamp(9px,2.1vw,28px); }
.showroom-selection > span { color: var(--muted); }
.showroom-selection strong { font: 600 clamp(1.65rem,3.4vw,3rem)/1 var(--display); text-align: center; }
.showroom-open { justify-self: end; white-space: nowrap; }
.showroom-selection:hover strong { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 700px) {
  .showroom-stage { --card: clamp(184px,48vw,330px); min-height: clamp(265px,62vw,395px); }
  .showroom-card[data-position="left"] { --x: calc(var(--card) * -.78); --z: -135px; }
  .showroom-card[data-position="right"] { --x: calc(var(--card) * .78); --z: -135px; }
  .showroom-card[data-position="far-left"], .showroom-card[data-position="far-right"] { opacity: 0; visibility: hidden; pointer-events: none; }
  .showroom-controls button { min-width: 43px; padding-inline: 9px; }
}
@media (max-width: 620px) {

  .intro-description > span { display: none; }
  .intro-actions { width: 100%; justify-content: space-between; }
  .showroom { margin-top: 12px; }
  .showroom-selection { grid-template-columns: auto minmax(0,1fr); }
  .showroom-selection strong { text-align: right; }
  .showroom-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showroom-deck, .showroom-card { transition: none; }
  .playing .sound-bars i { animation: none; }
}
