:root {
  --paper: #efede8;
  --paper-2: #e6e3dd;
  --ink: #141416;
  --ink-2: #5d5a55;
  --night: #0f0f10;
  --night-2: #1a1a1c;
  --fog: #a29e97;
  --corten: #c25e2a;
  --line-l: rgba(20, 20, 22, .14);
  --line-d: rgba(239, 237, 232, .14);
  --pad: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.035em; line-height: .95; }
em { font-style: normal; color: var(--corten); }
button { font: inherit; color: inherit; }
::selection { background: var(--corten); color: #fff; }

.kicker {
  margin: 0 0 20px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  color: var(--fog);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn:hover { background: var(--corten); border-color: var(--corten); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-l); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link-arrow {
  display: inline-flex; gap: 12px; align-items: center; text-decoration: none;
  font-size: 15px; letter-spacing: .02em; padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* Intro curtain */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--night);
  transition: clip-path 1.1s var(--ease) .15s;
  clip-path: inset(0 0 0 0);
}
.intro img { width: min(260px, 50vw); height: auto; opacity: 0; animation: introLogo 1s var(--ease) forwards; }
body:not(.is-loading) .intro { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes introLogo { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Cursor (pointer devices only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--corten); display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-view span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px; padding: 18px var(--pad);
  color: var(--paper); transition: color .5s var(--ease), transform .5s var(--ease);
}
.nav[data-nav-theme="light"] { color: var(--ink); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: color .5s var(--ease), transform .5s var(--ease), background .5s; }
.nav.is-scrolled[data-nav-theme="light"] { background: rgba(239, 237, 232, .82); }
.nav.is-scrolled[data-nav-theme="dark"] { background: rgba(15, 15, 16, .6); }
.nav.is-open { background: none; backdrop-filter: none; }
.nav__logo { position: relative; display: block; height: 38px; }
.nav__logo img { height: 38px; width: auto; transition: opacity .5s; }
.nav__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav[data-nav-theme="light"] .logo-dark { opacity: 1; }
.nav[data-nav-theme="light"] .logo-light { opacity: 0; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14px; letter-spacing: .04em; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: var(--paper); --p: 0; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%;
  filter: grayscale(1) brightness(.55) contrast(1.1);
  transform: scale(calc(1.08 + var(--p) * .25));
  opacity: calc(1 - var(--p) * .7);
}
.hero__content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 7vh, 72px);
  transform: translateY(calc(var(--p) * -80px)); opacity: calc(1 - var(--p) * 1.6);
}
.hero__title { font-size: clamp(56px, 11.5vw, 190px); font-weight: 200; font-stretch: 110%; text-transform: uppercase; }
.hero__title span { display: block; overflow: hidden; }
.hero__title span:nth-child(2) { padding-left: 8vw; }
.hero__title em { font-weight: 600; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; margin: 36px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line-d); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fog);
}
.hero__hint { position: absolute; left: 50%; top: 18px; display: none; }
body:not(.is-loading) .hero__title span { animation: rise 1.4s var(--ease) both; }
body:not(.is-loading) .hero__title span:nth-child(2) { animation-delay: .1s; }
body:not(.is-loading) .hero__title span:nth-child(3) { animation-delay: .2s; }
body:not(.is-loading) .hero__meta { animation: fade 1.4s var(--ease) .5s both; }
@keyframes rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* Statement */
.statement { padding: clamp(120px, 22vh, 240px) var(--pad); }
.statement__text {
  margin: 0; max-width: 1200px;
  font-size: clamp(30px, 4.6vw, 72px); font-weight: 300; line-height: 1.12; letter-spacing: -0.03em;
}
.statement__text .w { opacity: .14; transition: opacity .4s; }
.statement__text .w.is-on { opacity: 1; }

