/* The merchandise pages: one stylesheet for the first page, the two editions and a piece.
   The house's colours only; the drawn name is always a picture, never typed; nothing is set in capitals by CSS. */
@font-face { font-family: "Mona Sans"; src: url("fonts/mona-sans.woff2") format("woff2"), url("fonts/MonaSans-Variable.ttf") format("truetype"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("fonts/alexandria.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --night: #0E0F11; --ink: #F1F0EC; --graphite: #9A9BA0; --quiet: #68696E; --paper: #F3F3F0; --carbon: #141518;
  --orange: #FF7A1A; --silver: #C4C5C8;
  --ground: var(--night); --fg: var(--ink); --soft: var(--graphite); --rule: rgba(241, 240, 236, .14);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--ground); color: var(--fg); font-family: "Mona Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--carbon); }

.on-orange { --ground: var(--orange); --fg: var(--carbon); --soft: rgba(20, 21, 24, .84); --rule: rgba(20, 21, 24, .22); background: var(--ground); color: var(--fg); }
.on-night { --ground: var(--night); --fg: var(--ink); --soft: var(--graphite); --rule: rgba(241, 240, 236, .14); background: var(--ground); color: var(--fg); }
.on-paper { --ground: var(--paper); --fg: var(--carbon); --soft: rgba(20, 21, 24, .68); --rule: rgba(20, 21, 24, .16); background: var(--ground); color: var(--fg); }
.on-paper .shot { background: #E4E3DE; }
.on-black-orange { --ground: #0A0A0B; --fg: var(--orange); --soft: rgba(255, 122, 26, .84); --rule: rgba(255, 122, 26, .25); background: var(--ground); color: var(--fg); }

/* ---------- type */
.label { font-size: 12px; font-weight: 500; font-stretch: 125%; letter-spacing: .24em; color: var(--soft); }
.display { font-size: clamp(44px, 9.4vw, 168px); font-stretch: 112%; font-weight: 400; letter-spacing: -.02em; line-height: .96; margin: 0; }
.title { font-size: clamp(30px, 4.6vw, 72px); font-stretch: 112%; font-weight: 400; letter-spacing: -.015em; line-height: 1.04; margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--soft); max-width: 34em; margin: 0; }
.rise { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rise > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.seen .rise > span, .rise.seen > span { transform: none; }

/* ---------- the head: the S., the pages, and the line and its point as the page's progress */
.head { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter);
  color: var(--head, var(--fg)); transition: color .35s, transform .6s var(--ease); pointer-events: none; }
.head::before { content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; background: linear-gradient(var(--head-ground, var(--night)) 30%, transparent); opacity: 0; transition: opacity .4s; }
.head.floating::before { opacity: .94; }      /* away from the top the head stands on the ground under it, so it never reads over a photograph */
.head.away { transform: translateY(-130%); }  /* it leaves on the way down and comes back on the way up */
.head a { pointer-events: auto; }
.head .mark { width: 34px; color: var(--head-mark, var(--head, var(--fg))); transition: color .35s; }      /* two grounds can meet under the head: the mark takes the ink of its own */
.head nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; font-stretch: 112%; }
.head nav a { position: relative; padding: 6px 0; opacity: .72; transition: opacity .3s; }
.head nav a:hover, .head nav a[aria-current] { opacity: 1; }
.head nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.head nav a:hover::after, .head nav a[aria-current]::after { transform: scaleX(1); }
.progress { position: fixed; left: 0; top: 0; z-index: 51; height: 2px; width: calc(var(--page, 0) * (100vw - 14px)); background: var(--head, var(--fg)); transition: background-color .35s; pointer-events: none; }
.progress::after { content: ""; position: absolute; right: -11px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: inherit; }

/* ---------- the pointer: the point, as in the brand book. It is always the opposite of what is under it, pixel by
   pixel: half on black and half on white, it is white on the one and black on the other, and it answers a grey or a
   colour the same way. A ring over anything that can be pressed, a wide ring that breathes and says what a press
   does over a piece, and two beat rings on a press. */
html.has-point, html.has-point * { cursor: none !important; }
.point { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.point.on { opacity: 1; }
.point i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #F1F0EC; display: block;
  transition: width .4s var(--ease), height .4s var(--ease), left .4s var(--ease), top .4s var(--ease), transform .4s var(--ease); }
.point span { position: absolute; left: 26px; top: 24px; padding: 4px 10px 5px; border-radius: 999px; white-space: nowrap; font-size: 11px; font-weight: 500; font-stretch: 112%;
  background: #F1F0EC; color: #000; opacity: 0; transition: opacity .25s; }
.point.ring i { width: 46px; height: 46px; left: -23px; top: -23px; background: transparent; box-shadow: inset 0 0 0 1.5px #F1F0EC; animation: breathe-point 1.8s ease-in-out infinite alternate; }
.point.wide i { width: 64px; height: 64px; left: -32px; top: -32px; background: transparent; box-shadow: inset 0 0 0 1.5px #F1F0EC; animation: breathe-point 1.8s ease-in-out infinite alternate; }      /* a ring, not a disc: what the photograph does under the pointer stays in view */
.point.wide span { opacity: 1; }
.point.press i { transform: scale(.72); animation: none; }
@keyframes breathe-point { from { transform: scale(1); } to { transform: scale(1.1); } }
.beat { position: fixed; z-index: 59; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 1px #F1F0EC; mix-blend-mode: difference;
  animation: beat .9s var(--ease) forwards; }
@keyframes beat { from { transform: scale(1); opacity: .7; } to { transform: scale(7); opacity: 0; } }

/* ---------- photographs */
.shot { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #131416; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .7s var(--ease), filter .8s var(--ease); }
/* A second view is drawn across the first like a sheet turned over: nothing grows, so two pieces side by side stay two pieces.
   Wide photographs turn from the side, the others from below. */
.shot .alt { opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease), opacity 0s 1.15s; }
.piece:not(.half) .shot .alt { clip-path: inset(100% 0 0 0); }
.piece:hover .shot .alt, a:hover .shot .alt, .shot:hover > .alt { opacity: 1; clip-path: inset(0); transition: clip-path 1.15s var(--ease), opacity 0s; }
.reveal .shot, .shot.reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal .shot img, .shot.reveal img { transform: scale(1.14); }
.reveal.seen .shot, .shot.reveal.seen { clip-path: inset(0); }
.reveal.seen .shot img, .shot.reveal.seen img { transform: none; }
/* a closer look: with no second view, the photograph moves slowly towards its mark */
.shot.look img { transform-origin: var(--ox, 50%) var(--oy, 50%); }
.piece:hover .shot.look img, .reveal.seen.piece:hover .shot.look img { transform: scale(var(--oz, 1.7)); transition-duration: 2.2s, .7s, .8s; }
/* a long mark: the photograph goes to one end of it, then travels to the other and back */
.shot.travel img { transform-origin: var(--ox, 50%) var(--oy, 50%); }
.piece:hover .shot.travel img, .reveal.seen.piece:hover .shot.travel img { transform: scale(var(--oz, 2.2)); transition-duration: 1.6s, .7s, .8s; animation: travel 5.5s 1.4s ease-in-out infinite alternate; }
@keyframes travel { to { transform-origin: var(--ox2, 50%) var(--oy2, 50%); } }
/* a raking light under the pointer: steel, enamel and foil answer it, and marks pressed blind stand up out of the surface */
.shot.sheen::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 255, 255, .5), rgba(255, 255, 255, .18) 16%, transparent 36%); }
.piece:hover .shot.sheen::after { opacity: 1; }
/* two pieces in one photograph: the room dims and the piece under the pointer stays lit */
.shot.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease);
  background: radial-gradient(circle at var(--lx, 30%) var(--ly, 50%), transparent 20%, rgba(8, 9, 10, .74) 54%); }
