:root {
  color-scheme: dark;
  --canvas: #0c0c0b; --ink: #c8c5bb; --muted: #96938b; --hover: #e0ddd2;
  --field: #20201b; --grain: .11;
}
:root[data-mood="morning"] {
  color-scheme: light;
  --canvas: #d3c2a2; --ink: #372d20; --muted: #554631; --hover: #211708;
  --field: #f3e7c8; --grain: .12;
}
:root[data-mood="daylight"] {
  color-scheme: light;
  --canvas: #b4cbd8; --ink: #233848; --muted: #3c5263; --hover: #102636;
  --field: #e3f1f6; --grain: .10;
}
:root[data-mood="sunset"] {
  --canvas: #180c10; --ink: #dcb4aa; --muted: #bd958e; --hover: #f6ccc3;
  --field: #482026; --grain: .11;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; background: var(--canvas); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; isolation: isolate; transition: background-color 1.2s, color .8s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 28%, var(--field), transparent 76%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--ink); outline-offset: 7px; }
.icon { width: 12px; height: 12px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(calc(100% - 48px), 1056px); margin-inline: auto; }
.skip-link { position: fixed; top: 16px; left: 16px; transform: translateY(-200%); z-index: 5; padding: 12px; background: var(--canvas); }
.skip-link:focus { transform: none; }
.scene-noise { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; mix-blend-mode: overlay; opacity: var(--grain); transition: opacity 1.2s; }
.noise-grain { position: absolute; inset: -128px; background-repeat: repeat; image-rendering: pixelated; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; font-size: 10px; letter-spacing: .20em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 11px; line-height: 1.5; letter-spacing: .035em; color: var(--muted); }
.text-link span { border-bottom: 1px solid color-mix(in srgb, var(--muted) 50%, transparent); transition: border-color .2s; }
.text-link:hover { color: var(--hover); }
.text-link:hover span { border-color: var(--ink); }
.gallery-intro { margin-top: clamp(58px, 9svh, 110px); margin-bottom: 26px; }
.eyebrow { display: block; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; text-transform: uppercase; letter-spacing: .15em; }
h1 { margin: 13px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; }
h2 { font-weight: 400; }
.project { margin: 0; }
.project summary { display: block; list-style: none; cursor: pointer; }
.project summary::-webkit-details-marker { display: none; }
.project summary::marker { content: ""; }
.project-visual { display: block; padding: 22px 0 18px; }
.project-visual img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 18px #0003); transition: transform .8s ease, filter .8s ease; }
.project-caption { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; padding-top: 18px; padding-bottom: 32px; border-bottom: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); }
.project-name { display: block; margin-top: 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; }
.project-type { display: block; margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.project-action { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 11px; letter-spacing: .035em; color: var(--muted); }
.open-label, .project[open] .closed-label { display: none; }
.project[open] .open-label { display: inline; }
.project[open] .plus-vertical { opacity: 0; }
.project-details { padding-top: 38px; padding-bottom: 42px; border-bottom: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); }
.project[open] .project-details { animation: appear .5s ease-out both; }
.project-story { display: grid; gap: 20px; }
.project-story h2 { margin: 12px 0 0; font-size: clamp(22px, 2.7vw, 32px); line-height: 1.35; letter-spacing: -.02em; }
.project-copy { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 52ch; }
.project-copy p { margin: 0 0 15px; }
.project-facts { display: grid; gap: 20px; margin: 26px 0 34px; }
.project-facts dt { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.project-facts dd { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.project-process { display: grid; gap: 28px; margin: 28px 0 36px; padding: 0; list-style: none; }
.project-process li { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); }
.project-process h3 { margin: 10px 0; font-size: 17px; line-height: 1.4; font-weight: 400; }
.project-process p { margin: 0; max-width: 52ch; color: var(--muted); font-size: 13px; line-height: 1.8; }
.construction-study + .text-link { margin-top: 24px; }
.construction-study { margin: 0; }
.construction-study img { display: block; width: 100%; height: auto; }
figcaption, .project-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
figcaption { padding-top: 12px; }
.project-note { margin: 24px 0 5px; }
.enquiry { display: grid; align-items: center; gap: 12px; padding-block: 64px 34px; }
.enquiry h2 { margin: 12px 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
.enquiry p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 43ch; margin: 0; }
.enquiry-link { justify-self: start; }
.cv-route { display: flex; align-items: center; gap: 20px; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.cv-route p { margin: 0; font-size: 10px; line-height: 1.5; }
.gallery-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 38px; padding-bottom: max(24px, env(safe-area-inset-bottom)); color: var(--muted); }
.gallery-footer p { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.contact-sheet { position: fixed; inset: auto 16px max(16px, env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 360px; max-height: calc(100svh - 32px); margin: 0 auto; padding: 18px 20px 20px; border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent); border-radius: 2px; background: var(--canvas); color: var(--ink); box-shadow: 0 -12px 60px #0004; }
.contact-sheet::backdrop { background: #0006; backdrop-filter: blur(3px); }
.contact-sheet-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contact-sheet h2 { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: .04em; }
.contact-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -12px -6px 0; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.contact-actions { display: grid; gap: 8px; margin-top: 16px; }
.contact-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 14px 12px; border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent); font-size: 14px; line-height: 1.5; }
.contact-sheet :focus-visible { outline-offset: 3px; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) { .project summary:hover .project-visual img { transform: translateY(-4px); filter: drop-shadow(0 26px 24px #0004); } }
@media (min-width: 700px) {
  .shell { width: min(calc(100% - 96px), 1056px); }
  .gallery-header { padding-top: 30px; }
  .gallery-intro { margin-bottom: 20px; }
  .project-visual { padding: 30px 4% 22px; }
  .project-caption { padding-bottom: 40px; }
  .project-story { grid-template-columns: 1fr 1fr; gap: 48px; }
  .project-process { grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-block: 30px 42px; }
  .project-facts { grid-template-columns: 1fr 1fr; gap: 48px; margin-block: 30px 42px; }
  .enquiry { grid-template-columns: 1fr auto; gap: 40px; padding-top: 84px; }
  .enquiry-link { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .noise-grain, .project-visual img { transform: none !important; }
}

