:root {
  color-scheme: light;
  --paper: #e5d9c8;
  --ink: #252321;
  --muted: #60574f;
  --accent: #735443;
  --line: #a7998a;
  --plate: #eeeae4;
  --dot: #796b60;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --rail: 230px;
  --header-height: 100px;
  --footer-height: 85px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #1c1b19;
  --ink: #f1eeea;
  --muted: #aaa199;
  --accent: #b49883;
  --line: #403a35;
  --dot: var(--line);
  --plate: #282521;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --paper: #1c1b19;
    --ink: #f1eeea;
    --muted: #aaa199;
    --accent: #b49883;
    --line: #403a35;
    --dot: var(--line);
    --plate: #282521;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--sans); }
button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.topbar { position: fixed; z-index: 5; top: 0; left: 0; width: 100%; height: var(--header-height); display: flex; align-items: center; padding: 0 48px; gap: 24px; background: var(--paper); }
.signature { font: 24px var(--serif); letter-spacing: -.08em; }
.signature span { color: var(--accent); }
.top-caption { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.controls { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.controls select { border: 0; background: var(--paper); font-size: 10px; letter-spacing: .12em; padding: 8px; cursor: pointer; }
.controls button { padding: 8px; border: 0; background: transparent; display: grid; place-items: center; }
#slides { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
#slides::-webkit-scrollbar { display: none; }
.slide { height: 100svh; overflow: clip; scroll-snap-stop: always; scroll-snap-align: start; padding: 120px calc(var(--rail) + 50px) 100px 70px; display: flex; align-items: center; }
.slide-inner { width: 100%; height: 100%; display: grid; align-items: center; container-type: size; opacity: 0; transform: translateY(24px); transition: opacity 1200ms ease, transform 1350ms ease; }
.slide.active .slide-inner { opacity: 1; transform: translateY(0); }
.hero { text-align: center; }
.hero .slide-inner { align-content: center; row-gap: clamp(8px, 1.5svh, 14px); }
.hero .slide-inner :is(.eyebrow, .roles) { margin: 0; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 28px; }
h1 { font: 400 clamp(46px,7.5vw,116px)/1.05 var(--serif); letter-spacing: -.055em; margin: 0; white-space: nowrap; }
.roles { color: var(--accent); font-size: clamp(10px,1.04vw,15px); letter-spacing: .21em; margin: 28px 0 0; text-transform: uppercase; }
.roles .slash { padding: 0 13px; opacity: .65; }
.index { position: fixed; z-index: 6; right: 30px; top: 120px; bottom: 105px; width: 195px; border-left: 1px solid var(--line); padding-left: 30px; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px,2.1vh,24px); overflow: auto; scrollbar-width: thin; }
.nav-group h2 { font: 400 12px/1.4 var(--sans); margin: 0 0 5px; color: var(--muted); }
.nav-group.current h2 { color: var(--accent); }
.nav-group.current h2 a::before { content: ''; width: 14px; height: 1px; background: var(--accent); display: inline-block; vertical-align: middle; margin-right: 8px; }
.dots { display: flex; gap: 4px; }
.dot { width: 26px; height: 24px; display: grid; place-items: center; }
.dot::before { content: ''; border: 1px solid var(--dot); background: var(--dot); width: 5px; height: 5px; border-radius: 50%; transition: background 300ms, box-shadow 300ms; }
.dot[aria-current=true]::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--accent); }
.dot:hover::before { background: var(--accent); }
.bottom { position: fixed; z-index: 5; bottom: 0; left: 0; width: 100%; height: var(--footer-height); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.dash { color: var(--accent); margin: 0 8px; }
.next { position: absolute; left: calc((100% - var(--rail))/2); transform: translateX(-50%); border: 0; background: transparent; font-size: 9px; letter-spacing: .18em; padding: 16px 0; }
.next span { display: inline-block; color: var(--accent); font-size: 20px; vertical-align: middle; margin-left: 18px; }
#counter { letter-spacing: .16em; }
.bio-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: center; }
.placeholder { background: var(--plate); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; min-height: 220px; aspect-ratio: 1.65; }
.portrait { aspect-ratio: 3/4; }
.slide-image { display: block; width: 100%; max-height: min(58svh, 620px); object-fit: contain; }
.slide-image.portrait { object-fit: cover; }
h2 { font: 400 clamp(32px,4vw,59px)/1.1 var(--serif); letter-spacing: -.035em; margin: 0 0 25px; }
.prose { font-size: 15px; line-height: 1.85; max-width: 58ch; color: var(--muted); }
.centered { max-width: 680px; margin: auto; }
.project-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 45px; align-items: center; }
.project-overview { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.project-gallery { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.project-gallery .placeholder { min-height: 310px; }
.project-layout h2, .collector-slide h2 { font-size: clamp(24px, 2.8vw, 40px); }
.contact-links { display: grid; justify-items: start; gap: 12px; }
.contact-link { font: clamp(18px,3vw,35px)/1.5 var(--serif); border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 10px; background: var(--paper); }
.skip:focus { top: 10px; }
@media (max-width: 1000px) {
  :root { --rail: 200px; }
  .slide { padding-left: 40px; padding-right: 240px; }
  .index { width: 170px; right: 20px; padding-left: 20px; }
  .bio-layout, .project-layout { gap: 25px; }
  .roles .slash { padding: 0 6px; }
  .roles { letter-spacing: .12em; }
  .topbar, .bottom { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 700px) {
  :root { --rail: 110px; --header-height: 80px; --footer-height: 75px; }
  .topbar { padding: 0 20px; gap: 15px; }
  .top-caption { font-size: 8px; max-width: 110px; line-height: 1.6; }
  .controls { gap: 8px; }
  .slide { padding: 105px 135px 105px 24px; }
  .hero { text-align: left; }
  h1 { font-size: clamp(42px,9vw,64px); white-space: normal; max-width: 5ch; line-height: 1.05; }
  .eyebrow { font-size: 8px; letter-spacing: .2em; }
  .roles { font-size: 9px; line-height: 2.4; letter-spacing: .12em; }
  .roles .slash { display: block; height: 1px; overflow: hidden; opacity: 0; }
  .index { width: 108px; right: 8px; padding-left: 12px; top: 95px; bottom: 90px; gap: 12px; }
  .nav-group h2 { font-size: 9px; }
  .nav-group.current h2 a::before { width: 6px; margin-right: 4px; }
  .dot { width: 22px; height: 22px; }
  .dots { gap: 0; }
  .bottom { padding: 0 20px; font-size: 7px; }
  .next { left: 24px; bottom: 53px; transform: none; font-size: 7px; padding: 0; }
  .next span { margin-left: 8px; font-size: 16px; }
  .bio-layout, .project-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .portrait { width: 95px; min-height: 115px; }
  .slide-image { max-height: 35svh; }
  .project-layout .placeholder { min-height: 150px; }
  h2 { font-size: 30px; }
  .prose { font-size: 12px; line-height: 1.65; }
  .placeholder { font-size: 8px; padding: 12px; text-align: center; }
}
@media (max-height: 650px) {
  .index { justify-content: flex-start; gap: 9px; top: 85px; bottom: 80px; }
  :root { --header-height: 70px; }
  .slide { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-inner, .slide.active .slide-inner { transition: none; transform: none; }
}

.project-overview { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.project-image { min-width: 0; }
.project-image img { display: block; width: 100%; height: min(72svh, 780px, 100cqh); object-fit: contain; }
.project-layout :is(.project-image, .architecture-artwork) img { object-position: right center; }
.project-layout .artwork-floating img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(84svh, 850px, 100cqh);
  margin-left: auto;
}
#mini-0 .artwork-floating img { max-height: 100cqh; }
@media (max-width: 700px) {
  .project-overview { grid-template-columns: minmax(0, 1fr); }
  .project-image img { height: min(43svh, 420px); }
  .project-layout :is(.project-image, .architecture-artwork) img { object-position: center; }
  .project-layout .artwork-floating img { max-height: min(49svh, 475px); margin-inline: auto; }

}

.collector-slide { text-align: center; }
.collector-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 14px);
  margin: 0 auto 18px;
}
.collector-cards img { display: block; width: 100%; max-height: 54svh; object-fit: contain; }
@media (max-width: 700px) {
  .collector-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36svh; }
}

.practice-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.practice-layout > div { padding-left: clamp(12px, 4vw, 64px); }
#intro-2 { padding-right: 225px; }
.practice-layout > img { width: 85%; justify-self: center; }
@media (min-width: 701px) {
  :is(#mini-1, #mini-2, #utopia-1, #urban-1, #heritage-1, #heritage-2) .project-gallery {
    width: 94%;
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  }
  #utopia-1 .project-gallery { grid-template-columns: minmax(0, 2.65fr) minmax(0, 1fr); }
  :is(#heritage-1, #heritage-2) .project-gallery { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
}
.secluded-artwork img { height: min(90svh, 950px, 100cqh); }

.architecture-study .eyebrow { margin-bottom: 12px; }
.architecture-study h2 { margin-bottom: 16px; }
.architecture-study img, .architecture-artwork img { display: block; width: 100%; object-fit: contain; }
.architecture-rendering { max-height: clamp(125px, calc(100svh - 410px), 48svh); }
.architecture-banner { max-height: 10svh; margin-top: 10px; }
.architecture-study img + .eyebrow { margin: 10px 0 0; }

#architecture-2 .architecture-rendering {
  max-height: clamp(155px, calc(100svh - 340px), 61svh);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}
#contact-0 {
  padding-top: calc(var(--header-height) / 2);
  padding-bottom: calc(var(--footer-height) / 2);
}
.contact-artwork {
  display: block;
  width: 100%;
  --artwork-height: calc(100svh - (var(--header-height) + var(--footer-height)) / 2);
  height: var(--artwork-height);
  max-width: calc(var(--artwork-height) * 2000 / 1502);
  object-fit: contain;
}
#contact-0 h2 { font-size: clamp(23px, 2.6vw, 38px); margin-bottom: 12px; }
#contact-0 .eyebrow { margin-bottom: 12px; }
#contact-0 .prose { font-size: clamp(12px, 1.1vw, 14px); }
#contact-0 .contact-link { font-size: clamp(13px, 1.45vw, 21px); }
body:has(#contact-0.active) :is(.topbar, .bottom) { background: transparent; }

@media (max-width: 700px) {
  .practice-layout, #utopia-1 .project-gallery, .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .secluded-artwork img { height: min(48svh, 470px); }
  .contact-artwork { height: min(34svh, 300px); object-fit: contain; }
  #contact-0 { padding-top: 100px; padding-bottom: 88px; }
}

.bio-layout, .project-layout, .collector-slide, .contact-layout { max-height: 100%; }
.slide-image { max-height: min(58svh, 620px, 100cqh); }
.architecture-rendering { max-height: min(48svh, max(0px, calc(100cqh - 115px))); }
.architecture-artwork .architecture-rendering { max-height: 78cqh; }
#architecture-0 .architecture-banner { object-position: center; }
@media (min-width: 701px) {
  #architecture-0 .architecture-artwork {
    /* Match the upper rendering's 3:2 aspect ratio at its height limit. */
    width: min(100%, 117cqh);
    margin-left: auto;
  }
}
#architecture-2 .architecture-rendering { max-height: min(61svh, max(0px, calc(100cqh - 115px))); }
.collector-cards img { max-height: min(54svh, max(0px, calc(100cqh - 125px))); }

