/* QE V5: source-derived portfolio primitives. Exact original modules are retained in docs/reference-v5. */
@font-face{font-family:'Courier Prime';src:url('fonts/CourierPrime-Wooster-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Courier Prime';src:url('fonts/CourierPrime-Wooster-700.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Courier Prime';src:url('fonts/CourierPrime-Italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Old London';src:url('fonts/OldLondon.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Space Mono';src:url('fonts/SpaceMono-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--paper:#000;--ground:#000;--ink:#e9e7e2;--muted:#a09d97;--soft:#a09d97;--hair:rgba(255,255,255,.17);--blue:#fff;--accent:#e9e7e2;--red:#f40009;--wash:#0d0d0d;--display:'Old London',serif;--body:'Courier Prime',ui-monospace,'Courier New',monospace;--mono:var(--body);--left:clamp(20px,7vw,72px)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--paper)}
body{margin:0;background:var(--paper);color:#cfccc6;font:400 15px var(--body);-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
body[data-protected]:not(.gate-ready)>:not(noscript){visibility:hidden}
[hidden]{display:none!important}button,input{font:inherit}button{cursor:pointer}a{color:var(--ink);text-decoration:none;transition:color .12s}a:hover{color:var(--blue)}
:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:disabled{cursor:default}
.wrap{padding:0 14px;display:flex;flex-direction:column;min-height:100vh}
.pagehead{padding:10px 0 0}
.pagetitle{font-family:var(--display);font-size:clamp(24px,2.7vw,31px);font-weight:400;color:var(--red);letter-spacing:0;line-height:1.1;margin:0}
.backline{display:inline-block;font-family:var(--body);font-size:9.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;opacity:.55;margin:0 0 10px}.backline:hover{opacity:1}
body:not(.brand):not(.bookbody) p{color:rgba(255,255,255,.86)}
html::after{
  content:'';position:fixed;inset:0;z-index:400;pointer-events:none;
  opacity:.5;mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' exponent='5.2' amplitude='1.5'/%3E%3CfeFuncG type='gamma' exponent='5.2' amplitude='1.5'/%3E%3CfeFuncB type='gamma' exponent='5.2' amplitude='1.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px;
}
/* and the slow fall-off the scan has at its edges */
html::before{
  content:'';position:fixed;inset:0;z-index:399;pointer-events:none;
  background:radial-gradient(122% 94% at 46% 38%,transparent 40%,rgba(0,0,0,.6) 100%);
}

.wgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:34px 22px;margin:0 0 10px}
/* on Writing the cards are <button>s — they open the sheet instead of
   navigating — so they need the browser's button chrome taken off */
.wcard{display:flex;flex-direction:column;border:0;padding:0;background:none;
  text-align:left;font:inherit;color:inherit;cursor:pointer;width:100%}
.wimg{aspect-ratio:4/3;overflow:hidden;background:#f3f3f2}
.wimg img{width:100%;height:100%;object-fit:cover;display:block;
  filter:grayscale(1);transition:filter .22s ease,transform .5s ease}
.wcard:hover .wimg img,.wcard:active .wimg img,.wcard.lit .wimg img{
  filter:none;transform:scale(1.02)}
.wt{font-size:11.5px;line-height:1.45;letter-spacing:.01em;text-transform:uppercase;
  margin-top:9px}
.wcard:hover .wt,.wcard.lit .wt{color:var(--blue)}
@media(max-width:1180px){.wgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.wgrid{grid-template-columns:repeat(2,1fr);gap:26px 14px}}


.filters{
  display:flex;flex-wrap:wrap;gap:7px;
  margin:4px 0 26px;padding-bottom:16px;border-bottom:1px solid var(--hair);
}
.filt{
  font-family:var(--body);font-size:10.5px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;line-height:1;white-space:nowrap;cursor:pointer;
  border:1px solid var(--ink);background:#fff;color:var(--ink);
  padding:9px 14px 8px;border-radius:2px;
  transition:background .13s,color .13s,border-color .13s;
}
.filt:hover{color:var(--blue);border-color:var(--blue)}
.filt[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.filt .n{opacity:.5;margin-left:7px;font-weight:400}
.filt[aria-pressed=true] .n{opacity:.6}
[data-cat].hide,.gsec.hide{display:none}
@media(max-width:560px){.filt{font-size:9.5px;padding:8px 11px 7px;letter-spacing:.1em}}

.pfolio{max-width:1180px;margin:0 auto;padding:0 0 40px}

.pfolio-hero{margin:22px 0 0}
.pfolio-hero img{display:block;max-width:100%;max-height:82vh;
  width:auto;height:auto;margin:0 auto}

/* the opener: title, role line, and the two-column intro off book p.40 */
.pfolio-open{padding:34px 0 0;border-top:1px solid var(--hair);margin-top:26px}
.pfolio-title{font-size:clamp(22px,3.1vw,38px);font-weight:700;letter-spacing:-.03em;
  line-height:1.08;text-transform:uppercase;text-align:center;color:var(--ink)}
.pfolio-role{font-family:'Space Mono',monospace;font-size:11.5px;letter-spacing:.06em;
  text-transform:uppercase;color:rgba(0,0,0,.6);text-align:center;padding:9px 0 0}
.pfolio-intro{column-count:2;column-gap:44px;padding:30px 0 0;max-width:920px;
  margin:0 auto;font-size:13.5px;line-height:1.62;color:rgba(0,0,0,.82);text-align:justify}
.pfolio-intro p{margin:0 0 14px;break-inside:avoid}

/* one unit = pictures, heading, text. The heading and text hang under the
   pictures they belong to, which is what makes the rhythm read as the book's. */
.pfolio-page{padding:64px 0 0}
.pfolio-h{font-family:'Space Mono',monospace;font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;text-align:center;padding:26px 0 0;color:var(--ink)}
.pfolio-t{max-width:730px;margin:0 auto;padding:13px 0 0;font-size:13.5px;
  line-height:1.72;color:rgba(0,0,0,.82);text-align:center}
.pfolio-t.flush{text-align:justify;max-width:900px}   /* book p.48 sets this one flush left */
.pfolio-cap{font-family:'Space Mono',monospace;font-size:10px;letter-spacing:.09em;
  text-transform:uppercase;color:rgba(0,0,0,.5);text-align:center;padding:11px 0 0}

/* picture blocks. A row is a flex line whose figures carry their own aspect
   as flex-grow, so every picture in the line lands on the same height without
   a single hard-coded dimension. */
.pfolio-plate img{display:block;width:100%;height:auto}
/* height-capped so a portrait plate can't eat the whole screen. max-width
   matters as much as max-height: width:auto on its own lets the picture
   claim its intrinsic width, which on a phone widens the layout viewport
   for the whole page. */
.pfolio-plate.tall img{max-height:88vh;max-width:100%;width:auto;margin:0 auto}
.pfolio-row{display:flex;gap:14px;align-items:flex-start}
.pfolio-row figure{flex:1 1 0;min-width:0;margin:0}
.pfolio-row img{display:block;width:100%;height:auto}
.pfolio-row figcaption,.pfolio-plate figcaption{font-family:'Space Mono',monospace;
  font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  color:rgba(0,0,0,.5);padding:7px 0 0}
/* the twelve massing studies, three across as they sit on book p.44 */
.pfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.pfolio-grid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}

/* on the plate. The book's pages are white paper, so the pictures stay as
   they are and only the type moves — same two greys the rest of the black
   pages use, so a project page reads as one page and not two. */
body:not(.brand):not(.bookbody) .pfolio-intro,
body:not(.brand):not(.bookbody) .pfolio-t{color:#cfccc6}
body:not(.brand):not(.bookbody) .pfolio-role,
body:not(.brand):not(.bookbody) .pfolio-cap,
body:not(.brand):not(.bookbody) .pfolio-row figcaption,
body:not(.brand):not(.bookbody) .pfolio-plate figcaption{color:#a09d97}

@media(max-width:820px){
  .pfolio-intro{column-count:1;font-size:14px;text-align:left}
  .pfolio-t{text-align:left;padding-left:2px;padding-right:2px}
  .pfolio-page{padding-top:44px}
  .pfolio-row{flex-wrap:wrap;gap:10px}
  .pfolio-row figure{flex:1 1 46%}
  .pfolio-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .pfolio-hero img{max-height:56vh}
}


/* Winning dark overrides from portfolio site.css. */
.filt{background:#0d0d0d;border-color:rgba(255,255,255,.4);color:#e9e7e2}
.filt[aria-pressed=true]{background:#e9e7e2;color:#000;border-color:#e9e7e2}
.filt[aria-pressed=true] .n{color:#000;opacity:.62}
.wimg{background:#0b0b0b}.wimg img{object-fit:contain}.wt{color:#a09d97}
@media(max-width:560px){.filt{font-size:9.5px;padding:8px 11px 7px;letter-spacing:.1em}}
/* QE content adapters: the portfolio's same role treatments, with local routes. */
.sheet{flex:1;min-height:75vh}
.qe-workspace .wrap{padding-top:30px}.desktop-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin:0 0 18px;font:400 11px/1.7 var(--body);letter-spacing:.1em;text-transform:uppercase}.desktop-toolbar p{margin:0}.desktop-toolbar .actions{display:flex;gap:22px}.text-button{border:0;background:none;color:var(--ink);padding:8px 0;font:400 10px/1.5 var(--body);letter-spacing:.11em;text-transform:uppercase;min-height:32px}
.desktop{position:relative;min-height:500px;flex:1;margin:0 var(--left) 65px;height:calc(100svh - 215px)}
.folder{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;width:max-content;max-width:100%;padding:0;border:0;background:none;cursor:pointer;color:var(--ink);text-decoration:none}
.folder img{display:block;width:clamp(34px,3.4vw,44px);height:auto;filter:none;object-fit:contain}
.folder span{font:700 8px/1 'XS Header Courier','Courier Prime','Courier New',monospace;letter-spacing:.15em;text-transform:uppercase;white-space:nowrap;color:#fff;background:rgba(255,255,255,.16);border-radius:8px;padding:3px 7px 2px}
.folder:hover span{background:rgba(255,255,255,.28)}
.desktop .desktop-folder{position:absolute;min-width:100px;min-height:78px}
.folder-grid{display:flex;flex-wrap:wrap;gap:38px;padding:26px 0}
.qe-brief{width:100%;max-width:730px;margin:26px auto 70px;padding-top:34px;border-top:1px solid var(--hair)}
.qe-brief dl{margin:0}.qe-brief .brief-row{border-bottom:1px solid var(--hair);padding:20px 0;display:flex;align-items:baseline;justify-content:space-between;gap:28px}.qe-brief dt{font:400 10px/1.6 'Space Mono',monospace;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}.qe-brief dd{margin:0;font:400 13.5px/1.72 var(--body);color:#cfccc6}
.qe-study-grid{margin-top:26px;grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:70px}.qe-study-grid .wimg{display:block;width:100%}.qe-study-grid .wt{font-family:'Space Mono',monospace;font-size:10px;letter-spacing:.09em;line-height:1.6}
.qe-footer{margin:35px 14px 65px;padding-top:20px;border-top:1px solid var(--hair);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font:400 10px/1.6 var(--body);letter-spacing:.1em;text-transform:uppercase}
.pfolio{width:100%}.pfolio-t p{margin:0 0 12px}.pfolio-t p:last-child{margin-bottom:0}
body[data-project-title-font='old-london'] :is(.pagetitle,.pfolio-title){font-family:var(--display);font-weight:400;font-synthesis:none;text-transform:none;letter-spacing:0;line-height:1.1;overflow-wrap:anywhere}
.qe-home .xs-site-header,.qe-workspace .xs-site-header{flex:0 0 auto}.xs-site-header{position:relative;z-index:12}
.qe-home .wordmark{display:inline-flex}.wordmark.qe-typewriter-wordmark{font-size:10.5px}
@media(max-width:820px){.qe-study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.desktop{min-height:60svh;height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:70px 20px;align-content:start;padding-top:55px;margin-inline:10px}.desktop .desktop-folder{position:static;justify-self:center;width:100%;min-width:0}.desktop-toolbar{flex-wrap:wrap;gap:8px;font-size:10px}.desktop-toolbar .actions{margin-left:auto}.qe-brief .brief-row{flex-direction:column;gap:8px}.qe-study-grid{grid-template-columns:1fr}.qe-study-grid .wcard{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:14px}.qe-study-grid .wt{margin:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Folder dimensions and finish measured from the current portfolio cover DOM. */
.folder{gap:5px}
.folder img,body .xs-site-header .xs-site-folder img{filter:saturate(.85) brightness(1.04)}
.folder:hover img,body .xs-site-header .xs-site-folder:hover img{filter:saturate(1) brightness(1.1);transform:translateY(-2px)}
