:root {
  --bg: #0d0c0b; --bg2: #151311; --ink: #efe9df; --muted: #9b9184; --faint: #5f574e;
  --line: rgba(239,233,223,.14); --gold: #c9a774; --gold-soft: rgba(201,167,116,.55);
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1); --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased;
       overflow-x: hidden; min-height: 100vh; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
.eyebrow { font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; gap: 26px;
          justify-items: center; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { font-size: 12px; letter-spacing: .7em; text-transform: uppercase; padding-left: .7em; }
.loader-line { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s; }

/* stage */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; transition: opacity 1.2s var(--ease), filter 1.2s;
         touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
body.in-world #stage { opacity: .09; filter: blur(3px); pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
         animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* top bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
       padding: 26px var(--gutter); pointer-events: none; transition: background .6s, padding .6s; }
.bar > * { pointer-events: auto; }
body.scrolled .bar { background: linear-gradient(rgba(13,12,11,.92), rgba(13,12,11,0)); padding-top: 18px; padding-bottom: 30px; }
.logo { font-size: 12px; letter-spacing: .6em; text-transform: uppercase; text-decoration: none; }
.bar-nav { display: flex; gap: 30px; }
.bar-nav a { font-size: 10px; letter-spacing: .35em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .4s; position: relative; }
.bar-nav a:hover, .bar-nav a.on { color: var(--ink); }
.bar-nav a.on::after { content: ''; position: absolute; left: 0; right: .35em; bottom: -6px; height: 1px; background: var(--gold); }

.view { position: relative; z-index: 2; }

/* welcome */
.view-welcome { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) 90px; pointer-events: none; }
.view-welcome a, .view-welcome button { pointer-events: auto; }
.welcome-copy { max-width: 560px; }
.view-welcome h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7.4vw, 112px); line-height: .96; margin: 26px 0 26px; letter-spacing: -.01em; }
.view-welcome h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.worlds { list-style: none; margin-top: 46px; border-top: 1px solid var(--line); }
.worlds li { border-bottom: 1px solid var(--line); }
.worlds a { display: grid; grid-template-columns: 54px 1fr auto; align-items: baseline; gap: 8px; padding: 20px 0 18px; text-decoration: none;
            position: relative; overflow: hidden; }
.worlds a::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold);
                    transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.worlds a:hover::before, .worlds a:focus-visible::before { transform: scaleX(1); }
.worlds .num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }
.worlds .name { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; line-height: 1;
                transition: transform .8s var(--ease), color .5s; }
.worlds a:hover .name, .worlds a:focus-visible .name { transform: translateX(14px); color: #fff; }
.worlds .meta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); transition: color .5s; }
.worlds a:hover .meta { color: var(--muted); }
.worlds a:focus-visible { outline: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); font-size: 9px; letter-spacing: .4em;
               text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.scroll-hint span { width: 34px; height: 1px; background: var(--faint); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ''; position: absolute; inset: 0; background: var(--gold); animation: hint 2.6s var(--ease) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.credit { position: absolute; right: var(--gutter); bottom: 30px; font-size: 10px; color: var(--faint); letter-spacing: .04em; pointer-events: auto; }
.credit a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(22px); }
body.ready .reveal { opacity: 1; transform: none; transition: opacity 1.4s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }
.worlds li { opacity: 0; transform: translateY(18px); }
body.ready .worlds li { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }

