/* Shramko CV - base layer (opus, 27.10.2026). Dark by default (WEB-PLAYBOOK §2), ONE accent (cyan of the
   Drony Bydgoszcz tokens), self-hosted Onest (text) + Unbounded (display) with Polish and Cyrillic glyphs.
   Platform features only: view transitions, scroll-driven animations inside @supports and
   prefers-reduced-motion: no-preference; the final state is always the default (no JS, no support,
   paused motion -> everything is simply there). *//* Self-hosted fonts with Polish (latin-ext) and Cyrillic glyphs. Onest = text, Unbounded = display. */
@font-face { font-family: 'Onest'; src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url('/fonts/onest-latin-ext-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-cyrillic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
[hidden] { display: none !important; }
/* a class with display:grid/flex must never reveal a CLOSED dialog (2026-10-08: a grey box between sections) */
dialog:not([open]) { display: none !important; }

:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #090c13;
  --surface: #0d121b;
  --surface-2: #131926;
  --line: rgba(214, 226, 255, 0.09);
  --line-2: rgba(214, 226, 255, 0.18);
  --text: #eef2f8;
  --muted: #a6b0c4;
  --faint: #7c879c;
  --accent: #38e8ff;
  --accent-ink: #03161b;
  --accent-soft: rgba(56, 232, 255, 0.12);
  --ok: #49e2a1;
  --err: #ff8a8a;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --head-h: 68px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cyan: var(--accent); /* legacy name used by older snippets */
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.62 var(--font); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
a:not([class]) { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:not([class]):hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3.5rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.credit { font-size: 0.78rem; color: var(--faint); margin: 10px 0 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px; border: 1px solid transparent; font-weight: 640; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; text-align: center; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 34px -10px rgba(56, 232, 255, 0.6); }
.btn-primary:hover { background: #82f2ff; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(214, 226, 255, .32); }
.btn-glass { background: rgba(8, 11, 17, 0.45); border-color: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.btn-glass:hover { background: rgba(8, 11, 17, 0.7); border-color: rgba(255, 255, 255, 0.4); }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 0.8em 1.55em; }
.btn-sm { min-height: 44px; font-size: 0.92rem; padding: 0.5em 1.05em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* pills: small outbound links (always open in a new tab) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .92rem; font-weight: 560; color: var(--text); background: rgba(255, 255, 255, .02); transition: border-color .2s, background-color .2s, color .2s; }
.pill span { color: var(--accent); transition: transform .2s var(--ease); }
.pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.pill:hover span { transform: translate(2px, -2px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled, body:not([data-page="home"]) .site-header { background: rgba(5, 7, 11, 0.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em; }
.brand-by { font-size: 0.72rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.head-nav { display: none; gap: 4px; margin-left: auto; }
.head-nav a { padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 540; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.head-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-nav + .head-actions { margin-left: 8px; }
@media (min-width: 1120px) { .head-nav { display: flex; } }
@media (max-width: 719px) { .hide-sm { display: none !important; } .brand-by { display: none; } }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-weight: 640; font-size: .9rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--accent); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.lang a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 9px; text-decoration: none; font-weight: 540; }
.lang a span { color: var(--faint); font-size: .8rem; }
.lang a:hover, .lang a[aria-current="true"] { background: rgba(255, 255, 255, .07); }
.lang a[aria-current="true"] span { color: var(--accent); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--accent)); transform-origin: 0 50%; transform: scaleX(0); display: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); }
.foot-cta { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 64px); margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-big { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 24em; text-wrap: balance; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-made { margin-top: 14px; }
.foot-links { display: grid; gap: 4px; align-content: start; }
.foot-links a, .foot-links button { display: inline-flex; align-items: center; min-height: 40px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); text-decoration: none; font-size: .95rem; text-align: left; }
.foot-links a:hover, .foot-links button:hover, .foot-links a[aria-current="true"] { color: var(--text); }

/* ---------- floating: pause, feedback ---------- */
.motion-btn, .fb-btn { position: fixed; z-index: 45; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13, 18, 27, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: border-color .2s, background-color .2s, opacity .18s ease, transform .18s ease, visibility 0s; }
.motion-btn:hover, .fb-btn:hover { border-color: var(--accent); }
/* scripts/fab.ts: a floating button steps aside while a control passes under it (never covers a CTA) */
/* no transform here: fab.ts measures the button's own box, a moved box made it flicker on/off (27.10) */
.motion-btn.fab-off, .fb-btn.fab-off { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
/* the same pause in the flow of the first screen on phones: always reachable, covers nothing (WCAG 2.2.2) */
.motion-inline { display: none; }
@media (max-width: 760px) { .motion-inline { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 7, 11, .45); color: #dfe8f5; cursor: pointer; } .motion-inline svg { width: 14px; height: 14px; } }
.motion-btn { left: 16px; width: 44px; padding: 0; }
.motion-btn svg { width: 16px; height: 16px; }
.fb-btn { right: 16px; padding: 0 16px; font-weight: 600; font-size: .9rem; }
.fb-btn svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .fb-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .fb-btn { width: 44px; padding: 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label, fieldset legend { font-size: .9rem; font-weight: 600; color: var(--text); }
input:not([type="radio"]):not([type="checkbox"]), textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .28); color: var(--text); font-size: 16px; transition: border-color .2s, background-color .2s; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(0, 0, 0, .4); box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, button.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .92rem; font-weight: 560; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; user-select: none; }
.chip:hover span, button.chip:hover { border-color: rgba(214, 226, 255, .36); }
.chip input:checked + span, button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; margin: 4px 0 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.check small { display: block; margin-top: 4px; color: var(--faint); font-size: .8rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 0; font-size: .92rem; color: var(--accent); margin: 0; }
.msg:not(:empty) { margin: 6px 0 12px; }
.msg.err { color: var(--err); margin: 6px 0 12px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-nav .small { max-width: 26em; color: var(--faint); }

/* ---------- feedback dialog ---------- */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 22px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.sheet::backdrop { background: rgba(2, 4, 8, .7); backdrop-filter: blur(4px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 1.15rem; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 1rem; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tabs button { flex: 1; min-height: 40px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- consent, error bar ---------- */
.consent { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); width: min(620px, calc(100vw - 24px)); padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(13, 18, 27, .96); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; gap: 12px; font-size: .9rem; }
.consent p { margin: 0; color: var(--muted); }
.consent .cta-row { justify-content: flex-end; }
.errbar { position: fixed; z-index: 70; left: 12px; right: 12px; top: calc(var(--head-h) + 10px); max-width: 720px; margin: 0 auto; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 138, 138, .45); background: #1a0f12; display: grid; gap: 6px; font-size: .9rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }

/* ---------- media primitives ---------- */
.pic { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--surface); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic-ph { display: grid; place-items: center; color: rgba(214, 226, 255, .16); background: radial-gradient(120% 90% at 20% 0%, rgba(56, 232, 255, .14), transparent 60%), linear-gradient(160deg, #111827, #070a10); }
.pic-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic-ph-label { position: relative; z-index: 1; padding: 0 16px; font-family: var(--display); font-size: clamp(.9rem, 1.5vw, 1.15rem); color: rgba(238, 242, 248, .75); text-align: center; letter-spacing: -.01em; text-wrap: balance; }
.bgv { position: relative; overflow: hidden; background: var(--surface); }
.bgv > .pic { position: absolute; inset: 0; }
.bgv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.bgv.playing video { opacity: 1; }

/* ---------- motion layer (progressive): final state is the default ---------- */
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
@keyframes rv-in { from { opacity: 0; transform: translate3d(0, 32px, 0); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes count { from { --n: 0; } to { --n: var(--to); } }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="off"]) .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    html:not([data-motion="off"]) .progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
  }
}
/* the pause button (WCAG 2.2.2): every CSS animation, time- or scroll-driven, falls back to its final state */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; }
/* Shramko CV - the sections of the one-page CV (opus, 27.10.2026). Rhythm: numbered sections, wide
   type, hairlines; full-bleed media only where the media is the point (hero, Red Bull, the 3D city). */

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 58rem; }
.sec-head h2 { margin-bottom: 0.4em; }
.sec-head .lead { margin: 0; }
.sec-idx { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 600 .8rem/1 var(--font); letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.sec-idx i { display: block; height: 1px; width: 64px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: 0 50%; }
.sec-count { font: 600 .9rem var(--font); color: var(--faint); margin: 0; }

/* ======================= HERO ======================= */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: calc(var(--head-h) + 48px) 0 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .pic img { object-position: 50% 40%; }
.hero-media .pic, .hero-media video { filter: brightness(.68) contrast(1.06) saturate(1.08); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(5, 7, 11, .72) 0%, rgba(5, 7, 11, .18) 22%, rgba(5, 7, 11, .3) 50%, rgba(5, 7, 11, .94) 88%, var(--bg) 100%),
  radial-gradient(120% 80% at 0% 85%, rgba(5, 7, 11, .9) 0%, rgba(5, 7, 11, .55) 45%, transparent 75%); }
.hero-inner { padding-bottom: clamp(24px, 4vw, 40px); }
.hero-top { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 7, 11, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #dfe8f5; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(56, 232, 255, .6); }
.hero-title { margin: 0 0 22px; text-wrap: wrap; }
.h1-name { display: block; font-size: clamp(2.7rem, 7.6vw, 6.6rem); line-height: .94; letter-spacing: -.045em; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.h1-role { display: block; margin-top: .55em; font-family: var(--font); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.95rem); letter-spacing: -.01em; color: #dbe4f2; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 22px; font-size: clamp(.98rem, 1.4vw, 1.12rem); font-weight: 600; color: #fff; }
.hero-pillars li { display: inline-flex; align-items: center; }
.hero-pillars li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 14px; }
.hero-lead { max-width: 40rem; font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.65; color: #c9d3e3; margin-bottom: 28px; }
.author-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 6px 16px 6px 6px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 7, 11, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s; }
.author-chip:hover { border-color: var(--accent); }
.author-chip img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.author-chip span { display: grid; line-height: 1.2; font-weight: 600; font-size: .95rem; }
.author-chip small { font-size: .72rem; font-weight: 500; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: var(--faint); }
.hero-foot { position: relative; }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 10px; background: var(--accent); }
@keyframes cue { from { transform: translateY(-12px); } to { transform: translateY(30px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56, 232, 255, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(56, 232, 255, 0); } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .scroll-cue i::after { animation: cue 1.8s var(--ease) infinite; }
  html:not([data-motion="off"]) .pulse { animation: pulse 2.4s ease-out infinite; }
}
@media (max-width: 560px) { .hero-credit { display: none; } .hero-foot { justify-content: flex-end; } .hero .cta-row .btn { flex: 1 1 100%; } }

/* ======================= 01 PROOF ======================= */
.proof-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); counter-reset: none; }
@media (min-width: 900px) { .proof-list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); } }
.proof-row { border-bottom: 1px solid var(--line); }
.proof-in { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "n name arrow" ". note note"; gap: 6px 12px; padding: 22px 0 24px; text-decoration: none; }
.proof-n { grid-area: n; font: 600 .78rem/1.9 var(--font); color: var(--faint); font-variant-numeric: tabular-nums; }
.proof-name { grid-area: name; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.12; letter-spacing: -.02em; transition: color .25s; }
.proof-note { grid-area: note; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 36rem; }
.proof-src { color: var(--faint); font-size: .8rem; white-space: nowrap; }
.proof-arrow { grid-area: arrow; align-self: start; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
a.proof-in:hover .proof-name { color: var(--accent); }
a.proof-in:hover .proof-arrow { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ======================= 02 AUDIENCES ======================= */
.aud { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.aud-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .aud-layout { grid-template-columns: minmax(250px, 300px) 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; } .aud-chips { position: sticky; top: calc(var(--head-h) + 24px); } }
.aud-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1000px) { .aud-chips { flex-direction: column; gap: 2px; border-left: 1px solid var(--line); } }
.aud-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background-color .2s, border-color .2s; }
.aud-chip-n { font-size: .74rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.aud-chip:hover { color: var(--text); border-color: rgba(214, 226, 255, .36); }
.aud-chip[aria-current="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.aud-chip[aria-current="true"] .aud-chip-n { color: rgba(3, 22, 27, .6); }
@media (min-width: 1000px) {
  .aud-chip { border: 0; border-radius: 0 12px 12px 0; margin-left: -1px; border-left: 2px solid transparent; min-height: 52px; padding: 10px 18px; font-size: 1.02rem; }
  .aud-chip[aria-current="true"] { background: var(--accent-soft); color: var(--text); border-left-color: var(--accent); }
  .aud-chip[aria-current="true"] .aud-chip-n { color: var(--accent); }
}
.aud-panels { display: grid; gap: 20px; min-width: 0; }
.aud-panel { padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(56, 232, 255, .06), transparent 40%), var(--surface); scroll-margin-top: calc(var(--head-h) + 20px); }
.aud.is-js .aud-panel:not([hidden]) { view-transition-name: aud-panel; }
.aud-tag { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.aud-h { font-size: clamp(1.45rem, 2.8vw, 2.3rem); letter-spacing: -.025em; margin-bottom: 26px; max-width: 22em; }
.aud-offers { display: grid; gap: 14px; margin-bottom: 26px; }
@media (min-width: 760px) { .aud-offers { grid-template-columns: repeat(3, 1fr); } }
.aud-offers li { position: relative; padding: 18px 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.aud-offers p { margin: 0; color: #d4dbe7; font-size: .97rem; line-height: 1.55; }
.aud-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.aud-proof { display: grid; gap: 10px; margin-bottom: 26px; }
@media (min-width: 760px) { .aud-proof { grid-template-columns: repeat(3, 1fr); } }
.mini { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background-color .2s; min-height: 60px; }
.mini:hover { border-color: var(--accent); background: var(--accent-soft); }
.mini-pic { width: 64px; height: 44px; border-radius: 9px; }
.mini-pic .pic-ph-label { display: none; }
.mini-body { display: grid; min-width: 0; line-height: 1.25; }
.mini-body strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-body span { font-size: .75rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-arrow { color: var(--accent); }
::view-transition-old(aud-panel) { animation: 180ms ease both vt-out; }
::view-transition-new(aud-panel) { animation: 320ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ======================= 03 NUMBERS ======================= */
.stats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { position: relative; padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .stat { padding-left: 24px; border-left: 1px solid var(--line); } .stat:nth-child(2n+1) { border-left: 0; padding-left: 0; } }
@media (min-width: 1000px) { .stat:nth-child(2n+1) { border-left: 1px solid var(--line); padding-left: 24px; } .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
.stat::before { content: ''; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--accent); transform-origin: 0 50%; }
@media (min-width: 640px) { .stat::before { left: 24px; } .stat:nth-child(2n+1)::before { left: 0; } }
@media (min-width: 1000px) { .stat:nth-child(2n+1)::before { left: 24px; } .stat:nth-child(3n+1)::before { left: 0; } }
.stat-num { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.num { position: relative; display: inline-block; }
.stat-suffix { color: var(--accent); font-size: .55em; letter-spacing: -.02em; margin-left: .06em; }
.stat-label { margin: 0 0 12px; font-size: 1rem; color: #d6dde8; max-width: 22em; }
.stat-src { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .78rem; color: var(--faint); }
.stat-src a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.stat-src a:hover { color: var(--accent); border-color: var(--accent); }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="off"]) .num[data-count] { counter-reset: n var(--n); animation: count linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    html:not([data-motion="off"]) .num[data-count] .num-real { color: transparent; }
    html:not([data-motion="off"]) .num[data-count]::after { content: counter(n); position: absolute; left: 0; top: 0; color: var(--text); }
    html:not([data-motion="off"]) .stat::before { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  }
}

/* ======================= 04 PILLARS (scrollytelling) ======================= */
.pl-layout { display: grid; gap: 0; }
.pl-stage { display: none; }
.pillar { padding: 34px 0 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar-inline { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); }
.pillar-inline > .bgv, .pillar-inline > .pic { width: 100%; height: 100%; }
.pillar-n { margin: 0 0 10px; font: 600 .8rem var(--font); color: var(--accent); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.pillar h3 { font-size: clamp(1.55rem, 2.8vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 14px; }
.pillar-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #d6dde8; line-height: 1.55; margin-bottom: 20px; max-width: 34rem; }
.ticks { display: grid; gap: 12px; margin-bottom: 22px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.55; font-size: .97rem; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--accent); border-radius: 2px; }
@media (min-width: 1000px) {
  .pl-layout.is-js { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .pl-layout.is-js .pl-stage { display: block; position: sticky; top: calc(var(--head-h) + 28px); height: calc(100vh - var(--head-h) - 56px); max-height: 760px; }
  .pl-layout.is-js .pillar-inline { display: none; }
  .pl-layout.is-js .pillar { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; border-top: 0; opacity: .38; transition: opacity .5s ease; }
  .pl-layout.is-js .pillar.is-current { opacity: 1; }
}
.pl-frame { position: relative; height: 100%; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.stage-item { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
.stage-item[data-active="true"] { opacity: 1; transform: scale(1); }
.stage-item > .bgv, .stage-item > .pic { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 26px; background: linear-gradient(0deg, rgba(5, 7, 11, .9), transparent); font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; display: grid; gap: 6px; }
.stage-item figcaption span { font: 600 .74rem var(--font); color: var(--accent); letter-spacing: .16em; }
.pl-ticks { position: absolute; top: 22px; right: 22px; display: flex; gap: 6px; z-index: 2; }
.pl-ticks i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); transition: background-color .3s, width .3s; }
.pl-ticks i[data-active="true"] { background: var(--accent); width: 36px; }
.more { margin-top: 36px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.more summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 22px; cursor: pointer; font-weight: 650; }
.more summary::-webkit-details-marker { display: none; }
.more-list { color: var(--faint); font-weight: 500; font-size: .9rem; flex: 1; }
.more summary i, .faq summary i { position: relative; width: 18px; height: 18px; flex: none; margin-left: auto; }
.more summary i::before, .more summary i::after, .faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.more summary i::after, .faq summary i::after { transform: rotate(90deg); }
.more[open] summary i::after, .faq details[open] summary i::after { transform: rotate(0deg); }
.more-grid { display: grid; gap: 16px; padding: 4px 22px 24px; }
@media (min-width: 800px) { .more-grid { grid-template-columns: 1fr 1fr; } }
.more-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); scroll-margin-top: calc(var(--head-h) + 16px); }
.more-card h3 { font-size: 1.3rem; }

/* ======================= 05 BTS (Red Bull) ======================= */
.bts { background: radial-gradient(80% 60% at 100% 0%, rgba(56, 232, 255, .07), transparent 60%), var(--bg-2); }
.bts-mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.bts-clip figure { position: relative; margin: 0; height: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.bts-clip .bgv { aspect-ratio: 16 / 10; height: 100%; }
.bts-clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(0deg, rgba(5, 7, 11, .92), transparent); font-size: .8rem; line-height: 1.4; color: #dfe6f1; }
.bts-c1 { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .bts-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); }
  .bts-c1 { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .bts-c1 .bgv { aspect-ratio: auto; min-height: 100%; }
  .bts-c2 { grid-column: 5 / span 2; }
  .bts-c3 { grid-column: 5 / span 2; }
  .bts-c4 { grid-column: 1 / span 3; }
  .bts-c5 { grid-column: 4 / span 3; }
  .bts-clip figcaption { font-size: .86rem; padding: 48px 18px 14px; }
}
.bts > .wrap > .credit { margin-top: 14px; }
.bts-links { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 900px) { .bts-links { grid-template-columns: 1fr 1fr; gap: 48px; } }
.link-list h3 { font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.link-list ul { border-top: 1px solid var(--line); margin-bottom: 10px; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k a" "v a"; gap: 2px 14px; padding: 14px 0; text-decoration: none; }
.ll-k { grid-area: k; font-size: .76rem; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.ll-v { grid-area: v; font-weight: 560; transition: color .2s; }
.ll-a { grid-area: a; align-self: center; color: var(--accent); transition: transform .2s var(--ease); }
.link-list a:hover .ll-v { color: var(--accent); }
.link-list a:hover .ll-a { transform: translate(3px, -3px); }

/* ======================= 06 INFOGRAPHIC: photos -> 3D city ======================= */
.infog { view-timeline: --city block; overflow: clip; background: radial-gradient(70% 60% at 70% 70%, rgba(56, 232, 255, .06), transparent 70%); }
.infog-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .infog-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 72px); } }
.infog-steps { display: grid; gap: 4px; margin: 0 0 28px; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 16px; align-items: baseline; padding: 14px 0 14px 18px; border-left: 2px solid var(--line-2); }
.step::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform-origin: 50% 0; }
.step strong { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.step span { color: var(--muted); font-size: .97rem; line-height: 1.45; }
.infog-scene { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); padding: clamp(8px, 2vw, 20px); }
.infog-scene svg { width: 100%; height: auto; overflow: visible; }
.ig-ground { stroke: var(--line-2); stroke-width: 1.5; }
.ig-orbit { stroke: rgba(56, 232, 255, .35); stroke-width: 1.2; stroke-dasharray: 3 7; }
.ig-dot { fill: #e8f0fb; opacity: calc(.5 + var(--o) * .5); transform-box: fill-box; transform-origin: center; }
.ig-dot.lit { fill: var(--accent); opacity: 1; }
@keyframes ig-fly { from { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } 35% { opacity: .9; } }
.ig-k { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes ig-gfly { from { transform: translateY(-48px) scale(.9); opacity: 0; } 40% { opacity: .9; } }
@keyframes ig-step { from { opacity: .32; } to { opacity: 1; } }
@keyframes ig-orbit { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* phones and tablets: the four waves fly in as groups (4 animations instead of ~740) */
    html:not([data-motion="off"]) .ig-k { animation: ig-gfly linear both; animation-timeline: --city; }
    html:not([data-motion="off"]) .ig-k.k0 { animation-range: entry 30% cover 42%; }
    html:not([data-motion="off"]) .ig-k.k1 { animation-range: entry 45% cover 47%; }
    html:not([data-motion="off"]) .ig-k.k2 { animation-range: entry 60% cover 52%; }
    html:not([data-motion="off"]) .ig-k.k3 { animation-range: entry 75% cover 57%; }
    html:not([data-motion="off"]) .step { animation: ig-step linear both; animation-timeline: --city; }
    html:not([data-motion="off"]) .step::before { animation: grow-y linear both; animation-timeline: --city; }
    html:not([data-motion="off"]) .step-1, html:not([data-motion="off"]) .step-1::before { animation-range: entry 30% cover 30%; }
    html:not([data-motion="off"]) .step-2, html:not([data-motion="off"]) .step-2::before { animation-range: cover 30% cover 40%; }
    html:not([data-motion="off"]) .step-3, html:not([data-motion="off"]) .step-3::before { animation-range: cover 40% cover 50%; }
    html:not([data-motion="off"]) .step-4, html:not([data-motion="off"]) .step-4::before { animation-range: cover 50% cover 58%; }
    html:not([data-motion="off"]) .ig-orbit { animation: ig-orbit linear both; animation-timeline: --city; animation-range: entry 20% cover 40%; }
    /* wide screens: a tall section with a sticky scene - the city assembles while the visitor scrolls */
    @media (min-width: 1000px) and (min-height: 640px) {
      html:not([data-motion="off"]) .infog { height: 260vh; padding: 0; }
      html:not([data-motion="off"]) .infog-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-top: var(--head-h); }
      html:not([data-motion="off"]) .ig-k { animation: none; }
      html:not([data-motion="off"]) .ig-dot { animation: ig-fly linear both; animation-timeline: --city; }
      html:not([data-motion="off"]) .ig-dot.k0 { animation-range: contain 0% contain 45%; }
      html:not([data-motion="off"]) .ig-dot.k1 { animation-range: contain 6% contain 52%; }
      html:not([data-motion="off"]) .ig-dot.k2 { animation-range: contain 12% contain 59%; }
      html:not([data-motion="off"]) .ig-dot.k3 { animation-range: contain 18% contain 66%; }
      html:not([data-motion="off"]) .ig-orbit { animation-range: contain 0% contain 30%; }
      html:not([data-motion="off"]) .step-1, html:not([data-motion="off"]) .step-1::before { animation-range: contain 0% contain 14%; }
      html:not([data-motion="off"]) .step-2, html:not([data-motion="off"]) .step-2::before { animation-range: contain 18% contain 34%; }
      html:not([data-motion="off"]) .step-3, html:not([data-motion="off"]) .step-3::before { animation-range: contain 38% contain 58%; }
      html:not([data-motion="off"]) .step-4, html:not([data-motion="off"]) .step-4::before { animation-range: contain 62% contain 78%; }
    }
  }
}

/* ======================= 07 TIMELINE ======================= */
.tl-grid { display: grid; gap: 8px; }
@media (min-width: 1000px) { .tl-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: start; } .tl-head { position: sticky; top: calc(var(--head-h) + 40px); } }
.tl-wrap { position: relative; }
.tl-rail { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), rgba(56, 232, 255, .4)); transform-origin: 50% 0; border-radius: 2px; }
.tl { display: grid; gap: 4px; }
.tl-item { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 6px 20px; padding: 16px 0 16px 38px; }
.tl-item::before { content: ''; position: absolute; left: 2px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-year { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; color: var(--accent); line-height: 1.6; }
.tl-item p { margin: 0; color: #d4dbe7; line-height: 1.55; padding-top: 2px; }
@media (max-width: 520px) { .tl-item { grid-template-columns: 1fr; gap: 2px; } }
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="off"]) .tl-rail i { animation: grow-y linear both; animation-timeline: view(); animation-range: cover 15% cover 70%; }
  }
}

/* ======================= 08 PROJECTS ======================= */
.projects .sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; max-width: none; }
.projects .sec-head > :not(.sec-count) { grid-column: 1; }
.projects .sec-count { grid-column: 2; grid-row: 2; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); color: rgba(214, 226, 255, .14); line-height: 1; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -12px 0 32px; }
.filter-hint { font-size: .86rem; color: var(--faint); margin-right: 6px; }
.proj-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj-in { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.proj-in:hover { border-color: rgba(56, 232, 255, .55); transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9); }
.proj-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.proj-media .pic img { transition: transform .8s var(--ease); }
.proj-in:hover .proj-media .pic img { transform: scale(1.04); }
.proj-body { display: grid; gap: 8px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.proj-meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: rgba(73, 226, 161, .1); color: var(--ok); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.badge.wip { background: rgba(255, 255, 255, .06); color: var(--muted); }
.proj-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.015em; }
.proj-line { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.proj-host { margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj.flagship .proj-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: .2em; }

/* ======================= 09 WATCH ======================= */
.watch { background: var(--bg-2); }
.facade { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; color: #fff; text-align: left; }
.facade img, .facade .pic { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.facade:hover img, .facade:hover .pic img { transform: scale(1.03); }
.facade-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(56, 232, 255, .18); transition: transform .3s var(--ease), box-shadow .3s; }
.facade-play svg { width: 26px; height: 26px; margin-left: 3px; }
.facade:hover .facade-play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(56, 232, 255, .14); }
.facade-scan { aspect-ratio: 21 / 9; }
.facade-scan .facade-cta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 60px 26px 24px; background: linear-gradient(0deg, rgba(5, 7, 11, .92), transparent); }
.facade-scan .facade-play { position: static; margin: 0; flex: none; }
.facade-cta strong { display: block; font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }
.facade-cta small { display: block; margin-top: 4px; color: #c9d3e3; font-size: .85rem; }
@media (max-width: 640px) { .facade-scan { aspect-ratio: 4 / 3; } .facade-scan .facade-play { width: 52px; height: 52px; } }
.facade-alt { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: .86rem; }
.facade-alt a { color: var(--muted); text-decoration: none; }
.facade-alt a:hover { color: var(--accent); }
.facade-alt .credit { margin: 0; }
.scan-frame, .yt-frame { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); background: #000; }
.scan-frame { aspect-ratio: 21 / 9; min-height: 360px; }
.yt-frame { aspect-ratio: 16 / 9; }
.videos { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.facade-yt { aspect-ratio: 16 / 9; }
.facade-yt .facade-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.video-title { margin: 12px 0 0; font-weight: 600; line-height: 1.35; }

/* ======================= 10 ABOUT ======================= */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; } .about-side { position: sticky; top: calc(var(--head-h) + 40px); } }
.about-photo { width: clamp(160px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); box-shadow: 0 0 0 10px rgba(56, 232, 255, .08), 0 30px 80px -30px rgba(56, 232, 255, .35); margin-bottom: 22px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 18px; }
.about-name span { display: block; font-family: var(--font); font-size: .95rem; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.about-text p { color: #d4dbe7; font-size: 1.04rem; line-height: 1.7; max-width: 40rem; }
.about-text .about-first { font-size: clamp(1.18rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--text); }

/* ======================= 11 FAQ ======================= */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: start; } .faq-head { position: sticky; top: calc(var(--head-h) + 40px); } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 18px 0; cursor: pointer; font-weight: 620; font-size: 1.06rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover span { color: var(--accent); }
.faq details p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; max-width: 44rem; }

/* ======================= 12 CONTACT ======================= */
.contact { background: radial-gradient(60% 50% at 0% 100%, rgba(56, 232, 255, .08), transparent 70%), var(--bg); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 80px); align-items: start; } }
.contact-info .btn-block { margin-bottom: 18px; }
.c-rows { border-top: 1px solid var(--line); margin-bottom: 26px; }
.c-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); min-height: 70px; }
.c-main { display: grid; gap: 2px; flex: 1; min-width: 0; padding: 12px 0; text-decoration: none; }
.c-k { font-size: .76rem; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.c-v { font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.c-main:hover .c-v { color: var(--accent); }
.c-act { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--text); transition: border-color .2s, background-color .2s; }
.c-act:hover { border-color: var(--accent); background: var(--accent-soft); }
.c-ico { color: var(--accent); width: 20px; height: 20px; flex: none; }
.c-ico svg { width: 20px; height: 20px; }
.phone-link { color: var(--accent); text-decoration: none; }
.c-person { display: flex; align-items: center; gap: 14px; margin: 0; }
.c-person img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.c-person span { display: grid; color: var(--muted); font-size: .92rem; line-height: 1.3; }
.c-person strong { color: var(--text); font-size: 1rem; }
.form-card { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(56, 232, 255, .05), transparent 30%), var(--surface); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.f-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.notice { font-size: .8rem; color: var(--faint); line-height: 1.5; margin: 2px 0 10px; }
.done { display: grid; gap: 14px; justify-items: start; padding: 10px 0; }
.done-big { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; }

/* ======================= 13 AGENTS ======================= */
.agents { background: var(--bg-2); }
.agents-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .agents-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; } }
.agents-text { color: #d4dbe7; line-height: 1.65; max-width: 38rem; margin-bottom: 22px; }
.code-card { margin: 0; border-radius: 18px; border: 1px solid var(--line-2); background: #070a10; overflow: hidden; }
.code-card figcaption { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.code-card figcaption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.code-card pre { margin: 0; padding: 18px; overflow: auto; font: 13px/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #cfe9ff; }
.code-meta { margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); font: 12px/1.6 ui-monospace, Consolas, monospace; color: var(--faint); word-break: break-word; }

/* ======================= the drone: flies down the page with the scroll ======================= */
.drone-track { display: none; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes trail { from { stroke-dashoffset: 760; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media screen and (min-width: 1440px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) and (offset-path: path('M0 0')) {
    html:not([data-motion="off"]) .drone-track { display: block; position: fixed; z-index: 30; right: max(10px, calc((100vw - var(--maxw)) / 2 - 92px)); top: calc(50vh - 300px); width: 64px; height: 600px; pointer-events: none; }
    .drone-trail { position: absolute; inset: 0; width: 64px; height: 600px; }
    .drone-trail path { fill: none; stroke: var(--accent); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 760; stroke-dashoffset: 760; animation: trail linear both; animation-timeline: scroll(root); }
    .drone { position: absolute; left: 0; top: 0; width: 34px; height: 34px; color: #eef2f8; offset-path: path('M32 0 C 62 70, 2 120, 32 190 S 62 310, 32 380 S 2 500, 32 560 L 32 600'); offset-rotate: auto 90deg; offset-anchor: 50% 50%; animation: fly linear both; animation-timeline: scroll(root); filter: drop-shadow(0 0 10px rgba(56, 232, 255, .45)); }
    .drone .rotors circle { transform-box: fill-box; transform-origin: center; stroke-dasharray: 10 4; animation: spin .5s linear infinite; }
  }
}

/* ======================= narrow-screen fixes after the 375 px review (27.10) ======================= */
.head-actions .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .head-actions .btn-sm { font-size: .86rem; padding: .45em .95em; }
  .hero-pillars { gap: 8px; }
  .hero-pillars li { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 7, 11, .4); font-size: .9rem; }
  .hero-pillars li + li::before { display: none; }
}
@media (max-width: 640px) { .more-list { display: none; } }
@media (max-width: 899px) {
  .bts-clip figure { height: auto; border: 0; border-radius: 0; overflow: visible; }
  .bts-clip .bgv { border-radius: 14px; border: 1px solid var(--line); }
  .bts-clip figcaption { position: static; padding: 8px 2px 0; background: none; font-size: .8rem; color: var(--muted); }
}

/* ======================= privacy page ======================= */
.legal { padding-top: calc(var(--head-h) + clamp(48px, 8vw, 96px)); }
.narrow { max-width: 48rem; }
.h1-small { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.03em; margin-bottom: 1em; }
.legal p { color: #d4dbe7; line-height: 1.7; }
.legal p strong { color: var(--text); display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 1.6em 0 .3em; letter-spacing: -.01em; }
.legal-back { margin-top: 2.4em; }
/* header CTA: icon + text; on phones the long translations ("Домовитися про розмову") become an icon button */
.head-meet svg { width: 18px; height: 18px; }
.head-meet:hover svg { transform: none; }
@media (max-width: 520px) {
  .head-meet { width: 44px; padding: 0; }
  .head-meet-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 521px) and (max-width: 1119px) { .head-meet svg { display: none; } }
