/* NO ROLL --------------------------------------------------------- */
:root {
  --accent: #ff5700;
  --bg: #ece9e3;        /* light warm paper; orange (--accent) marks the active title */
  --ink: #111;
  --ink-2: #555;
  --row: #cdcdcd;
  --row-hover: #2e2e2e;
  --black: #000;
  --cine: #e2402f;      /* cinematic dot */
  --design: #7a4cff;    /* design dot */
  --col-left: 28.2vw;
  --col-w: 43.6vw;
  --gutter: 20px;
  --font: 'Albert Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.now-playing, .side-label, .works__row, .work__next { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

#scene {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  cursor: grab;
}
#scene { transition: opacity .6s var(--ease); touch-action: none; cursor: default; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #000; color: #fff;
  font-size: 11px; letter-spacing: .32em;
  transition: opacity .8s var(--ease) .1s, visibility 0s .9s;
}
body.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ---------- logo ---------- */
.logo {
  position: fixed; top: 18px; left: var(--gutter);
  z-index: 30;
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; color: var(--ink);
  line-height: 1;
}
.logo__mark {
  font-weight: 900;
  font-size: 54px;
  letter-spacing: -0.09em;
  transform: skewX(-12deg);
  margin-left: 2px;
  line-height: .86;
}
.logo__word {
  font-size: 8.5px;
  letter-spacing: .42em;
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- hero ---------- */
.hero {
  position: fixed; top: 20px; left: 25.2vw;
  z-index: 20;
  font-size: 15px; line-height: 24px;
  font-weight: 500;
  max-width: 260px;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 18px; right: 24px;
  z-index: 20;
  width: 140px;
  font-size: 11px; line-height: 19px;
  transition: opacity .5s var(--ease);
}
.hud div { display: flex; align-items: center; gap: 8px; }
.hud dt { font-weight: 600; white-space: nowrap; }
.hud div::after { content: none; }
.hud dt + dd { flex: 1; text-align: right; position: relative; font-variant-numeric: tabular-nums; }
.hud dd::before {
  content: ''; position: absolute; left: 0; right: 48px; top: 50%;
  border-top: 1px solid rgba(0,0,0,.28);
}
.hud dd button { font-size: 11px; line-height: 19px; padding: 0; }
.hud dd button:hover { text-decoration: underline; }

/* ---------- now playing ---------- */
.now-playing {
  position: fixed; right: 24px; bottom: 104px;
  z-index: 20;
  width: 174px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.now-playing__label { font-size: 15px; font-weight: 500; }
.now-playing__screen {
  position: relative;
  width: 174px; height: 104px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transition: transform .4s var(--ease);
}
.now-playing__screen iframe {
  position: absolute; top: 50%; left: 50%;
  width: 186px; height: 105px;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.now-playing:hover .now-playing__screen { transform: scale(1.04); }

/* ---------- bottom bar ---------- */
.bottom {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 14px;
  z-index: 25;
  display: flex; align-items: flex-end; gap: 3.5vw;
}
.side-label {
  display: inline-block;
  font-family: 'Michroma', var(--font);
  font-size: clamp(20px, 2.9vw, 46px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  transition: transform .4s var(--ease);
}
.side-label:hover { transform: translateY(-2px); }
/* chrome lettering */
.side-label__text {
  display: inline-block;
  background: linear-gradient(180deg,
    #ffffff 0%, #e9e9ea 18%, #9b9ca0 38%, #2a2a2e 50%, #55565b 56%, #d7d8db 72%, #ffffff 84%, #8d8e92 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(30, 10, 0, .55)) drop-shadow(0 8px 14px rgba(80, 20, 0, .25));
  transition: filter .6s ease;
}
/* the title of the section you're in turns orange */
body[data-page="cinematic"] .side-label--left .side-label__text,
body[data-page="about"] .side-label--right .side-label__text {
  background: none;
  color: var(--accent);
  filter: none;
}
.side-label::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.side-label:hover::after,
body[data-page="cinematic"] .side-label--left::after,
body[data-page="about"] .side-label--right::after { transform: scaleX(1); }
body[data-page="cinematic"] .side-label--left::after,
body[data-page="about"] .side-label--right::after { background: var(--accent); }
.side-label--right::after { transform-origin: right; }

/* ---------- the fire dog ---------- */
.fire-dog {
  position: fixed; left: 0; top: 0; z-index: 60;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
  will-change: transform;
}
.view-works {
  flex: 1;
  height: 38px;
  margin-bottom: 6px;
  background: var(--black);
  color: #fff;
  font-size: 17px;
  letter-spacing: .1em;
  transition: background .3s, letter-spacing .4s var(--ease);
}
.view-works:hover { letter-spacing: .2em; }
.view-works { transition: height .45s var(--ease), margin .45s var(--ease), color .2s, letter-spacing .4s var(--ease), opacity .3s; overflow: hidden; }
.view-works.is-line { height: 3px; margin-bottom: 24px; color: transparent; }
.view-works.is-line:hover, .view-works.is-line:focus-visible { height: 38px; margin-bottom: 6px; color: #fff; }

body:not([data-view="home"]) .hero,
body:not([data-view="home"]) .hud,
body:not([data-view="home"]) .now-playing { opacity: 0; pointer-events: none; }
body:not([data-view="home"]) .now-playing { transform: translateY(12px); }
body:not([data-view="home"]) .view-works { opacity: 0; pointer-events: none; }
body:not([data-view="home"]) .bottom { z-index: 5; }

/* ---------- unrolled strips ---------- */
.strip {
  position: fixed; top: 0; bottom: 0;
  width: var(--col-left);
  overflow: hidden;
  perspective: 1300px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.strip--cinematic { left: 0; transform: translateX(-12%); }
.strip--design { right: 0; width: calc(100vw - var(--col-left) - var(--col-w)); transform: translateX(12%); }
body[data-view="cinematic"] .strip--cinematic,
body[data-view="design"] .strip--design { opacity: 1; transform: none; }
.strip__track {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  width: max(118%, 380px);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}
.strip--cinematic .strip__track { transform: translateX(-56%) rotateX(38deg) rotateZ(24deg); }
.strip--design .strip__track { transform: translateX(-44%) rotateX(38deg) rotateZ(-24deg); }
.strip__inner { will-change: transform; }

.card {
  background: #f5f5f3;
  padding: 18px 18px 22px;
  margin-bottom: 0;
  border-bottom: 1px dashed rgba(0,0,0,.12);
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.25);
}
.card__top, .card__bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.card__top { margin-bottom: 14px; }
.card__barcode {
  width: 70px; height: 12px;
  background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 3px, #111 3px 5px, transparent 5px 6px, #111 6px 7px, transparent 7px 10px);
}
.card__img {
  aspect-ratio: 4 / 5;
  background: #ddd center / cover no-repeat;
}
.strip--cinematic .card__img {
  aspect-ratio: 16 / 10;
  background-color: #151515;
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.8); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; line-height: 2.2;
}
.card__img[style*="url"] span { display: none; }
.card__bottom { margin-top: 14px; font-size: 11px; font-weight: 400; }
.card__num { font-size: 24px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 4px; }
.card__num::before { content: ''; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--accent, #111); }

/* ---------- works column ---------- */
.column {
  position: fixed; top: 0; bottom: 0;
  left: var(--col-left); width: var(--col-w);
  z-index: 40;
  background: var(--black);
  color: #fff;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .75s var(--ease);
}
.column[hidden] { display: flex; visibility: hidden; }
.column.is-open { transform: none; visibility: visible; }
.column__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #666 transparent;
}
.column__head {
  position: sticky; top: 0; z-index: 3;
  background: var(--black);
  overflow: hidden;
  height: 185px;
  transition: height .6s var(--ease);
}
.column.is-detail .column__head { position: relative; height: 330px; }
.column__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 0;
  height: 60px;
  transition: opacity .3s;
}
.column.is-detail .column__bar { opacity: 0; pointer-events: none; height: 0; padding: 0; }
.column__title { font-size: 27px; font-weight: 400; letter-spacing: 0; }
.column__title span { color: #fff; margin: 0 .05em; }
.column__switch { font-size: 27px; color: #8c8c8c; }
.column__switch:hover { color: #fff; }
.column__switch[aria-disabled] { pointer-events: none; }
.column__switch::after { content: '.'; }
.column__close { color: #777; display: grid; place-items: center; width: 40px; height: 40px; }
.column__close:hover { color: #fff; }
.counter {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 18px;
  font-size: clamp(90px, 10.6vw, 158px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #bbb 45%, #222 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-top: 4px;
  transition: margin .6s var(--ease);
}
.column.is-detail .counter { margin-top: 18px; background: linear-gradient(180deg, #e6e6e6, #cfcfcf); -webkit-background-clip: text; background-clip: text; }
.counter i {
  flex: 1; height: .06em; margin: 0 .45em;
  background: linear-gradient(90deg, #bbb, #888);
  border-radius: 1px;
}

/* list */
.works { list-style: none; }
.column.is-detail .works { display: none; }
.works li { margin-bottom: 2px; }
.works .works__row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 48px;
  padding: 0 22px 0 20px;
  background: var(--row);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background .2s, color .2s, padding .3s var(--ease);
}
.works .works__row:hover, .works .works__row:focus-visible, .works li.is-current .works__row {
  background: var(--row-hover); color: #fff;
}
.works .works__row:hover { padding-left: 26px; }
.works__title { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.works__title svg { flex: none; opacity: 0; width: 0; transition: opacity .2s, width .2s; }
.works li:first-child .works__title svg,
.works .works__row:hover .works__title svg { opacity: 1; width: 13px; }
.works__tags {
  font-size: 11px; letter-spacing: .08em; color: #333; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.works .works__row:hover .works__tags, .works li.is-current .works__tags { color: #ccc; }
.works__tags::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent, var(--cine));
}
.works__group {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: #8a8a8a; padding: 18px 20px 8px;
}

/* detail */
.work { display: none; background: #f2f2f0; color: var(--ink); min-height: calc(100vh - 330px); padding-bottom: 120px; }
.column.is-detail .work { display: block; animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.work__media { background: #000; }
.work__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.work__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work__body { padding: 56px 9% 40px; }
.work__kicker { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 12px; color: #333; }
.work__title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; line-height: 1.12; }
.work__list { list-style: none; max-width: 60ch; }
.work__list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 15px; line-height: 1.5; }
.work__list li:first-child { border-top: 1px solid rgba(0,0,0,.1); }
.work__list li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; background: var(--cine); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.work__rights { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.15); font-size: 12px; line-height: 1.6; color: #666; max-width: 60ch; }
.work__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: 12px; letter-spacing: .08em; color: #555; }
.work__meta b { font-weight: 600; color: var(--ink); margin-right: 6px; }
.work__h { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 44px 0 14px; }
.work__h svg { width: 13px; }
.work__text { font-size: 15px; line-height: 1.75; max-width: 60ch; }
.work__text + .work__text { margin-top: 1em; }
.work__lead { margin-top: 36px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.3; max-width: 22ch; }

/* the case arrives folded under a tab; the dog stamps on the tab and it unfolds */
.work__fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .9s var(--ease); }
.work__fold-in { min-height: 0; overflow: hidden; }
.work.is-folded { min-height: 0; padding-bottom: 0; background: transparent; animation: none; }
.work.is-folded .work__fold { grid-template-rows: 0fr; }
.work__tab {
  display: flex; align-items: center; gap: 18px;
  height: 64px; padding: 0 22px;
  background: #f2f2f0; color: var(--ink);
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transform-origin: 50% 0;
  transition: height .45s var(--ease), opacity .3s ease;
  overflow: hidden;
}
.work__tab span:first-child { font-weight: 200; font-size: 26px; letter-spacing: 0; }
.work__tab span:last-child { margin-left: auto; font-size: 11px; letter-spacing: .08em; color: #555; text-transform: none; }
.work__tab.is-pressed { animation: press .32s cubic-bezier(.2,.8,.2,1); }
.work__tab.is-gone { height: 0; opacity: 0; }
@keyframes press { 30% { transform: translateY(8px) scaleY(.86); } 100% { transform: none; } }
.work__gallery img { width: 100%; height: auto; background: #ddd; }
.work__gallery img + img { margin-top: 2px; }
.work__next {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  margin-top: 56px; padding: 22px 0; border-top: 1px solid #111; border-bottom: 1px solid #111;
  font-size: 15px; text-align: left;
}
.work__next span:last-child { font-size: 26px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase; transition: letter-spacing .4s var(--ease); }
.work__next:hover span:last-child { letter-spacing: .18em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { list-style: none; font-size: 12px; letter-spacing: .06em; padding: 5px 11px; border: 1px solid #111; border-radius: 99px; }
.work__portrait { margin-top: 44px; }
.work__contact { display: grid; gap: 2px; margin-top: 8px; }
.work__contact a {
  display: flex; justify-content: space-between; padding: 14px 18px; background: #111; color: #fff;
  text-decoration: none; font-size: 15px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.work__contact a:hover { background: #333; }

.back {
  position: absolute; left: 50%; bottom: 28px; z-index: 5;
  transform: translate(-50%, 20px);
  width: min(380px, 62%); height: 38px;
  background: rgba(70,70,70,.88); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 15px; letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), background .2s;
}
.back:hover { background: #111; }
.column.is-detail .back { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.noscript strong { display: block; font-size: 40px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; }

/* ---------- contact ---------- */
.cta {
  position: fixed; top: 46px; right: 24px;
  z-index: 45;
  width: 140px; padding: 10px 12px;
  background: var(--accent); color: #111;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-align: center; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: top .4s var(--ease), background .2s, color .2s;
}
.cta:hover, .cta:focus-visible { background: #111; color: #fff; }
body:not([data-view="home"]) .cta { top: 18px; }

.contact {
  position: fixed; inset: 0; margin: auto;
  width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 28px);
  padding: 36px; overflow: auto;
  background: var(--bg); color: var(--ink); border: 1px solid #111;
}
.contact::backdrop { background: rgba(0,0,0,.55); }
.contact__close { position: absolute; top: 18px; right: 18px; padding: 4px; line-height: 0; }
.contact__title { font-size: 34px; line-height: 1.15; font-weight: 400; margin: 0 40px 24px 0; }
.contact__form { display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 11px 12px;
  font: 400 16px/1.4 var(--font); color: inherit;
  background: #fff; border: 1px solid #111; border-radius: 0; resize: vertical;
}
.contact__form input:focus-visible, .contact__form textarea:focus-visible, .contact__send:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact__trap { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.contact__send {
  padding: 14px 18px; background: #111; color: #fff; font-size: 15px; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.contact__send:hover { background: var(--accent); color: #111; }
.contact__send:disabled { opacity: .6; cursor: wait; }
.contact__status { margin: 0; font-weight: 500; }
.contact__status:empty { display: none; }
.contact__status.is-error { color: #b32400; }
.contact__note { margin: 0; font-size: 12px; line-height: 1.4; opacity: .65; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  :root { --col-left: 0px; --col-w: 100vw; --gutter: 14px; }
  .hero { left: auto; right: var(--gutter); top: 22px; font-size: 13px; line-height: 19px; max-width: 200px; text-align: right; }
  .hud, .strip { display: none; }
  .cta { top: auto; right: auto; left: var(--gutter); bottom: 116px; width: auto; padding: 10px 18px; }
  body:not([data-view="home"]) .cta { display: none; }
  .contact { padding: 28px 20px; }
  .now-playing { right: var(--gutter); bottom: 116px; width: 132px; }
  .now-playing__label { font-size: 13px; }
  .now-playing__screen { width: 132px; height: 78px; }
  .now-playing__screen iframe { width: 142px; height: 80px; }
  .bottom { flex-wrap: wrap; gap: 8px 0; justify-content: space-between; }
  .view-works, .view-works.is-line { order: -1; flex: 0 0 100%; height: 38px; margin-bottom: 4px; color: #fff; }
  .side-label { font-size: 22px; }
  .column__head { height: 150px; }
  .column.is-detail .column__head { height: 200px; }
  .column__title, .column__switch { font-size: 22px; }
  .counter { font-size: 76px; }
  .works__tags { display: none; }
  .work { min-height: calc(100vh - 200px); }
  .work__body { padding: 36px 20px 32px; }
  .back { bottom: max(18px, env(safe-area-inset-bottom)); width: 72%; }
  body:not([data-view="home"]) .bottom { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