/* world */
.view-world { padding: 180px var(--gutter) 120px; max-width: 1440px; margin: 0 auto; }
.world-head { max-width: 820px; margin-bottom: clamp(70px, 12vh, 140px); }
.world-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 10vw, 150px); line-height: .9; margin: 22px 0 28px; letter-spacing: -.015em; }
.world-head .lede { max-width: 460px; }
.projects { display: grid; gap: clamp(90px, 16vh, 180px); }
.project { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 30px; align-items: end; cursor: pointer; }
.project .pimg { grid-column: 1 / span 8; position: relative; overflow: hidden; aspect-ratio: 1191 / 879; background: var(--bg2); }
.project:nth-child(even) .pimg { grid-column: 5 / span 8; grid-row: 1; }
.project:nth-child(even) .ptext { grid-column: 1 / span 4; grid-row: 1; text-align: right; }
.project .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 2.2s var(--ease), opacity 1.2s; opacity: 0; }
.project.seen .pimg img { opacity: 1; transform: scale(1.02); }
.project:hover .pimg img { transform: scale(1.06); }
.project .pimg .curtain { position: absolute; inset: 0; background: var(--bg); transform-origin: top; transition: transform 1.6s var(--ease); }
.project.seen .curtain { transform: scaleY(0); }
.project .ptext { grid-column: 9 / span 4; padding-bottom: 6px; opacity: 0; transform: translateY(30px); transition: all 1.4s var(--ease) .3s; }
.project.seen .ptext { opacity: 1; transform: none; }
.project .pnum { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; }
.project h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; margin: 14px 0 14px; }
.project .ptype { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.project .pblurb { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 22px 0 26px; }
.project .open { display: inline-flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
                 color: var(--ink); background: none; border: 0; cursor: pointer; font-family: var(--sans); padding: 0; }
.project .open i { display: block; width: 46px; height: 1px; background: var(--gold); transition: width .8s var(--ease); }
.project:hover .open i { width: 80px; }
.world-foot { margin-top: clamp(110px, 18vh, 200px); padding-top: 60px; border-top: 1px solid var(--line); display: grid; gap: 34px; }
.other-worlds { display: flex; flex-wrap: wrap; gap: 14px 60px; }
.other-worlds a { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 300; text-decoration: none; transition: color .4s; }
.other-worlds a:hover { color: var(--gold); }
.other-worlds a em { font-size: 15px; color: var(--gold); margin-right: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.cta-mail { font-size: 13px; color: var(--muted); }
.cta-mail b { color: var(--ink); font-weight: 400; user-select: all; }
.cta { justify-self: start; font-size: 11px; letter-spacing: .35em; text-transform: uppercase; text-decoration: none; padding: 20px 34px;
       border: 1px solid var(--gold-soft); transition: background .5s, color .5s; }
.cta:hover { background: var(--gold); color: var(--bg); }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(9,8,7,.985); display: grid; grid-template-rows: auto 1fr auto;
          opacity: 0; transition: opacity .8s var(--ease); }
.viewer.on { opacity: 1; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); }
.viewer-top h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); margin-top: 6px; }
.close { background: none; border: 0; color: var(--ink); font-family: var(--sans); font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
         cursor: pointer; display: flex; align-items: center; gap: 14px; }
.close span { width: 30px; height: 30px; position: relative; }
.close span::before, .close span::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--gold); transform: rotate(45deg); transition: transform .5s var(--ease); }
.close span::after { transform: rotate(-45deg); }
.close:hover span::before { transform: rotate(135deg); } .close:hover span::after { transform: rotate(45deg); }
.pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 3vw; padding: 0 var(--gutter); align-items: center;
         scrollbar-width: none; outline: none; overscroll-behavior: contain; }
.pages::-webkit-scrollbar { display: none; }
.pages figure { flex: 0 0 auto; height: 100%; max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); aspect-ratio: 1191 / 879;
                max-width: calc(100vw - 2 * var(--gutter)); scroll-snap-align: center; background: var(--bg2); position: relative; }
.pages img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .8s; }
.pages img.loaded { opacity: 1; }
.pages figure:first-child { margin-left: calc(50vw - var(--gutter) - min(calc(100vh - 200px) * 1191 / 879, calc(100vw - 2 * var(--gutter))) / 2); }
.pages figure:last-child { margin-right: calc(50vw - var(--gutter) - min(calc(100vh - 200px) * 1191 / 879, calc(100vw - 2 * var(--gutter))) / 2); }
.arrow { background: none; border: 1px solid var(--line); color: var(--ink); width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
         font-size: 18px; transition: border-color .4s, background .4s; flex: 0 0 auto; }
.arrow:hover { border-color: var(--gold); background: rgba(201,167,116,.08); }
.progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.progress span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--gold); width: 0; transition: width .5s var(--ease); }
.count { font-family: var(--serif); font-size: 18px; min-width: 70px; text-align: center; }

