:root {
	--bg: #fff1ec;
	--ink: #190505;
	--g: clamp(1rem, 2.4vw, 2.4rem);
	--ease: cubic-bezier(.2, .9, .1, 1);
	--disp: "Anton", Impact, "Arial Narrow", sans-serif;
	--body: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
	--hatch: repeating-linear-gradient(135deg, transparent 0 7px, var(--ink) 7px 8px);
}
html[data-theme="dark"] { --bg: #190505; --ink: #fff1ec; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body { font-family: var(--body); font-size: clamp(1.2rem, 1.1rem + .35vw, 1.5rem); line-height: 1.15; font-weight: 450; color: var(--ink); background: transparent; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
dl, ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--ink); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
html.is-locked { overflow: hidden; }
.hatch { background: var(--hatch); }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--bg); transition: background .5s; }

#room { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#floaters { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
main { position: relative; z-index: 1; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: var(--g); transition: transform 1.1s var(--ease) .15s; }
.loader-t { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9em; }
.loader-n { font-family: var(--disp); font-size: clamp(8rem, 34vw, 30rem); line-height: .82; align-self: flex-end; font-variant-numeric: tabular-nums; }
.is-ready .loader { transform: translateY(-101%); }
html:not(.js) .loader { display: none; }

/* cursor */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	html.has-cursor, html.has-cursor * { cursor: none !important; }
	.cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .2s; }
	.cursor[data-s="link"] { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
	.cursor[data-s="hide"] { opacity: 0; }
	.cursor[data-s="view"] { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
	.cursor span { font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; }
	.cursor[data-s="view"] span { opacity: 1; }
}

/* header: a row of framed cells, full width, no outer frame */
.head { position: sticky; top: 0; z-index: 40; display: flex; min-height: 72px; background: var(--bg); border-bottom: 1px solid var(--ink); transition: background .5s; }
.cell { display: flex; align-items: center; justify-content: center; padding: 0 1.5rem; border-right: 1px solid var(--ink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82em; transition: background .25s, color .25s; }
a.cell:hover, button.cell:hover { background: var(--ink); color: var(--bg); }
.logo { padding: 0 1.6rem; flex: none; white-space: nowrap; letter-spacing: .08em; font-size: .9em; }
.navcells { display: flex; flex: 1; }
.navcells .cell { flex: 1; max-width: 14rem; }
.icon { width: 60px; padding: 0; flex: none; }
.info { flex-direction: column; align-items: flex-start; gap: 0; border-right: 0; margin-left: auto; min-width: 12rem; line-height: 1.1; }
.info b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .info { display: none; } .navcells { max-width: none; } }
@media (max-width: 640px) { .head { min-height: 60px; } .logo { padding: 0 .8rem; white-space: normal; max-width: 7.2rem; font-size: .72em; line-height: 1.05; text-align: left; justify-content: flex-start; } .navcells .cell:nth-child(3) { display: none; } .navcells .cell { padding: 0 .4rem; } .icon { width: 50px; } }

/* hero */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 72px); overflow: clip; }
.lines { flex: 1; min-height: 240px; position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--bg); transition: background .5s; }
.lines-in { position: absolute; inset: 0; }
.lines canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .giant { border-top: 0; padding-top: .17em; padding-bottom: .15em; background: var(--bg); transition: background .5s; }
.giant { font-family: var(--disp); font-weight: 400; text-transform: uppercase; line-height: .9; white-space: nowrap; overflow: hidden; padding: .05em var(--g) .02em; font-size: 12vw; display: block; }
.giant span { display: inline-block; }
.giant .ttl { display: inline-flex; align-items: center; gap: .3em; }
.giant .ttl i { font-style: normal; display: inline-flex; }
.giant .ttl b { font-weight: inherit; display: inline-block; overflow: hidden; padding: .06em .05em; margin: -.06em -.05em; }
.giant .ttl u { display: inline-block; text-decoration: none; }
.giant .ttl svg { width: .66em; height: .66em; flex: none; margin-top: -.04em; }
.js .hero .giant span { transform: translateY(110%); }
.is-ready .hero .giant span { transform: none; transition: transform 1.3s var(--ease) .5s; }
.hero-foot { background: var(--bg); display: flex; justify-content: flex-end; align-items: center; gap: 2rem; padding: .8rem var(--g) 1.4rem; border-top: 1px solid var(--ink); }
.role { max-width: 34rem; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; font-weight: 500; }
.scroll-dot { width: 104px; height: 104px; flex: none; animation: spin 18s linear infinite; font-weight: 700; }
.scroll-dot svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* one clean marquee: the things I do */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); white-space: nowrap; font-family: var(--disp); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.8rem); padding: .3em 0; position: relative; z-index: 2; min-height: calc(1.75em + 2px) }
.mq { display: inline-flex; will-change: transform; }
.mq span { display: inline-flex; align-items: center; gap: 1.2rem; padding-right: 1.2rem; }
.mq svg { width: .6em; height: .6em; flex: none; }

