/* mou.kahami — the page is asphalt black and paper white.
   Every colour on it comes from a painting (--c, set per piece at build time). */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0b0c;
  --ink-2: #151516;
  --line: #2c2c2f;
  --paper: #f4f1ea;
  --dim: #a8a59d;
  --c: var(--paper);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 60px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink) var(--grain); color: var(--paper); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
::selection { background: var(--paper); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 10px 14px; background: var(--paper); color: var(--ink); font: 700 .75rem var(--mono); }
.skip:focus { left: 8px; }

/* ---------- type */

.label { font: 400 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.display { font-weight: 900; font-stretch: 62%; font-size: clamp(3.5rem, 12vw, 10.5rem); line-height: .84; letter-spacing: -.005em; text-transform: uppercase; }
.lead { max-width: 30ch; font-weight: 500; font-stretch: 88%; font-size: clamp(1.5rem, 3.3vw, 2.9rem); line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; gap: .6em; padding: 14px 20px; border: 1px solid var(--paper); font: 700 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--paper); }
.btn--address { justify-content: center; letter-spacing: .04em; text-transform: none; }
.btn--tint { background: var(--c); border-color: var(--c); color: var(--ink); }
.btn--tint:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- nav */

.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.nav.is-stuck { background: rgb(11 11 12 / .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.nav__brand { margin-right: auto; font-weight: 900; font-stretch: 105%; font-size: 1.125rem; letter-spacing: -.04em; text-decoration: none; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav__link, .nav__shop { font: 400 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav__link { padding: 8px 0; color: var(--dim); transition: color .2s; }
.nav__link:hover { color: var(--paper); }
.nav__shop { padding: 9px 12px; border: 1px solid var(--paper); font-weight: 700; transition: background-color .2s, color .2s; }
.nav__shop:hover { background: var(--paper); color: var(--ink); }

/* ---------- hero */

.hero { padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) var(--gutter) clamp(56px, 8vw, 104px); }
.hero__title { margin: .16em 0 0 -.045em; font-weight: 900; font-stretch: 104%; font-size: min(calc((100vw - 2 * var(--gutter)) / 6.2), 18rem); line-height: .8; letter-spacing: -.06em; white-space: nowrap; }
.hero__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: var(--gutter); align-items: end; margin-top: clamp(28px, 4.5vw, 72px); }
.hero__quote { max-width: 15ch; font-weight: 500; font-stretch: 88%; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }

.hero__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.2vw, 32px); align-items: end; }
.hero__piece { position: relative; display: block; text-decoration: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.hero__piece img { width: 100%; background: var(--c); box-shadow: 0 24px 50px -18px rgb(0 0 0 / .9); }
.hero__piece--1 { transform: rotate(-2.2deg) translateY(-4%); }
.hero__piece--2 { transform: rotate(1.4deg); }
.hero__piece--3 { transform: rotate(-1deg) translateY(-7%); }
.hero__piece:hover, .hero__piece:focus-visible { transform: rotate(0) translateY(-3%) scale(1.02); z-index: 1; }
.hero__caption { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hero__caption span { color: var(--c); }

/* ---------- ticker */

/* .tape clips the tilted band at the page edges so it never widens the page. */
.tape { overflow: hidden; margin: -2vw 0; padding: 2vw 0; }
.ticker { margin: 0 -2vw; padding: 13px 0; overflow: hidden; background: var(--paper); color: var(--ink); transform: rotate(-1.4deg); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker__run { display: flex; align-items: center; flex: none; }
.ticker span, .ticker i { font: 700 .8125rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; font-style: normal; }
.ticker i { padding: 0 1.4em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections */

.section { padding: clamp(80px, 12vw, 176px) var(--gutter) 0; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 72px); }
.section__note { max-width: 44ch; color: var(--dim); }

/* ---------- universe */

.universe .lead { margin-bottom: clamp(40px, 6vw, 88px); }
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.cast__card { display: flex; flex-direction: column; background: var(--ink-2); border-top: 4px solid var(--c); }
.cast__image { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c); }
.cast__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cast__image:hover img { transform: scale(1.04); }
.cast__text { display: grid; gap: 8px; padding: clamp(18px, 2.2vw, 30px); }
.cast__name { font-weight: 900; font-stretch: 62%; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .9; text-transform: uppercase; }
.cast__text p { max-width: 30ch; color: var(--dim); }
.dna { max-width: 34ch; margin: clamp(40px, 6vw, 88px) 0 0 auto; font-weight: 500; font-stretch: 88%; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- works */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3.5vw, 48px); }
.filter { padding: 10px 14px; border: 1px solid var(--line); font: 400 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); transition: color .2s, border-color .2s, background-color .2s; }
.filter sup { margin-left: .3em; font-size: .85em; vertical-align: .35em; line-height: 0; }
.filter:hover { color: var(--paper); border-color: var(--dim); }
.filter[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 700; }

