:root { color-scheme: light; --ink: #000; --muted: #727272; --paper: #fff; --surface: #f3f3f1; --gallery: #f6f6f4; --viewer: #f8f8f6; --veil: #0003; --nav-text-size: 13px; --space: 40px; --gap: 48px; --content-width: 1200px; --modal-top: 176px; --modal-bottom: 32px; }
html[data-theme="dark"] { color-scheme: dark; --ink: #fff; --muted: #aaa; --paper: #141414; --surface: #242424; --gallery: #1d1d1d; --viewer: #101010; --veil: #0007; }
html[data-theme="dark"] .brand img { filter: invert(1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Rokkitt', Georgia, serif; font-weight: 300; font-synthesis: none; font-size: 13px; -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 400; }
a { color: inherit; text-decoration: none; }
:where(a:not(.brand):not(.project-card)) { display: inline-block; transform-origin: left center; transition: scale 180ms cubic-bezier(.22,1,.36,1); }
a:hover, a:focus-visible, a:active { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a:not(.brand):not(.project-card):hover { scale: var(--link-hover-scale,1.076923); } }
a:not(.brand):not(.project-card):focus-visible { scale: var(--link-hover-scale,1.076923); }
button { font: inherit; color: inherit; cursor: pointer; }
* { -webkit-tap-highlight-color: transparent; }
button { -webkit-appearance: none; appearance: none; }
a:focus, button:focus { outline: none; }
body.keyboard-navigation a:focus-visible, body.keyboard-navigation button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
button { border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px; z-index: 20; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--paper); width: 100%; max-width: calc(var(--content-width) + 2 * var(--space)); margin-inline: auto; min-height: 124px; padding: 25px var(--space) 42px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; width: 120px; flex-shrink: 0; }
.brand img { width: 120px; height: auto; }
#navigation { display: flex; align-items: center; justify-content: space-between; width: calc((100% - 2 * var(--gap)) / 3); }
#navigation a { padding: 8px 0; font-size: var(--nav-text-size); line-height: 1.3; }
#navigation a { color: var(--muted); transform-origin: center; transition: color .2s ease, scale 180ms cubic-bezier(.22,1,.36,1); }
#navigation a:first-child { transform-origin: left center; }
#navigation a:last-child { transform-origin: right center; }
@media (hover: hover) and (pointer: fine) { #navigation a:hover { scale: 1.076923; } }
#navigation a:focus-visible { scale: 1.076923; }
#navigation a:hover, #navigation a[aria-current="page"] { color: var(--ink); text-decoration: none; }
/* Optical alignment of the initial A with the image column. */
@media (min-width: 641px) { #navigation [data-section="architecture"] { transform: translateX(-2px); } }
.menu-toggle { display: none; }
main { width: calc(100% - 2 * var(--space)); max-width: var(--content-width); margin: 0 auto; min-height: 65vh; outline: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: var(--gap); row-gap: 48px; }
.project-card { display: block; min-width: 0; width: 100%; text-align: left; }
.cover { display: block; overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1.414; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: var(--position,50% 50%); transition: transform .65s ease, filter .4s ease; }
.cover-drawing img { object-fit: contain; }
.project-card:hover .cover img { transform: scale(1.025); filter: brightness(1.025); }
.card-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 9px; line-height: 1.5; letter-spacing: .015em; }
.card-caption h2 { margin: 0; font: inherit; }
.project-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 24px; align-items: start; }
.project-gallery { min-width: 0; }
.gallery-item { display: block; width: 100%; margin: 0 0 24px; text-align: left; cursor: zoom-in; background: var(--gallery); }
.gallery-item img { width: 100%; height: auto; }
.project-info { font-size: 13px; position: sticky; top: 28px; padding: 0 0 30px; line-height: 1.5; }
.project-info h1 { font-size: 13px; font-weight: 400; margin: 0 0 24px; }
.project-meta { margin: 0 0 24px; }
.project-meta div { display: flex; gap: 4px; margin-bottom: 8px; }
.project-meta dt::after { content: ':'; }
.project-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.project-description { white-space: pre-line; margin: 0 0 20px; max-width: 50ch; }
.photo-credit { margin: 20px 0 0; font-size: 11px; color: var(--muted); }
.photo-credit a { display: inline-block; text-decoration: none; transform-origin: left center; transition: scale 180ms cubic-bezier(.22,1,.36,1); }


.back-link { display: inline-block; margin-top: 35px; font-size: 11px; }

.project-pagination { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; width: 100%; gap: 16px; padding: 16px 0 40px; font-size: 12px; }
.project-pagination a { min-width: 0; width: fit-content; max-width: 100%; justify-self: start; line-height: 1.5; overflow-wrap: anywhere; }
.project-pagination a:nth-child(2) { white-space: nowrap; align-self: center; justify-self: center; }
.project-pagination .next { text-align: right; justify-self: end; }
.project-pagination small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 8px; }
.page-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 48px; align-items: start; }
.studio-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "team" "contact"; row-gap: 28px; }
.studio-layout .page-copy { grid-area: copy; padding-top: 0; align-self: stretch; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; }
.studio-layout .page-copy p { margin-bottom: 12px; }
.studio-contact { grid-area: contact; margin: 0; justify-self: start; transform-origin: left center; transition: scale 180ms cubic-bezier(.22,1,.36,1); }
.studio-contact:hover { text-decoration: none; }