/* outlined giant words */
.outline { font-family: var(--disp); font-weight: 400; text-transform: uppercase; line-height: .82; -webkit-text-stroke: 1.5px var(--ink); color: transparent; white-space: nowrap; }
.outline span { display: inline-block; will-change: transform; }

/* work: pinned, sideways, layered */
.work { position: relative; }
.work-pin { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; display: flex; align-items: center; perspective: 1600px; }
.work-track { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(5rem, 12vw, 13rem); padding: 0 12vw 0 var(--g); transform-style: preserve-3d; will-change: transform; }
.work-track > li { flex: none; position: relative; }
.pf-intro { width: clamp(14rem, 22vw, 24rem); font-size: clamp(1.6rem, 2.4vw, 2.6rem); line-height: 1; font-weight: 500; }
.pf { transform-style: preserve-3d; }
.frame { display: block; width: clamp(15rem, 24vw, 27rem); padding: .9rem; background: var(--bg); border: 1px solid var(--ink); position: relative; will-change: transform; }
.f2 .frame, .f5 .frame { width: clamp(13rem, 20vw, 23rem); }
.f3 .frame { width: clamp(16rem, 28vw, 31rem); }
.f1, .f3, .f5, .f7 { margin-top: -9vh; } .f2, .f4, .f6, .f8 { margin-top: 12vh; }
.shot { display: block; position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--ink); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); will-change: transform; }
.shot::after { content: ""; position: absolute; inset: 0; background: var(--hatch); opacity: 0; transition: opacity .3s; mix-blend-mode: multiply; }
.frame.is-hover .shot::after, .frame:focus-visible .shot::after { opacity: .55; }
.frame.is-hover .cap i { opacity: 1; }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-top: .6rem; }
.cap b { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.5em; letter-spacing: .01em; }
.cap i { font-style: normal; opacity: .7; }
.pf-end { width: clamp(16rem, 26vw, 28rem); padding: 1.4rem; border: 1px solid var(--ink); background-color: var(--bg); }
.pf-end p { background: var(--bg); padding: .4rem; font-family: var(--disp); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; margin-bottom: 1rem; }
.pf-end a { display: inline-block; background: var(--bg); border: 1px solid var(--ink); padding: .4rem .9rem; font-weight: 700; transition: background .25s, color .25s; }
.pf-end a:hover { background: var(--ink); color: var(--bg); }
.work-now { position: absolute; left: var(--g); bottom: calc(var(--g) + 1.6rem); z-index: 1; pointer-events: none; display: flex; align-items: baseline; gap: 1rem; }
.work-now b { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .85; transition: opacity .25s, transform .5s var(--ease); display: inline-block; }
.work-now i { font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85em; transition: opacity .25s; }
.work-now.swap b, .work-now.swap i { opacity: 0; transform: translateY(.2em); }
.work-line { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); height: 1px; background: color-mix(in srgb, var(--ink) 25%, transparent); z-index: 3; }
.work-line i { position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }

/* services */
.services { position: relative; padding: calc(var(--g) * 3) 0 0; background: var(--bg); border-top: 1px solid var(--ink); transition: background .5s; }
.sec-word { -webkit-text-stroke: 0; color: var(--ink); line-height: .9; font-size: clamp(2.6rem, 6vw, 6.4rem); padding: 0 var(--g); overflow: hidden; margin-bottom: clamp(1.2rem, 2.6vw, 2.6rem); }
.svc-list { border-top: 1px solid var(--ink); }
.svc { position: relative; display: grid; grid-template-columns: 1fr minmax(16rem, 26rem); gap: 2rem; align-items: center; padding: clamp(1.2rem, 3vw, 2.6rem) var(--g); border-bottom: 1px solid var(--ink); overflow: hidden; background: var(--bg); transition: background .3s, color .3s; }
.svc .t { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8.4vw, 9rem); line-height: .9; letter-spacing: 0; white-space: nowrap; will-change: transform; }
.svc p { line-height: 1.1; font-size: clamp(1.3rem, 1.6vw, 1.7rem); font-weight: 500; }
.svc:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; gap: .6rem; } }

