/*
 * blok1 — Through the lens (from demo12 .h15-lens). The word DEPO is a window: its letters hold the
 * banner photograph and its O is a lens ring. Scrolling flies the camera through the O until the
 * studio picture behind it fills the screen. Motion styles hang on .h15-motion, which js/blok1.js
 * puts on the section (the source put it on <html>).
 */
.h15-lens {
    --h15-edge: clamp(16px, 3.4vw, 56px);
    --h15-ease: cubic-bezier(.2, .7, .1, 1);
    --h15-banner: url("/_img/site/media/c217eb6b8ce0cfde7dbbd4d7b7c4f37dbac2fdc2.png");
    --h15-lens-screens: 3.3;
}

/* shared demo12 base */
.h15-lens.h15 { color: var(--h15-ink); font-family: var(--h15-font); font-size: 18px; line-height: 1.5; overflow-x: clip; }
.h15-lens :where(*) { color: inherit; }
:where(.h15-lens) .h15-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.h15-lens) .h15-h2 {
    margin: 0; font: 800 clamp(42px, 6.2vw, 108px)/0.92 var(--h15-font); font-stretch: 112%;
    letter-spacing: -0.035em; text-wrap: balance;
}
:where(.h15-lens) .h15-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
    border-radius: 999px; background: var(--h15-yellow); color: #14130f;
    font: 700 16px/1 var(--h15-font); font-stretch: 105%;
    transition: background 220ms ease, transform 160ms ease, color 220ms ease;
}
:where(.h15-lens) .h15-btn:hover { background: var(--h15-ink); }
:where(.h15-lens) .h15-btn:active { transform: scale(0.96); }
:where(.h15-lens) .h15-link {
    display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1.2 var(--h15-font);
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px;
    text-decoration-color: var(--h15-yellow); transition: color 200ms ease, text-underline-offset 200ms ease;
}
:where(.h15-lens) .h15-link:hover { color: var(--h15-yellow); text-underline-offset: 10px; }
.h15-lens a:focus-visible, .h15-lens button:focus-visible { outline: 3px solid var(--h15-yellow); outline-offset: 4px; }
:where(.h15-lens) .h15-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }

/* the lens */
.h15-lens { position: relative; background: var(--h15-ground); }
/* Pulled up under the sticky site header only when it opens the page (as in the source). */
.d0-blok:first-child > .h15-lens { margin-top: calc(-1 * var(--header-h, 0px)); }
.h15-lens__stage { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--h15-ground); }
.h15-lens.h15-motion { height: calc(var(--h15-lens-screens) * 100vh); height: calc(var(--h15-lens-screens) * 100svh); }
.h15-motion .h15-lens__stage { position: sticky; top: 0; }
.h15-lens__scene {
    position: absolute; inset: 0; z-index: 0;
    clip-path: circle(var(--r, 0px) at var(--cx, 78%) var(--cy, 52%));
    will-change: clip-path;
}
.h15-lens__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: var(--cx, 78%) var(--cy, 52%); will-change: transform; }
/* A veil for the statement that lands over the full picture. */
.h15-lens__scene::after {
    content: ""; position: absolute; inset: 0; opacity: var(--st, 0); pointer-events: none;
    background: linear-gradient(90deg, rgb(8 22 14 / 0.86), rgb(8 22 14 / 0.55) 42%, rgb(8 22 14 / 0) 70%);
}
.h15-lens__front {
    position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: 1fr auto;
    padding: calc(var(--header-h, 0px) + 3vh) var(--h15-edge) clamp(24px, 4.5vh, 56px);
}
.h15-lens__title { margin: 0; align-self: center; display: grid; justify-items: center; gap: clamp(8px, 2vh, 24px); }
.h15-word {
    --stroke: 0.2em; --gap: 0.03em;
    display: flex; align-items: baseline; justify-content: center;
    font: 900 min(28.5vw, 58svh)/1 var(--h15-font); font-stretch: 125%; letter-spacing: -0.035em;
    position: relative; transform-origin: var(--ox, 80%) var(--oy, 50%); will-change: transform;
}
.h15-word__de { margin-left: -0.075em; }
.h15-word__piece {
    display: inline-block; color: transparent;
    background: #24402c var(--h15-banner) 42% 50% / cover no-repeat;
    -webkit-background-clip: text; background-clip: text;
}
.h15-word__ring {
    display: inline-block; flex: none; width: 0.7em; height: 0.7em; margin-left: 0.035em; border-radius: 50%;
    background: #24402c var(--h15-banner) 42% 50% / cover no-repeat;
    -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - var(--stroke)), #000 calc(100% - var(--stroke) + 1px));
    mask: radial-gradient(circle closest-side, transparent calc(100% - var(--stroke)), #000 calc(100% - var(--stroke) + 1px));
}
.h15-lens__slogan {
    font: 500 clamp(20px, 2vw, 32px)/1.1 var(--h15-font); font-stretch: 112%; letter-spacing: -0.01em; color: var(--h15-ink);
}
.h15-lens__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; }
.h15-lens__lead { margin: 0; max-width: 46ch; font-size: clamp(18px, 1.4vw, 21px); color: var(--h15-ink); }
.h15-lens__statement { position: relative; z-index: 2; padding: clamp(72px, 9vw, 140px) var(--h15-edge); background: var(--h15-field); }
.h15-lens__statement p { margin: 28px 0 0; max-width: 44ch; font-size: clamp(18px, 1.4vw, 21px); }
.h15-lens__statement .h15-h2 { max-width: 11ch; }
.h15-motion .h15-lens__statement {
    position: absolute; left: 0; bottom: 0; width: min(100%, 860px); background: none;
    padding: 0 var(--h15-edge) clamp(40px, 10vh, 120px); opacity: 0; visibility: hidden;
}