.studio-layout .page-copy p:first-child { font-size: 13px; font-weight: 400; margin-bottom: 48px; }
.studio-team { grid-area: team; margin: 28px 0 0; }
.studio-layout .page-copy p:last-of-type { margin-bottom: 0; }
.studio-layout .studio-statement { margin: 12px 0 0; padding-top: 0; font: inherit; letter-spacing: normal; max-width: none; }
.studio-team h2 { font-size: 10px; font-weight: 300; color: var(--muted); margin: 0 0 18px; letter-spacing: .05em; }
.studio-team ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.studio-team li { font-size: 13px; margin: 0; white-space: nowrap; line-height: 1.6; }
.page-copy { padding-top: 10px; font-size: 13px; line-height: 1.6; }
.page-copy h1 { margin: 0 0 30px; font-size: 13px; font-weight: 400; text-transform: uppercase; }
.page-copy p { margin: 0 0 18px; }
.studio-statement { font-size: clamp(22px,2.5vw,40px); font-weight: 300; line-height: 1.25; max-width: 34ch; margin: 36px 0 10px; letter-spacing: -.025em; }
.contact-layout { padding-top: 0; padding-bottom: 24px; }
.contact-details { font-size: 13px; display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; line-height: 1.7; }
.contact-details h2 { font-size: 10px; font-weight: 300; color: var(--muted); margin: 0 0 16px; letter-spacing: .05em; }
.contact-details address { font-style: normal; }
.contact-details a { display: inline-flex; align-items: baseline; gap: .25em; transform-origin: left center; transition: scale 180ms cubic-bezier(.22,1,.36,1); }
/* A 13 px link appears 1 px larger without moving the neighbouring text. */