/* about: one object in four stages; the drawing builds as you scroll */
.about { position: relative; height: 300vh; background: var(--bg); border-top: 1px solid var(--ink); transition: background .5s; }
.about-pin { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); }
.about-top { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1rem, 2vw, 1.8rem) var(--g) clamp(1rem, 2vw, 1.6rem); }
.about-label { flex: none; font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .06em; }
.bio { max-width: 64rem; font-size: clamp(1.7rem, 3.1vw, 3.6rem); line-height: 1.03; font-weight: 600; letter-spacing: -.01em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-height: 0; }
.step { display: flex; flex-direction: column; min-height: 0; padding: 1rem var(--g) 1.1rem; border-right: 1px solid var(--ink); }
.step:last-child { border-right: 0; }
.art { flex: 1; min-height: 0; width: 100%; color: var(--ink); overflow: visible; }
.art use.dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.step h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 2.8vw, 3.2rem); line-height: .95; margin-top: .6rem; opacity: .2; transition: opacity .5s; }
.step p { font-size: clamp(1.1rem, 1.3vw, 1.45rem); line-height: 1.08; opacity: .2; transition: opacity .5s; max-width: 18em; }
.step.on h3, .step.on p { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.facts div { padding: .8rem var(--g) 1.1rem; border-right: 1px solid var(--ink); }
.facts div:last-child { border-right: 0; }
.facts dt { opacity: .6; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68em; margin-bottom: .2rem; }
.facts dd { font-size: 1.15em; line-height: 1.05; font-weight: 500; }
@media (max-width: 900px) {
	.about { height: auto; }
	.about-pin { position: static; height: auto; display: block; }
	.about-top { flex-direction: column; gap: .6rem; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step { border-bottom: 1px solid var(--ink); } .step:nth-child(2n) { border-right: 0; }
	.art { height: 36vh; flex: none; }
	.facts { grid-template-columns: 1fr 1fr; border-bottom: 0; } .facts div:nth-child(2n) { border-right: 0; } .facts div { border-bottom: 1px solid var(--ink); }
}

/* contact */
.contact { position: relative; padding-top: calc(var(--g) * 3); }
.contact .giant { overflow: hidden; line-height: .88; padding-left: 0; padding-right: 0; }
.contact h2 { font-weight: 400; }
.contact-grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.5rem, 3vw, 3rem) var(--g); border-top: 1px solid var(--ink); margin-top: clamp(1rem, 2vw, 2rem); flex-wrap: wrap; background: var(--bg); transition: background .5s; }
.links { display: flex; flex-direction: column; flex: 1; min-width: min(100%, 24rem); }
.links > * { padding: .8rem 0; border-bottom: 1px solid var(--ink); font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 500; line-height: 1; transition: padding .4s var(--ease); width: 100%; }
.links > *:hover { padding-left: 1.2rem; }
.links > *:first-child { border-top: 1px solid var(--ink); }
.cta { width: clamp(11rem, 20vw, 18rem); aspect-ratio: 1; flex: none; will-change: transform; transition: color .3s; }
.cta svg { width: 100%; height: 100%; }
.cta .c1 { fill: none; stroke: var(--ink); } .cta .c2 { fill: none; stroke: var(--ink); }
.cta text { fill: var(--ink); font-weight: 700; font-family: var(--body); }
.cta:hover { color: var(--bg); }
.cta { color: var(--ink); background: radial-gradient(circle, transparent 0 60%, transparent 61%); border-radius: 50%; }
.cta:hover { background: var(--ink); }
.cta:hover .c1, .cta:hover .c2 { stroke: var(--bg); } .cta:hover text { fill: var(--bg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding: 1.1rem var(--g); border-top: 1px solid var(--ink); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78em; background: var(--bg); transition: background .5s; }
.foot a:hover { text-decoration: underline; }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 220; background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: 5rem var(--g) var(--g); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); visibility: hidden; transition: clip-path .9s var(--ease), visibility 0s .9s; }
.viewer.open { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.viewer-x { position: absolute; top: 1rem; right: var(--g); padding: .6rem 1.3rem; border: 1px solid var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85em; transition: background .25s, color .25s; }
.viewer-x:hover { background: var(--ink); color: var(--bg); }
.viewer-img { display: flex; justify-content: center; }
.viewer-img img { height: min(72svh, 100%); width: auto; max-width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--ink); object-fit: cover; }
.viewer-txt { max-width: 34rem; }
.viewer-txt #vMeta { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .6rem; }
.viewer-txt h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; font-size: clamp(3.6rem, 9vw, 9rem); line-height: .88; margin-bottom: 1.2rem; }
.viewer-txt #vDesc { font-size: 1.4em; line-height: 1.1; }
.viewer-txt .note { margin-top: 1.6rem; opacity: .6; }
@media (max-width: 760px) { .viewer { grid-template-columns: 1fr; overflow-y: auto; align-items: start; } .viewer-img img { height: 44svh; } }

