/* Spreads: black, Instrument Serif for the titles (large, quiet, a little cinematic) and Instrument Sans for the
   small type. White only; no accent colour. */
:root{--ease:cubic-bezier(.2,.7,.1,1);--focus:#fff;--halo:rgba(0,0,0,.6);--m:28px}
html,body{width:100%;height:100%;overflow:hidden;background:#000;color:#fff}
body{font:400 14px/1.5 'Instrument Sans',system-ui,sans-serif}
.serif,.name,.title,h2,h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400}

/* ---- Top: the name, Index, Inquire ---- */
.top{position:fixed;z-index:10;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:baseline;padding:20px var(--m)}
.top .name{font-size:27px;line-height:1}
.acts{display:flex;gap:28px}
.acts button{font-size:13.5px;letter-spacing:.02em;padding:4px 0;border-bottom:1px solid transparent;transition:border-color .3s}
.acts button:hover{border-color:currentColor}

/* ---- The spreads ---- */
.stage{position:fixed;inset:0;cursor:pointer}
.spread{position:absolute;inset:0;display:grid;opacity:0;transition:opacity .9s ease,transform 1.1s var(--ease)}
.spread.on{opacity:1}
.spread[data-from="x+"]{transform:translateX(4%)}.spread[data-from="x-"]{transform:translateX(-4%)}
.spread[data-from="y+"]{transform:translateY(7%)}.spread[data-from="y-"]{transform:translateY(-7%)}
.spread[data-to="x-"]{transform:translateX(-4%)}.spread[data-to="x+"]{transform:translateX(4%)}
.spread[data-to="y-"]{transform:translateY(-7%)}.spread[data-to="y+"]{transform:translateY(7%)}
.pic{position:relative;overflow:hidden;min-height:0}
.pic img{width:100%;height:100%;object-fit:cover;transition:opacity .8s ease,transform 1.8s var(--ease)}
.spread:not(.on) .pic img{transform:scale(1.03)}
.two{grid-template-columns:1fr 1fr;gap:3px}
.half{grid-template-columns:1fr 1fr}
.aside{display:grid;place-content:center;justify-items:start;gap:10px;padding:0 7vw 12vh}
.aside .no,.aside .p{font-size:11px;letter-spacing:.18em;text-transform:uppercase;opacity:.65}
.aside .t{font:italic 400 clamp(40px,4.4vw,72px)/1 'Instrument Serif',serif}
.fit .pic img{object-fit:contain}

/* A light shade at the bottom and top so the caption and the name read on any photograph, and a deeper one
   that comes in only under a row's title, on its first spread. */
.shade{position:fixed;inset:0;z-index:2;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.42),transparent 17%),linear-gradient(to bottom,rgba(0,0,0,.32),transparent 14%)}
.shade::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.48),rgba(0,0,0,.22) 26%,transparent 46%);opacity:0;transition:opacity .9s ease}
html.first .shade::after{opacity:1}

/* ---- The title, the hairline, the caption and the counter ---- */
.hud{position:fixed;z-index:5;left:var(--m);right:var(--m);bottom:24px;pointer-events:none}
.hud .head{transition:opacity .7s ease,transform .9s var(--ease)}
html:not(.first) .hud .head{opacity:0;transform:translateY(14px)}
.hud .title{font-size:clamp(54px,7.2vw,124px);line-height:.95;letter-spacing:-.012em}
.hud .title.rise{animation:rise .9s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(24px)}}
.hud .line{font:italic 400 21px/1.35 'Instrument Serif',serif;opacity:.88;margin-top:8px;max-width:46ch}
.rule{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px;padding-top:12px;border-top:1px solid rgba(255,255,255,.55);transition:border-color .7s ease}
html:not(.first) .rule{border-top-color:transparent}
.cap{transition:opacity .5s ease}
html.half .hud .cap{opacity:0}
.cap{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cap i{font:italic 400 18px/1 'Instrument Serif',serif}
.cap span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;opacity:.7}
.cap i + span{margin-left:16px}
.ctrl{display:flex;align-items:center;gap:4px;pointer-events:auto}
.ctrl button{width:36px;height:36px;display:grid;place-items:center;opacity:.8;transition:opacity .2s}
.ctrl button:hover{opacity:1}
.ctrl svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.3}
.count{min-width:72px;text-align:center;font-size:13px;letter-spacing:.1em;font-variant-numeric:tabular-nums}

/* ---- The rows, down the right-hand side ---- */
.rows{position:fixed;z-index:6;right:var(--m);top:50%;translate:0 -50%}
.rows ol{display:grid;gap:4px;justify-items:end}
.rows button,.rows a{display:flex;align-items:center;gap:10px;font-size:13.5px;padding:4px 0;opacity:.55;transition:opacity .3s}
.rows button::before,.rows a::before{content:"";width:0;height:1px;background:currentColor;transition:width .45s var(--ease)}
.rows button:hover,.rows a:hover,.rows [aria-current]{opacity:1}
.rows [aria-current]::before{width:22px}
.rows button,.rows a{text-shadow:0 1px 10px rgba(0,0,0,.5)}

