/* Camera, contact sheet and first-load counter. */
.loader { display: none; }
.loading-portfolio .loader {
	position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
	background: #1000ef; color: #e5e3d9; font: 460 clamp(110px,21vw,330px)/.9 var(--mono);
	letter-spacing: -.1em; pointer-events: all;
}
.loader > div { display: flex; align-items: start; }
.loader sup { font-size: .34em; font-weight: 400; line-height: 1.05; letter-spacing: -.1em; }
.loading-portfolio { overflow: hidden; }
.social-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.social-list a { width: fit-content; }
.menu-secondary .social-list { display: grid; gap: 2px; margin-top: 1.1em; }
.menu-secondary .social-list a { font-size: clamp(15px,1.6vw,27px); }
.basefoot .social-list { margin-left: auto; }
.lens { min-height: 100svh; position: relative; }
.lens-surface { position: relative; width: 100%; }
.lens-surface canvas { display: none; }
.world { padding: 85px var(--pad) 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.world-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.lens-word { width: clamp(272px,39.8vw,840px); line-height: 0; }
.lens-word a { display: block; position: relative; }
.lens-word img { display: block; width: 100%; height: auto; }
.linear-home { margin: 5vh var(--pad); }
.lens-home, .lens-bottom { display: none; }
.camera-active .linear-home, .camera-active.home .basefoot { display: none; }
.camera-active { overflow: hidden; }
.camera-active .lens { position: relative; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; isolation: isolate; }
.camera-active .lens-surface { position: absolute; inset: 0; overflow: hidden; width: 100%; height: 100%; touch-action: none; cursor: grab; outline-offset: -4px; }
.camera-active .lens-surface:active { cursor: grabbing; }
.camera-active .lens-surface.on-image { cursor: pointer; }
.camera-active .lens-surface canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.camera-active .world { padding: 0; display: block; }
.camera-active .world-tile { position: absolute; left: 0; top: 0; transform-origin: center; visibility: hidden; aspect-ratio: auto; pointer-events: none; }
.camera-active .world-tile img { width: 100%; height: 100%; }
.camera-active.has-gl .world { display: none; }
.camera-active .lens-word { position: absolute; left: 0; top: 0; margin: 0; transform-origin: center; white-space: nowrap; z-index: 1; pointer-events: none; }
.camera-active .lens-word a { pointer-events: auto; }
.camera-active .lens::after { content: ""; position: absolute; inset: var(--top) 3vw 5.2vh; border: 1px solid #e2e1db88; pointer-events: none; opacity: 0; transition: opacity .24s; }
.camera-active .lens.travelling::after { opacity: .7; }
.camera-active .lens-home { position: absolute; inset: 0; display: block; pointer-events: none; transition: opacity .34s; }
.camera-active .lens-home a, .shot-overlay a, .shot-overlay button { pointer-events: auto; }
.lens-home::before, .lens-home::after { content: ""; position: absolute; left: 1.4%; right: 0; top: 26.5%; height: 1px; background: var(--rule); }
.lens-home::after { top: 71%; }
.lens-intro::before, .lens-stats::before { content: ""; position: absolute; left: 0; top: 0; bottom: -20vh; width: 1px; background: var(--rule); }
.lens-intro::after, .lens-stats::after, .shot-heading::after { content: ""; width: 6px; height: 6px; position: absolute; left: -2.5px; top: -2.5px; background: #92919a; border-radius: 50%; }
.lens-kicker { position: absolute; left: 31.5%; bottom: 75.5%; font-size: clamp(9px,.68vw,12px); color: var(--mute); line-height: 1.28; }
.lens-intro { position: absolute; top: 26.5%; left: 1.4%; height: 44.5%; width: 23%; padding: 1.3vw; }
.lens-intro p { max-width: 23ch; font-size: clamp(15px,1.16vw,22px); letter-spacing: -.032em; }
.lens-intro a, .lens-contacts a { display: inline-block; color: var(--mute); padding-block: 8px; }
.lens-intro a { margin-top: 10px; }
.lens-intro a:hover, .lens-contacts a:hover, .lens-bottom a:hover, .lens-bottom button:hover { color: white; }
.lens-stats { display: grid; align-content: start; gap: clamp(18px,2.3vh,38px); position: absolute; top: 26.5%; left: 78%; height: 44.5%; padding: 1.4vw; }
.lens-stats a { display: grid; gap: 4px; }
.lens-stats strong { font: 430 clamp(19px,1.65vw,34px)/1.15 var(--mono); letter-spacing: -.07em; }
.lens-stats span { color: var(--mute); font-size: clamp(9px,.7vw,12px); }
.lens-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 2.5vw; position: absolute; top: 72.6%; left: var(--pad); }
.camera-active .lens-home[hidden], .shot-overlay[hidden] { display: none; }
.shot-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .3s; }
.travelling .shot-overlay, .travelling .lens-home { opacity: 0; visibility: hidden; pointer-events: none; }
.shot-index { position: absolute; left: var(--pad); width: 13%; top: 24%; bottom: 19%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #45454e transparent; pointer-events: auto; display: flex; flex-direction: column; align-items: start; }
.shot-index button { font: inherit; text-transform: inherit; text-align: left; padding: 5px 5px 5px 0; color: #a19fa8; }
.shot-index [aria-current], .shot-index button:hover { color: #f9f8f1; }
.shot-heading, .shot-actions { position: absolute; left: 79%; right: var(--pad); }
.shot-heading { top: var(--card-top,24%); border-top: 1px solid var(--rule); padding: 12px 0 0 13px; }
.shot-heading h2 { font-size: clamp(23px,2.05vw,40px); font-weight: 470; line-height: 1.09; letter-spacing: -.055em; }
.shot-heading p { margin-top: 13px; font-size: clamp(13px,.98vw,18px); color: #c3c1c5; line-height: 1.5; }
.shot-actions { bottom: var(--card-top,24%); padding-left: 13px; display: grid; gap: 15px; justify-items: start; }
.shot-category { color: var(--mute); }
.shot-open { font-size: clamp(14px,1.15vw,20px); background: var(--blue); color: white; padding: 4px 9px; }
.camera-active .lens-bottom { position: absolute; bottom: max(12px,env(safe-area-inset-bottom)); left: var(--pad); right: var(--pad); display: flex; gap: clamp(9px,1.1vw,21px); align-items: center; color: var(--mute); pointer-events: none; }
.lens-bottom button, .lens-bottom a { pointer-events: auto; padding: 5px 0; font: inherit; text-transform: inherit; }
.camera-hint { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.shot-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.shot-controls button { font-size: 18px; min-width: 27px; }
.touch-hint { display: none; }
.home.camera-active .top { background: transparent; }
.home.camera-active:has(.lens.at-home) > .top .brand { visibility: hidden; }
@media (max-width: 760px) {
	.lens-word { width: min(70vw,490px); }
	.lens-kicker { top: max(9%,52px); left: var(--pad); bottom: auto; }
	.lens-home::before { top: 34%; left: 4px; }
	.lens-home::after { display: none; }
	.lens-intro { top: 34%; left: 4px; width: 94%; height: auto; padding: 15px; }
	.lens-intro::before { top: -40vh; bottom: -65vh; }
	.lens-intro p { max-width: 28ch; font-size: 17px; }
	.lens-stats { top: 60%; left: var(--pad); height: auto; display: flex; gap: 9vw; padding: 0; }
	.lens-stats::before, .lens-stats::after { display: none; }
	.lens-contacts { top: 73%; right: var(--pad); gap: 7px 20px; }
	.camera-active .lens-bottom { gap: 12px; bottom: max(10px,env(safe-area-inset-bottom)); }
	.lens-bottom > span:first-child { display: none; }
	.camera-hint { bottom: 34px; left: 0; transform: none; font-size: 9px; }
	.desktop-hint { display: none; }
	.touch-hint { display: inline; }
	.shot-index { display: none; }
	.shot-heading { top: 12%; left: var(--pad); right: var(--pad); padding: 8px 0 0; }
	.shot-heading h2 { font-size: clamp(22px,7vw,34px); }
	.shot-heading p { display: none; }
	.shot-actions { top: auto; bottom: 16%; left: var(--pad); right: var(--pad); padding-left: 0; display: flex; justify-content: space-between; align-items: center; }
	.basefoot .social-list { width: 100%; order: 2; margin: 0; }
}
@media (max-height:520px) {
	.camera-hint { display: none; }
	.lens-contacts { top: 76%; }
	.lens-kicker { display: none; }
	.lens-stats { gap: 7px; }
	.shot-heading p { font-size: 11px; margin-top: 4px; }
}
.camera-active .lens-home {
	background-image: linear-gradient(var(--rule),var(--rule)),linear-gradient(var(--rule),var(--rule));
	background-position: 1.4% 0,78% 0; background-size: 1px 100%; background-repeat: no-repeat;
}
.lens-intro::before, .lens-stats::before { display: none; }
.lens-contacts a { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(13px,1.06vw,17px); font-weight: 590; letter-spacing: -.035em; color: #96959b; }
.lens-contacts img { width: 17px; height: 15px; object-fit: contain; opacity: .72; }
.shot-tools { display: flex; align-items: center; gap: 14px; }
.preview-toggle { min-width: 30px; min-height: 30px; padding: 3px; color: var(--paper); border: 1px solid var(--rule); }
@media(max-width:760px) {
	.camera-active .lens-home { background-size: 1px 100%,0 0; background-position: 4px 0; }
	.lens-contacts { max-width: 335px; gap: 1px 16px; }
	.lens-contacts a { font-size: 14px; }
	.shot-tools { gap: 8px; }
}
@media(max-width:760px) and (max-height:690px) and (orientation:portrait) {
	.lens-intro { padding-top: 10px; }
	.lens-intro p { font-size: 15px; line-height: 1.35; }
	.lens-intro a { margin-top: 2px; }
	.lens-stats { top: 64%; }
	.lens-contacts { top: 76%; }
	.lens-contacts a { padding-block: 3px; }
}
.loader sup { margin-left: .13em; }