/* page transitions */
.view-world.enter .world-head > * { opacity: 0; transform: translateY(30px); }
.view-world.entered .world-head > * { opacity: 1; transform: none; transition: all 1.3s var(--ease); }
.view-world.entered .world-head > *:nth-child(2) { transition-delay: .12s; }
.view-world.entered .world-head > *:nth-child(3) { transition-delay: .24s; }
.wipe { position: fixed; inset: 0; z-index: 50; background: var(--bg); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.wipe.go { animation: wipe 1.3s var(--ease) forwards; }
@keyframes wipe { 0% { transform: scaleY(0); transform-origin: bottom; } 45% { transform: scaleY(1); transform-origin: bottom; }
                  55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }

@media (max-width: 860px) {
  .view-welcome { align-items: flex-end; padding-bottom: 76px;
                  background: linear-gradient(to top, rgba(13,12,11,.96) 0%, rgba(13,12,11,.85) 44%, rgba(13,12,11,0) 62%); }
  .welcome-copy { max-width: none; width: 100%; }
  .view-welcome h1 { font-size: clamp(38px, 10.5vw, 64px); margin: 0 0 18px; }
  .view-welcome .eyebrow { display: none; }
  .worlds { margin-top: 30px; }
  .worlds a { grid-template-columns: 40px 1fr; padding: 16px 0 14px; } .worlds .meta { display: none; }
  .scroll-hint { display: none; }
  .credit { left: var(--gutter); right: var(--gutter); bottom: 22px; }
  .bar-nav { display: none; }
  .project, .project:nth-child(even) { display: block; }
  .project .ptext, .project:nth-child(even) .ptext { text-align: left; padding-top: 24px; }
  .viewer-bottom .progress { display: none; }
  .pages { gap: 16px; }
  .pages figure { height: auto; width: calc(100vw - 2 * var(--gutter)); max-height: none; }
  .pages figure:first-child, .pages figure:last-child { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .worlds li, .project .ptext, .project .pimg img { opacity: 1 !important; transform: none !important; }
  .project .curtain { display: none; }
}

/* ===== entrance (loader → enter) ===== */
.entry { display: grid; gap: 22px; justify-items: center; opacity: 0; transform: translateY(12px); pointer-events: none;
         transition: opacity 1s var(--ease), transform 1s var(--ease); margin-top: 18px; }
.loader.ready .entry { opacity: 1; transform: none; pointer-events: auto; }
.loader.ready .loader-line { opacity: 0; transition: opacity .6s; }
.enter-note { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); text-align: center; }
.enter-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.enter-btn { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font-family: var(--sans); font-size: 11px;
             letter-spacing: .32em; text-transform: uppercase; padding: 17px 28px; cursor: pointer; transition: background .4s, color .4s, border-color .4s; }
.enter-btn:hover { background: var(--gold); border-color: var(--gold); }
.enter-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.enter-btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.enter-btn:focus-visible, .answer:focus-visible, .tool:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ===== welcome: David's dialogue ===== */
.view-welcome::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; pointer-events: none; z-index: -1;
                       background: linear-gradient(to top, var(--bg) 18%, rgba(13,12,11,0)); }
.view-welcome::before { content: ''; position: absolute; inset: 0 auto 0 0; width: min(760px, 58vw); pointer-events: none; z-index: -1;
                        background: linear-gradient(to right, rgba(13,12,11,.82) 30%, rgba(13,12,11,0)); }
.dialogue { max-width: 540px; display: grid; gap: 30px; text-shadow: 0 1px 24px rgba(13,12,11,.6); }
.speaker { display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.speaker i { width: 34px; height: 1px; background: var(--gold); display: block; }
.line { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.08; min-height: 2.2em;
        letter-spacing: -.005em; text-wrap: balance; }
.line span { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(6px); }
.line.in span { opacity: 1; transform: none; filter: none;
                transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.answers { display: grid; border-top: 1px solid var(--line); opacity: 0; transform: translateY(16px); pointer-events: none;
           transition: opacity 1s var(--ease), transform 1s var(--ease); }
.answers.in { opacity: 1; transform: none; pointer-events: auto; }
.answer { display: grid; grid-template-columns: 50px 1fr auto; align-items: baseline; gap: 8px; padding: 20px 0 18px; background: none; border: 0;
          border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; position: relative; font-family: var(--sans); }
.answer::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold);
                  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.answer:hover::before, .answer:focus-visible::before { transform: scaleX(1); }
.answer .num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }
.answer .name { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 38px); line-height: 1; transition: transform .8s var(--ease); }
.answer:hover .name, .answer:focus-visible .name { transform: translateX(12px); }
.answer .meta { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; background: rgba(239,233,223,.04); border: 1px solid var(--line); color: var(--muted);
        font-family: var(--sans); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; padding: 11px 16px; border-radius: 40px;
        cursor: pointer; transition: color .4s, border-color .4s; }
.tool:hover, .tool[aria-pressed="true"] { color: var(--ink); border-color: var(--gold-soft); }
.tool b { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: block; transition: background .4s; }
.tool[aria-pressed="true"] b { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,167,116,.18); }
.tool.listening b { background: #d0775c; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(208,119,92,.18); } }
.gestures { position: absolute; left: var(--gutter); bottom: 30px; display: flex; gap: 28px; list-style: none;
            font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); white-space: nowrap; pointer-events: none; }
.gestures b { color: var(--muted); font-weight: 400; }
.view-world h2 em { font-style: italic; color: var(--gold); }

@media (max-width: 1100px) { .gestures { display: none; } }
@media (max-width: 860px) {
  .view-welcome { align-items: flex-end; padding-bottom: 64px; background: none; }
  .view-welcome::after { height: 62vh; background: linear-gradient(to top, var(--bg) 46%, rgba(13,12,11,.75) 70%, rgba(13,12,11,0)); }
  .dialogue { gap: 18px; max-width: none; width: 100%; }
  .line { font-size: clamp(26px, 7.4vw, 40px); min-height: 2.3em; }
  .answer { grid-template-columns: 36px 1fr; padding: 15px 0 13px; } .answer .meta { display: none; }
}