/* ---- Index: every spread as a small sheet ---- */
.index,.inq{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#000;color:#fff;overflow:auto}
.index::backdrop,.inq::backdrop{background:#000}
.index{padding:0 var(--m) 60px}
.ix-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:baseline;padding:20px 0 16px;background:#000}
.ix-bar h2{font-size:46px;line-height:1}
.x{font-size:13.5px;border-bottom:1px solid;padding:4px 0}
.index section{margin-top:26px}
.index h3{font-size:30px;margin-bottom:12px}
.index h3 span{font:400 12px 'Instrument Sans';letter-spacing:.14em;text-transform:uppercase;opacity:.55;margin-left:10px}
.index ol{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.index li button{display:grid;width:100%;aspect-ratio:3/2;gap:2px;background:#111;opacity:.82;transition:opacity .25s}
.index li button:hover{opacity:1}
.index li button.two,.index li button.half{grid-template-columns:1fr 1fr}
.index li img{width:100%;height:100%;object-fit:cover;min-height:0}
.index li .t{display:grid;place-items:center;padding:10px;text-align:center;font:italic 400 22px/1.1 'Instrument Serif',serif}
@media (prefers-reduced-motion:no-preference){.index[open] li{animation:rise .6s var(--ease) both}}

/* ---- Inquire: the photograph you were on, beside the form ---- */
.inq[open]{display:grid;grid-template-columns:1fr 1fr}
.pic-l{position:relative;overflow:hidden}
.pic-l img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.inq .desk{padding:24px clamp(24px,5vw,80px) 50px;overflow:auto;--btn:#fff;--btn-ink:#000;--picker:invert(1)}
.inq .x{display:block;margin-left:auto}
.inq h2{font-size:clamp(44px,4.6vw,76px);line-height:1;margin-top:clamp(30px,10vh,110px)}
.inq .note{opacity:.7;margin:12px 0 30px}
.inq-form button{font-weight:600;letter-spacing:.02em}
@media (prefers-reduced-motion:no-preference){.inq[open] .desk{animation:slide .7s var(--ease) both}.inq[open] .pic-l{animation:fade 1s ease both}}
@keyframes slide{from{transform:translateX(30px);opacity:0}}
@keyframes fade{from{opacity:0}}

/* ---- The opening, once a visit: the first photograph comes up out of black, then the words ---- */
html.intro .spread.on .pic img{filter:brightness(0);transform:scale(1.1)}
html.intro.go .spread.on .pic img{filter:none;transform:none;transition:filter 2.2s ease,transform 3s var(--ease),opacity .8s}
html.intro .hud,html.intro .top,html.intro .rows{opacity:0}
html.intro.go .hud,html.intro.go .top,html.intro.go .rows{opacity:1;transition:opacity 1.2s ease 1.3s}

/* ---- Phone: one photograph per screen, the rows across the top ---- */
@media (max-width:760px){
  :root{--m:18px}
  .top{padding:16px var(--m)}
  .top .name{font-size:24px}
  .acts{gap:18px}
  .rows{top:56px;left:var(--m);right:var(--m);translate:none}
  .rows ol{display:flex;gap:16px;overflow-x:auto;justify-items:start}
  .rows button::before,.rows a::before{display:none}
  .rows [aria-current]{text-decoration:underline;text-underline-offset:5px}
  .hud{bottom:18px}
  .hud .title{font-size:50px}
  .hud .line{font-size:17px}
  .rule{flex-wrap:wrap;row-gap:4px}
  .cap{white-space:normal}
  .cap span{display:block;margin:4px 0 0}
  .shade{background:linear-gradient(to top,rgba(0,0,0,.5),transparent 20%),linear-gradient(to bottom,rgba(0,0,0,.58),rgba(0,0,0,.3) 12%,transparent 22%)}
  .shade::after{background:linear-gradient(to top,rgba(0,0,0,.42),rgba(0,0,0,.2) 30%,transparent 50%)}
  .rows button,.rows a{opacity:.72}
  .inq[open]{grid-template-columns:1fr;grid-template-rows:34svh auto}
  .inq .desk{overflow:visible}
  .inq h2{margin-top:18px;font-size:44px}
  .index ol{grid-template-columns:1fr 1fr}
}

/* Before any photographs are chosen: the name and the form, white on black */
.empty-site{--btn:#fff;--btn-ink:#000;--picker:invert(1);--focus:#fff;--halo:rgba(0,0,0,.6)}
.empty-site h1{font:400 clamp(56px,9vw,120px)/.95 'Instrument Serif',serif}
.empty-site h2{font:400 32px/1.1 'Instrument Serif',serif}
