/* Purlin - style.css. All colours, fonts and the gutter live in :root. */
:root {
  --bg: #e6e1d6;          /* plaster: the page */
  --bg-2: #dcd6c9;        /* a shade darker: bands, the light panel */
  --ink: #1b1a17;         /* text, lines, dark sections */
  --mute: #77726a;        /* labels, quiet text */
  --line: rgba(27, 26, 23, .18);
  --dark: #1b1a17;        /* dark sections (journal, numbers) */
  --on-dark: #e6e1d6;
  --mute-dark: #9a958b;
  --line-dark: rgba(230, 225, 214, .16);
  --accent: #b5532c;      /* oxide red: the clock dot, small marks only */
  --f-head: "Mohave", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, monospace;
  --g: 24px;              /* gutter, edge to edge */
  --head-h: 64px;
  --radius: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 0 0 22px rgba(0, 0, 0, .38), 0 0 2px rgba(0, 0, 0, .25);
}
@media (max-width: 809px) { :root { --g: 16px; --head-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.journal-page { background: var(--dark); color: var(--on-dark); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
.mono { font-family: var(--f-mono); font-size: 13px; line-height: 1.55; letter-spacing: -.01em; }
.muted { color: var(--mute); }
.dark .muted, .journal-page .muted { color: var(--mute-dark); }
i { font-style: normal; }
.mono i, .card-cap i { font-size: .7em; vertical-align: .12em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.big { display: block; width: max-content; font: 700 100px/.86 var(--f-head); text-transform: uppercase; white-space: nowrap; letter-spacing: -.005em; }
.dark { background: var(--dark); color: var(--on-dark); }

/* buttons: thin outline, arrow; text rolls */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border: 1px solid var(--line); font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dark .btn, .journal-page .btn { border-color: var(--line-dark); }
.dark .btn:hover { background: var(--on-dark); color: var(--ink); }
.rw { display: inline-block; overflow: hidden; vertical-align: top; }
.rw > span { display: inline-block; position: relative; transition: transform .45s var(--ease); }
.rw > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover .rw > span { transform: translateY(-100%); }
.circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background .3s, color .3s; }

/* ---------- header (ours): logo, centred links, studio clock + button ---------- */
.head { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--head-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--g); background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; justify-self: start; }
.logo-mark { color: var(--accent); }
.nav { display: flex; gap: 34px; font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.nav a[aria-current] .rw > span { text-decoration: underline; text-underline-offset: 5px; }
.head-end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.clock { display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.clock time { font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.btn-head { height: 36px; }
.menu-btn { display: none; height: 36px; padding: 0 14px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; }
.drop { color: var(--ink); position: fixed; z-index: 49; top: var(--head-h); left: 0; right: 0; padding: 24px var(--g) 28px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 24px; visibility: hidden; opacity: 0; transform: translateY(-70px); transition: transform .55s var(--ease), opacity .45s, visibility 0s .55s; }
.drop.on { visibility: visible; opacity: 1; transform: none; transition: transform .55s var(--ease), opacity .45s; }
.drop-nav { display: grid; }
.drop-nav a { font: 700 52px/1.02 var(--f-head); text-transform: uppercase; }
.drop-nav a[aria-current] { color: var(--accent); }
.drop-latest { display: flex; align-items: center; gap: 12px; }
.drop-latest img { width: 64px; height: 44px; object-fit: cover; }
.drop-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--mute); }
@media (max-width: 1100px) { .clock { display: none; } }
@media (max-width: 809px) {
  .head { grid-template-columns: 1fr auto; }
  .nav, .btn-head { display: none; }
  .menu-btn { display: inline-block; }
  .logo { font-size: 23px; }
}
@media (min-width: 810px) { .drop { display: none; } }

/* ---------- HERO (ours): the photo fills the screen, the name sits on it in the colour of the next section and
   grows into that section's background with the scroll (main.js 10) ---------- */
.hero { position: relative; height: 135vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero.is-covered .hero-photo, .hero.is-covered .hero-top { visibility: hidden; } /* letters became the background of the next section */
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 13, .35), transparent 45%); }
.hero-top { position: absolute; top: calc(var(--head-h) + 20px); left: var(--g); right: var(--g); display: flex; justify-content: space-between; align-items: start; text-transform: uppercase; color: #f4f1ea; text-shadow: var(--glow); }
.hero-scroll { text-align: right; }
.hero-name { position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--g) * .4); margin: 0; font: 700 100px/.8 var(--f-head); text-transform: uppercase; white-space: nowrap; color: var(--bg); -webkit-text-stroke: 0 currentColor; letter-spacing: -.005em; }
.hero-name { display: block; width: max-content; }
@media (max-width: 809px) {
  .hero { height: 125vh; }
  .hero-top { flex-direction: column; gap: 8px; }
  .hero-scroll { display: none; }
}

