/* Project layout with a full-screen picture or video behind the text; it softens as you scroll and the images rise over it */
:root { --v0: 0; --barink: var(--ink0); --heroink: var(--ink0); --bg: #f5f3eb; --ink: #1a1a18; --ink0: #1a1a18; --dim: #76746c; --muted: #76746c; --line: rgba(26,26,24,.18); --ph: #d9d6ca; --ease: cubic-bezier(.22,.8,.18,1); --pad: 18px; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --v0: .3; --bg: #141413; --ink: #ecebe4; --ink0: #ecebe4; --dim: #8d8b83; --muted: #8d8b83; --line: rgba(236,235,228,.2); --ph: #262624; color-scheme: dark; } }
:root[data-theme="dark"] { --v0: .3; --bg: #141413; --ink: #ecebe4; --ink0: #ecebe4; --dim: #8d8b83; --muted: #8d8b83; --line: rgba(236,235,228,.2); --ph: #262624; color-scheme: dark; }
@media (min-width: 900px) { :root { --pad: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.5; transition: background-color .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* header (same as the other pages) */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.back { font-size: 15px; line-height: 1; width: max-content; }
.title { display: block; text-align: center; }
.sigmark { display: block; width: 104px; margin: 0 auto; }
.sigmark .signature { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.signature :is(path, rect, polygon, circle) { fill: currentColor; stroke: none; }
.signature mask polyline { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .sigmark { width: 128px; } }
.mode-ico { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mode-ico.i-sun { display: none; }
:root[data-theme="dark"] .mode-ico.i-sun { display: block; }
:root[data-theme="dark"] .mode-ico.i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mode-ico.i-sun { display: block; } :root:not([data-theme="light"]) .mode-ico.i-moon { display: none; } }
.hr { justify-self: end; display: flex; align-items: center; gap: 18px; }
.mode { padding: 4px 0; margin: -4px 0; }

/* the picture / video behind everything */
.cbg { position: fixed; inset: 0; z-index: 0; overflow: hidden; --blur: 0px; }
.cbg img, .cbg video, .cbg-ph { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: blur(var(--blur)); will-change: filter; }
.cbg-ph { background: radial-gradient(120% 90% at 30% 20%, #8a7f6e 0%, #4b4439 55%, #2a2622 100%); }
.cveil { position: fixed; inset: 0; z-index: 1; background: var(--bg); opacity: var(--v0); pointer-events: none; }

.cm { position: relative; z-index: 2; }
.hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--pad) 36px; }
.hero h1 { margin: 0; font-size: clamp(26px, 8vw, 54px); line-height: 1.02; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.hero .sub { margin: 10px 0 40px; font-size: 14px; color: var(--ink); opacity: .75; }
.rows { display: grid; gap: 34px; }
.row { display: grid; grid-template-columns: 24% 1fr; gap: 14px; align-items: start; }
.row h2 { margin: 0; font-size: 10.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .7; }
.desc p { margin: 0 0 1em; font-size: 12.5px; line-height: 1.55; max-width: 62ch; }
.desc p:last-child { margin-bottom: 0; }
.info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.info dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; }
.info dd { margin: 0; font-size: 12.5px; }

.gal { padding: 40px var(--pad) 40px; display: grid; gap: 22px; }
.g { margin: 0; width: 78%; opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.g.l { justify-self: start; } .g.r { justify-self: end; }
.g.in { opacity: 1; transform: none; }
.g img { display: block; width: 100%; height: auto; }
.g figcaption { margin-top: 8px; font-size: 10.5px; letter-spacing: .08em; opacity: .65; }
.g.ph { background: color-mix(in srgb, var(--ph) 80%, transparent); display: grid; place-items: end start; }
.g.ph span { padding: 10px 12px; color: var(--dim); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

.pn { display: flex; justify-content: space-between; padding: 60px var(--pad) calc(30px + env(safe-area-inset-bottom, 0px)); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; color: var(--ink); }
.pn a { padding: 8px 0; opacity: .75; transition: opacity .2s; } .pn a:hover { opacity: 1; }

@media (min-width: 900px) {
  .hero { padding-left: calc(var(--pad) + 3vw); padding-right: calc(var(--pad) + 3vw); }
  .row { grid-template-columns: 22% 1fr; }
  .desc p, .info dd { font-size: 14px; }
  .g { width: min(56%, 760px); }
  .gal { padding: 60px calc(var(--pad) + 3vw); gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { .g { opacity: 1; transform: none; transition: none; } }

.hero .cue { margin: 0; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.txt { padding: 16vh var(--pad) 12vh; }
@media (min-width: 900px) { .txt { padding-left: calc(var(--pad) + 3vw); padding-right: calc(var(--pad) + 3vw); } }

/* no wash at the top; the header and title switch between white and dark depending on the picture (the header and title colour is chosen by script from the brightness of the picture behind them) */
.bar { --ink: var(--barink); }
.hero { --ink: var(--heroink); }
.bar { filter: drop-shadow(0 0 6px rgba(0,0,0,var(--topsh, 0))); }
.bar { color: var(--ink); }
.sm-open .bar { --ink: var(--ink0); filter: none; }