/* Scenes */
.scene {
  position: relative; min-height: 105svh; display: grid; place-items: center;
  padding: 90px var(--pad) 170px; overflow: hidden; cursor: pointer; --p: 0;
  border-top: 1px solid var(--line-l);
}
.scene__ghost {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 0;
  white-space: nowrap; text-align: center; pointer-events: none;
  font-size: clamp(90px, 19vw, 320px); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-l);
  transform: translate(calc((var(--p) - .5) * -30%), -50%);
}
.scene__img {
  position: relative; z-index: 1; width: min(78vw, 860px); max-height: 72svh; object-fit: contain;
  mix-blend-mode: multiply;
  /* soften the faint studio-floor gradient at the edges of the renders */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  transform: translateY(calc((var(--p) - .5) * -8vh)) scale(calc(.92 + var(--p) * .1));
  transition: filter .6s var(--ease);
}
.scene:hover .scene__img { filter: contrast(1.05); }
.scene__meta {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 48px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.scene__num { font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.scene__title { font-size: clamp(34px, 4.4vw, 64px); font-weight: 300; margin-top: 10px; }
.scene__side { text-align: right; font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; justify-items: end; }

/* Index */
.index { position: relative; padding: clamp(100px, 16vh, 180px) var(--pad); border-top: 1px solid var(--line-l); }
.index__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.index__head h2 { font-size: clamp(44px, 7vw, 110px); }
.index__filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.index__filters button {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.index__filters button:hover { color: var(--ink); }
.index__filters button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.index__filters sup { font-size: 10px; margin-left: 2px; }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.row {
  display: grid; grid-template-columns: 60px 1fr 1fr 140px; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line-l); cursor: pointer;
  transition: padding .5s var(--ease), color .3s;
  animation: fade .8s var(--ease) both;
}
.row:hover { padding-left: 18px; }
.row__n { font-size: 13px; color: var(--fog); letter-spacing: .1em; }
.row__t { font-size: clamp(22px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.row__s { font-size: 14px; color: var(--ink-2); }
.row__p { font-size: 14px; text-align: right; }
.row__thumb { display: none; }
.index__preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s, transform .5s var(--ease);
  border-radius: 6px; overflow: hidden; background: #fff;
}
.index__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .index__preview { display: none; } }

/* Night */
.night { position: relative; height: 120svh; overflow: hidden; background: var(--night); color: var(--paper); --p: 0; }
.night__bg {
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover;
  transform: translateY(calc((var(--p) - .5) * 12%)); filter: brightness(.8);
}
.night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,16,.85), transparent 55%); }
.night__content { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: 12vh; }
.night h2 { font-size: clamp(48px, 8vw, 132px); margin-bottom: 36px; }

/* Studio */
.studio {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--paper);
  padding: 0 var(--pad);
}
.studio__media { position: relative; }
.studio__sticky {
  position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 96px 0 48px;
}
.studio__sticky img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
  opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}
.studio__sticky img.is-active { opacity: 1; transform: none; }
.studio__steps { list-style: none; margin: 0; padding: 0 0 0 clamp(32px, 6vw, 110px); }
.step__img { display: none; }
.studio__steps li { min-height: 100svh; display: grid; align-content: center; opacity: .2; transition: opacity .8s var(--ease); }
.studio__steps li.is-active { opacity: 1; }
.studio__steps span { font-size: 13px; letter-spacing: .2em; color: var(--corten); }
.studio__steps h3 { font-size: clamp(54px, 7vw, 120px); font-weight: 200; margin: 16px 0 26px; text-transform: uppercase; font-stretch: 112%; }
.studio__steps p { max-width: 420px; font-size: 18px; color: var(--fog); margin: 0; }

/* Commission */
.commission { padding: clamp(120px, 20vh, 220px) var(--pad); }
.commission__title { font-size: clamp(54px, 10vw, 170px); font-weight: 200; text-transform: uppercase; font-stretch: 110%; }
.commission__title em { font-weight: 600; }
.commission__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-l);
}
.commission__row p { margin: 0; max-width: 520px; font-size: 18px; color: var(--ink-2); }

/* Contact */
.contact { background: var(--night); color: var(--paper); padding: clamp(110px, 18vh, 200px) var(--pad) 32px; }
.contact__title { font-size: clamp(56px, 11vw, 180px); font-weight: 200; text-transform: uppercase; font-stretch: 110%; margin-bottom: 80px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__links { display: grid; border-top: 1px solid var(--line-d); }
.contact__links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line-d); text-decoration: none;
  font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; transition: color .3s, padding .5s var(--ease);
}
.contact__links a small { font-size: 13px; color: var(--fog); letter-spacing: .04em; }
.contact__links a:hover { color: var(--corten); padding-left: 12px; }
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fog); }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line-d); border-radius: 0;
  background: transparent; color: var(--paper); font: 300 20px "Archivo", sans-serif; transition: border-color .3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--corten); }