.toast { position: fixed; left: 50%; bottom: 1.2rem; z-index: 260; transform: translate(-50%, 250%); background: var(--ink); color: var(--bg); padding: .7rem 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85em; transition: transform .6s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
	.frame { width: 68vw !important; } .pf-intro { width: 70vw; } .pf-end { width: 74vw; }
	}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.work { height: auto !important; }
	.work-pin { position: static; height: auto; overflow-x: auto; padding: calc(var(--g) * 4) 0; perspective: none; }
	.work-line { display: none; }
	.shot img { transform: none; }
	.sw { opacity: 1; }
}

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the track sits in front of the cards that are pushed back in 3D, so it must not catch the pointer */
.work-track { pointer-events: none; }
.work-track > li { pointer-events: auto; }

.loop-gap { pointer-events: none; }

/* working with AI: the statement alone first, then the scene takes the whole screen */
.ai { position: relative; background: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: background .5s; }
.ai-run { position: relative; height: 430vh; }
.ai-pin { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; color: var(--ink); }
.ai-intro { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 0 var(--g); will-change: transform, opacity; }
.ai-intro .bio { font-size: clamp(2.2rem, 5vw, 6.2rem); line-height: 1; max-width: 19em; }
.ai-scene { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.ai-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ai-cap { position: absolute; left: var(--g); bottom: 1.4rem; max-width: 70%; font-family: var(--disp); text-transform: uppercase; font-size: clamp(2rem, 4vw, 4.6rem); line-height: .95; opacity: 0; transform: translateY(.4em); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; background: var(--bg); padding: .1em .3em .05em 0; }
.ai-cap.on { opacity: 1; transform: none; }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.ai-grid > div { padding: 1.2rem var(--g) 1.7rem; border-right: 1px solid var(--ink); }
.ai-grid > div:last-child { border-right: 0; }
.ai-grid dt { font-family: var(--disp); text-transform: uppercase; font-size: clamp(1.8rem, 2.8vw, 3.2rem); line-height: .95; margin-bottom: .6rem; }
.ai-grid dd { font-size: clamp(1.1rem, 1.3vw, 1.45rem); line-height: 1.1; font-weight: 500; max-width: 20em; }
@media (max-width: 900px) {
	.ai-run { height: 380vh; }                                          /* pinned on phones too, so the story has the same timing */
	.ai-intro .bio { font-size: clamp(1.8rem, 6.6vw, 3.2rem); }
	.ai-cap { bottom: 1rem; max-width: 86%; font-size: clamp(1.8rem, 8vw, 3rem); }
	.ai-grid { grid-template-columns: 1fr 1fr; } .ai-grid > div:nth-child(2n) { border-right: 0; } .ai-grid > div { border-bottom: 1px solid var(--ink); }
}

/* the AI statement: words rise into place, two of them get underlined */
.ai-intro .bio .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.ai-intro .bio .w > span { display: inline-block; position: relative; transform: translateY(118%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 26ms); }
.ai-intro .bio.in .w > span { transform: none; }
.ai-intro .bio .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .1em; height: .055em; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.65, 0, .35, 1) 1.5s; }
.ai-intro .bio.in .hl::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .ai-intro .bio .w > span { transform: none; transition: none; } .ai-intro .bio .hl::after { transform: scaleX(1); transition: none; } }
@media (max-width: 640px) { .ai-pin { top: 60px; height: calc(100svh - 60px); } }