/* ===== photographs ===== */
.modes { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 40px; padding: 4px; }
.modes button { background: none; border: 0; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .26em;
                text-transform: uppercase; padding: 10px 16px; border-radius: 40px; cursor: pointer; transition: background .4s, color .4s; white-space: nowrap; }
.modes button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.modes button:hover:not([aria-selected="true"]) { color: var(--ink); }
.pages.photos figure { background: transparent; }
.pages.photos figure:first-child, .pages.photos figure:last-child { margin-left: 0; margin-right: 0; }
.pages.photos { padding-inline: max(var(--gutter), 22vw); gap: 2.4vw; }
.project .strip { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.project:nth-child(even) .strip { grid-column: 5 / span 8; grid-row: 2; }
.project .strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; opacity: 0; transform: translateY(14px);
                      transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.project.seen .strip img { opacity: 1; transform: none; }
.project.seen .strip img:nth-child(2) { transition-delay: .1s; } .project.seen .strip img:nth-child(3) { transition-delay: .2s; } .project.seen .strip img:nth-child(4) { transition-delay: .3s; }
.project:hover .strip img { filter: none; }
@media (max-width: 860px) {
  .modes { order: 3; width: 100%; } .modes button { flex: 1; padding: 9px 8px; letter-spacing: .14em; }
  .viewer-top { flex-wrap: wrap; }
  .pages.photos { padding-inline: var(--gutter); }
  .pages.photos figure { width: calc(100vw - 2 * var(--gutter)); height: auto; }
  .project .strip { margin-top: 8px; gap: 6px; }
}

/* ===== instant previews ===== */
.project .pimg, .pages figure { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pages figure img { position: relative; }

/* ===== phone ===== */
.dock { display: none; }
body.viewing .bar { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .bar { padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; }
  body.in-world .bar { background: linear-gradient(rgba(13,12,11,.94), rgba(13,12,11,0)); }
  /* bottom navigation, like an app */
  body.in-world:not(.viewing) .dock { display: flex; position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 4px; padding: 5px; border-radius: 40px;
    background: rgba(24,22,20,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
  .dock a { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--muted);
            padding: 13px 16px; border-radius: 40px; white-space: nowrap; }
  .dock a.on { background: var(--ink); color: var(--bg); }
  .dock .dock-david { color: var(--gold); }
  .view-world { padding: 110px var(--gutter) 130px; }
  .world-head { margin-bottom: 56px; }
  .world-head h2 { font-size: clamp(46px, 13vw, 72px); margin: 16px 0 18px; }
  .projects { gap: 72px; }
  .project h3 { font-size: 34px; margin: 10px 0 8px; }
  .project .pblurb { margin: 14px 0 18px; }
  .project .open { padding: 14px 0; }
  .world-foot { margin-top: 80px; padding-top: 40px; }
  .other-worlds a { font-size: 32px; }
  .cta { padding: 18px 24px; text-align: center; width: 100%; }
  /* lookbook viewer: full screen, photographs in a vertical feed */
  .viewer { grid-template-rows: auto 1fr; }
  .viewer-top { display: grid; grid-template-columns: 1fr auto; gap: 12px 14px; align-items: start;
                padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 12px; border-bottom: 1px solid var(--line); }
  .viewer-top h3 { font-size: 26px; margin-top: 4px; }
  .viewer-top .eyebrow { font-size: 9px; letter-spacing: .3em; }
  .close { font-size: 0; gap: 0; }
  .close span { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
  .modes { grid-column: 1 / -1; order: 0; width: 100%; }
  .pages, .pages.photos { flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; gap: 14px;
                          padding: 14px var(--gutter) calc(90px + env(safe-area-inset-bottom, 0px)); align-items: stretch; -webkit-overflow-scrolling: touch; }
  .pages figure, .pages.photos figure { width: 100%; height: auto; max-height: none; max-width: 100%; margin: 0 !important; flex: 0 0 auto; }
  .pages figure:not([style*="aspect-ratio"]) { aspect-ratio: 1191 / 879; }
  .viewer-bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 0;
                   background: rgba(24,22,20,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
                   border-radius: 40px; gap: 4px; }
  .viewer-bottom .arrow { width: 44px; height: 44px; border: 0; font-size: 16px; }
  .viewer-bottom .count { font-size: 15px; min-width: 64px; }
}
@media (max-width: 860px) {
  .viewer { background: #0b0a09; }
  .viewer-top .close { grid-column: 2; grid-row: 1; }
  .viewer-top > div:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
  .viewer-top .modes { grid-row: 2; }
}
