/*
 * blok2 — Your role, in focus (from demo12 .h15-what). Five role pills, an f-stop dial and a round
 * aperture over the role portrait; four ways in below. Motion styles hang on .h15-motion, which
 * js/blok2.js puts on the section (the source put it on <html>).
 */
.h15-what {
    --h15-edge: clamp(16px, 3.4vw, 56px);
    --h15-ease: cubic-bezier(.2, .7, .1, 1);
}

/* shared demo12 base */
.h15-what.h15 { color: var(--h15-ink); font-family: var(--h15-font); font-size: 18px; line-height: 1.5; overflow-x: clip; }
.h15-what :where(*) { color: inherit; }
:where(.h15-what) .h15-wrap { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 var(--h15-edge); }
:where(.h15-what) ul { list-style: none; margin: 0; padding: 0; }
:where(.h15-what) .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-what) .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-what) .h15-btn:hover { background: var(--h15-ink); }
:where(.h15-what) .h15-btn:active { transform: scale(0.96); }
:where(.h15-what) .h15-btn--small { min-height: 48px; padding: 0 22px; font-size: 16px; }
:where(.h15-what) .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-what) .h15-link:hover { color: var(--h15-yellow); text-underline-offset: 10px; }
.h15-what a:focus-visible, .h15-what button:focus-visible, .h15-what input:focus-visible { outline: 3px solid var(--h15-yellow); outline-offset: 4px; }

/* what DEPO is: the aperture dial */
.h15-what { padding: clamp(96px, 11vw, 190px) 0 clamp(80px, 9vw, 150px); background: var(--h15-ground); }
.h15-what__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 120px); align-items: center; }
.h15-what__text .h15-h2 { max-width: 13ch; }
.h15-what__lead { margin: 28px 0 0; max-width: 40ch; font-size: clamp(18px, 1.4vw, 21px); }
.h15-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.h15-role {
    min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgb(238 240 234 / 0.32);
    background: none; color: var(--h15-ink); font: 600 16px/1 var(--h15-font); cursor: pointer;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms ease;
}
.h15-role:hover { border-color: var(--h15-ink); }
.h15-role:active { transform: scale(0.96); }
.h15-role[aria-pressed="true"] { background: var(--h15-ink); border-color: var(--h15-ink); color: var(--h15-ground); }
.h15-dial { margin-top: 44px; max-width: 520px; }
.h15-dial__label { display: flex; justify-content: space-between; align-items: baseline; font: 600 16px/1.2 var(--h15-font); color: var(--h15-soft); }
.h15-dial__value { font: 800 clamp(28px, 2.6vw, 44px)/1 var(--h15-font); font-stretch: 112%; color: var(--h15-yellow); font-variant-numeric: tabular-nums; }
.h15-dial__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 10px 0 0; background: none; cursor: pointer; }
.h15-dial__range::-webkit-slider-runnable-track { height: 2px; background: rgb(238 240 234 / 0.35); border-radius: 2px; }
.h15-dial__range::-moz-range-track { height: 2px; background: rgb(238 240 234 / 0.35); border-radius: 2px; }
.h15-dial__range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 30px; height: 30px; margin-top: -14px; border-radius: 50%;
    background: var(--h15-ground); border: 3px solid var(--h15-yellow); box-shadow: inset 0 0 0 6px var(--h15-ground), inset 0 0 0 20px var(--h15-yellow);
    transition: transform 160ms ease;
}
.h15-dial__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--h15-yellow); border: 3px solid var(--h15-ground); }
.h15-dial__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.h15-dial__ticks { display: flex; justify-content: space-between; margin: 2px 9px 0; font: 500 15px/1 var(--h15-font); color: var(--h15-soft); font-variant-numeric: tabular-nums; }
.h15-dial__ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.h15-gives { margin-top: 40px; max-width: 46ch; }
.h15-gives[hidden] { display: none; }
.h15-gives__title { margin: 0 0 14px; font: 700 21px/1.2 var(--h15-font); }
.h15-gives li { position: relative; padding: 6px 0 6px 28px; }
.h15-gives li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--h15-yellow); }
.h15-motion .h15-gives:not([hidden]) li { animation: h15-up 600ms var(--h15-ease) both; }
.h15-motion .h15-gives li:nth-child(2) { animation-delay: 80ms; }
.h15-motion .h15-gives li:nth-child(3) { animation-delay: 160ms; }