/* The map occupies exactly the lower half of the whole Contact sheet. */
.project-modal.contact-open .project-modal-content { flex: 1; padding: 0; overflow: hidden; }
.contact-open .contact-layout { height: 100%; min-height: 0; padding: 0; display: grid; grid-template-rows: minmax(0,1fr) calc((100dvh - var(--modal-top) - var(--modal-bottom)) / 2); }
.contact-open .contact-details { min-height: 0; overflow: auto; align-content: start; padding: 24px; }
.contact-map { min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 2 * var(--space)); max-width: var(--content-width); margin: 90px auto 0; padding: 24px 0 30px; color: var(--muted); font-size: 10px; }
.site-footer a:hover { color: var(--ink); }
.footer-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle { margin-right: -9px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); }
.theme-icon { display: block; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg,#000 50%,#fff 50%); }
.theme-toggle:hover .theme-icon { transform: rotate(180deg); }
.theme-icon { transition: transform .3s ease; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; margin: 0; padding: 60px 70px; background: var(--viewer); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: var(--viewer); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-image { width: 100%; height: 100%; object-fit: contain; }
.lightbox-top, .lightbox-bottom { position: absolute; left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.lightbox-top { top: 24px; min-height: 20px; line-height: 20px; font-size: var(--nav-text-size); }
.lightbox-top, .lightbox-bottom { left: 24px; right: 24px; }
.lightbox-bottom { bottom: 24px; color: var(--muted); }
.lightbox-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; }
.lightbox-close svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox-prev, .lightbox-next { position: absolute; top: calc(50% - 25px); width: 45px; height: 50px; font-size: 24px; display: grid; place-items: center; line-height: 1; }
.lightbox-prev { left: 10px; }.lightbox-next { right: 10px; }
body.viewer-open, body.project-open { overflow: hidden; }
.project-modal { width: calc(100% - 80px); max-width: 1440px; height: calc(100dvh - var(--modal-top) - var(--modal-bottom)); max-height: none; margin: var(--modal-top) auto var(--modal-bottom); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 16px 80px #0003; overflow: hidden; }
.project-modal::backdrop { background: var(--veil); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.project-modal[open]::backdrop { animation: project-backdrop-in 450ms ease both; }
.project-modal.is-closing::backdrop { animation: project-backdrop-out 420ms ease both; }
@keyframes project-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes project-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.project-sheet { display: flex; flex-direction: column; height: 100%; }
.project-modal-toolbar { position: relative; display: flex; align-items: center; flex-shrink: 0; min-height: 72px; padding: 0 72px 0 24px; border-bottom: 0; gap: 20px; font-size: 11px; }
#project-modal-title { align-self: flex-start; margin-top: 19px; line-height: 20px; }
.project-modal-close { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
.project-modal-close svg { display: block; width: 10px; height: 10px; transform: translate(5px,-5px); fill: none; stroke: currentColor; stroke-width: 1.5; }
.project-modal-content { overflow: auto; overscroll-behavior: contain; padding: 24px; min-height: 0; }
.project-modal.studio-open .project-modal-content { scrollbar-width: none; -ms-overflow-style: none; }
.project-modal.studio-open .project-modal-content::-webkit-scrollbar { display: none; width: 0; height: 0; }
.project-modal .project-info { top: 0; }
.noscript { margin: 40px; }
.not-found { padding: 60px 0; }.not-found h1 { font-weight: 300; }.not-found a { text-decoration: none; }
@media (max-width: 960px) { :root { --space: 28px; --gap: 28px; --modal-top: 162px; } .site-header { min-height: 110px; padding-bottom: 32px; } .project-grid { row-gap: 35px; } .project-layout { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); } .page-layout { gap: 28px; grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 641px) and (max-width: 960px) {
  .studio-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "team" "contact"; }
}
@media (max-width: 640px) {
  :root { --space: 20px; --gap: 20px; --modal-top: 132px; --modal-bottom: 16px; }
  .site-header { min-height: 100px; padding-top: 22px; padding-bottom: 30px; flex-wrap: wrap; gap: 20px; }
  .brand, .brand img { width: 102px; }
  .menu-toggle { display: flex; align-items: center; gap: 16px; font-size: 12px; padding: 8px 0; }
  .menu-toggle span { font-size: 22px; font-weight: 300; }
  #navigation { display: none; width: 100%; padding: 12px 0 5px; }
  #navigation.is-open { display: flex; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 32px; }
  .cover { aspect-ratio: 2 / 3; }
  .card-caption { font-size: 9px; padding-top: 10px; }
  .project-layout, .page-layout { display: flex; flex-direction: column; gap: 24px; }
  .project-info { position: static; padding: 0; order: -1; font-size: 13px; }
  .project-info h1 { margin-bottom: 15px; }
  .project-meta { margin-bottom: 20px; }
  .project-description { max-width: none; }
  .back-link { margin-top: 10px; margin-bottom: 8px; }
  .gallery-item { margin-bottom: 16px; }
  .project-pagination { font-size: 11px; }
  .page-copy { padding-top: 0; }
  .studio-layout { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "team" "contact"; }
  .studio-team ul { gap: 10px 20px; }
  .studio-statement { font-size: 25px; margin: 26px 0; }
  .contact-layout { padding-top: 0; }
  .contact-details { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .contact-details h2 { margin-bottom: 12px; }
  .contact-open .contact-details { padding: 16px; }
  .site-footer { margin-top: 55px; font-size: 9px; }
  .lightbox { padding: 65px 35px; }
  .lightbox-top, .lightbox-bottom { left: 16px; right: 16px; }
  .lightbox-bottom { font-size: 10px; }
  .lightbox-top { top: 16px; }
  .lightbox-bottom { bottom: 16px; }
  .lightbox-close { top: 4px; right: 4px; }
  .lightbox-bottom span:last-child { display: none; }
  .lightbox-prev, .lightbox-next { width: 30px; font-size: 20px; }
  .lightbox-prev { left: 0; }.lightbox-next { right: 0; }
  .project-modal { width: calc(100% - 24px); }
  .project-modal-toolbar { min-height: 64px; padding: 0 64px 0 16px; font-size: 10px; gap: 12px; }
  #project-modal-title { margin-top: 11px; }
  .project-modal-close { top: 4px; right: 4px; }
  .project-modal-content { padding: 16px; }
}
@media (max-width: 380px) { .project-grid { grid-template-columns: 1fr; } .contact-details { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after, dialog::backdrop { transition: none !important; animation: none !important; } }

/* Only the local Green Apple editing preview has this sync indicator. */
.folder-sync-status { position: fixed; left: 20px; bottom: 14px; z-index: 100; max-width: min(420px, calc(100vw - 40px)); background: var(--paper); color: var(--ink); border: 1px solid var(--muted); font-size: 11px; line-height: 1.5; box-shadow: 0 2px 12px #0001; }
.folder-sync-status summary { cursor: pointer; padding: 8px 12px; list-style: none; }
.folder-sync-status summary::-webkit-details-marker { display: none; }
.folder-sync-status summary::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #999; }
.folder-sync-status[data-phase="ready"] summary::before { background: #468052; }
.folder-sync-status[data-phase="partial"] summary::before, .folder-sync-status[data-phase="error"] summary::before { background: #b57823; }
.folder-sync-body { padding: 0 12px 12px; }
.folder-sync-body p { white-space: pre-line; margin: 0 0 10px; }
.folder-sync-body button { font-size: inherit; text-decoration: none; cursor: pointer; transition: scale 180ms cubic-bezier(.22,1,.36,1); }

.project-modal #project-modal-title { font-size: var(--nav-text-size); line-height: 1.3; }

/* One text-link motion, including pagination and utility links. Image cards keep their image zoom. */
.photo-credit a, .studio-contact, .back-link { --link-hover-scale: 1.090909; }
.project-pagination a { --link-hover-scale: 1.083333; }
.project-pagination a:nth-child(2) { transform-origin: center; }
.project-pagination .next { transform-origin: right center; }
.site-footer a { --link-hover-scale: 1.1; }
@media (max-width: 640px) { .project-pagination a { --link-hover-scale: 1.090909; } .site-footer a { --link-hover-scale: 1.111111; } }
@media (hover: hover) and (pointer: fine) { .folder-sync-body button:hover { scale: 1.076923; } }
.folder-sync-body button:focus-visible { scale: 1.076923; }

/* The opaque backdrop hides the page while the copyright notice is open. */
.privacy-shutter { width: min(560px,calc(100vw - 40px)); border: 0; padding: 28px; background: #222; color: #eee; font: inherit; border-radius: 8px; box-shadow: 0 12px 60px #0008; }
.privacy-shutter::backdrop { background: #161616; }
.privacy-shutter h2 { font-size: 20px; font-weight: 400; margin: 0 0 18px; }
.privacy-shutter p { font-size: 16px; line-height: 1.5; margin: 0; }
.privacy-shutter form { display: flex; justify-content: flex-end; margin-top: 24px; }
.privacy-shutter button { padding: 10px 28px; border-radius: 24px; background: #b4cefa; color: #142749; font-weight: 400; }
.privacy-shutter button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
img { -webkit-touch-callout: none; user-select: none; }