.form textarea { resize: vertical; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { margin: 0; font-size: 14px; color: var(--fog); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(100px, 16vh, 180px); padding-top: 22px; border-top: 1px solid var(--line-d);
  font-size: 13px; color: var(--fog);
}
.footer a { text-decoration: none; }

/* Piece view */
.piece {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
  display: none; grid-template-columns: 1fr minmax(360px, 34vw);
}
.piece[open] { display: grid; animation: pieceIn .8s var(--ease); }
.piece::backdrop { background: var(--paper); }
@keyframes pieceIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.piece__stage { position: relative; display: grid; place-items: center; padding: 6vh 6vw; min-height: 0; background: #fff; }
.piece__stage img { max-width: 100%; max-height: 88svh; object-fit: contain; transition: opacity .35s, transform .6s var(--ease); }
.piece__stage img.is-swapping { opacity: 0; transform: scale(.98); }
.piece__nav {
  position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 1px solid var(--line-l); background: rgba(255,255,255,.7); cursor: pointer; font-size: 18px;
  transition: background .3s, color .3s;
}
.piece__nav:hover { background: var(--ink); color: var(--paper); }
.piece__nav--prev { left: 24px; }
.piece__nav--next { right: 24px; }
.piece__count { position: absolute; left: 28px; bottom: 22px; margin: 0; font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.piece__info { display: flex; flex-direction: column; padding: 28px clamp(24px, 3vw, 48px); overflow-y: auto; border-left: 1px solid var(--line-l); }
.piece__close {
  align-self: flex-end; background: none; border: 0; cursor: pointer; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; margin-bottom: 8vh;
}
.piece__close span { font-size: 22px; line-height: 1; }
.piece__info h2 { font-size: clamp(36px, 3.6vw, 58px); font-weight: 300; margin-bottom: 16px; }
.piece__price { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.piece__options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-l); }
.swatch-label { font-size: 13px; padding: 3px 12px; border: 1px solid var(--line-l); border-radius: 999px; color: var(--ink-2); }
.piece__text p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.piece__text details { border-top: 1px solid var(--line-l); }
.piece__text details:last-of-type { border-bottom: 1px solid var(--line-l); }
.piece__text summary { padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .04em; }
.piece__text summary::-webkit-details-marker { display: none; }
.piece__text summary::after { content: "+"; }
.piece__text details[open] summary::after { content: "−"; }
.piece__text ul { margin: 0 0 16px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.piece__thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0; }
.piece__thumbs button { width: 54px; height: 54px; padding: 0; border: 1px solid transparent; border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.piece__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.piece__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.piece__cta { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.piece__cta .btn { flex: 1; justify-content: center; }
.piece__cta .btn--ghost { flex: 0 0 auto; }
.piece__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-l); }
.piece__pager button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--ink-2); text-align: left; }
.piece__pager button:last-child { text-align: right; }
.piece__pager button:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; padding: 40px var(--pad) 60px; }
  .studio__media { display: none; }
  .studio__steps { padding: 0; }
  .studio__steps li { min-height: 0; opacity: 1; padding: 40px 0; border-bottom: 1px solid var(--line-d); }
  .step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 26px; }
  .contact__grid { grid-template-columns: 1fr; }
  .piece { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; }
  .piece__stage { height: 62svh; padding: 24px; }
  .piece__stage img { max-height: 100%; }
  .piece__info { border-left: 0; overflow: visible; }
  .piece__close { position: fixed; top: 14px; right: 16px; z-index: 2; margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(239,237,232,.9); }
  .piece__cta { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0; }
}
@media (max-width: 700px) {
  .nav { padding-block: 14px; }
  .nav__logo, .nav__logo img { height: 32px; }
  .nav__toggle {
    display: grid; gap: 7px; place-content: center; width: 44px; height: 44px; margin-left: auto;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .nav.is-open { color: var(--paper); }
  .nav.is-open .logo-light { opacity: 1; } .nav.is-open .logo-dark { opacity: 0; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; margin: 0;
    padding: 0 var(--pad); background: var(--night); color: var(--paper);
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__links a { font-size: 48px; font-weight: 200; letter-spacing: -0.03em; text-transform: uppercase; }
  .nav__links a::after { display: none; }
  .hero__title span:nth-child(2) { padding-left: 0; }
  .hero__meta { flex-direction: column; gap: 4px; }
  .scene { min-height: 100svh; padding: 90px var(--pad) 140px; }
  .scene__img { width: 100%; }
  .scene__meta { flex-direction: column; align-items: start; bottom: 32px; }
  .scene__side { text-align: left; justify-items: start; }
  .row { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 2px 16px; padding: 14px 0; }
  .row:hover { padding-left: 0; }
  .row__n { display: none; }
  .row__thumb { display: block; grid-row: 1 / 3; width: 64px; height: 80px; object-fit: cover; mix-blend-mode: multiply; }
  .row__t { font-size: 22px; }
  .row__s { display: none; }
  .row__p { text-align: left; color: var(--ink-2); }
  .night { height: 100svh; }
  .form__row { grid-template-columns: 1fr; }
  .contact__title { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
}