.piece:hover .shot.spot::after { opacity: 1; }
/* a flat thing leans under the pointer (the script sets the angle) */
.shot.tilt { perspective: 900px; }
.shot.tilt img { will-change: transform; }
/* a thing that is its own light: nothing moves; its tones change places, dark for light */
.shot.turn img { transition: filter 1.1s var(--ease), opacity .7s var(--ease), transform 1.4s var(--ease); }
.piece:hover .shot.turn img, .piece.near .shot.turn img { filter: invert(1) hue-rotate(180deg); }
/* a flame: the candles take a warm, unsteady light */
.shot.flame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(ellipse 34% 30% at var(--fx1, 30%) var(--fy, 52%), rgba(255, 170, 80, .5), transparent 70%), radial-gradient(ellipse 34% 30% at var(--fx2, 52%) var(--fy, 52%), rgba(255, 170, 80, .5), transparent 70%); }
.piece:hover .shot.flame::before { opacity: 1; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: .82; } 18% { opacity: 1; } 34% { opacity: .7; } 52% { opacity: .95; } 71% { opacity: .78; } 86% { opacity: 1; } }
.piece.near .shot .alt { opacity: 1; clip-path: inset(0); transition: clip-path 1.15s var(--ease) 1.1s, opacity 0s 1.1s; }
.piece.near .shot.look img { transform: scale(var(--oz, 1.7)); transition-duration: 2.2s, .7s, .8s; transition-delay: .4s; }
.piece.near .shot.travel img { transform: scale(var(--oz, 2.2)); transition-duration: 1.6s, .7s, .8s; transition-delay: .4s; animation: travel 5.5s 1.8s ease-in-out infinite alternate; }
.piece.near .shot.sheen::after { opacity: 1; animation: sweep 5s ease-in-out infinite alternate; }
.piece.near .shot.spot::after { opacity: 1; animation: sweep 6s ease-in-out infinite alternate; }
.piece.near .shot.tilt img { animation: lean 6s ease-in-out infinite alternate; }
.piece.near .shot.flame::before { opacity: 1; animation: flicker 2.6s ease-in-out infinite; }
@keyframes lean { from { transform: rotateY(-7deg) rotateX(4deg) scale(1.08); } to { transform: rotateY(7deg) rotateX(-4deg) scale(1.08); } }
.fade { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.fade.seen, .seen .fade { opacity: 1; transform: none; }

/* the light: a lamp passing over a photograph, which reflective marks answer and black cloth does not */
.lit::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: var(--lamp, 1);
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 255, 255, .44), rgba(255, 255, 255, .16) 12%, transparent 26%); }
.lit.sweeping::after { animation: sweep 7s ease-in-out infinite alternate; }
@keyframes sweep { from { --lx: 12%; --ly: 30%; } to { --lx: 88%; --ly: 62%; } }
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --ly { syntax: "<percentage>"; inherits: true; initial-value: 40%; }

