:root {
  --paper: #f0f9fb;
  --ink: #012c50;
  --blue: #01497c;
  --turquoise: #4ba2c5;
  --turquoise-ocean: #2c7da0;
  --pale: #daedf4;
  --surface: #fff;
  --canvas: #f0f9fb;
  --rule: #b2ccde;
  --display: 'Gloock', Georgia, serif;
  --text: 'Geist', system-ui, sans-serif;
  --type-body: 1rem;
  --type-label: .875rem;
  --type-meta: .75rem;
  --leading-body: 1.7;
  /* 4 px base: detail → group → section → page. */
  --space-detail: 8px;
  --space-item: 16px;
  --space-group: 24px;
  --space-block: 32px;
  --space-section: clamp(48px, 6vw, 96px);
  --space-chapter: clamp(96px, 10vw, 160px);
  --space-footer: clamp(64px, 7vw, 112px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4.167vw, 72px);
  --gap: clamp(20px, 1.945vw, 32px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--blue) var(--paper); scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--turquoise); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; caret-color: var(--blue); }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
main:focus { outline: none; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1600px); margin-inline: auto; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 29px; text-decoration: none; }
.brand img { width: 168px; height: 57px; object-fit: contain; }
.brand span { color: var(--blue); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.site-header nav { display: flex; align-items: center; gap: 40px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 18px; padding-block: 12px; font-size: .9375rem; text-decoration: none; position: relative; }
.site-header nav a::after { content: ''; position: absolute; bottom: 7px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
.site-header nav .contact-link { padding: 10px 25px; border-radius: 999px; background: var(--ink); color: var(--surface); transition: background .3s; }
.site-header nav .contact-link::after { display: none; }
.site-header nav .contact-link:hover { background: var(--blue); }
.contact-link .icon { width: 19px; height: 19px; transition: transform .4s var(--ease); }
.contact-link:hover .icon { transform: translate(3px,-3px); }
.intro { min-height: 290px; position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 44px; }
.intro::before { content: ''; position: absolute; z-index: -1; top: 0; right: 5%; width: 440px; height: 100%; background: url('/assets/botanical.svg') center / contain no-repeat; opacity: .16; pointer-events: none; }
.intro h1 { font: 400 clamp(2.6rem,5.1vw,5rem)/1.03 var(--display); letter-spacing: -.035em; }
.intro h1 .title-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.title-line > span { display: block; animation: type-arrive .75s var(--ease) both; }
.title-line:nth-child(2) > span { animation-delay: .09s; }
.intro .intro-subtitle { margin-top: 20px; font-size: .75rem; color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.intro-invitation { flex: 0 0 210px; align-self: end; color: var(--blue); font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 8px; padding-bottom: 7px; transition: text-decoration-color .3s; }
.intro-invitation:hover { text-decoration-color: var(--blue); }
.gallery-opening { display: grid; grid-template-columns: 2.047fr 1fr; align-items: start; gap: var(--gap); }
.gallery-stack { display: grid; gap: 23px; }
.project-card { display: block; min-width: 0; text-decoration: none; }
.art { position: relative; overflow: hidden; border-radius: 3px; background: var(--pale); aspect-ratio: 1.774; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease), filter .85s var(--ease); }
.gallery-stack .art { aspect-ratio: 2.08; }
.gallery-opening > .lead .art { animation: sheet-arrive .85s var(--ease) both; }
.gallery-stack .project-card:first-child .art { animation: sheet-arrive .8s .1s var(--ease) both; }
.gallery-stack .project-card:nth-child(2) .art { animation: sheet-arrive .8s .2s var(--ease) both; }
.project-discipline { margin-top: 7px; font-size: .75rem; line-height: 1.5; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; color: var(--blue); }
.project-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 0 0; }
.project-caption h2 { font: 500 1.0625rem/1.4 var(--text); text-wrap: pretty; }
.project-caption time { color: var(--blue); font-size: .875rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.gallery-stack .project-caption { padding: 11px 0 0; gap: 12px; }
.gallery-stack .project-caption h2 { font-size: .875rem; }
.gallery-stack time { font-size: .75rem; }
.project-open, .image-zoom { display: grid; place-items: center; position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--blue); opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.project-card:focus-visible .project-open, .image-link:focus-visible .image-zoom { opacity: 1; transform: none; }
.project-open { width: auto; height: auto; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: .8125rem; font-weight: 500; }
@media (hover:hover) {
  .project-card:hover .art img { transform: scale(1.025); filter: saturate(1.035); }
  .project-card:hover .project-caption h2 { text-decoration: underline; text-decoration-color: var(--rule); }
  .project-card:hover .project-open, .image-link:hover .image-zoom { opacity: 1; transform: none; }
}
.gallery-rest { margin-top: clamp(56px,6vw,96px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gallery-rest { align-items: start; }
.gallery-rest .project-card:last-child { margin-top: 10vw; }
.contact-band { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(80px,10vw,160px); padding-block: clamp(52px,7vw,100px); background: var(--ink); color: var(--paper); }
.contact-band::before { content: ''; position: absolute; z-index: -1; right: 8%; top: -25%; width: 540px; height: 150%; background: url('/assets/botanical.svg') center / contain no-repeat; opacity: .09; pointer-events: none; }
.contact-band a { display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 400 clamp(3.4rem,7vw,6rem)/1.1 var(--display); text-decoration: none; }
.contact-band a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 14px; }
.contact-band a:focus-visible { outline-color: var(--paper); }
.contact-band-subtitle { margin-top: 24px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.home .site-footer { margin-top: 0; border-top: 0; padding-top: 48px; }
.site-footer { margin-top: clamp(80px,9vw,144px); padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--rule); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-top nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-top a { text-decoration: none; font-size: .875rem; }
.footer-top a:hover { text-decoration: underline; }
.back-top { display: inline-flex; align-items: center; gap: 16px; }
.back-top .icon { width: 18px; }
.footer-bottom { margin-top: 48px; }
.footer-bottom p { font-size: .75rem; color: var(--blue); }
.project-heading { position: relative; isolation: isolate; padding-block: 42px 38px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--blue); font-size: .875rem; margin-bottom: 28px; }
.back-link .icon { width: 17px; }
.back-link:hover { text-decoration: underline; }
.project-heading h1 { font: 400 clamp(2.6rem,5.2vw,5.2rem)/1.08 var(--display); letter-spacing: -.03em; max-width: 22ch; }
.project-meta { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.project-meta .project-discipline { margin: 0; font-size: .75rem; }
.project-heading time { display: block; font-size: .9375rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.project-text { max-width: 74ch; margin: clamp(48px,6vw,88px) auto; font-size: clamp(1rem,1.2vw,1.125rem); line-height: 1.75; }
.project-text > div > div + div { margin-top: 1em; }
.project-text h2 { font: 400 clamp(2rem,3.5vw,3rem)/1.15 var(--display); letter-spacing: -.02em; margin: 64px 0 24px; }
.project-text h3 { font: 700 1.05rem/1.4 var(--text); text-transform: uppercase; letter-spacing: .055em; margin: 40px 0 14px; }
.project-text h2:first-child, .project-text h3:first-child { margin-top: 0; }
.project-text strong { font-weight: 600; }
.project-text a { color: var(--blue); overflow-wrap: anywhere; }
.project-introduction { margin-top: 0; margin-bottom: 48px; margin-left: 0; max-width: 76ch; }
.project-introduction strong { font-weight: 400; }
.image-group { display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-block: 32px; }
.image-group-multiple { grid-template-columns: 1fr 1fr; align-items: start; }
.image-group-multiple .image-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
.image-link { position: relative; display: block; text-decoration: none; cursor: zoom-in; background: var(--pale); border-radius: 3px; overflow: hidden; }
.image-link > img { width: 100%; height: auto; }
.project-video { margin: 48px auto; background: var(--ink); }
.project-video video { width: 100%; height: auto; aspect-ratio: 16/9; }
.related { margin-top: 100px; padding-top: 56px; border-top: 1px solid var(--rule); }
.related > h2 { font: 400 clamp(2rem,3.3vw,3rem)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 40px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gap); }
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,8vw,128px); padding-top: 72px; }
.contact-heading h1 { font: 400 clamp(3.4rem,7vw,6rem)/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 48px; }
.email-link { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(.9rem,1.5vw,1.25rem); text-decoration: none; overflow-wrap: anywhere; }
.contact-heading nav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; font-size: .875rem; }
.contact-heading nav a { text-decoration: none; }
.contact-heading a:hover { text-decoration: underline; }
.contact-form { min-width: 0; }
.contact-form iframe { display: block; border: 0; width: 100%; min-height: 640px; }
.form-alternative { margin-top: 16px; font-size: .8125rem; color: var(--blue); }
.form-alternative a { display: inline-flex; align-items: center; gap: 8px; }
.form-alternative .icon { width: 15px; }
.not-found-page { padding-block: 100px; }
.not-found-page h1 { font: 400 clamp(3rem,6vw,5rem)/1.1 var(--display); }
.not-found-page p { margin-block: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; }
.lightbox { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 20px 32px; border: 0; background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: rgb(1 44 80 / .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; animation: lightbox-in .3s var(--ease); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; }
.lightbox-count { font-size: .875rem; font-variant-numeric: tabular-nums; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; border-radius: 50%; transition: background .25s, color .25s; }
.icon-button:hover { background: var(--blue); color: var(--paper); }
.lightbox-stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 24px; min-height: 0; }
.lightbox-next .icon { transform: rotate(180deg); }
.lightbox-image-wrap { height: 100%; min-height: 0; display: grid; place-items: center; position: relative; }
.lightbox-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease; }
.lightbox-image[data-loading] { opacity: .25; }
.lightbox-status { position: absolute; padding: 8px 16px; background: var(--paper); font-size: .875rem; }
.lightbox-status:empty { display: none; }
.lightbox-original { position: absolute; bottom: 12px; padding: 8px 16px; background: var(--paper); }
.lightbox-caption { text-align: center; font-size: .875rem; }
@keyframes lightbox-in { from { opacity: .4; transform: translateY(12px); } }
@keyframes type-arrive { from { transform: translateY(65%); opacity: .3; } }
@keyframes sheet-arrive { from { clip-path: inset(0 0 16% 0); transform: translateY(30px); opacity: .7; } }
@keyframes reveal-text { from { opacity: .65; transform: translateY(20px); } }
@keyframes reveal-art { from { clip-path: inset(0 0 7% 0); transform: translateY(22px); } }
.reveal.is-revealing { animation: reveal-text .8s var(--ease) both; }
.reveal-group.is-revealing > * { animation: reveal-art 1s var(--ease) both; }
.reveal-group.is-revealing > :nth-child(2) { animation-delay: .09s; }
.reveal-group.is-revealing > :nth-child(3) { animation-delay: .16s; }
.reveal-group.is-revealing > :nth-child(4) { animation-delay: .23s; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .15s ease both; }
::view-transition-new(root) { animation: page-in .25s ease both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-group(project-cover) {
  animation-duration: .65s; animation-timing-function: cubic-bezier(.22,.61,.36,1);
  overflow: clip; border-radius: 16px;
}
::view-transition-old(project-cover), ::view-transition-new(project-cover) {
  width: 100%; height: 100%; object-fit: cover;
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
@media (max-width: 1000px) {
  .brand span { display: none; }
  .intro { min-height: 200px; }
  .intro-invitation { flex-basis: 180px; font-size: .9375rem; margin-top: 30px; gap: 14px; }
  .gallery-stack { gap: 18px; }
  .project-caption { gap: 12px; }
  .gallery-stack .project-caption { flex-wrap: wrap; row-gap: 4px; }
  .gallery-stack .project-caption h2 { font-size: .8125rem; }
  .gallery-stack time { display: block; }
  .contact-page { gap: 40px; }
}
@media (max-width: 720px) {
  .site-header { min-height: 88px; gap: 12px; }
  .brand img { width: 105px; height: 44px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .75rem; gap: 0; }
  .site-header nav .contact-link { padding: 10px 13px; min-height: 44px; }
  .contact-link .icon { display: none; }
  .intro { display: block; padding-block: 38px 32px; min-height: auto; }
  .intro h1 { font-size: clamp(2.4rem,7.5vw,3.35rem); line-height: 1.13; }
  .intro .intro-subtitle { margin-top: 18px; font-size: .75rem; }
  .intro-invitation { display: inline-block; margin-top: 28px; font-size: .875rem; }
  .intro::before { top: 0; right: 0; width: 240px; opacity: .12; }
  .gallery-opening, .gallery-rest, .gallery-stack { grid-template-columns: 1fr; gap: 38px; }
  .gallery-rest { margin-top: 38px; }
  .gallery-rest .project-card:last-child { margin-top: 0; }
  .gallery-stack .art { aspect-ratio: 1.774; }
  .project-caption, .gallery-stack .project-caption { padding-top: 13px; flex-wrap: nowrap; }
  .project-caption h2, .gallery-stack .project-caption h2 { font-size: .9375rem; }
  .project-caption time, .gallery-stack .project-caption time { font-size: .75rem; }
  .project-open { right: 12px; bottom: 12px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-top nav { gap: 12px 24px; }
  .footer-bottom { align-items: end; gap: 32px; }
  .footer-bottom p { max-width: 29ch; text-align: right; font-size: .6875rem; }
  .project-heading { padding-top: 28px; padding-bottom: 30px; }
  .project-heading h1 { font-size: clamp(2.5rem,8vw,3.7rem); overflow-wrap: anywhere; }
  .project-meta { margin-top: 22px; padding-top: 18px; }
  .project-meta .project-discipline { font-size: .75rem; }
  .back-link { margin-bottom: 26px; }
  .project-introduction { margin-bottom: 32px; }
  .project-text { line-height: 1.7; }
  .image-group-multiple { grid-template-columns: 1fr; gap: 20px; }
  .related { margin-top: 72px; padding-top: 38px; }
  .related-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-page { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; }
  .contact-band::before { right: -100px; width: 360px; opacity: .08; }
  .contact-heading h1 { margin-bottom: 28px; }
  .email-link { font-size: 1rem; }
  .contact-heading nav { margin-top: 24px; }
  .contact-form iframe { min-height: 720px; }
  .lightbox { padding: 12px; gap: 12px; }
  .lightbox-stage { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr) 48px; gap: 16px; }
  .lightbox-image-wrap { grid-row: 1; grid-column: 1/-1; }
  .lightbox-prev { grid-row: 2; justify-self: end; }
  .lightbox-next { grid-row: 2; justify-self: start; }
  .lightbox-caption { font-size: .75rem; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; }
  .brand img { width: 90px; }
  .site-header nav { gap: 10px; }
  .site-header nav .contact-link { padding-inline: 10px; }
  .contact-band a { font-size: 2.7rem; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .project-card:hover .art img { transform: none; filter: none; }
  .project-card:hover, .intro-invitation:hover .icon, .contact-band a:hover .icon, .contact-link:hover .icon { transform: none; }
}