@media (max-width: 1000px) {
  #intro-2 { padding-right: 190px; }
}
@media (max-width: 700px) {
  #intro-2 { padding-right: 116px; }
  .slide { padding-top: var(--header-height); padding-bottom: var(--footer-height); }
  .bio-layout, .project-layout, .practice-layout, .contact-layout {
    height: 100%;
    gap: 12px;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .practice-layout, .contact-layout { grid-template-rows: auto minmax(0, 1fr); }
  .project-layout > :first-child, .practice-layout > img, .contact-artwork { min-height: 0; }
  .project-layout .project-image img, .bio-layout .slide-image, .contact-artwork {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
  }
  .architecture-artwork { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .architecture-artwork .architecture-rendering { height: 100%; min-height: 0; }
  .architecture-artwork .architecture-banner { max-height: 8cqh; }
  .collector-cards img { max-height: min(27svh, max(0px, calc((100cqh - 125px) / 2))); }
  .slide-inner :is(h2, .eyebrow) { margin-bottom: 10px; }
  .slide-inner .prose { margin: 8px 0; }
  #contact-0 { padding-top: var(--header-height); padding-bottom: var(--footer-height); }
}

@media (min-width: 701px) {
  :is(#mini-0, #mini-1, #mini-2, #utopia-1) {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    padding-left: clamp(12px, 1.4vw, 24px);
  }
  :is(#mini-1, #mini-2) .artwork-floating img { max-height: 100cqh; }
  #utopia-1 .secluded-artwork img { height: 100cqh; }
}
@media (max-width: 700px) {
  :is(#mini-0, #mini-1, #mini-2, #utopia-1) { padding-left: 12px; }
}