/* ---------- a piece in a list */
.piece { display: block; }
.piece figcaption, .piece .words { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.piece h3 { font-size: 17px; font-weight: 500; font-stretch: 112%; margin: 0; }
.piece p { margin: 3px 0 0; font-size: 13.5px; color: var(--soft); max-width: 30em; }
.points { display: flex; gap: 7px; align-items: center; flex: none; }
.points i { width: 11px; height: 11px; background: var(--c); display: block; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 45%, transparent); }      /* a colourway the colour of the page still shows its edge */
.points i:nth-child(1) { transform: rotate(45deg) scale(.82); }
.points i:nth-child(3) { border-radius: 3px; }
.points i:nth-child(4), .points i.round { border-radius: 50%; }

.pieces { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 5vw, 88px) clamp(12px, 2vw, 28px); padding: 0 var(--gutter); }
.pieces > * { grid-column: span 4; }           /* every row is full and every photograph in a row is the same size: three, or two */
.pieces > .half { grid-column: span 6; }
@media (max-width: 640px) {      /* a phone: the small pieces two across, the wide ones and a piece left over alone on their row */
  .pieces > * { grid-column: span 6; }
  .pieces > .half, .pieces > .solo { grid-column: span 12; }
  .piece figcaption, .piece .words { flex-direction: column; gap: 8px; }
  .pieces > :not(.half):not(.solo) p + p { display: none; }      /* two across: the name and what it is made of; the finish is on the piece's own page */
  .pieces > :not(.half):not(.solo) h3 { font-size: 15px; }
  .head nav a { padding: 13px 2px; } .head .mark { padding-block: 10px; }      /* a finger's width to press */
  .head { gap: 12px; } .head .mark { flex: none; } .head nav { gap: 11px; font-size: 13px; }      /* five words and the mark, all on a phone's width */
}