.h15-what__frame {
    --ap: 35.5%; position: relative; aspect-ratio: 4 / 5; max-height: 88svh; width: 100%; justify-self: center;
    border-radius: 6px; overflow: hidden; background: var(--h15-field);
}
/* The rim of the aperture: a hairline drawn where the opening ends. */
.h15-what__frame::before {
    content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: calc(var(--ap) * 2.2638); aspect-ratio: 1;
    translate: -50% -50%; border-radius: 50%; border: 1px solid rgb(255 181 0 / 0.55); pointer-events: none;
    transition: width 750ms var(--h15-ease), opacity 400ms ease;
}
.h15-what__frame.is-wide::before { opacity: 0; }
.h15-what__ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) brightness(0.32) blur(3px); transform: scale(1.04); opacity: 0.7; }
.h15-what__stops { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.h15-what__stops circle { fill: none; stroke: rgb(238 240 234 / 0.22); stroke-width: 0.18; vector-effect: non-scaling-stroke; transition: stroke 300ms ease; }
.h15-what__stops circle { stroke-width: 1px; }
.h15-what__frame.is-wide .h15-what__stops { opacity: 0; }
.h15-what__stops { transition: opacity 500ms ease; }
.h15-what__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0;
    clip-path: circle(var(--ap) at 50% 50%); transition: clip-path 750ms var(--h15-ease), opacity 0ms linear 380ms;
}
.h15-what__img.is-on { opacity: 1; transition: clip-path 750ms var(--h15-ease), opacity 0ms; }
.h15-what__cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px;
    padding: 80px clamp(18px, 2.4vw, 36px) clamp(18px, 2.4vw, 32px);
    background: linear-gradient(transparent, rgb(6 18 11 / 0.72));
    opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity 400ms ease, translate 600ms var(--h15-ease);
}
.h15-what__frame.is-wide .h15-what__cap { opacity: 1; translate: 0 0; pointer-events: auto; }
.h15-what__name { font: 800 clamp(30px, 3.4vw, 56px)/0.95 var(--h15-font); font-stretch: 112%; letter-spacing: -0.03em; }

.h15-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 56px); margin-top: clamp(80px, 9vw, 150px); }
.h15-way__title { margin: 0 0 10px; font: 800 clamp(26px, 2.4vw, 40px)/1 var(--h15-font); font-stretch: 112%; letter-spacing: -0.025em; }
.h15-way p { margin: 0 0 6px; max-width: 32ch; color: var(--h15-soft); }

/* entrances */
.h15-what.h15-motion [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 700ms ease, translate 900ms var(--h15-ease); }
.h15-what.h15-motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
.h15-motion .h15-way:nth-child(2) { transition-delay: 90ms; }
.h15-motion .h15-way:nth-child(3) { transition-delay: 180ms; }
.h15-motion .h15-way:nth-child(4) { transition-delay: 270ms; }
@keyframes h15-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .h15-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .h15-what__grid { grid-template-columns: 1fr; }
    .h15-what__grid { gap: 0; }
    .h15-what__text { display: contents; }
    .h15-what__text .h15-h2 { order: 1; }
    .h15-what__lead { order: 2; }
    .h15-what__frame { order: 3; max-height: none; max-width: 560px; margin-top: 36px; justify-self: start; }
    .h15-dial { order: 4; margin-top: 28px; width: 100%; max-width: 560px; justify-self: start; }
    .h15-roles { order: 5; margin-top: 28px; }
    .h15-gives { order: 6; }
}
@media (max-width: 700px) {
    .h15-what.h15 { font-size: 17px; }
    .h15-ways { grid-template-columns: 1fr; }
    .h15-role { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .h15-what *, .h15-what *::before, .h15-what *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