@media (max-width: 700px) {
    .h15-lens.h15 { font-size: 17px; }
    .h15-lens__foot { gap: 18px; }
    .h15-lens__foot .h15-actions { width: 100%; }
    .h15-lens__foot .h15-btn { flex: 1; }
    .h15-lens__scene::after { background: linear-gradient(0deg, rgb(8 22 14 / 0.9), rgb(8 22 14 / 0.6) 50%, rgb(8 22 14 / 0) 80%); }
}
/* Portrait screens stack the word into a square: DE over PO. */
@media (max-width: 700px), (max-aspect-ratio: 5 / 6) {
    .h15-word { display: grid; grid-template-columns: auto auto; grid-template-areas: "de de" "p o"; justify-content: center; align-items: baseline; font-size: min(52vw, 36svh); line-height: 0.84; }
    .h15-word__de { grid-area: de; margin-left: 0; }
    .h15-word__p { grid-area: p; }
    .h15-word__ring { grid-area: o; }
}
@media (prefers-reduced-motion: reduce) {
    .h15-lens *, .h15-lens *::before, .h15-lens *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* first-load choreography (individual transform properties, so the scroll scene's transforms stay free) */
@media (prefers-reduced-motion: no-preference) {
    .h15-motion .h15-word__piece { animation: h15-rise 1100ms var(--h15-ease) 120ms backwards; }
    .h15-motion .h15-word__p { animation-delay: 240ms; }
    .h15-motion .h15-word__ring { animation: h15-iris 1400ms var(--h15-ease) 360ms backwards; }
    .h15-motion .h15-lens__photo { animation: h15-settle 2600ms var(--h15-ease) 300ms backwards; }
    .h15-motion .h15-lens__slogan, .h15-motion .h15-lens__foot { animation: h15-fade 900ms ease 800ms backwards; }
}
@keyframes h15-rise { from { opacity: 0; translate: 0 22%; } }
@keyframes h15-iris { from { opacity: 0; scale: 0.6; } }
@keyframes h15-settle { from { opacity: 0; scale: 1.6; } }
@keyframes h15-fade { from { opacity: 0; translate: 0 14px; } }

/* statement with actions on the right (Sign up / Log in), shown together with it */
.h15-lens__statement-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.h15-lens__statement-row > :first-child { flex: 0 1 720px; min-width: 0; }
.h15-motion .h15-lens__statement:has(.h15-lens__auth) { width: 100%; }
.h15-lens__auth { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
/* flyAway: the slogan and the lead turn around their own centre */
.h15-lens__slogan, .h15-lens__lead { transform-origin: 50% 50%; will-change: transform; }