.group { padding: clamp(72px, 11vw, 180px) 0 0; }
.group-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(12px, 2vw, 28px); padding: 0 var(--gutter) clamp(32px, 5vw, 72px); align-items: end; }
.group-head .label { grid-column: span 3; }
.group-head .title { grid-column: span 5; }
.group-head .lead { grid-column: span 4; font-size: 16px; }
@media (max-width: 760px) { .group-head > * { grid-column: span 12 !important; } .group-head .title { margin: 10px 0 14px; } }

/* ---------- the first screen of a page */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(28px, 5vw, 64px); overflow: hidden; }
.hero .label { margin-bottom: 18px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(20px, 3vw, 40px); }
.cue { display: flex; align-items: center; gap: 0; font-size: 12px; color: var(--soft); }
.cue::before { content: ""; width: 64px; height: 1px; background: currentColor; margin-right: 6px; transform-origin: left; animation: cue 2.6s var(--ease) infinite; }
.cue::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; order: -0; margin-right: 12px; }
.cue span { order: 2; }
@keyframes cue { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }

/* ---------- words that fill in as the page moves */
.say { padding: clamp(96px, 16vw, 260px) var(--gutter); }
.say p { font-size: clamp(26px, 4.3vw, 68px); font-stretch: 112%; letter-spacing: -.015em; line-height: 1.12; margin: 0; max-width: 18em; }
.say p span { opacity: clamp(.16, calc(var(--p, 0) * var(--n) * 1.5 - var(--i) + .16), 1); }