/* ---------- intro: text, tall photo, text; the side columns stay with the photo ---------- */
.intro { display: grid; grid-template-columns: 1fr minmax(0, 554px) 1fr; gap: var(--g); padding: 190px var(--g) 210px; align-items: stretch; }
.intro-stick { position: sticky; top: 40vh; display: grid; gap: 24px; max-width: 330px; }
.intro-side .mono { font-size: 14px; }
.intro-end { display: flex; align-items: flex-end; }
.intro-end .intro-stick { position: static; max-width: 340px; }
.intro-photo .zoom { aspect-ratio: 554 / 740; }
.zoom { display: block; overflow: hidden; }
.zoom img, [data-zoom] img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 809px) {
  .intro { grid-template-columns: 1fr; padding: 96px var(--g) 110px; gap: 32px; }
  .intro-stick { position: static; max-width: none; }
}

/* ---------- selected work: 1 - 2 - 1 cards, the name sticks and inverts over the photo ---------- */
.work { padding: 0 var(--g); }
.work > .big { margin-bottom: 46px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; }
.card { position: relative; display: block; overflow: clip; color: #fff; }
.card-full { grid-column: 1 / -1; height: 560px; }
.card-full:last-child, .card-full:nth-child(4) { height: 590px; }
.card-half { height: 680px; }
.card-img { position: absolute; inset: 0; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-cap { position: sticky; top: 46vh; z-index: 1; display: grid; gap: 6px; padding: 132px 24px 40px; mix-blend-mode: difference; color: #fff; }
.card-cap b { font: 700 56px/.95 var(--f-head); text-transform: uppercase; }
.card-cap .mono { text-transform: uppercase; letter-spacing: .06em; }
.band { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; height: 128px; background: var(--bg-2); overflow: hidden; }
.band-t { position: relative; z-index: 1; font: 700 56px/1 var(--f-head); text-transform: uppercase; }
.band-arrow { position: relative; z-index: 1; display: none; }
.band-covers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.band-covers img.on { opacity: 1; }
.band:hover .band-t { color: #fff; mix-blend-mode: difference; }
@media (max-width: 809px) {
  .cards { grid-template-columns: 1fr; }
  .card-full, .card-half, .card-full:nth-child(4) { grid-column: auto; height: 420px; }
  .card-cap { top: 30vh; padding: 140px 16px 24px; }
  .card-cap b { font-size: 36px; }
  .work > .big { margin-bottom: 24px; }
  .band { justify-content: space-between; padding: 0 16px; height: 96px; }
  .band-t { font-size: 34px; }
  .band-arrow { display: grid; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; place-items: center; }
}

/* ---------- marquee: huge words that slide with the scroll ---------- */
.marquee { overflow: hidden; padding: 40px 0 0; }
.marquee-row { display: flex; align-items: center; gap: 70px; width: max-content; font: 700 270px/.9 var(--f-head); text-transform: uppercase; white-space: nowrap; transform: translateX(var(--mx, 0)); will-change: transform; }
.marquee-row i { width: 46px; height: 46px; background: var(--ink); flex: none; }
@media (max-width: 809px) { .marquee-row { font-size: 96px; gap: 26px; } .marquee-row i { width: 16px; height: 16px; } }

/* ---------- clients: wall of marks ---------- */
.clients { padding: 120px var(--g) 100px; }
.clients > .mono { margin-bottom: 16px; text-transform: uppercase; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell { position: relative; display: grid; place-items: center; height: 240px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; }
.logo-cell > .mono { position: absolute; left: 16px; bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.wordmark { display: flex; align-items: center; gap: 14px; transition: transform .5s var(--ease); }
.logo-cell:hover .wordmark { transform: scale(1.05); }
.wm-t { display: grid; line-height: 1; }
.wm-t b { font: 700 30px/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.wm-t small { font: 500 10px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .3em; margin-top: 4px; }
.wm-icon { width: 38px; height: 38px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark-roof { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 22 20 6l17 16' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M9 18v16h22V18' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
.mark-arch { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 36V20a14 14 0 0 1 28 0v16' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M14 36V22a6 6 0 0 1 12 0v14' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
.mark-pine { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4v32M20 12l-8 6M20 12l8 6M20 20l-10 7M20 20l10 7M20 28l-12 7M20 28l12 7' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E"); }
.mark-square { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='4' width='32' height='32' fill='none' stroke='%23000' stroke-width='3'/%3E%3Crect x='14' y='14' width='12' height='12'/%3E%3C/svg%3E"); }
.mark-sun { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 30a14 14 0 0 1 28 0' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M2 34h36M20 4v8M6 12l5 5M34 12l-5 5' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
.mark-bars { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 6v28M15 12v22M24 18v16M33 24v10' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E"); }
.mark-window { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='6' y='4' width='28' height='32' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M20 4v32M6 18h28' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E"); }
.mark-wave { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M6 22c5-5 9 5 14 0s9 5 14 0' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
@media (max-width: 1023px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-cell { height: 170px; } }
@media (max-width: 809px) { .clients { padding: 80px var(--g) 70px; } .wm-t b { font-size: 21px; } .wm-icon { width: 26px; height: 26px; } .wordmark { gap: 9px; } .logo-cell { height: 130px; } .logo-cell > .mono { left: 10px; bottom: 8px; font-size: 11px; } }
@media (max-width: 380px) { .wm-t b { font-size: 17px; } .wm-t small { letter-spacing: .15em; } .wm-icon { width: 20px; height: 20px; } .logo-cell { padding: 10px; } .logo-cell > .mono { font-size: 10px; } }

/* ---------- journal (dark here, light on the original layout) with a slanted cut into the next section ---------- */
.journal { padding: 80px var(--g) 130px; }
.journal-note { margin: 56px 0 50px auto; width: min(320px, 100%); margin-right: 76px; font-size: 14px; }
.rows { border-top: 1px solid var(--line-dark); }
.row { display: grid; grid-template-columns: 120px 1fr 320px 48px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.row b { font: 700 48px/1 var(--f-head); text-transform: uppercase; }
.row-date, .row-ex { color: var(--mute-dark); }
/* row hover (as the original layout): the article photo fills the row under a dark scrim, date and title slide right
   and brighten, the circle fills and its arrow is swapped by the next one coming up from below. Mouse only. */
.row-bg { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row { position: relative; isolation: isolate; padding-right: 24px; }
  .row-bg { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity .5s var(--ease); }
  .row-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .8s var(--ease); }
  .row-bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 14, .55); }
  .row-date, .row b { transition: transform .5s var(--ease), color .5s var(--ease); }
  .row-ex { transition: color .5s var(--ease); }
  .row .circle { position: relative; overflow: hidden; }
  .row .circle svg { transition: transform .5s var(--ease); }
  .row .circle .arr-next { position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -7px; transform: translateY(48px); }
  .row:hover .row-bg, .row:focus-visible .row-bg { opacity: 1; }
  .row:hover .row-bg img, .row:focus-visible .row-bg img { transform: scale(1); }
  .row:hover .row-date, .row:hover b, .row:focus-visible .row-date, .row:focus-visible b { transform: translateX(24px); color: var(--on-dark); }
  .row:hover .row-ex, .row:focus-visible .row-ex { color: var(--on-dark); }
  .row:hover .circle, .row:focus-visible .circle { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
  .row:hover .circle svg, .row:focus-visible .circle svg { transform: translateY(-48px); }
  .row:hover .circle .arr-next, .row:focus-visible .circle .arr-next { transform: translateY(0); }
}
.cta { position: relative; z-index: 1; margin-top: -100px; padding: 240px var(--g) 130px; text-align: center; background: var(--bg); clip-path: polygon(0 0, 100% 100px, 100% 100%, 0 100%); display: grid; justify-items: center; gap: 40px; }
.cta .big { justify-self: stretch; margin-bottom: 70px; }
.cta .mono { text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 809px) {
  .journal { padding: 64px var(--g) 140px; }
  .journal-note { margin: 24px 0 28px; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .row b { font-size: 30px; }
  .row .circle { width: 40px; height: 40px; }
  .cta { margin-top: -60px; clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%); padding: 130px var(--g) 90px; gap: 26px; }
  .cta .big { margin-bottom: 30px; }
}

/* ---------- footer: cells ---------- */
.foot { display: flex; justify-content: space-between; align-items: stretch; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.journal-page .foot { border-color: var(--line-dark); }
.foot-copy { display: flex; align-items: center; padding: 22px var(--g); border-right: 1px solid var(--line); color: var(--mute); }
.foot-links { display: flex; }
.foot-links a { display: flex; align-items: center; padding: 22px var(--g); border-left: 1px solid var(--line); font-weight: 500; }
.journal-page .foot-copy, .journal-page .foot-links a { border-color: var(--line-dark); }
@media (max-width: 809px) {
  .foot { flex-direction: column; }
  .foot-copy { justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-links { flex-wrap: wrap; }
  .foot-links a { flex: 1 1 33%; justify-content: center; border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 8px; }
  .foot-links a:first-child { flex-basis: 100%; }
}
.to-top { position: fixed; z-index: 40; right: var(--g); bottom: 84px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--bg); visibility: hidden; opacity: 0; transform: translateY(10px); transition: .35s var(--ease); }
.to-top.on { visibility: visible; opacity: 1; transform: none; }

/* ---------- WORK index: one screen, the name under the mouse brings its photo ---------- */
.index { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--head-h) + 40px) var(--g) 40px; color: #f4f1ea; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; overflow: hidden; background: var(--dark); }
.index-bgs, .index-bg { position: absolute; inset: 0; }
.index-bg { opacity: 0; transition: opacity .7s; }
.index-bg.on { opacity: 1; }
.index-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.index-bg.on img { transform: none; }
.index-bgs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 15, .7), rgba(20, 18, 15, .35)); }
.index-label { position: relative; grid-column: 1 / -1; font-weight: 400; text-shadow: var(--glow); }
.index-list { position: relative; grid-column: 2; grid-row: 2; align-self: center; }
.index-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.index-item b { font: 700 82px/1.07 var(--f-head); text-transform: uppercase; opacity: .4; transition: opacity .35s; text-shadow: var(--glow); }
.index-item .mono { opacity: .5; transition: opacity .35s; }
.index-item.on b, .index-item.on .mono { opacity: 1; }
.index-cards { position: relative; grid-column: 1; grid-row: 2; align-self: end; display: grid; }
.index-card { grid-area: 1 / 1; display: grid; gap: 14px; max-width: 420px; visibility: hidden; text-shadow: var(--glow); }
.index-card.on { visibility: visible; }
.index-n { font: 700 120px/.85 var(--f-head); }
.index-card .mono { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.index-sum { font-size: 16px; }
@media (max-width: 1100px) { .index-item b { font-size: 60px; } }
@media (max-width: 809px) {
  .index { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-bottom: 32px; }
  .index-list { grid-column: 1; grid-row: 2; margin: 60px 0 50px; }
  .index-item b { font-size: 40px; }
  .index-cards { grid-row: 3; }
  .index-n { font-size: 80px; }
}

/* ---------- PROJECT ---------- */
.p-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: #f4f1ea; display: flex; align-items: flex-end; }
.p-hero-img, .next-img, .a-hero-img, .words-img, .post-hero, .lost-img { position: absolute; inset: 0; overflow: hidden; }
[data-parallax] img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); will-change: transform; }
.p-hero-img::after, .a-hero-img::after, .lost-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 13, .55), transparent 45%); }
.p-hero-text { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: end; gap: var(--g); padding: 0 var(--g) 28px; text-shadow: var(--glow); }
.p-title { font: 700 56px/.95 var(--f-head); text-transform: uppercase; }
.p-meta { text-align: right; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: 130px var(--g); }
.story-text { display: grid; gap: 22px; max-width: 540px; font-size: 20px; line-height: 1.5; }
.story-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.story-facts dt { color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.gallery { display: grid; gap: 4px; padding: 0 var(--g); }
.g-row { display: grid; gap: 4px; }
.g-row.pair { grid-template-columns: 1fr 1fr; }
.g-row.half { grid-template-columns: 1fr 1fr; }
.g-row.wide .zoom { aspect-ratio: 16 / 9; }
.g-row.pair .zoom, .g-row.half .zoom { aspect-ratio: 4 / 3; }
.next { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--g); min-height: 78vh; margin-top: 140px; padding: 0 var(--g) 32px; color: #f4f1ea; overflow: hidden; }
.next-img img { filter: brightness(.62); transition: filter .6s; }
.next:hover .next-img img { filter: brightness(.8); }
.next-text { position: relative; display: grid; gap: 12px; text-shadow: var(--glow); }
.next-title { font: 700 72px/.9 var(--f-head); text-transform: uppercase; }
.next-circle { position: relative; }
.next:hover .next-circle { background: #f4f1ea; color: var(--ink); }
@media (max-width: 809px) {
  .p-hero-text { grid-template-columns: 1fr; gap: 8px; padding-bottom: 20px; }
  .p-meta { text-align: left; }
  .p-title { font-size: 44px; }
  .story { grid-template-columns: 1fr; padding: 72px var(--g); gap: 20px; }
  .story-text { font-size: 18px; }
  .g-row.pair, .g-row.half { grid-template-columns: 1fr; }
  .next { min-height: 60vh; margin-top: 80px; }
  .next-title { font-size: 46px; }
}

/* ---------- ABOUT ---------- */
.a-hero { position: relative; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: end; gap: var(--g); padding: 0 var(--g) 28px; color: #f4f1ea; overflow: hidden; }
.a-hero > :not(.a-hero-img) { position: relative; text-shadow: var(--glow); }
.a-hero-name { font: 700 56px/.95 var(--f-head); text-transform: uppercase; }
.a-hero-facts { text-align: right; }
.moves { padding: 40px var(--g) 190px; }
.moves .big { margin-bottom: 24px; }
.moves-lead { font: 600 64px/1.05 var(--f-head); max-width: 1400px; letter-spacing: -.005em; }
.moves-lead .w { opacity: var(--o, .18); transition: opacity .25s; }
.a-split { display: grid; grid-template-columns: 652px 1fr; gap: var(--g); padding: 0 var(--g) 24px; }
.a-photo .zoom { aspect-ratio: 652 / 562; }
.a-split-text { display: grid; align-content: start; gap: 28px; justify-self: end; max-width: 406px; font-size: 16px; }
.words-band { position: relative; height: 780px; overflow: hidden; display: grid; align-items: center; color: #f4f1ea; }
.words { position: relative; display: flex; justify-content: space-between; padding: 0 var(--g); font: 700 56px/1 var(--f-head); text-transform: uppercase; text-shadow: var(--glow); }
.words > span { transform: translateX(calc(var(--dx, 0px) * var(--p, 1))); will-change: transform; }
.settings { display: grid; grid-template-columns: 1fr 1fr; }
.settings { background: var(--bg-2); }
.settings-side { position: sticky; top: var(--head-h); align-self: start; height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px var(--g) 30px; }
.settings-stick { display: grid; gap: 22px; }
.settings-title { font: 700 80px/.92 var(--f-head); text-transform: uppercase; max-width: 560px; }
.settings-foot { display: grid; gap: 28px; max-width: 430px; }
.setting { position: relative; display: grid; grid-template-columns: 64px 1fr 190px; grid-template-areas: "n t t" ". x a" "v v p"; gap: 36px 0; padding: 40px var(--g) 40px; border-bottom: 1px solid var(--line-dark); min-height: 640px; align-content: space-between; }
.setting-n { grid-area: n; color: var(--mute-dark); position: absolute; top: 46px; left: var(--g); }
.setting h3 { grid-area: t; grid-column: 2 / -1; font: 700 56px/.98 var(--f-head); text-transform: uppercase; }
.setting-text { grid-area: x; color: var(--mute-dark); max-width: 240px; font-size: 14px; }
.art { grid-area: a; width: 170px; height: 170px; justify-self: end; }
.setting-value { grid-area: v; grid-column: 1 / 3; font: 700 120px/.85 var(--f-head); align-self: end; }
.setting-points { grid-area: p; align-self: end; text-transform: uppercase; letter-spacing: .04em; display: grid; gap: 4px; font-weight: 500; }
.setting-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: currentColor; margin-right: 10px; vertical-align: .12em; }
/* the three drawings: drawn with CSS, slowly alive */
.art { position: relative; border: 1px dotted var(--line-dark); border-radius: 50%; }
.art::before, .art::after { content: ""; position: absolute; }
.art-grid::before { inset: 22%; background: linear-gradient(var(--on-dark) 1px, transparent 1px) 0 0 / 100% 20%, linear-gradient(90deg, var(--on-dark) 1px, transparent 1px) 0 0 / 20% 100%; border-right: 1px solid var(--on-dark); border-bottom: 1px solid var(--on-dark); opacity: .7; animation: spin 40s linear infinite; }
.art-section::before { left: 16%; right: 16%; top: 30%; bottom: 22%; border: 1px solid var(--on-dark); border-top: 0; }
.art-section::after { left: 10%; right: 10%; top: 12%; height: 40%; border-top: 1px solid var(--on-dark); clip-path: polygon(50% 0, 100% 46%, 0 46%); background: linear-gradient(to bottom right, transparent 49.5%, var(--on-dark) 50%, transparent 50.5%) left / 50% 46% no-repeat, linear-gradient(to bottom left, transparent 49.5%, var(--on-dark) 50%, transparent 50.5%) right / 50% 46% no-repeat; animation: breathe 5s ease-in-out infinite; }
.art-sun::before { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--on-dark); top: 18%; left: 18%; animation: orbit 9s ease-in-out infinite alternate; }
.art-sun::after { left: 10%; right: 10%; bottom: 30%; height: 1px; background: var(--on-dark); box-shadow: 0 -18px 0 -0 rgba(230, 225, 214, .35), 0 -36px 0 rgba(230, 225, 214, .2); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: translateY(-6px); } }
@keyframes orbit { to { top: 40%; left: 64%; } }
.services { padding: 150px var(--g) 140px; }
.services-head { display: grid; grid-template-columns: 1fr 440px; gap: var(--g); margin-bottom: 110px; font-size: 16px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: 90px 1fr auto 48px; gap: 24px; align-items: center; padding: 24px 0; text-align: left; }
.acc-head b { font: 700 80px/1 var(--f-head); text-transform: uppercase; }
.acc-plus svg { transition: transform .45s var(--ease); }
.acc-item.on .acc-plus svg { transform: rotate(45deg); }
.acc-head:hover .acc-plus { background: var(--ink); color: var(--bg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-item.on .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { max-width: 560px; margin-left: 114px; padding: 0 0 30px; font-size: 18px; }
.quote { padding: 120px var(--g) 210px; text-align: center; }
.quote-t p { font: 700 40px/1.05 var(--f-head); text-transform: uppercase; max-width: 620px; margin: 0 auto; }
@media (max-width: 1100px) { .a-split { grid-template-columns: 1fr 1fr; } .moves-lead { font-size: 50px; } .settings-title { font-size: 60px; } .setting h3 { font-size: 44px; } }
@media (max-width: 809px) {
  .a-hero { grid-template-columns: 1fr; gap: 8px; padding-bottom: 20px; }
  .a-hero-facts { text-align: left; }
  .a-hero-name { font-size: 42px; }
  .moves { padding: 30px var(--g) 90px; }
  .moves-lead { font-size: 34px; }
  .a-split { grid-template-columns: 1fr; gap: 28px; }
  .a-split-text { justify-self: start; }
  .words-band { height: 70vh; }
  .words { font-size: 30px; }
  .settings { grid-template-columns: 1fr; }
  .settings-side { position: static; height: auto; padding: 70px var(--g) 40px; }
  .settings-stick, .settings-foot { position: static; }
  .settings-title { font-size: 46px; }
  .setting { grid-template-columns: 1fr; grid-template-areas: "n" "t" "x" "a" "v" "p"; gap: 22px; min-height: 0; padding: 40px var(--g); }
  .setting-n { position: static; }
  .setting h3, .setting-value { grid-column: auto; font-size: 38px; }
  .setting-value { font-size: 90px; }
  .art { justify-self: start; width: 130px; height: 130px; }
  .services { padding: 80px var(--g); }
  .services-head { grid-template-columns: 1fr; margin-bottom: 50px; }
  .acc-head { grid-template-columns: 1fr 40px; grid-template-areas: "n p" "b p" "m p"; gap: 6px 12px; }
  .acc-n { grid-area: n; } .acc-head b { grid-area: b; font-size: 42px; } .acc-meta { grid-area: m; } .acc-plus { grid-area: p; width: 40px; height: 40px; }
  .acc-body p { margin-left: 0; font-size: 16px; }
  .quote { padding: 60px var(--g) 110px; }
  .quote-t p { font-size: 30px; }
}

/* ---------- JOURNAL page (dark) and cards ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: calc(var(--head-h) + 24px) var(--g) 24px; }
.feat-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 40px; border-bottom: 0; }
.feat-img { aspect-ratio: 684 / 720; overflow: hidden; }
.j-date { font: 700 110px/.85 var(--f-head); text-transform: uppercase; }
.j-meta { text-transform: uppercase; letter-spacing: .06em; margin-top: 12px; }
.j-title { font: 700 48px/.95 var(--f-head); text-transform: uppercase; }
.j-ex { max-width: 440px; font-size: 13px; }
.j-read { align-self: stretch; text-align: right; padding-top: 10px; border-top: 1px solid var(--line-dark); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; transition: color .3s; }
.feat:hover .j-read, .j-card:hover .j-read { color: var(--accent); }
.feat-img img, .j-img img { transition: transform 1.2s var(--ease); }
.feat:hover .feat-img img, .j-card:hover .j-img img { transform: scale(1.04); }
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.j-grid > li { border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.j-grid > li:nth-child(3n) { border-right: 0; }
.j-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 26px var(--g) 22px; }
.j-card .j-date { font-size: 100px; }
.j-card .j-title { font-size: 40px; }
.j-img { margin-top: auto; aspect-ratio: 432 / 264; overflow: hidden; padding-top: 0; }
.j-card .j-ex { margin-bottom: 90px; }
@media (max-width: 1023px) { .j-grid { grid-template-columns: 1fr 1fr; } .j-grid > li:nth-child(3n) { border-right: 1px solid var(--line-dark); } .j-grid > li:nth-child(2n) { border-right: 0; } }
@media (max-width: 809px) {
  .feat { grid-template-columns: 1fr; }
  .feat-img { order: -1; aspect-ratio: 4 / 3; }
  .j-date, .j-card .j-date { font-size: 72px; }
  .j-title, .j-card .j-title { font-size: 32px; }
  .j-grid { grid-template-columns: 1fr; }
  .j-grid > li { border-right: 0 !important; }
  .j-card .j-ex { margin-bottom: 30px; }
}

/* ---------- POST (light) and "more notes" (dark) ---------- */
.post-hero { position: relative; display: block; height: 76vh; }
.post-head { padding: 60px var(--g) 70px; display: grid; gap: 22px; }
.post-head .mono { text-transform: uppercase; letter-spacing: .04em; }
.post-title { font: 700 128px/.88 var(--f-head); text-transform: uppercase; max-width: 1100px; }
.post-body { position: relative; padding: 0 var(--g) 80px; }
.post-label { position: absolute; left: var(--g); top: 4px; }
.post-col { display: grid; gap: 22px; max-width: 560px; margin-left: 36%; font-size: 17px; }
.post-col h2 { font: 700 40px/1 var(--f-head); text-transform: uppercase; margin-top: 34px; }
.post-col ul { display: grid; gap: 6px; font: 500 13px/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.post-col ul li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: currentColor; margin-right: 10px; vertical-align: .12em; }
.post-col blockquote { margin-top: 20px; padding-left: 20px; border-left: 2px solid var(--ink); }
.post-col blockquote p { font-style: italic; color: var(--mute); }
.post-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 60px 0; }
.post-ph .zoom { aspect-ratio: 4 / 3; }
.post-wide { margin: 60px 0; }
.post-wide .zoom { aspect-ratio: 16 / 9; }
.more { background: var(--bg-2); color: var(--ink); }
.more { background: var(--dark); color: var(--on-dark); padding-top: 70px; }
.more-label { padding: 0 var(--g) 18px; }
@media (max-width: 809px) {
  .post-hero { height: 56vh; }
  .post-head { padding: 40px var(--g) 40px; }
  .post-title { font-size: 58px; }
  .post-label { position: static; margin-bottom: 24px; }
  .post-col { margin-left: 0; font-size: 16px; }
  .post-pair { grid-template-columns: 1fr; margin: 36px 0; }
  .post-wide { margin: 36px 0; }
  .post-wide .zoom { aspect-ratio: 4 / 3; }
}

/* ---------- CONTACT ---------- */
.contact { padding: calc(var(--head-h) + 130px) var(--g) 90px; min-height: 100vh; display: flex; flex-direction: column; }
.contact-mail { margin-bottom: 250px; }
.contact-mail a:hover { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 152px minmax(0, 490px) 1fr; gap: var(--g); }
.contact-main { display: grid; gap: 110px; align-content: start; font-size: 16px; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.contact-direct .mono { font-weight: 500; text-transform: uppercase; font-size: 14px; }
.contact-side { display: grid; gap: 54px; justify-self: end; width: min(506px, 100%); }
.contact-side > div { display: grid; grid-template-columns: 176px 1fr; gap: var(--g); }
.contact-side dd { text-transform: uppercase; font-weight: 500; }
.socials { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { justify-self: start; } .contact-mail { margin-bottom: 120px; } }
@media (max-width: 809px) {
  /* phone: the address on top, the rest spread down the screen instead of packed under it */
  .contact { padding: calc(var(--head-h) + 90px) var(--g) 56px; min-height: 100svh; justify-content: space-between; gap: 72px; }
  .contact-mail { margin-bottom: 0; }
  .contact-grid { gap: 28px; }
  .contact-main { gap: 48px; font-size: 17px; }
  .contact-side { gap: 40px; margin-top: 28px; }
  .contact-side > div { grid-template-columns: 1fr; gap: 10px; }
  .socials { gap: 14px; }
}

/* ---------- 404 ---------- */
.lost { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--head-h) + 40px) var(--g) 32px; color: #f4f1ea; overflow: hidden; }
.lost > :not(.lost-img) { position: relative; text-shadow: var(--glow); }
.lost-img img { width: 100%; height: 100%; object-fit: cover; }
.lost-title { font: 700 200px/.85 var(--f-head); text-transform: uppercase; margin-top: auto; margin-bottom: 70px; }
.lost-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.lost-foot > p:first-child { max-width: 560px; font-size: 20px; }
.lost-links { display: flex; align-items: center; gap: 32px; }
.lost-links .mono { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.lost .btn { border-color: rgba(244, 241, 234, .4); }
.lost .btn:hover { background: #f4f1ea; color: var(--ink); }
@media (max-width: 809px) { .lost-title { font-size: 76px; margin-bottom: 36px; } .lost-foot > p:first-child { font-size: 17px; } }

/* ---------- entrances (as on the original layout: up 24 px + fade, photos settle from 1.08) ---------- */
.js [data-up] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-up].is-in { opacity: 1; transform: none; }
.js [data-zoom] img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.js [data-zoom].is-in img { transform: none; }
.js .card:hover [data-zoom].is-in img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-up] { opacity: 1; transform: none; }
  .js [data-zoom] img { transform: none; }
}

/* ---------- one cursor on the whole site (mouse only): a dot exactly on the mouse inside a broken crosshair;
   over anything clickable the crosshair turns 45 degrees and tightens, the dot grows. Moved with transform only. ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; color: #fff; mix-blend-mode: difference; display: none; }
.has-cur .cur { display: block; visibility: hidden; }
.has-cur .cur.on { visibility: visible; }
.has-cur, .has-cur * { cursor: none; }
.has-cur input, .has-cur textarea, .has-cur select { cursor: auto; }
.cur-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform .35s var(--ease); }
.cur-x { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; transition: transform .45s var(--ease);
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 19px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 19px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 19px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 1px 19px no-repeat; }
.cur.link .cur-x { transform: scale(.62) rotate(45deg); }
.cur.link .cur-dot { transform: scale(1.7); }
@media (prefers-reduced-motion: reduce) { .cur-x, .cur-dot { transition: none; } }

/* ---------- page change (as the original layout): the old page holds still, the new one wipes in over it from the bottom left
   to the top right with a soft 30 % edge, 0.8 s. Cross-document View Transitions: browsers without them simply load the page. ---------- */
@view-transition { navigation: auto; }
@property --wipe { syntax: '<number>'; initial-value: 0; inherits: false; }
@keyframes page-hold { from { opacity: 1; } to { opacity: 1; } }
@keyframes page-wipe { from { --wipe: 0; } to { --wipe: 1; } }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; backface-visibility: hidden; }
::view-transition-old(root) { animation: page-hold .8s linear both; }
::view-transition-new(root) {
  animation: page-wipe .8s cubic-bezier(.27, 0, .51, 1) both;
  -webkit-mask-image: linear-gradient(50deg, #000 calc(-30% + 130% * var(--wipe)), transparent calc(130% * var(--wipe)));
  mask-image: linear-gradient(50deg, #000 calc(-30% + 130% * var(--wipe)), transparent calc(130% * var(--wipe)));
}
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; } }

/* ---------- Home intro (on load): the black hero name is so huge that it covers the whole screen, then its letters
   shrink and travel to their place (main.js 10a). ---------- */
html.is-intro body { overflow: hidden; }
html.is-intro body::after { content: ""; position: fixed; inset: 0; z-index: 100; background: var(--ink); } /* black until the fonts are in */
html.is-intro.intro-run body::after { display: none; }
html.is-intro .cur, html.is-intro .head, html.is-intro .hero-top, html.is-intro .hero-name { visibility: hidden; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wd { white-space: nowrap; }

/* STUDIO: the hero photo stays almost in place and drifts up very slowly; the rest of the page slides over it (main.js 11) */
.a-hero[data-linger] { z-index: 0; will-change: transform; }
.a-hero[data-linger] .a-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.about-page main > section:not(.a-hero) { position: relative; z-index: 1; }
.about-page .moves, .about-page .a-split, .about-page .services, .about-page .quote { background: var(--bg); }

/* headings stay hidden until their letters are evenly spaced (main.js 3b), so they never show wide and then snap */
html.js:not(.evened) :is(.big, .drop-nav a, .hero-name, .card-cap b, .band-t, .marquee-row, .wm-t b, .row b, .index-item b, .index-n, .p-title, .next-title, .a-hero-name, .moves-lead, .words, .settings-title, .setting h3, .setting-value, .acc-head b, .quote-t p, .j-date, .j-title, .post-title, .post-col h2, .lost-title) { visibility: hidden; }

/* the custom cursor is for desktop mouse use only: never on phone widths (also in a desktop browser shrunk to phone size) */
@media (max-width: 809px) { .has-cur .cur { display: none; } .has-cur, .has-cur * { cursor: auto; } }
/* Home: the intro comes straight onto the letters that became its background (less empty paper after the hero) */
.hero + .intro { padding-top: 110px; }
@media (max-width: 809px) { .hero + .intro { padding-top: 40px; } }