/* Without JS: plain CSS columns. With JS: balanced columns that read left to right. */
.works__grid { --cols: 2; --gap: clamp(12px, 2vw, 28px); columns: var(--cols); column-gap: var(--gap); }
.works__grid.is-masonry { columns: auto; display: flex; align-items: flex-start; gap: var(--gap); }
.works__column { flex: 1 1 0; min-width: 0; }
@media (min-width: 760px) { .works__grid { --cols: 3; } }
@media (min-width: 1200px) { .works__grid { --cols: 4; } }

.card { break-inside: avoid; margin-bottom: clamp(26px, 3vw, 44px); }
.card__link { display: block; text-decoration: none; }
.card__image { display: block; overflow: hidden; background: var(--c); }
.card__image img { width: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card__link:hover .card__image img { transform: scale(1.03); }
.card__caption { display: grid; gap: 3px; padding-top: 12px; }
.card__title { font-weight: 700; font-stretch: 92%; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; transition: color .2s; }
.card__link:hover .card__title { color: var(--c); }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .5em; font: 400 .6875rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.chip { flex: none; width: 9px; height: 9px; background: var(--c); }
.works__more { display: flex; justify-content: center; margin-top: clamp(8px, 2vw, 24px); }

/* ---------- about */

.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about__portrait { position: sticky; top: calc(var(--nav-h) + 24px); }
.about__portrait img { width: 100%; }
.about__text { display: grid; gap: clamp(32px, 4vw, 56px); }
.about__block { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.about__block p { max-width: 58ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li { padding: 7px 10px; border: 1px solid var(--line); font: 400 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); margin-top: clamp(48px, 7vw, 104px); }
.details img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- contact + footer */

.contact { padding-bottom: clamp(80px, 12vw, 176px); }
.contact__title { margin: 14px 0 clamp(20px, 3vw, 36px); }
.contact__text { max-width: 40ch; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); color: var(--dim); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px var(--gutter); border-top: 1px solid var(--line); font: 400 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.footer__links { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ---------- legal pages */

.legal { min-height: calc(100vh - 66px); padding: calc(var(--nav-h) + clamp(40px, 8vw, 112px)) var(--gutter) clamp(72px, 10vw, 144px); }
.legal .display { margin: 14px 0 clamp(40px, 6vw, 80px); }
.legal__blocks { display: grid; gap: clamp(28px, 3.5vw, 44px); max-width: 640px; }
.legal__block { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal__block p { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; }
.legal__note { max-width: 640px; margin-bottom: clamp(28px, 3.5vw, 44px); color: var(--dim); }
.legal__actions { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- lightbox */

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink) var(--grain); color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.lightbox__close { width: 40px; height: 40px; margin-right: -10px; font-size: 1.125rem; }
.lightbox__body { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 34vw); min-height: 0; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: clamp(16px, 3vw, 48px); }
.lightbox__image { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; box-shadow: 0 30px 70px -24px #000; }
.lightbox__arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line); background: rgb(11 11 12 / .7); font: 400 1rem/1 var(--mono); transition: background-color .2s, color .2s, border-color .2s; }
.lightbox__arrow:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(20px, 2.6vw, 36px); border-left: 1px solid var(--line); border-top: 4px solid var(--c); overflow-y: auto; }
.lightbox__title { font-weight: 800; font-stretch: 88%; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.015em; overflow-wrap: anywhere; }
.lightbox__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.lightbox__thumbs:empty { display: none; }
.lightbox__thumb { width: 56px; height: 56px; border: 1px solid var(--line); opacity: .55; transition: opacity .2s, border-color .2s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover, .lightbox__thumb[aria-current="true"] { opacity: 1; border-color: var(--paper); }
.lightbox__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; width: 100%; font: 400 .75rem/1.5 var(--mono); }
.lightbox__facts dt { letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.lightbox__description { display: grid; gap: .8em; font-size: .9375rem; line-height: 1.55; color: var(--dim); }
.lightbox__description:empty { display: none; }

/* ---------- motion */

/* Blocks rise into place as they scroll in. Pure CSS: browsers without
   scroll-driven animations simply show everything. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section__head, .lead, .cast__card, .dna, .about__portrait, .about__block, .details, .contact > * {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

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

/* ---------- small screens */

@media (max-width: 899px) {
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .hero__quote { max-width: 18ch; }
  .hero__wall { margin-top: 28px; }
  .cast { grid-template-columns: minmax(0, 1fr); }
  .cast__card { flex-direction: row; }
  .cast__image { flex: 0 0 42%; aspect-ratio: 1; }
  .cast__text { flex: 1; min-width: 0; align-content: center; }
  .dna { margin-left: 0; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__portrait { position: static; max-width: 520px; }
  .lightbox__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 58%) minmax(0, 1fr); }
  .lightbox__info { border-left: 0; }
  .lightbox__arrow { top: auto; bottom: 12px; margin: 0; }
}

@media (max-width: 599px) {
  .nav__link--extra { display: none; }
  .btn { padding-inline: 14px; }
  .hero__caption span { display: none; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