/* ---------- a row of close looks, moved sideways by the page */
.close { height: 340vh; position: relative; }
.close-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.close-head { padding: 0 var(--gutter) clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.close-row { display: flex; gap: clamp(12px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; transform: translate3d(calc(var(--shift, 0) * -1px), 0, 0); will-change: transform; }
.close-row figure { margin: 0; width: min(62svh, 78vw); flex: none; }
.close-row figcaption { padding-top: 12px; font-size: 13.5px; color: var(--soft); display: flex; gap: 14px; }
.close-row figcaption b { font-weight: 500; color: var(--fg); font-stretch: 112%; white-space: nowrap; }
@media (max-width: 760px) {
  .close { height: auto; } .close-stick { position: static; height: auto; padding: 72px 0; }
  .close-row { transform: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .close-row figure { scroll-snap-align: center; }
}

/* ---------- a field: one of the patterns, tone on tone, built outward from the name at its centre */
.field { position: relative; aspect-ratio: 16 / 10; max-height: 100svh; width: 100%; overflow: hidden; display: grid; place-items: center; }
.field::before { content: ""; position: absolute; inset: -6% 0; background: var(--fg); opacity: var(--tone, .2); -webkit-mask: var(--pattern) center / cover no-repeat; mask: var(--pattern) center / cover no-repeat;
  transform: scale(calc(1.06 - var(--p, .5) * .06)); }
.field img { position: relative; width: max(22.5%, 150px); }
.field .label { position: absolute; left: var(--gutter); bottom: clamp(16px, 3vw, 36px); }

/* ---------- the way out of a page */
.next { display: block; position: relative; overflow: hidden; padding: clamp(80px, 13vw, 200px) var(--gutter); border-top: 1px solid var(--rule); }
.next::before { content: ""; position: absolute; inset: 0; background: var(--wipe, var(--orange)); transform: translateY(101%); transition: transform .9s var(--ease); }
.next:hover::before { transform: none; }
.next > * { position: relative; transition: color .5s; }
.next:hover > * { color: var(--wipe-ink, var(--carbon)); }
.next .display { font-size: clamp(40px, 8vw, 140px); margin-top: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px var(--gutter) 44px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--soft); }
.foot img { width: 150px; }
.foot .tag { font-weight: 500; font-stretch: 125%; letter-spacing: .26em; font-size: 12px; }

/* Without the script (switched off, or it never arrived) nothing waits to be revealed, and nothing is pinned for it to move. */
html:not(.js) .rise > span, html:not(.js) .fade, html:not(.js) .reveal .shot img, html:not(.js) .shot.reveal img { transform: none; opacity: 1; }
html:not(.js) .reveal .shot, html:not(.js) .shot.reveal { clip-path: none; }
html:not(.js) .say p span { opacity: 1; }
html:not(.js) .close { height: auto; }
html:not(.js) .close-stick { position: static; height: auto; padding: 72px 0; }
html:not(.js) .close-row { transform: none; width: auto; overflow-x: auto; }

/* Words that depend on what the reader holds: a mouse, or a finger. */
.for-touch { display: none; }
@media not ((hover: hover) and (pointer: fine)) { .for-mouse { display: none; } .for-touch { display: inline; } }
/* The keyboard's place on the page, in the page's own ink. */
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.piece:focus-visible, .shot:focus-visible { outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .piece:hover .shot img, .piece.near .shot img { transform: none !important; }      /* a closer look is a movement too */
  .rise > span, .fade, .reveal .shot img, .shot.reveal img { transform: none; opacity: 1; }
  .reveal .shot, .shot.reveal { clip-path: none; }
  .say p span { opacity: 1; }
  @view-transition { navigation: none; }
}

/* ---------- the Arabic edition: right to left, Alexandria for Arabic and Mona Sans for the Latin names inside it.
   Arabic letters join, so nothing is spaced out; its lines stand taller, so every line gets more room. */
html[lang="ar"] body { font-family: "Mona Sans", "Alexandria", "SF Arabic", "Geeza Pro", sans-serif; line-height: 1.8; }
html[lang="ar"] :is(.label, .display, .title, .say p, .foot span, .open .tag):not([lang="en"]) { letter-spacing: 0; }
html[lang="ar"] .label:not([lang="en"]) { font-size: 13px; }
html[lang="ar"] .display { line-height: 1.28; }      /* Alexandria stands wider than Mona Sans: each large line is set a step smaller, so it keeps the room the English has */
html[lang="ar"] .hero .display { font-size: clamp(40px, 8.2vw, 148px); }
html[lang="ar"] .row .display { font-size: clamp(30px, 6vw, 104px); }
html[lang="ar"] .next .display { font-size: clamp(36px, 6.8vw, 120px); }
@media (max-width: 640px) { html[lang="ar"] .head nav { gap: 9px; font-size: 12.5px; } }
html[lang="ar"] .title { line-height: 1.34; }
html[lang="ar"] .say p { line-height: 1.5; }
html[lang="ar"] .rise { padding-block: .16em .3em; margin-block: -.16em -.3em; }
html[lang="ar"] .piece p { line-height: 1.75; }
[dir="rtl"] .head nav a::after { transform-origin: right; }
[dir="rtl"] .progress { left: auto; right: 0; }
[dir="rtl"] .progress::after { right: auto; left: -11px; }
:where([dir="rtl"]) .shot .alt { clip-path: inset(0 0 0 100%); }      /* a wide photograph's second view is drawn from the right */
[dir="rtl"] .cue::before { margin-right: 0; margin-left: 6px; transform-origin: right; }
[dir="rtl"] .cue::after { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .field .label { left: auto; right: var(--gutter); }
@media (min-width: 761px) { html.js[dir="rtl"] .close-row { transform: translate3d(calc(var(--shift, 0) * 1px), 0, 0); } }      /* the row of close looks moves the other way */
