/* JTA's moving portfolio. The original lattice remains the background. */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; overflow-y: auto; background: #f1f1ee; }
body.workspace-open, body.project-is-open { overflow: hidden; }
body:has(.portfolio-landing) { --folio-ink: #20221f; --folio-muted: #666b65; --folio-line: rgba(40,46,38,.2); --folio-green: #4d7b30; --folio-paper: rgba(244,244,241,.84); }
body[data-tone="graphite"] { --folio-paper: rgba(225,227,222,.86); --folio-line: rgba(40,46,38,.28); }
body[data-tone="mist"] { --folio-paper: rgba(250,250,248,.8); }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
.portfolio-landing { --folio-gutter: 48px; position: relative; inset: auto; width: 100%; height: auto; min-height: 100vh; padding: 0; z-index: 1; color: var(--folio-ink); }
.folio-shell { width: calc(100% - 2 * var(--folio-gutter)); margin-inline: auto; }
.folio-mono { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; }
.folio-nav { display: flex; justify-content: space-between; align-items: center; min-height: 104px; padding-inline: var(--folio-gutter); border-bottom: 1px solid var(--folio-line); gap: 24px; }
.folio-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.folio-brand img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.folio-wordmark { display: grid; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.folio-wordmark span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.folio-nav-links { display: flex; align-items: center; gap: 28px; }
.folio-nav-links a { text-decoration: none; padding-block: 10px; }
.folio-nav-links a:hover { color: var(--folio-green); }
.folio-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--folio-line); background: rgba(243,244,240,.82); color: var(--folio-ink); padding: 13px 18px; cursor: pointer; text-decoration: none; font: inherit; font-size: 12px; transition: background .2s, color .2s; }
.folio-button:hover { background: var(--folio-ink); color: #fff; }
.folio-button .arrow { font-size: 20px; line-height: 1; }
.folio-button-primary { color: #fff; background: var(--folio-green); border-color: var(--folio-green); }
.folio-button:focus-visible, .project-card:focus-visible, .folio-link:focus-visible, .filter-button:focus-visible, .guide-toggle:focus-visible { outline: 2px solid var(--folio-green); outline-offset: 5px; }
.edition-strip { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--folio-gutter); color: #62675f; }
.edition-label { display: inline-flex; align-items: center; gap: 9px; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--folio-green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(77,123,48,.1); }
.edition-strip span:last-child { text-align: right; }
.folio-hero { position: relative; isolation: isolate; min-height: clamp(680px, 80svh, 960px); display: grid; align-items: center; padding: 100px var(--folio-gutter) 140px; color: #fff; background: #252b23; }
.hero-copy { position: relative; z-index: 2; width: 65%; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-kicker { display: flex; align-items: center; gap: 22px; color: #c9dfaf; margin: 0 0 28px; }
.hero-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.folio-headline { font-size: clamp(64px, 7.8vw, 132px); font-weight: 400; letter-spacing: -.075em; line-height: .98; margin: 0 0 30px; max-width: 11ch; overflow-wrap: normal; text-wrap: balance; }
.folio-intro { max-width: 40ch; color: #f0f2ec; line-height: 1.7; font-size: 14px; margin: 0 0 33px; }
.folio-link { display: inline-flex; gap: 35px; align-items: center; border-bottom: 1px solid var(--folio-ink); padding-block: 10px; text-decoration: none; font-size: 12px; }
.folio-link span { font-size: 22px; }
.hero-copy .folio-link { border-color: #ffffff80; }
.hero-copy .folio-link:hover { border-color: #fff; }
.hero-copy .folio-link:focus-visible { outline-color: #fff; }
.hero-visual { position: absolute; inset: 0; min-width: 0; }
.hero-feature { width: 100%; height: 100%; }
.hero-visual .project-card { width: 100%; height: 100%; aspect-ratio: auto; }
.hero-visual .project-card::after { background: linear-gradient(90deg,rgba(13,20,12,.8),rgba(13,20,12,.53) 40%,rgba(13,20,12,.05) 76%),linear-gradient(180deg,rgba(0,0,0,.28),transparent 30%,rgba(0,0,0,.12) 55%,rgba(0,0,0,.8)); }
.hero-visual .project-card:focus-visible { outline: 2px solid #fff; outline-offset: -8px; }
.hero-visual .project-card .card-top { inset: 28px var(--folio-gutter) auto; }
.hero-visual .card-caption { left: auto; right: var(--folio-gutter); bottom: 70px; width: min(28%,360px); }
.hero-visual .project-card h3 { font-size: clamp(25px, 2.3vw, 38px); }
.hero-coordinate { position: absolute; z-index: 1; left: var(--folio-gutter); bottom: 24px; margin: 0; color: #e5e9df; pointer-events: none; }
.hero-coordinate-right { left: auto; right: var(--folio-gutter); }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--folio-line); padding-block: 19px; color: var(--folio-muted); gap: 20px; }
.hero-bottom p { margin: 0; }
.hero-bottom strong { font-weight: 400; color: var(--folio-ink); }
.motion-toggle { border: 0; padding: 8px 0; background: none; font: inherit; color: var(--folio-muted); cursor: pointer; }
.motion-toggle span { color: var(--folio-green); margin-left: 12px; }
.folio-section { padding-block: 105px 30px; scroll-margin-top: 30px; }
.section-marker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; color: var(--folio-muted); }
.section-marker span:first-child { color: var(--folio-green); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-heading h2 { font-weight: 400; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.055em; margin: 0; max-width: 15ch; }
.section-heading > p { margin: 0; max-width: 32ch; font-size: 13px; line-height: 1.7; color: var(--folio-muted); }
.portfolio-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; border-block: 1px solid var(--folio-line); padding-block: 12px; margin-bottom: 40px; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { border: 1px solid transparent; background: transparent; color: var(--folio-muted); font-family: inherit; font-size: 11px; padding: 9px 14px; cursor: pointer; border-radius: 0; }
.filter-button[aria-pressed="true"] { color: #fff; background: var(--folio-ink); }
.filter-button:hover:not([aria-pressed="true"]) { border-color: var(--folio-line); }
.project-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); align-items: start; gap: 50px 36px; }
.project-card { position: relative; display: block; isolation: isolate; overflow: hidden; border: 0; border-radius: 0; padding: 0; background: #aeb3a9; text-align: left; color: #fff; cursor: pointer; width: 100%; aspect-ratio: 1.15; }
.project-grid > .project-card { grid-column: span 7; }
.project-grid > .project-card:nth-child(4n+2), .project-grid > .project-card:nth-child(4n+3) { grid-column: span 5; aspect-ratio: .83; }
.project-grid > .project-card:nth-child(4n+2) { margin-top: 125px; }
.project-grid > .project-card:nth-child(4n+3) { margin-top: -90px; }
.project-grid > .project-card:nth-child(4n+4) { margin-top: 36px; }
.project-grid[data-layout="sequence"] > .project-card { grid-column: 2 / 12; aspect-ratio: 1.9; margin-top: 0; }
.project-grid[data-layout="sequence"] > .project-card:nth-child(2n) { grid-column: 4 / 13; aspect-ratio: 1.5; }
.project-grid[data-layout="gallery"] > .project-card { grid-column: span 6; aspect-ratio: 1.04; margin-top: 0; }
.project-image { position: absolute; width: 100%; height: 118%; top: -9%; inset-inline: 0; object-fit: cover; transform: translate3d(0,var(--image-drift,0px),0) scale(1.035); transition: filter .35s; will-change: transform; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.35),transparent 33%,rgba(0,0,0,.12) 50%,rgba(0,0,0,.82)); z-index: 1; pointer-events: none; }
.project-card:hover .project-image { filter: brightness(1.09); }
.project-card .card-top { position: absolute; inset: 25px 25px auto; display: flex; align-items: start; justify-content: space-between; gap: 15px; z-index: 2; text-shadow: 0 1px 10px #0008; }
.card-kind { display: flex; align-items: center; gap: 9px; }
.card-kind::before { content: ""; width: 4px; height: 4px; background: #b7d39e; }
.card-caption { position: absolute; bottom: 27px; left: 28px; right: 28px; z-index: 2; }
.card-caption h3 { font-family: "Inter",sans-serif; font-size: clamp(28px,3vw,48px); line-height: 1.05; letter-spacing: -.05em; font-weight: 400; margin: 0 44px 13px 0; max-width: 16ch; text-wrap: balance; }
.card-caption p { max-width: 48ch; font-size: 12px; line-height: 1.6; color: #ebeee7; margin: 0; }
.card-facts { margin-top: 14px; opacity: .75; font-size: 9px; line-height: 1.6; }
.card-arrow { position: absolute; right: 0; top: 0; width: 33px; height: 33px; border: 1px solid #ffffff7a; border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: background .2s, color .2s; }
.project-card:hover .card-arrow { background: #fff; color: #242823; }
.portfolio-empty { padding: 35px 0; color: var(--folio-muted); line-height: 1.6; }
.portfolio-empty:empty { display: none; }
.portfolio-ending { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--folio-line); color: var(--folio-muted); }
.manifesto-aside { color: var(--folio-green); }
.manifesto-aside p { margin-top: 22px; color: var(--folio-muted); font-size: 12px; line-height: 1.7; max-width: 23ch; }
.folio-footer { padding: 40px var(--folio-gutter) 110px; border-top: 1px solid var(--folio-line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.folio-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; align-items: center; }
.folio-footer-links a, .folio-footer-links button { font: inherit; text-decoration: none; color: var(--folio-muted); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--folio-green); transform: scaleX(var(--read-progress,0)); transform-origin: left; z-index: 30; pointer-events: none; }
.guide-toggle { position: fixed; bottom: 25px; right: 30px; z-index: 20; display: flex; align-items: center; gap: 22px; border: 1px solid #4d7b30; padding: 16px 21px; background: #4d7b30; color: #fff; cursor: pointer; box-shadow: 0 8px 28px #26331e25; font: 12px "Inter",sans-serif; }
.guide-toggle .guide-mark { font: 20px "JetBrains Mono",monospace; }
.guide-toggle { cursor: grab; touch-action: none; user-select: none; }
.guide-toggle.is-manipulating { cursor: grabbing; }
.guide-toggle[hidden] { display: none; }
.guide-panel { position: fixed; bottom: 24px; right: 24px; width: 400px; height: min(590px,calc(100svh - 48px)); z-index: 45; display: flex; flex-direction: column; border: 1px solid #abb0a6; background: rgba(246,247,243,.98); box-shadow: 0 20px 80px #151d1529; color: var(--folio-ink); }
.guide-panel[hidden] { display: none; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--folio-line); flex-shrink: 0; }
.guide-heading { flex: 1; min-width: 0; padding-left: 17px; position: relative; cursor: grab; touch-action: none; user-select: none; }
.guide-heading::before { content: "⠿"; position: absolute; left: -3px; top: 2px; color: var(--folio-muted); font-size: 17px; }
.guide-heading:focus-visible, .panel-resize:focus-visible { outline: 2px solid var(--folio-green); outline-offset: 3px; }
.guide-panel.is-manipulating { user-select: none; }
.guide-panel.is-manipulating .guide-heading { cursor: grabbing; }
.guide-panel > .guide-context, .guide-panel > .guide-form, .guide-panel > .guide-note { flex-shrink: 0; }
.guide-panel .guide-close { flex-shrink: 0; }
.panel-resize { position: absolute; z-index: 4; touch-action: none; }
.panel-resize[data-panel-resize="n"], .panel-resize[data-panel-resize="s"] { left: 12px; right: 12px; height: 10px; cursor: ns-resize; }
.panel-resize[data-panel-resize="n"] { top: -5px; }
.panel-resize[data-panel-resize="s"] { bottom: -5px; }
.panel-resize[data-panel-resize="e"], .panel-resize[data-panel-resize="w"] { top: 12px; bottom: 12px; width: 10px; cursor: ew-resize; }
.panel-resize[data-panel-resize="e"] { right: -5px; }
.panel-resize[data-panel-resize="w"] { left: -5px; }
.panel-resize[data-panel-resize="ne"], .panel-resize[data-panel-resize="nw"], .panel-resize[data-panel-resize="sw"], .panel-resize[data-panel-resize="se"] { width: 18px; height: 18px; }
.panel-resize[data-panel-resize="nw"] { top: -5px; left: -5px; cursor: nwse-resize; }
.panel-resize[data-panel-resize="ne"] { top: -5px; right: -5px; cursor: nesw-resize; }
.panel-resize[data-panel-resize="sw"] { bottom: -5px; left: -5px; cursor: nesw-resize; }
.panel-resize[data-panel-resize="se"] { bottom: 0; right: 0; width: 24px; height: 24px; border: 0; padding: 0; background: transparent; color: var(--folio-green); font-size: 18px; cursor: nwse-resize; }
.guide-panel.is-compact .guide-header { padding-block: 10px; }
.guide-panel.is-compact .guide-header p, .guide-panel.is-compact .guide-note { display: none; }
.guide-panel.is-compact .guide-context, .guide-panel.is-compact .guide-form { padding-block: 9px; }
.guide-header h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
.guide-header p { margin: 5px 0 0; color: var(--folio-muted); font-size: 10px; }
.guide-close, .project-close { border: 1px solid var(--folio-line); background: transparent; width: 34px; height: 34px; font-size: 21px; cursor: pointer; color: inherit; }
.guide-context { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 11px; border-bottom: 1px solid var(--folio-line); }
.guide-context img { width: 46px; height: 46px; object-fit: cover; flex-shrink: 0; }
.guide-context-copy { flex: 1; min-width: 0; }
.guide-context-copy span { display: block; margin-bottom: 6px; color: var(--folio-muted); font-size: 9px; }
.guide-context-copy strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.guide-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 17px; }
.guide-message { font-size: 13px; line-height: 1.65; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-message[data-role="user"] { background: #e5e9e0; padding: 11px 14px; margin-left: 28px; align-self: end; }
.guide-message-context { display: block; margin-bottom: 6px; font: 9px/1.5 "JetBrains Mono",monospace; color: #53614a; }
.guide-message[data-role="assistant"] { padding-right: 12px; }
.guide-message[data-role="error"] { color: #735031; }
.guide-form { padding: 15px; border-top: 1px solid var(--folio-line); display: flex; gap: 8px; }
.guide-form input { min-width: 0; flex: 1; border: 0; border-bottom: 1px solid var(--folio-line); background: transparent; padding: 10px 4px; font: 12px "Inter",sans-serif; color: inherit; }
.guide-form input:focus { outline: none; border-color: var(--folio-green); }
.guide-form button { width: 42px; border: 0; color: white; background: var(--folio-green); font-size: 22px; cursor: pointer; }
.guide-form button:disabled { opacity: .45; cursor: wait; }
.guide-note { font-size: 9px; color: var(--folio-muted); padding: 0 30px 13px 18px; margin: 0; }
.project-dialog { padding: 0; width: min(1380px,96vw); height: 92svh; max-width: none; max-height: none; border: 1px solid #929b8b; background: #eeefea; color: #20221f; }
.project-dialog::backdrop { background: #11180fb8; backdrop-filter: blur(8px); }
.project-dialog-top { position: sticky; top: 0; z-index: 3; background: rgba(239,240,235,.96); border-bottom: 1px solid var(--folio-line); display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; }
.project-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 32px; align-items: start; }
.project-detail-info { position: sticky; top: 94px; }
.project-detail-info h2 { margin: 18px 0 24px; font-size: clamp(35px,4vw,60px); letter-spacing: -.055em; font-weight: 400; line-height: 1.03; }
.project-detail-info p { font-size: 14px; line-height: 1.75; }
.project-detail-info dl { display: grid; grid-template-columns: 1fr 1fr; padding-block: 15px; border-block: 1px solid var(--folio-line); margin: 25px 0; gap: 10px; font-size: 11px; line-height: 1.6; }
.project-detail-info dt { color: var(--folio-muted); }
.project-detail-info dd { margin: 0; }
.project-detail-info .folio-button { margin-block: 15px; }
.project-gallery { display: grid; gap: 28px; }
.project-gallery figure { margin: 0; }
.project-gallery img { width: 100%; height: auto; display: block; background: #dadfd4; }
.project-gallery figcaption { font-size: 11px; line-height: 1.65; padding-top: 10px; color: var(--folio-muted); }
.skip-link { position: fixed; top: -100px; left: 15px; padding: 12px; background: #fff; color: #111; z-index: 100; }
.skip-link:focus { top: 15px; }
body.workspace-open .guide-toggle { display: none; }
@media (min-width: 1650px) { .portfolio-landing { --folio-gutter: 80px; } }
@media (max-width: 1000px) {
  .portfolio-landing { --folio-gutter: 24px; }
  .folio-nav-links { gap: 18px; }
  .folio-headline { font-size: clamp(60px,8.5vw,85px); }
  .hero-visual .card-caption { width: 29%; }
  .hero-visual .card-caption p { display: none; }
  .project-grid { gap: 35px 22px; }
  .card-caption { left: 20px; right: 20px; bottom: 20px; }
  .card-caption h3 { font-size: 32px; }
  .project-grid > .project-card:nth-child(4n+2) { margin-top: 90px; }
  .project-grid > .project-card:nth-child(4n+3) { margin-top: -60px; }
}
@media (max-width: 700px) {
  body { overflow-y: auto; }
  .portfolio-landing { --folio-gutter: 18px; }
  .folio-nav { min-height: 84px; gap: 12px; }
  .folio-brand img { width: 40px; height: 40px; }
  .folio-wordmark { font-size: 13px; }
  .folio-wordmark span { font-size: 8px; }
  .folio-nav-links > a { display: none; }
  .folio-nav-links .folio-button { padding: 11px 12px; gap: 12px; font-size: 11px; }
  .edition-strip { font-size: 8px; gap: 15px; }
  .edition-strip .edition-descriptor { display: none; }
  .folio-hero { min-height: 640px; padding-block: 90px 190px; }
  .hero-copy { width: 100%; }
  .hero-kicker { margin-bottom: 22px; }
  .folio-headline { font-size: clamp(48px,13vw,76px); max-width: 11ch; margin-bottom: 22px; }
  .folio-intro { font-size: 13px; margin-bottom: 18px; max-width: 45ch; }
  .hero-visual .project-card::after { background: linear-gradient(90deg,rgba(13,20,12,.62),rgba(13,20,12,.38)),linear-gradient(180deg,rgba(0,0,0,.22),transparent 65%,rgba(0,0,0,.8)); }
  .hero-visual .card-caption { left: var(--folio-gutter); width: auto; bottom: 62px; padding-top: 18px; border-top: 1px solid #ffffff50; }
  .hero-visual .card-arrow { top: 18px; }
  .hero-coordinate { font-size: 8px; bottom: 24px; }
  .hero-bottom { font-size: 8px; gap: 14px; }
  .hero-bottom .edition-descriptor { display: none; }
  .folio-section { padding-top: 65px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading h2 { font-size: 43px; }
  .section-heading > p { max-width: 42ch; }
  .portfolio-toolbar { gap: 8px; }
  .filter-button { padding: 8px 10px; font-size: 10px; }
  .project-grid { display: flex; flex-direction: column; gap: 25px; }
  .project-grid > .project-card, .project-grid > .project-card:nth-child(n), .project-grid[data-layout] > .project-card:nth-child(n) { margin: 0; aspect-ratio: .95; }
  .project-grid > .project-card:nth-child(3n+2) { width: 88%; align-self: end; aspect-ratio: .8; }
  .card-caption h3 { font-size: 33px; }
  .card-caption p { font-size: 11px; }
  .project-card .card-top { inset: 20px 20px auto; font-size: 8px; }
  .portfolio-ending { align-items: start; font-size: 9px; }
  .manifesto-aside p { max-width: none; margin-top: 12px; }
  .folio-footer { flex-direction: column; align-items: start; }
  .folio-footer-links { justify-content: flex-start; font-size: 9px; }
  .guide-toggle { bottom: 18px; right: 18px; padding: 14px 17px; }
  .guide-panel { width: calc(100% - 24px); right: 12px; bottom: 12px; height: min(560px,calc(100dvh - 30px)); }
  .project-dialog { width: 100vw; height: 100dvh; border: 0; }
  .project-detail { grid-template-columns: 1fr; gap: 25px; padding: 20px; }
  .project-detail-info { position: static; grid-row: 1; }
  .project-detail-info h2 { font-size: 42px; }
  .project-dialog-top { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image { transform: none !important; transition: none !important; will-change: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
body[data-image-motion="off"] .project-image { transform: none !important; will-change: auto; }

@keyframes folio-breathe {
  from { transform: translate3d(0,var(--image-drift,0px),0) scale(1.025); }
  to { transform: translate3d(0,var(--image-drift,0px),0) scale(1.095); }
}
body[data-image-motion="on"] .project-card.is-in-view .project-image { animation: folio-breathe 24s ease-in-out infinite alternate; }
body[data-image-motion="off"] .project-image { animation: none !important; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .project-image { animation: none !important; } }
.ambient { background: radial-gradient(circle at 14% 20%,rgba(77,123,48,.07),transparent 42%),radial-gradient(circle at 86% 66%,rgba(65,70,60,.025),transparent 46%); }.project-image { will-change: auto; }
body[data-image-motion="on"] .project-card.is-in-view .project-image { will-change: transform; }
/* A dated journal connects the archive through several editorial perspectives. */
[hidden] { display: none !important; }
.topic-navigation { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); padding-inline: var(--folio-gutter); border-block: 1px solid var(--folio-line); }
.topic-tab { display: flex; gap: 12px; align-items: center; padding: 17px 12px; border: 0; border-right: 1px solid var(--folio-line); background: transparent; color: var(--folio-muted); font: 11px "Inter",sans-serif; text-align: left; cursor: pointer; }
.topic-tab { min-width: 0; border-bottom: 1px solid var(--folio-line); }
.topic-tab:last-child { border-right: 0; }
.topic-tab .folio-mono { color: var(--folio-green); font-size: 9px; }
.topic-tab[aria-pressed="true"] { color: var(--folio-ink); box-shadow: inset 0 -2px var(--folio-green); background: #4d7b3007; }
.topic-tab:hover { background: #4d7b3010; }
.topic-tab:focus-visible, .topic-card:focus-visible, .project-read:focus-visible, .project-topic:focus-visible, .related-project:focus-visible { outline: 2px solid var(--folio-green); outline-offset: 4px; }
.perspectives-section { padding-top: 95px; scroll-margin-top: 30px; }
.perspectives-section .section-heading > p { max-width: 40ch; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px 28px; }
.topic-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--folio-line); background: transparent; color: inherit; text-align: left; cursor: pointer; font-family: inherit; }
.topic-image { position: relative; overflow: hidden; aspect-ratio: 1.65; margin-bottom: 22px; background: #b8bfb1; }
.topic-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.topic-card:hover .topic-image img { transform: scale(1.035); filter: brightness(1.08); }
.topic-number { position: absolute; top: 13px; left: 14px; background: #f1f2edeb; padding: 5px 8px; color: var(--folio-ink); }
.topic-title { font-size: clamp(24px,2.6vw,37px); letter-spacing: -.05em; line-height: 1.1; margin-bottom: 12px; }
.topic-description { font-size: 12px; line-height: 1.7; color: var(--folio-muted); margin-bottom: 22px; max-width: 44ch; }
.topic-link { margin-top: auto; font-size: 9px; color: var(--folio-green); }
.topic-card[aria-pressed="true"] { border-bottom-color: var(--folio-green); }
.topic-card[aria-pressed="true"] .topic-number { color: white; background: var(--folio-green); }
.project-grid > .project-entry { grid-column: span 7; min-width: 0; }
.project-grid > .project-entry:nth-child(4n+2), .project-grid > .project-entry:nth-child(4n+3) { grid-column: span 5; }
.project-entry:nth-child(4n+2) .project-card, .project-entry:nth-child(4n+3) .project-card { aspect-ratio: .83; }
.project-grid > .project-entry:nth-child(4n+2) { margin-top: 125px; }
.project-grid > .project-entry:nth-child(4n+3) { margin-top: -50px; }
.project-grid > .project-entry:nth-child(4n+4) { margin-top: 36px; }
.project-grid[data-layout="gallery"] > .project-entry { grid-column: span 6; margin-top: 0; }
.project-grid[data-layout="gallery"] .project-entry .project-card { aspect-ratio: 1.1; }
.project-grid[data-layout="sequence"] > .project-entry { grid-column: 2 / 12; margin-top: 0; }
.project-grid[data-layout="sequence"] > .project-entry:nth-child(2n) { grid-column: 4 / 13; }
.project-grid[data-layout="sequence"] .project-entry .project-card { aspect-ratio: 1.9; }
.project-entry-copy { padding: 20px 0 0; }
.project-summary { margin: 0; font-size: 14px; line-height: 1.75; color: #535a51; max-width: 62ch; text-wrap: pretty; }
.project-entry-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--folio-line); }
.project-entry-footer .folio-mono { color: var(--folio-green); font-size: 9px; }
.project-read { flex-shrink: 0; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; font: 11px "Inter",sans-serif; color: var(--folio-ink); cursor: pointer; }
.project-read:hover { border-bottom-color: var(--folio-green); }
.project-detail-info:has(.project-narrative) { position: static; }
.project-detail-info .project-standfirst { font-size: 17px; line-height: 1.65; color: #51594e; }
.project-narrative p { margin: 0 0 20px; }
.project-reading { padding: 3px 0 3px 18px; margin: 28px 0; border-left: 2px solid var(--folio-green); }
.project-reading h3 { font-weight: 400; color: var(--folio-green); margin: 0 0 12px; }
.project-reading p { margin: 0; font-size: 13px; color: #596151; }
.project-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 10px; }
.project-topic { padding: 8px 10px; border: 1px solid var(--folio-line); font: 10px "Inter",sans-serif; background: transparent; color: var(--folio-green); cursor: pointer; }
.project-topic:hover { background: #4d7b300c; }
.project-gallery figcaption p { max-width: 78ch; margin: 8px 0 0; }
.project-related { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--folio-line); }
.project-related h3 { color: var(--folio-muted); font-weight: 400; margin: 0 0 15px; }
.related-project { display: flex; align-items: center; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--folio-line); background: transparent; color: var(--folio-ink); gap: 15px; font: 12px "Inter",sans-serif; text-align: left; cursor: pointer; }
.related-project img { width: 65px; height: 48px; object-fit: cover; }
.related-project span:last-child { margin-left: auto; }
@media (max-width: 1100px) {
  .topic-navigation { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .topic-tab { flex: 0 0 auto; padding: 15px 18px; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .topic-tab { font-size: 10px; gap: 8px; padding-block: 13px; }
  .perspectives-section { padding-top: 65px; }
  .topic-grid { gap: 30px 16px; }
  .topic-image { aspect-ratio: 1.15; margin-bottom: 14px; }
  .topic-title { font-size: 24px; }
  .topic-description { font-size: 11px; line-height: 1.65; }
  .topic-link { font-size: 8px; line-height: 1.6; }
  .topic-number { left: 8px; top: 8px; font-size: 8px; }
  .project-grid > .project-entry:nth-child(n), .project-grid[data-layout] > .project-entry:nth-child(n) { margin: 0; width: 100%; }
  .project-grid[data-layout] .project-entry:nth-child(n) .project-card { aspect-ratio: .95; }
  .project-grid { gap: 40px; }
  .project-entry-copy { padding-top: 17px; }
  .project-summary { font-size: 13px; }
  .project-entry-footer { gap: 10px; }
  .project-entry-footer .folio-mono { font-size: 8px; }
  .project-read { font-size: 10px; }
}
@media (max-width: 360px) {
  .topic-title { font-size: 21px; }
  .topic-description { font-size: 10px; }
  .project-entry-footer { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-image img { transition: none; }
  .topic-card:hover .topic-image img { transform: none; }
}

/* The strip and the hero form one carousel at every viewport width. */
.perspective-carousel { min-width: 0; }
.perspective-controls { display: grid; grid-template-columns: 44px 44px minmax(0,1fr) 44px auto; padding-inline: var(--folio-gutter); border-block: 1px solid var(--folio-line); align-items: stretch; }
.perspective-controls .topic-navigation { display: flex; flex-wrap: nowrap; min-width: 0; padding: 0; border: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.topic-navigation::-webkit-scrollbar { display: none; }
.perspective-controls .topic-tab { flex: 0 0 auto; min-height: 48px; max-width: none; padding: 15px 20px; border-bottom: 0; white-space: nowrap; }
.carousel-control { display: grid; place-items: center; min-width: 44px; min-height: 48px; padding: 0; border: 0; border-inline-end: 1px solid var(--folio-line); color: var(--folio-ink); background: transparent; font: 28px/1 "Inter",sans-serif; cursor: pointer; }
#carousel-next { border-inline-start: 1px solid var(--folio-line); }
#carousel-toggle { font-size: 14px; }
.carousel-control:hover { background: #4d7b3010; }
.carousel-control:focus-visible, .manifesto-project:focus-visible { outline: 2px solid var(--folio-green); outline-offset: -3px; }
.carousel-control:disabled { cursor: default; opacity: .45; }
.carousel-position { display: grid; align-items: center; min-width: 76px; padding-left: 18px; color: var(--folio-muted); white-space: nowrap; }
.hero-feature { position: relative; overflow: hidden; }
.hero-feature > .project-card { position: absolute; inset: 0; }
.hero-outgoing { pointer-events: none; }
.collection-manifesto { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(230px,.8fr); gap: clamp(35px,6vw,100px); padding: 10px 0 48px; align-items: start; }
.manifesto-text p { font-size: clamp(15px,1.2vw,18px); line-height: 1.85; color: #50574d; margin: 0 0 22px; max-width: 74ch; }
.manifesto-text p:first-child { color: var(--folio-ink); font-size: clamp(19px,1.7vw,25px); line-height: 1.6; }
.collection-manifesto .manifesto-aside { border-left: 1px solid var(--folio-line); padding-left: 28px; }
.collection-manifesto .manifesto-aside > .folio-mono { color: var(--folio-green); margin: 0 0 16px; }
#manifesto-principle { font-size: 14px; line-height: 1.8; margin: 0 0 23px; color: var(--folio-muted); }
.manifesto-projects { display: grid; margin-bottom: 24px; }
.manifesto-project { border: 0; border-top: 1px solid var(--folio-line); padding: 12px 0; text-align: left; background: transparent; font: 12px/1.5 "Inter",sans-serif; color: var(--folio-green); cursor: pointer; }
.manifesto-project:hover { color: var(--folio-ink); }
@media (max-width: 700px) {
  .perspective-controls { grid-template-columns: 44px 44px minmax(0,1fr) 44px; padding-inline: 0; }
  .carousel-position { display: none; }
  .perspective-controls .topic-tab { padding-inline: 16px; font-size: 11px; }
  .collection-manifesto { grid-template-columns: minmax(0,1fr); gap: 22px; padding-bottom: 32px; }
  .collection-manifesto .manifesto-aside { padding-left: 18px; }
}

/* A restrained slide-projector treatment; source photographs retain their colour. */
.perspective-carousel .folio-hero { box-shadow: inset 0 0 0 1px #ffffff1a; }
.perspective-carousel .folio-hero::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 95px 12px #090c0b60, inset 0 0 0 8px #12171340, inset 0 0 0 9px #ffffff10; }
.perspective-carousel .folio-hero::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .07; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23grain)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.carousel-position { font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.carousel-control:active { background: #22271f; color: #edf1e7; }

/* Embedded previews stay visible until the matching main image has decoded. */
.image-preview-container { position: relative; isolation: isolate; overflow: hidden; }
.image-preview { position: absolute; inset: -12px; display: block; background-position: center; background-size: cover; filter: blur(10px); pointer-events: none; transition: opacity .22s ease, visibility .22s; }
.has-image-preview > .preview-main { position: relative; opacity: 0; transition: opacity .22s ease; }
.project-card.has-image-preview > .project-image { position: absolute; transition: opacity .22s ease, filter .35s ease; }
.topic-image.has-image-preview > .preview-main { transition: opacity .22s ease, transform .6s ease, filter .6s ease; }
.has-image-preview[data-image-state="ready"] > .preview-main { opacity: 1; }
.has-image-preview[data-image-state="ready"] > .image-preview { opacity: 0; visibility: hidden; }
.gallery-image { background: #dadfd4; }
.related-image { display: block; width: 65px; height: 48px; flex: 0 0 65px; }
.image-load-notice { position: absolute; inset: auto 12px 12px; z-index: 3; padding: 8px 10px; background: #f1f2edee; color: #333b2e; font: 12px/1.5 "Inter", sans-serif; }
.image-load-notice button { margin-left: 12px; border: 0; padding: 4px 6px; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.related-image .image-load-notice { inset: 0; padding: 2px; font-size: 9px; }
@media (prefers-reduced-motion: reduce) {
  .has-image-preview > .preview-main, .image-preview { transition: none !important; }
}
