/* Work pages (work/<slug>/): one quiet, centered column shared by every project in Other works.
   Design E: the name, one line and the picture; then what it's built with; then a short editorial read.
   The header and the page transition come from site.css, so the name sits where it does everywhere else. */
:root {
  --w-ink: #111;
  --w-body: #1A1A1A;
  --w-2: #3C3C40;
  --w-muted: #6E6E73;
  --w-ph: #F3F3F1;
  --w-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --w-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --w-serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
}
html { background: #fff }
body.wk { margin: 0; background: #fff; color: var(--w-ink); font-family: var(--w-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
.wk a { color: inherit; text-decoration: none }
.wk a:focus-visible { outline: 2px solid #0A84FF; outline-offset: 3px; border-radius: 2px }

/* the way back, top right, with the same soft backing as the name */
.pk-top .wk-all { margin: -7px -14px; padding: 7px 14px; border-radius: 999px; color: var(--pk-ink); white-space: nowrap;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4) }
.pk-top .wk-all:hover { text-decoration: underline; text-underline-offset: 4px }

/* opening: name, one line, the picture */
.wk-open { max-width: 600px; margin: 0 auto; padding: 132px 24px 0; box-sizing: content-box }
.wk-head { text-align: center; margin: 0 -160px }   /* the name may run wider than the column */
.wk-head h1 { margin: 0; font-size: clamp(52px, 5.4vw, 78px); font-weight: 500; letter-spacing: -.048em; line-height: .94; text-wrap: balance }
.wk-head p { margin: 24px auto 0; max-width: 500px; font-size: 21px; line-height: 1.4; letter-spacing: -.012em; color: #4A4A4F; text-wrap: balance }
.wk-fig { margin: 72px auto 0; width: min(380px, 100%) }
.wk-fig img, .wk-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; box-sizing: border-box; border: 1px solid #E7E7E3 }
.wk-fig img { object-fit: cover; background: var(--w-ph) }
.wk-fig-wide { --fw: min(760px, calc(100vw - 48px)); width: var(--fw); margin: 40px 0 0 calc((100% - var(--fw)) / 2) }   /* wider than the column, still centred */
.wk-fig-wide img { aspect-ratio: auto; border: 0; background: none; object-fit: contain }
.wk-ph { display: grid; place-items: center; background: var(--w-ph); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8A8A8E }

/* the read: a narrower column */
.wk-main { max-width: 540px; margin: 0 auto; padding: 44px 24px 112px; box-sizing: content-box }   /* the page ends on the read; the way back is the top line */

/* built with: the logos on the left, the names on the right */
.wk-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--w-ink) }
.wk-logos { --lg: .78; display: flex; align-items: center; gap: 14px; height: 24px; margin: 0; padding: 0; list-style: none }
.wk-logos li { min-width: 24px; height: 24px; display: grid; place-items: center }
.wk-logos img { width: auto; height: calc(var(--h) * var(--lg)); display: block }
.wk-ph-logo { box-sizing: border-box; border: 1px solid var(--w-ink); font-size: 13px; font-weight: 700 }
.wk-tools p { margin: 0; font-size: 13px; color: var(--w-2); text-align: right }

/* the four parts */
.wk-body { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; font: 400 17px/1.46 var(--w-serif); color: var(--w-body) }
.wk-body h2 { margin: 0 0 4px; font: 700 12px var(--w-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--w-ink) }
.wk-body p { margin: 0; text-wrap: pretty }
.wk-body ul, .wk-body ol { margin: 6px 0 0; padding-left: 22px }
.wk-body ol { padding-left: 24px }
.wk-body li { padding-left: 4px }
.wk-body li + li { margin-top: 0 }
.wk-body li::marker { color: var(--w-ink) }
.wk-body ol li::marker { font: 600 15px var(--w-sans) }
.wk-body strong { font-weight: 600 }
.wk-body .wk-stk li + li { margin-top: 4px }
.wk-body .wk-stk strong { display: block }
.wk-body .wk-lnk { list-style: none; padding: 0; margin: 10px 0 0 }
.wk-body .wk-lnk li { padding: 0 }
.wk-body .wk-lnk li + li { margin-top: 12px }
.wk-body .wk-lnk strong, .wk-body .wk-lnk span, .wk-body .wk-lnk a { display: block }
.wk-body .wk-lnk a { width: fit-content; margin-top: 1px; font: 400 13px var(--w-mono); color: var(--w-2); letter-spacing: 0 }
.wk-body .wk-lnk a:hover { color: var(--w-ink); text-decoration: underline; text-underline-offset: 3px }
.wk-body .wk-lnk a .wk-arrow { display: inline }
.wk-body .wk-after { margin-top: 6px }
.wk-body p + p { margin-top: 6px }
.wk-body .wk-hl { font-size: 20px; line-height: 1.4; font-weight: 600 }
.wk-body .wk-sub { margin-top: 4px; color: var(--w-2) }

/* the way on */
.wk-nav { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 36px; padding: 17px 0 56px; border-top: 1px solid var(--w-ink); font-size: 15px; font-family: var(--w-mono) }
.wk-back { color: #55555A }
.wk-back:hover { color: var(--w-ink) }
.wk-next > span { color: var(--w-muted); margin-right: 10px }
.wk-next strong { font-weight: 600 }
.wk-arrow { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.2,1) }
.wk-next:hover .wk-arrow { transform: translateX(4px) }
.wk-back:hover .wk-arrow, .wk-all:hover .wk-arrow { transform: translateX(-4px) }

/* arriving: the opening settles in, the rest is simply there */
@keyframes wk-rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.wk-head { animation: wk-rise .7s cubic-bezier(.2,.7,.2,1) both }
.wk-fig { animation: wk-rise .7s cubic-bezier(.2,.7,.2,1) .12s both }
@media (prefers-reduced-motion: reduce) { .wk-head, .wk-fig { animation: none } .wk-arrow { transition: none } }

/* opened from the homepage row: the card lands, the picture comes into focus, then the title and its line
   rise together as one block in a single slow swipe, and the rest of the page fades in behind them.
   wk-landed stays on for good, so the opening's own arrival animation can never start over afterwards. */
html.wk-in .wk-head, html.wk-in .wk-main, html.wk-in .pk-top { opacity: 0; animation: none }
html.wk-in .wk-fig, html.wk-landed .wk-fig, html.wk-landed .wk-head { animation: none }
html.wk-in .wk-fig img { opacity: 0 }
html.wk-rising .wk-head { animation: wk-swipe 1.2s cubic-bezier(.16,1,.3,1) both; will-change: transform, opacity }
html.wk-rising .wk-main, html.wk-rising .pk-top { animation: wk-fade .8s ease .55s both }
@keyframes wk-swipe { from { opacity: 0; transform: translateY(40px) } }
@keyframes wk-fade { from { opacity: 0 } }

/* the travelling card (also drawn on the homepage) */
.oc-clone { position: fixed; z-index: 70; margin: 0; overflow: hidden; border-radius: 16px; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 1px #E6E7EA, 0 24px 48px -34px rgba(17,17,17,.22); will-change: transform }
.oc-clone.oc-landed { box-shadow: none; border-radius: 0 }
.oc-clone img { display: block; width: 100%; height: 100%; object-fit: cover }

/* the ranking drawn on the Prospecting Engine card (work-flow.js: fxRank). Invisible until the card travels,
   complete once it has landed (.oc-landed), so the work page picks it up exactly where the homepage left it. */
.oc-clone .fx, .oc-clone .fx-box { position: absolute; inset: 0; display: block; pointer-events: none; opacity: 0 }
.oc-clone .fx-soft img { filter: blur(var(--b)) }
.oc-clone .fx-soft1 { --b: 1.1px; -webkit-mask-image: linear-gradient(180deg, transparent 33%, #000 45%); mask-image: linear-gradient(180deg, transparent 33%, #000 45%) }
.oc-clone .fx-soft2 { --b: 3.2px; -webkit-mask-image: linear-gradient(180deg, transparent 47%, #000 64%); mask-image: linear-gradient(180deg, transparent 47%, #000 64%) }
.oc-clone .fx-wash { background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.45) 70%, rgba(255,255,255,.7) 100%) }
.oc-clone .fx-cell, .oc-clone .fx-num { inset: auto }
.oc-clone .fx-cell { background: #DEE6FF; mix-blend-mode: multiply }   /* the row number's cell, lavender */
.oc-clone .fx-num { background: #3A58FF; mix-blend-mode: lighten }     /* the rank, black to blue (white stays white) */
.oc-clone .fx-box { opacity: 1; overflow: visible }
.oc-clone .fx-box path { fill: none; stroke: #3A58FF; stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1 }
.oc-clone.oc-landed .fx { opacity: 1 }
.oc-clone.oc-landed .fx-box path { stroke-dashoffset: 0 }
.oc-ph { position: absolute; inset: 0; display: block; background: #F4F4F1 }
.oc-ph i, .oc-ph b { position: absolute; left: 9%; height: 4.5%; border-radius: 6px; background: #E9E9E4 }
.oc-ph i:nth-child(1) { top: 15%; width: 34% }
.oc-ph i:nth-child(2) { top: 27%; width: 62%; height: 3.4% }
.oc-ph i:nth-child(3) { top: 34%; width: 50%; height: 3.4% }
.oc-ph b { top: 50%; width: 82%; height: 30%; border-radius: 8px }

@media (max-width: 1000px) { .wk-head { margin: 0 } }
@media (max-width: 640px) {
  .wk-open { padding-top: 104px }
  .wk-tools { flex-wrap: wrap }
  .wk-tools p { text-align: left }
}

/* the fan (Landing Page Generator, work-flow.js: fxFan): the card's other variants live behind it and may leave its edges */
.oc-fan { overflow: visible !important; background: transparent !important; container-type: inline-size }
.oc-fan > .fan-main { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff }
.oc-fan .fan-sib { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px #E6E7EA; transform-origin: 50% 50%; transform: var(--rest); filter: blur(var(--sb, 0px));
  transition: transform .55s cubic-bezier(.22,1,.36,1), filter .55s ease }
.oc-fan .fan-sib img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none }
@media (hover: hover) and (pointer: fine) { .oc:hover .oc-fan .fan-sib { transform: var(--peek); --sb: 1.2px } }
.oc-clone.oc-fan .fan-sib { transition: none }
.oc-fan .fan-arrive { position: absolute; z-index: 2; display: block; opacity: 0; pointer-events: none }
.oc-fan .fan-arrive img { display: block; width: 100%; height: 100%; object-fit: fill }
.oc-clone.oc-fan.oc-landed .fan-sib { transform: var(--end); --sb: 2px; opacity: 0 }
.oc-clone.oc-fan.oc-landed .fan-arrive { opacity: 1 }
@media (prefers-reduced-motion: reduce) { .oc-fan .fan-sib { transition: none } }

/* the sheet (Property Briefs, work-flow.js: fxSheet): the card opens into the whole brief while it travels */
.oc-clone.oc-sheet { overflow: visible !important; background: transparent !important; box-shadow: none !important }
.oc-sheet .sheet-frame { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px #E6E7EA, 0 30px 60px -36px rgba(17,17,17,.3) }
.oc-sheet .sheet-doc { position: absolute; left: 0; width: 100%; display: block; object-fit: fill }
.oc-sheet .sheet-soft { filter: blur(1.6px); opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 20%, transparent 34%, transparent 69%, #000 82%);
          mask-image: linear-gradient(180deg, #000 0%, #000 20%, transparent 34%, transparent 69%, #000 82%) }
/* a flight that ends on the page's own picture */
.oc-arrive { position: fixed; z-index: 71; margin: 0; display: block; pointer-events: none; opacity: 0; object-fit: fill }
/* and on the page, that picture is simply there when the card arrives */
html.wk-imgnow .wk-fig img { opacity: 1 !important }
/*DARK:BEGIN*/
:root[data-theme=dark]{--w-ink:#E9E9E9;--w-body:#E2E2E2;--w-2:#C7C7CC;--w-muted:#A4A4AA;--w-ph:#191918;--w-sans:"Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;--w-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;--w-serif:"Source Serif 4", Charter, "Iowan Old Style", Georgia, serif}
html[data-theme=dark]{background:#111111}
html[data-theme=dark] body.wk{background:#111111;color:var(--w-ink)}
html[data-theme=dark] .wk a{color:inherit;text-decoration:none}
html[data-theme=dark] .wk a:focus-visible{outline:2px solid #4699FF;outline-offset:3px;border-radius:2px}
html[data-theme=dark] .pk-top .wk-all{border-radius:999px;color:var(--pk-ink);background:rgba(17,17,17,0.86);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
html[data-theme=dark] .pk-top .wk-all:hover{text-decoration:underline}
html[data-theme=dark] .wk-head p{color:#BEBEC4}
html[data-theme=dark] .wk-fig img,html[data-theme=dark] .wk-ph{border:1px solid #242421}
html[data-theme=dark] .wk-fig img{background:var(--w-ph)}
html[data-theme=dark] .wk-fig-wide{--fw:min(760px, calc(100vw - 48px))}
html[data-theme=dark] .wk-fig-wide img{border:0;background:none}
html[data-theme=dark] .wk-ph{background:var(--w-ph);color:#909094}
html[data-theme=dark] .wk-tools{border-top:1px solid var(--w-ink)}
html[data-theme=dark] .wk-logos{--lg:.78}
html[data-theme=dark] .wk-ph-logo{border:1px solid var(--w-ink)}
html[data-theme=dark] .wk-tools p{color:var(--w-2)}
html[data-theme=dark] .wk-body{color:var(--w-body)}
html[data-theme=dark] .wk-body h2{color:var(--w-ink)}
html[data-theme=dark] .wk-body li::marker{color:var(--w-ink)}
html[data-theme=dark] .wk-body .wk-lnk a{color:var(--w-2)}
html[data-theme=dark] .wk-body .wk-lnk a:hover{color:var(--w-ink);text-decoration:underline}
html[data-theme=dark] .wk-body .wk-sub{color:var(--w-2)}
html[data-theme=dark] .wk-nav{border-top:1px solid var(--w-ink)}
html[data-theme=dark] .wk-back{color:#B6B6BC}
html[data-theme=dark] .wk-back:hover{color:var(--w-ink)}
html[data-theme=dark] .wk-next > span{color:var(--w-muted)}
html[data-theme=dark] .oc-clone{border-radius:16px;background:#111111;box-shadow:0 0 0 1px #222325, 0 24px 48px -34px rgba(0,0,0,0.418)}
html[data-theme=dark] .oc-clone.oc-landed{box-shadow:none;border-radius:0}
html[data-theme=dark] .oc-clone .fx-soft img{filter:blur(var(--b))}
html[data-theme=dark] .oc-clone .fx-soft1{--b:1.1px}
html[data-theme=dark] .oc-clone .fx-soft2{--b:3.2px}
html[data-theme=dark] .oc-clone .fx-wash{background:linear-gradient(180deg, rgba(17,17,17,0) 42%, rgba(17,17,17,0.45) 70%, rgba(17,17,17,0.7) 100%)}
html[data-theme=dark] .oc-clone .fx-cell{background:#1E2335}
html[data-theme=dark] .oc-clone .fx-num{background:#3A58FF}
html[data-theme=dark] .oc-clone .fx-box path{fill:none;stroke:#6D90FF;stroke-width:5;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1}
html[data-theme=dark] .oc-clone.oc-landed .fx-box path{stroke-dashoffset:0}
html[data-theme=dark] .oc-ph{background:#191917}
html[data-theme=dark] .oc-ph i,html[data-theme=dark] .oc-ph b{border-radius:6px;background:#22221E}
html[data-theme=dark] .oc-ph b{border-radius:8px}
html[data-theme=dark] .oc-fan{background:transparent !important}
html[data-theme=dark] .oc-fan > .fan-main{border-radius:inherit;background:#111111}
html[data-theme=dark] .oc-fan .fan-sib{border-radius:16px;background:#111111;box-shadow:0 0 0 1px #222325;filter:blur(var(--sb, 0px))}
@media (hover: hover) and (pointer: fine){html[data-theme=dark] .oc:hover .oc-fan .fan-sib{--sb:1.2px}}
html[data-theme=dark] .oc-clone.oc-fan.oc-landed .fan-sib{--sb:2px}
html[data-theme=dark] .oc-clone.oc-sheet{background:transparent !important;box-shadow:none !important}
html[data-theme=dark] .oc-sheet .sheet-frame{border-radius:16px;background:#111111;box-shadow:0 0 0 1px #222325, 0 30px 60px -36px rgba(0,0,0,0.57)}
html[data-theme=dark] .oc-sheet .sheet-soft{filter:blur(1.6px)}

/*DARK:END*/
