/* Home: the first screen's changing sky (2026-10-20). Eight of the owner's own edited photographs crossfade slowly behind
   the headline with a gentle Ken Burns drift. The first image is plain markup, so the screen is never empty without JS. */
.hero-in.sky { min-height: 100svh; margin: calc(var(--hh, 68px) * -1) calc(var(--gut) * -1) 0; padding: calc(clamp(60px, 10vh, 120px) + var(--hh, 68px)) var(--gut) clamp(90px, 12vh, 140px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #FFFFFF; isolation: isolate; overflow: hidden; }
.sky-stage { position: absolute; inset: 0; z-index: -1; background: #10182c; overflow: hidden; pointer-events: none; }
.sky-s { position: absolute; inset: 0; margin: 0; opacity: 0; will-change: opacity; }
.sky-s.on { opacity: 1; }
.sky-s img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.sky-s { transition: opacity .6s ease; }
/* the folding strips (sky.js builds them over the first picture); turning edges show the deep blue stage behind */
.sky-stage { perspective: 1400px; }
.sky-fold { position: absolute; inset: 0; z-index: 2; display: flex; transform-style: preserve-3d; animation: skyBreath 18s ease-in-out infinite alternate; }
@keyframes skyBreath { from { transform: scale(1.06); } to { transform: scale(1); } }   /* the slow zoom, on the compositor */
.sky-st { position: relative; flex: 1; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.65, 0, .35, 1); }
.sky-st.flip { transform: rotateY(180deg); }
.sky-st i { position: absolute; top: 0; bottom: 0; left: -.5px; right: -.5px; background-repeat: no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sky-st .b { transform: rotateY(180deg); }
/* keeps white text readable on the brightest skies, darker at the top (header) and the bottom (controls) */
.sky-stage::after { content: ''; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgb(8 12 24 / .38) 0%, rgb(8 12 24 / .08) 32%, rgb(8 12 24 / .14) 64%, rgb(8 12 24 / .5) 100%),
              radial-gradient(60% 40% at 50% 52%, rgb(8 12 24 / .26), transparent 78%); }
/* fine film grain over the photographs: hides softness and gives the sky a printed, premium feel (static, no CPU cost) */
.sky-stage::before { content: ''; position: absolute; inset: 0; z-index: 4; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px; }
/* nothing may push the page sideways on phones (the sliding rows and turning rings reach past the edge mid-motion);
   clip, unlike hidden, keeps the sticky header working */
html, body { overflow-x: clip; }

/* scrolling away from the first screen sends the picture into the distance (flow.js: scale, sink, rounded corners) */
.sky-stage { transform-origin: 50% 42%; will-change: scale, translate; }
.sky-ch .sky-bg, .sky-cta .sky-bg { will-change: scale; }
.hero-in.sky h1 { will-change: translate, opacity; color: #FFFFFF; text-shadow: 0 2px 40px rgb(8 12 24 / .35); }
.hero-in.sky .ann { color: #FFFFFF; background: rgb(8 12 24 / .38); border-color: rgb(255 255 255 / .32); }
.hero-in.sky .ann:hover { color: #0B0B0C; background: #FFFFFF; }
.sky-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 30px; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 20px; pointer-events: none; }
.sky-dots { display: flex; gap: 6px; }
.sky-dots i { display: block; width: 28px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .3); overflow: hidden; }
.sky-dots i b { display: block; height: 100%; width: 100%; background: #FFFFFF; transform-origin: 0 50%; transform: scaleX(0); }
.sky-cue { font: 500 12px/1 var(--m, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .8); display: flex; align-items: center; gap: 10px; }
.sky-cue::after { content: ''; width: 1px; height: 28px; background: linear-gradient(rgb(255 255 255 / .9), transparent); animation: skyCue 1.8s ease-in-out infinite; }
@keyframes skyCue { 0%, 100% { transform: translateY(-4px); opacity: .4; } 50% { transform: translateY(4px); opacity: 1; } }
@media (max-width: 700px) { .sky-bar { bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .sky-s img { transform: none; } .sky-cue::after { animation: none; } }

/* while the first screen is under it, the header sits on the picture: no bar, white name, dots, links and buttons */
body.on-sky .nav { background: transparent; color: #FFFFFF; border-bottom-color: transparent; }
body.on-sky header .brand { color: #FFFFFF !important; text-shadow: 0 1px 16px rgb(8 12 24 / .3); }
body.on-sky header .brand::before { filter: invert(1); }
body.on-sky .links { color: rgb(255 255 255 / .82); } body.on-sky .links a:hover { color: #fff; }
body.on-sky .nav .btn.soft { background: rgb(255 255 255 / .16); color: #FFFFFF; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.on-sky .nav .btn.ink { background: #FFFFFF; color: #0B0B0C; }
body.on-sky .mnu-btn { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .45); color: #FFFFFF; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
header .brand::before { transition: filter .35s ease; } .mnu-btn { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }

/* the window seat: every photograph whole, in a strip that glides sideways while the page scrolls (swipe on phones) */
.sky-strip { padding: clamp(80px, 12vh, 140px) 0 clamp(70px, 10vh, 120px); overflow: hidden; }
.ss-head { text-align: center; padding: 0 var(--gut); }
.ss-k, .cta-k { font: 400 12px/1 var(--m, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--faint, #6b6b6b); margin-bottom: 18px; }
.ss-s { max-width: 46ch; margin: 18px auto 0; font: 400 clamp(1rem, 1.3vw, 1.15rem)/1.5 var(--b, inherit); color: var(--dim, #555); }
.ss-view { margin-top: clamp(40px, 6vh, 70px); }
.ss-view { overflow: hidden; }
.ss-track { display: flex; align-items: flex-start; padding: 0 0 56px; width: max-content; will-change: transform; }
.ss-track.run { animation: ssGlide var(--ss-dur, 90s) linear infinite; }
.ss-track.run.hold { animation-play-state: paused; }
@keyframes ssGlide { to { transform: translate3d(-50%, 0, 0); } }   /* the cards are listed twice, so half way is a seamless loop */
.ss-c { margin: 0 clamp(14px, 1.6vw, 26px) 0 0; flex: none; }
.ss-c:nth-child(even) { margin-top: 48px; }
.ss-c picture { display: block; height: clamp(340px, 60vh, 620px); border-radius: 14px; overflow: hidden; background: #dfe6f2; box-shadow: 0 24px 60px rgb(16 24 44 / .16); }
.ss-c img { height: 100%; width: auto; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ss-c:hover img { transform: scale(1.035); }
.ss-c figcaption { margin-top: 12px; font: 400 12px/1.4 var(--m, ui-monospace, monospace); letter-spacing: .04em; color: var(--faint, #6b6b6b); }
@media (max-width: 900px), (hover: none) {
  .ss-c:nth-child(even) { margin-top: 28px; }
  .ss-c picture { height: min(48vh, 400px); border-radius: 12px; }
  .ss-c img { max-width: 78vw; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) { .ss-view { overflow-x: auto; } .ss-track { padding-left: var(--gut); } }

/* a photograph drifting behind a band: the numbers row (under the cobalt tint) and the closing call to action */
.stats, .sky-cta, .sky-ch { position: relative; isolation: isolate; }
.sky-bg { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: -1; overflow: hidden; pointer-events: none; }   /* translate, not transform: flow.js scales it, and a transform would shrink the centring too */
.sky-bg picture, .sky-bg img { display: block; width: 100%; height: 100%; }
.sky-bg img { object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.16); will-change: transform; }
.stats .sky-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 101 192 / .76), rgb(21 101 192 / .5) 50%, rgb(21 101 192 / .8)); }
.sky-cta { min-height: min(86vh, 820px); display: grid; place-items: center; text-align: center; color: #FFFFFF; padding: clamp(90px, 14vh, 160px) var(--gut); }
.sky-cta .sky-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgb(8 12 24 / .34), transparent 80%), linear-gradient(180deg, rgb(8 12 24 / .1), rgb(8 12 24 / .38)); }
.sky-cta .cta-k { color: rgb(255 255 255 / .85); }
.sky-cta h2 { color: #FFFFFF; text-shadow: 0 2px 40px rgb(8 12 24 / .35); }
.cta-t { max-width: 40ch; margin: 18px auto 30px; font: 400 clamp(1rem, 1.4vw, 1.2rem)/1.5 var(--b, inherit); color: rgb(255 255 255 / .92); }

/* picture chapters: one painting fills the screen like a second hero; it settles from a slight zoom as you scroll through,
   the line arrives in letters and the small caption names the piece */
.sky-ch { min-height: 100svh; display: grid; place-items: center; text-align: center; color: #FFFFFF; padding: clamp(110px, 16vh, 180px) var(--gut); }
.sky-ch .sky-bg img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1.16)); }
.sky-ch .sky-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(58% 46% at 50% 50%, rgb(8 12 24 / .44), transparent 80%), linear-gradient(180deg, rgb(8 12 24 / .22), rgb(8 12 24 / .04) 30%, rgb(8 12 24 / .06) 70%, rgb(8 12 24 / .34)); }
.sky-ch .sky-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px; }
.sky-ch .sky-bg::after { z-index: 2; }
.sky-ch .cta-k { color: rgb(255 255 255 / .88); }
.sky-ch h2 { color: #FFFFFF; font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: .98; text-shadow: 0 2px 44px rgb(8 12 24 / .4); }
.sky-ch .cta-t { margin-bottom: 0; font-weight: 500; text-shadow: 0 1px 2px rgb(8 12 24 / .35), 0 1px 18px rgb(8 12 24 / .55); }
.sky-ch.arm .cta-k, .sky-ch.arm .cta-t { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.sky-ch.arm .cta-t { transition-delay: .35s; }
.sky-ch.arm.in .cta-k, .sky-ch.arm.in .cta-t { opacity: 1; transform: none; }
.ch-cap { position: absolute; left: var(--gut); bottom: 26px; margin: 0; font: 400 12px/1.4 var(--m, ui-monospace, monospace); letter-spacing: .06em; color: rgb(255 255 255 / .78); }
.ch-cap::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.ch-m { display: none; }
@media (max-aspect-ratio: 4/5) { .ch-w { display: none; } .ch-m { display: inline; } }
/* a chapter that changes picture: the four paintings crossfade slowly, the caption follows */
.sky-ch.cyc .ch-p { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.sky-ch.cyc .ch-p.on { opacity: 1; }
.sky-ch.cyc .ch-cap { display: grid; } .sky-ch.cyc .ch-cap::before { position: absolute; top: .65em; }
.ch-t { grid-area: 1 / 1; padding-left: 32px; opacity: 0; transition: opacity .9s ease; } .ch-t.on { opacity: 1; }
@media (max-width: 700px) { .sky-ch { min-height: 92svh; } .ch-cap { bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .sky-bg img, .sky-ch .sky-bg img { transform: scale(1.02); } .ss-c img { transition: none; } }
