@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  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;
}

:root {
  --paper: #f2f4f7;
  --surface: #ffffff;
  --sunk: #e7ebf0;
  --ink: #18202e;
  --muted: #546072;
  --line: #d3d9e1;
  --seal: #b3122d;
  --on-ink: #f2f4f7;
  --shadow: 0 1px 2px rgb(24 32 46 / .06), 0 12px 32px -12px rgb(24 32 46 / .18);
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-zh: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121722;
    --surface: #1b2230;
    --sunk: #171d29;
    --ink: #e7ebf1;
    --muted: #9aa5b5;
    --line: #2d3647;
    --seal: #ff5a6e;
    --on-ink: #121722;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
:lang(zh-Hans) { font-family: "Bricolage Grotesque", var(--font-zh); }
/* Chińskie nagłówki: bez ściśniętych liter (minusowy letter-spacing i wąska szerokość psują znaki) */
html:lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0 !important; font-stretch: 100% !important; }
html:lang(zh-Hans) .hero__title { line-height: 1.2; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--seal); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 650; }
p, ul, dl { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Top bar */
.top {
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  font-size: .95rem;
}
/* Na komputerze menu zostaje na górze przy przewijaniu długiej strony */
@media (min-width: 900px) {
  .top {
    position: sticky; top: 0; z-index: 5; max-width: none;
    padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
  }
  .top.is-scrolled { border-bottom-color: var(--line); }
  html { scroll-padding-top: 88px; }
}
.top__nav a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--seal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top__home { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--muted); }
.top__logo img { height: 30px; width: auto; }
.top__name { padding-left: 10px; border-left: 1px solid var(--line); }
.top__name { font-size: .9rem; }
.top__nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.top__nav a, .top__lang { text-decoration: none; color: var(--muted); }
.top__nav a:hover, a.top__lang:hover { color: var(--seal); }
.top__langs { list-style: none; padding: 0; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.top__lang { display: block; border-radius: 999px; padding: 2px 10px; font-size: .88rem; }
.top__lang.is-current { background: var(--ink); color: var(--paper); }
/* Telefon: menu w osobnym rzędzie, przewijane w bok, gdy się nie mieści */
@media (max-width: 760px) {
  .top__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top__nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; white-space: nowrap;
  }
  .top__nav::-webkit-scrollbar { display: none; }
}

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 7vw, 96px) var(--gutter) 0; }
.hero__top { display: grid; gap: 24px 48px; align-items: end; }
.hero__title {
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  font-weight: 700; font-stretch: 82%;
  letter-spacing: -.035em; line-height: .98;
  max-width: 15ch; text-wrap: balance;
}
.hero__aside { display: grid; gap: 16px; justify-items: start; max-width: 22rem; }
.hero__logo img { width: min(210px, 60vw); height: auto; margin-bottom: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__text { color: var(--muted); }
.hero__available { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 4px rgb(31 157 107 / .18); }
@media (min-width: 900px) { .hero__top { grid-template-columns: minmax(0, 1fr) auto; } }

/* Four paths: one row of columns joined by a line through the characters */
.paths {
  --zh-size: clamp(2.6rem, 5vw, 3.6rem);
  --zh-mid: calc(1.15rem + var(--zh-size) * .55);
  --pad: clamp(14px, 2vw, 28px);
  position: relative; list-style: none; padding: 0;
  margin-top: clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* subgrid: tytuły, opisy i "dowody" stoją na tej samej wysokości we wszystkich kolumnach */
.path { grid-row: span 5; display: grid; grid-template-rows: subgrid; }
.paths::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--zh-mid);
  border-top: 1.5px solid var(--seal); opacity: .5;
  transform-origin: left; pointer-events: none;
}
.path + .path { border-left: 1px solid var(--line); }
.path__link {
  position: relative; grid-row: span 5;
  display: grid; grid-template-rows: subgrid; row-gap: 10px;
  padding: 18px var(--pad) 24px;
  text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.path__link::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--seal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.path__zh {
  justify-self: start; position: relative; z-index: 1;
  padding-right: 12px; background: var(--paper); transition: background-color .2s;
  font-size: var(--zh-size); font-weight: 700; line-height: 1; color: var(--ink);
}
.path:first-child .path__zh { margin-left: 0; }
.path__zh ruby { ruby-position: over; }
.path__zh rt {
  font-family: var(--font); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); padding-bottom: 4px;
}
.path__title { font-size: 1.3rem; letter-spacing: -.01em; margin-top: 8px; }
.path__text { color: var(--muted); }
.path__proof { font-size: .9rem; color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
.path__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--seal); }
.path__more svg { transition: transform .2s ease; }
.path__link:hover, .path__link:focus-visible { background: var(--surface); }
.path__link:hover .path__zh, .path__link:focus-visible .path__zh { background: var(--surface); color: var(--seal); }
.path__link:hover::after, .path__link:focus-visible::after { transform: scaleX(1); }
.path__link:hover .path__more svg, .path__link:focus-visible .path__more svg { transform: translateX(4px); }
.path__link:focus-visible { outline-offset: -2px; border-radius: 0; }

/* Efekty po najechaniu na cztery ścieżki. Stan "włączony" = :hover, fokus z klawiatury
   albo klasa .is-fx (telefon: main.js włącza ją, gdy bloczek wjedzie na ekran). */
.path__link { overflow: hidden; }
.path__link > :not(.fx-matrix, .fx-people, .fx-lang) { position: relative; z-index: 1; }
.fx-people, .fx-lang { position: absolute; z-index: 2; }

/* 设计: kolorowy znak i kształty wylatujące spod niego */
.fx--design:is(:hover, :focus-visible, .is-fx) .path__glyph {
  background: linear-gradient(120deg, #b3122d, #e76f9a 30%, #f2a541 55%, #2a9d8f 80%, #5b5bd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fx-burst { position: absolute; left: 45%; top: 62%; width: 0; height: 0; z-index: -1; font-size: var(--zh-size); }
.fx-shape {
  position: absolute; left: -.13em; top: -.13em; width: .26em; height: .26em;
  opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg);
  transition: transform .7s cubic-bezier(.2, .9, .25, 1.15) var(--d), opacity .35s ease var(--d);
}
.fx--design:is(:hover, :focus-visible, .is-fx) .fx-shape { opacity: .9; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); }
.fx-shape--dot { border-radius: 50%; background: var(--c); }
.fx-shape--ring { border-radius: 50%; border: .045em solid var(--c); }
.fx-shape--sq { background: var(--c); border-radius: .04em; width: .22em; height: .22em; }
.fx-shape--tri { width: 0; height: 0; border-left: .14em solid transparent; border-right: .14em solid transparent; border-bottom: .24em solid var(--c); }
.fx-shape--plus { background: linear-gradient(var(--c), var(--c)) center / 100% .07em no-repeat, linear-gradient(var(--c), var(--c)) center / .07em 100% no-repeat; }
.fx-shape--wave {
  width: .48em; height: .16em;
  background: radial-gradient(circle at 25% 100%, transparent .07em, var(--c) .07em, var(--c) .11em, transparent .11em) 0 0 / .24em .16em repeat-x;
}

/* 人: z prawej krawędzi wjeżdża drugi 人, dłonie spotykają się na czerwonej linii */
/* Kontener = przerwa między pierwszym a drugim 人; dłonie spotykają się na jej środku.
   Drugi 人 stoi za prawą krawędzią kontenera i wjeżdża zza krawędzi bloczku (.path__link ma overflow: hidden). */
.fx-people {
  --hand: calc(var(--zh-size) * .75);
  --ren-w: calc(var(--zh-size) + var(--pad) + 10px);
  top: calc(var(--zh-mid) - var(--zh-size) * .55); height: calc(var(--zh-size) * 1.1);
  left: calc(var(--pad) + var(--zh-size) + 12px); right: var(--ren-w); pointer-events: none;
}
.fx-ren {
  position: absolute; left: 100%; top: 0; width: var(--ren-w); padding-left: 10px; background: var(--surface);
  font-size: var(--zh-size); font-weight: 700; line-height: 1.1; color: #c77d16;
  transform: translateX(calc(100% + 4px)); transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.fx-hand {
  position: absolute; top: 50%; width: var(--hand); height: calc(var(--hand) * 30 / 46); margin-top: calc(var(--hand) * -15 / 46);
  fill: #fde3bd; stroke: #9a5b0c; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; opacity: 0;
  transition: left .6s cubic-bezier(.3, .8, .3, 1) .25s, right .6s cubic-bezier(.3, .8, .3, 1) .25s, opacity .3s .25s;
}
.fx-hand--l { left: 0; }
.fx-hand__cuff { fill: #f2a541; }
.fx-hand__line { fill: none; }
.fx-hand--r { right: 0; transform: scaleX(-1); }
.fx-spark {
  position: absolute; left: 50%; top: 50%; width: calc(var(--hand) * 1.1); aspect-ratio: 1; margin: calc(var(--hand) * -.55);
  border-radius: 50%; border: 2px solid #f2a541; opacity: 0; transform: scale(.3);
}
.fx--people:is(:hover, :focus-visible, .is-fx) .fx-ren { transform: none; }
.fx--people:is(:hover, :focus-visible, .is-fx) .fx-hand { opacity: 1; }
.fx--people:is(:hover, :focus-visible, .is-fx) .fx-hand--l { left: calc(50% - var(--hand) + 5px); }
.fx--people:is(:hover, :focus-visible, .is-fx) .fx-hand--r { right: calc(50% - var(--hand) + 5px); }
.fx--people:is(:hover, :focus-visible, .is-fx) .fx-spark { animation: spark .6s ease-out .8s both; }
.fx--people:is(:hover, :focus-visible, .is-fx) .path__zh { color: #c77d16; }
@keyframes spark { 40% { opacity: .9; } to { opacity: 0; transform: scale(1.4); } }

/* 语言: po prawej dawne formy znaku 言: pismo kościane -> brązowe -> pieczęciowe */
.fx-lang {
  top: 18px; right: var(--pad); display: grid; justify-items: end; gap: 2px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.fx-lang__label { display: grid; justify-items: end; font-family: var(--font); font-size: .72rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.fx-lang__names { display: grid; justify-items: end; }
html:lang(zh-Hans) .fx-lang__label { font-family: var(--font-zh); }
.fx-lang__name { grid-area: 1 / 1; font-weight: 600; color: var(--ink); opacity: 0; }
.fx-lang__glyphs {
  position: relative; width: calc(var(--zh-size) * 1.15); aspect-ratio: 1;
  background: var(--surface); border-radius: 8px; margin-top: 2px;
}
.fx-yan { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: 0; }
.fx-yan--oracle { fill: #a0662f; }
.fx-yan--bronze { fill: #2f7d6d; }
.fx-yan--seal { fill: var(--seal); }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang { opacity: 1; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-yan--oracle { animation: yan-step 1.1s .1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-yan--bronze { animation: yan-step 1.1s 1.1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-yan--seal { animation: yan-in .5s 2.1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang__name--1 { animation: fade-step 1.1s .1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang__name--2 { animation: fade-step 1.1s 1.1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang__name--3 { animation: fade-in .4s 2.1s both; }
.fx--language:is(:hover, :focus-visible, .is-fx) .path__zh { color: #2f7d6d; }
@keyframes yan-step { 0% { opacity: 0; transform: scale(.85); } 25%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes yan-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fade-step { 0% { opacity: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 技术: spadające znaki na canvasie (rysuje main.js) */
/* deszcz znaków gaśnie ku dołowi, żeby tekst pod znakiem został czytelny */
.fx-matrix {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0 28%, transparent 62%); mask-image: linear-gradient(#000 0 28%, transparent 62%);
}
.fx--tech:is(:hover, :focus-visible, .is-fx) .fx-matrix { opacity: .6; }
.fx--tech:is(:hover, :focus-visible, .is-fx) .path__zh { color: #1f9d6b; }

/* Na telefonie (kolumna zamiast rzędu) 人 i 语言 nie mają miejsca obok znaku: zostaje kolor znaku */
@media (max-width: 899px) {
  .fx-people, .fx-lang { display: none; }
  /* znak stoi w wąskiej lewej kolumnie: mniejszy rozrzut kształtów, żeby nie wchodziły na tekst */
  .fx-burst { font-size: calc(var(--zh-size) * .42); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-shape, .fx-ren, .fx-hand { transition: none; }
  .fx-spark { display: none; }
  .fx--language:is(:hover, :focus-visible, .is-fx) .fx-yan { animation: none; }
  .fx--language:is(:hover, :focus-visible, .is-fx) .fx-yan--seal { opacity: 1; }
  .fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang__name { animation: none; }
  .fx--language:is(:hover, :focus-visible, .is-fx) .fx-lang__name--3 { opacity: 1; }
  .fx-matrix { display: none; }
}

@media (max-width: 899px) {
  .paths { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .paths::before { left: calc(var(--pad) + var(--zh-size)); right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px solid var(--seal); transform-origin: top; }
  .path, .path__link { grid-row: auto; grid-template-rows: none; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .path__link { grid-template-columns: calc(var(--zh-size) * 2) minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .path__zh { grid-row: 1 / 6; justify-self: stretch; padding: 0 0 8px; text-align: center; }
  .path__title { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .paths::before { animation: draw 1.1s .35s cubic-bezier(.6,0,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(.3em); } }
  @keyframes draw { from { transform: scale(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .path__link::after, .path__more svg { transition: none; }
}

.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--seal); color: var(--seal); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--seal); border-color: var(--seal); color: #fff; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter) 0; }
.section__head { display: grid; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 42rem; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; font-stretch: 85%; }
.section__head p { color: var(--muted); }
.section__head .chapter { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--seal); margin-bottom: 4px; }
.chapter rt { font-family: var(--font); font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.sub { font-size: 1.35rem; margin: clamp(48px, 7vw, 72px) 0 16px; letter-spacing: -.01em; }

/* Carousel */
.carousel { position: relative; display: flex; flex-direction: column; }
.carousel__track { width: 100%; }
/* Na komputerze strzałki nad kartami, po prawej, na wysokości opisu sekcji */
@media (min-width: 900px) {
  .section .carousel__controls { order: -1; align-self: flex-end; margin: -84px 0 38px; }
}
.carousel__track {
  list-style: none; margin: 0; padding: 4px 0 24px;
  display: grid; grid-auto-flow: column; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; min-width: 0; }
.carousel__controls { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.carousel__controls[hidden] { display: none; }
.carousel__btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.25rem; cursor: pointer; transition: border-color .15s, color .15s, opacity .15s;
}
.carousel__btn:hover:not(:disabled) { border-color: var(--seal); color: var(--seal); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__count { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: center; }

/* Websites: zakładki po lewej, duży podgląd po prawej (bez JS: panele jeden pod drugim) */
.webs { display: grid; gap: 20px; }
.webs__tabs[hidden] { display: none; }
.webs__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
.webs__tabs::-webkit-scrollbar { display: none; }
.webs__tab {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.webs__tab:hover { border-color: var(--seal); }
.webs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.webs__num { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--seal); font-weight: 700; }
.webs__tab[aria-selected="true"] .webs__num { color: inherit; opacity: .7; }
.webs__name { font-weight: 650; white-space: nowrap; }
.webs__kind { display: none; }
@media (min-width: 900px) {
  /* Panel zajmuje obie kolumny (subgrid): podgląd po prawej, opis pod zakładkami po lewej */
  .webs.is-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); grid-template-rows: auto 1fr; gap: 28px 36px; align-items: start; }
  .webs.is-tabs .webs__tabs { grid-area: 1 / 1; }
  .webs.is-tabs .web { grid-area: 1 / 1 / 3 / 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; pointer-events: none; }
  .webs.is-tabs .web > * { pointer-events: auto; }
  .webs.is-tabs .web__stage { grid-area: 1 / 2 / 3 / 3; }
  .webs.is-tabs .web__text { grid-area: 2 / 1; grid-template-columns: minmax(0, 1fr); }
  .webs.is-tabs .web__text > .web__visit { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .webs.is-tabs .web[hidden] { display: none; }
  /* nazwa i typ są już w zakładce obok, więc tu tylko dla czytników ekranu */
  .webs.is-tabs .web__text h3, .webs.is-tabs .web__kind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .webs__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
  .webs__tab {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
    padding: 18px 12px 18px 16px; position: relative;
  }
  .webs__tab::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
    background: var(--seal); transform: scaleY(0); transition: transform .2s;
  }
  .webs__tab:hover { color: var(--seal); }
  .webs__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); }
  .webs__tab[aria-selected="true"]::before { transform: scaleY(1); }
  .webs__tab[aria-selected="true"] .webs__num { color: var(--seal); opacity: 1; }
  .webs__name { font-size: 1.2rem; white-space: normal; }
  .webs__kind { display: block; grid-column: 2; color: var(--muted); font-size: .9rem; line-height: 1.35; }
}
.web { display: grid; gap: 20px; min-width: 0; }
.webs:not(.is-tabs) .web + .web { margin-top: 40px; }
.web[hidden] { display: none; }
.web__stage {
  --stage: color-mix(in srgb, var(--tint) 85%, var(--paper));
  position: relative; display: grid; justify-items: center; align-content: start; gap: 14px;
  padding: clamp(14px, 2.5vw, 28px) clamp(12px, 3vw, 36px) clamp(14px, 2.5vw, 24px);
  border-radius: 20px; background: var(--stage);
}
@media (prefers-color-scheme: dark) { .web__stage { --stage: color-mix(in srgb, var(--tint) 40%, var(--surface)); } }
.web__views {
  justify-self: end; display: flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgb(255 255 255 / .75); box-shadow: 0 1px 2px rgb(0 0 0 / .12);
}
.web__views[hidden] { display: none; }
.web__views button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: none; color: #3b4558; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.web__views button svg { font-size: 1.05em; }
.web__views button:hover { color: #b3122d; }
.web__views button[aria-pressed="true"] { background: #18202e; color: #fff; }
.browser {
  width: 100%; border-radius: 10px; overflow: hidden; background: var(--sunk);
  border: 1px solid rgb(0 0 0 / .12); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 24px 48px -20px rgb(0 0 0 / .45);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: var(--sunk); border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 6px; margin-right: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser__back {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 0;
  background: none; color: var(--ink); font-size: 1rem; cursor: pointer;
}
.browser__back[hidden] { display: none; }
.browser__back:hover:not(:disabled) { background: var(--surface); color: var(--seal); }
.browser__back:disabled { opacity: .35; cursor: default; }
.browser__addr {
  flex: 1; max-width: 22rem; padding: 3px 10px; border-radius: 6px;
  background: var(--surface); color: var(--muted); font-size: .78rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Okno podglądu: przewija się kółkiem/palcem, a main.js przewija je samo po najechaniu */
.shot { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #fff; }
.shot:focus-visible { outline-offset: -3px; }
.shot img { width: 100%; }
.screen { position: relative; }
.screen[hidden] { display: none; }
/* Klikalne miejsca na zrzucie (linki między podstronami). Widać je po najechaniu i na chwilę po otwarciu. */
.hot {
  position: absolute; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, background-color .15s;
}
.hot[hidden] { display: none; }
.hot:hover, .hot:focus-visible { box-shadow: 0 0 0 2px #b3122d; background: rgb(179 18 45 / .08); outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .screen.is-hinting .hot { animation: hot-hint 1.6s ease-in-out 2; }
}
@keyframes hot-hint { 50% { box-shadow: 0 0 0 2px #b3122d; background: rgb(179 18 45 / .1); } }
.web__desktop .shot { aspect-ratio: 16 / 10; }
.phone {
  width: min(260px, 70%);
  /* obudowa telefonu zawsze ciemna, także w ciemnym motywie */
  border: 8px solid #10151f; border-radius: 30px; overflow: hidden;
  background: #10151f; box-shadow: 0 2px 4px rgb(0 0 0 / .15), 0 24px 48px -20px rgb(0 0 0 / .5);
}
.phone .shot { aspect-ratio: 390 / 844; border-radius: 22px; scrollbar-width: none; }
.phone .shot::-webkit-scrollbar { display: none; }
/* Bez JS: oba podglądy. Z JS: jeden, wg przełącznika. */
.is-tabs .web__stage[data-view="desktop"] .web__phone,
.is-tabs .web__stage[data-view="phone"] .web__desktop { display: none; }
.web__hint { font-size: .82rem; color: #3b4558; background: rgb(255 255 255 / .7); padding: 2px 10px; border-radius: 999px; }
.web__text { display: grid; gap: 12px; align-content: start; }
@media (min-width: 700px) {
  .web__text { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .web__text > * { grid-column: 1; }
  .web__text > .web__visit { grid-column: 2; grid-row: 1 / span 4; align-self: start; }
}
.web__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; font-stretch: 85%; }
.web__kind { color: var(--muted); margin-top: -6px; }
.web__story { color: var(--ink); line-height: 1.6; }
.web__did { padding-left: 1.1em; display: grid; gap: 4px; }
.web__did li::marker { color: var(--seal); }
.web__visit { justify-self: start; gap: 8px; }
.web__note { font-size: .88rem; color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 2px 10px; border-radius: 999px; background: var(--sunk);
  color: var(--muted); font-size: .85rem; border: 1px solid var(--line);
}
.tags--lg li { font-size: .95rem; padding: 4px 12px; color: var(--ink); }

/* Case study cards carousel */
.cases { grid-auto-columns: min(82vw, 400px); }
@media (min-width: 900px) { .cases { grid-auto-columns: calc((100% - 40px) / 3); } }
.case-card a { display: grid; gap: 8px; text-decoration: none; }
.case-card__img {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; margin-bottom: 8px;
}
.case-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s ease; }
.case-card a:hover .case-card__img img { transform: scale(1.03); }
.case-card h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.case-card a:hover h3 { color: var(--seal); }
.case-card__kind { color: var(--muted); font-size: .95rem; }
.case-card__more { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .case-card__img img { transition: none; } }

/* Shorter collaborations */
.short { border-top: 1px solid var(--line); }
.short__item { border-bottom: 1px solid var(--line); }
.short__item summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.short__item summary::-webkit-details-marker { display: none; }
.short__name { font-size: 1.35rem; font-weight: 650; }
.short__meta { grid-row: 2; color: var(--muted); font-size: .95rem; }
.short__icon { grid-row: 1 / 3; grid-column: 2; font-size: 1.4rem; transition: transform .2s; }
.short__item[open] .short__icon { transform: rotate(180deg); }
.short__item summary:hover .short__name { color: var(--seal); }
.short__body { display: grid; gap: 12px; padding: 0 0 28px; max-width: 46rem; }
.short__role { font-weight: 600; }
.short__note, .short__tools { color: var(--muted); font-size: .95rem; }
.short__imgs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.short__imgs figure { margin: 0; }
.short__imgs .zoom { background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.short__imgs img { width: 100%; height: 100%; object-fit: contain; }
.short__imgs figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* Logos */
.zoom { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.zoom:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.logos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logos .zoom { background: #fff; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); }
.logos img { max-height: 76%; width: auto; max-width: 80%; object-fit: contain; }
.logos { max-width: 720px; padding-bottom: 28px; }
.logos-box { margin-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .logos { gap: 8px; } }

/* Languages and office */
.lo__grid { display: grid; gap: 40px 64px; }
@media (min-width: 900px) { .lo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lo__col { scroll-margin-top: 24px; }
.lo__h { display: flex; align-items: baseline; gap: 14px; font-size: 1.4rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lo__zh { color: var(--seal); font-size: 2rem; font-weight: 700; line-height: 1; }
.timeline { list-style: none; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline__years { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h4 { font-size: 1.1rem; }
.timeline__org { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.timeline ul { padding-left: 1.1em; display: grid; gap: 4px; }
.timeline ul li::marker { color: var(--seal); }
@media (max-width: 500px) { .timeline > li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* Języki, które znam: duże karty na górze kolumny „Języki” */
.langs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; margin: 18px 0 8px; }
.langs__item {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--seal);
}
.langs__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.langs__level { color: var(--muted); font-size: .92rem; }
.langs__level::first-letter { text-transform: uppercase; }
.lo__sub { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 20px 0 10px; }

/* About */
.about__grid { display: grid; gap: 32px 64px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.about__text { display: grid; gap: 1em; align-content: start; font-size: 1.15rem; max-width: 38rem; }
.about__h { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.about__h + .tags { margin-bottom: 28px; }

/* Contact + CV */
.contact { display: grid; gap: 20px; }
.contact__box {
  background: var(--ink); color: var(--on-ink); border-radius: 20px;
  padding: clamp(24px, 5vw, 56px); display: grid; gap: 10px; align-content: start;
}
.contact__box h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.03em; font-stretch: 85%; }
.contact__box > p { opacity: .75; }
.contact__mail {
  justify-self: start; margin-top: 12px;
  font-size: clamp(1.3rem, 3.6vw, 2.3rem); font-weight: 650; letter-spacing: -.02em;
  text-decoration-thickness: 2px; overflow-wrap: anywhere;
}
.contact__box a:hover { color: var(--seal); }
@media (prefers-color-scheme: dark) { .contact__box a:hover { color: #b3122d; } }
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 14px 24px; margin-top: 24px; }
.contact__list dt { opacity: .65; font-size: .85rem; }
.contact__list dd { margin: 0; font-weight: 600; }
.contact__reveal { justify-self: start; margin-top: 14px; background: none; border-color: var(--on-ink); color: var(--on-ink); font: inherit; font-weight: 600; cursor: pointer; }
.contact__reveal:hover { border-color: var(--seal); background: var(--seal); color: #fff; }
.contact__reveal[hidden], .contact__secret[hidden] { display: none; }
.contact__secret { margin-top: 14px; }
.contact__wide { grid-column: 1 / -1; }
.contact__reveal:disabled { opacity: .7; cursor: progress; }
.contact__captcha[hidden], .contact__reveal-error[hidden] { display: none; }
.contact__captcha { margin-top: 8px; }
.contact__reveal-error { font-weight: 600; color: #ff8a8a; }
@media (prefers-color-scheme: dark) { .contact__reveal-error { color: #b3122d; } }
.contact__secret .contact__mail { margin-top: 2px; }
/* Kod QR WeChata schowany pod przyciskiem (details/summary działa też bez JS) */
.contact__qr { margin-top: 8px; }
.contact__qr summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--on-ink) 40%, transparent);
}
.contact__qr summary::-webkit-details-marker { display: none; }
.contact__qr summary:hover { border-color: var(--seal); color: var(--seal); }
.contact__qr[open] summary { background: var(--on-ink); color: var(--ink); }
.contact__qr figure { margin: 10px 0 0; display: grid; gap: 6px; justify-items: start; }
.contact__qr img { width: 150px; height: auto; border-radius: 10px; background: #fff; padding: 10px; }
.contact__qr figcaption { font-size: .8rem; font-weight: 500; opacity: .7; }

/* Formularz w ciemnym pudełku kontaktu */
.contact__form {
  display: grid; gap: 12px; max-width: 40rem; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent);
}
.contact__form h3 { font-size: 1.15rem; }
.contact__fields { display: grid; gap: 12px; }
@media (min-width: 600px) { .contact__fields { grid-template-columns: 1fr 1fr; } }
.contact__form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 500; }
.contact__form input, .contact__form textarea {
  font: inherit; font-size: 1rem; color: inherit; padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--on-ink) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-ink) 28%, transparent);
}
.contact__form textarea { resize: vertical; min-height: 5.5em; }
.contact__form input:focus-visible, .contact__form textarea:focus-visible { outline: 2px solid var(--seal); outline-offset: 1px; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact__submit { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); font: inherit; font-weight: 600; cursor: pointer; }
.contact__submit:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.contact__submit:disabled { opacity: .6; cursor: progress; }
.contact__note { font-size: .8rem; opacity: .8; }
.contact__status { font-weight: 600; }
.contact__status:empty { display: none; }
/* Case study page */
.case { max-width: 1040px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 0; }
.case__back { color: var(--muted); text-decoration: none; font-size: .95rem; }
.case__back::before { content: "\2190\00a0"; }
.case__head { margin: 28px 0; display: grid; gap: 14px; }
.case__head h1 { font-size: clamp(2.8rem, 9vw, 6rem); font-stretch: 80%; letter-spacing: -.035em; line-height: .92; }
.case__kind { display: block; margin-top: 12px; color: var(--seal); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; font-stretch: 100%; line-height: 1.3; }
.case__summary { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; max-width: 38rem; }
.case__meta { display: grid; gap: 14px 28px; margin: 0 0 32px; padding: 18px 0; border-block: 1px solid var(--line); }
.case__meta dt { color: var(--muted); font-size: .85rem; }
.case__meta dd { margin: 0; }
@media (min-width: 760px) { .case__meta { grid-template-columns: 2fr 1fr .6fr 1.4fr; } }
.gallery { grid-auto-columns: 100%; }
.gallery figure { margin: 0; }
.gallery .zoom { background: var(--surface); border: 1px solid var(--line); height: min(68vh, 620px); display: flex; align-items: center; justify-content: center; }
.gallery img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.gallery figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.case__body { display: grid; gap: 1em; max-width: 40rem; margin-top: 40px; font-size: 1.08rem; }
.case__next {
  display: grid; gap: 4px; margin-top: 64px; padding: 28px 0;
  border-top: 1px solid var(--line); text-decoration: none;
}
.case__next span { color: var(--muted); }
.case__next strong { font-size: clamp(2rem, 6vw, 3.4rem); font-stretch: 80%; letter-spacing: -.03em; line-height: 1; }

.lost { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 9vw, 112px) var(--gutter); display: grid; gap: 14px; justify-items: start; }
.lost__zh { font-family: var(--font-zh); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--seal); }
.lost__zh rt { font-family: var(--font); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.lost__code { font-size: .95rem; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.lost h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; font-stretch: 85%; }
.lost__text { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.lost__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lost__note { font-size: .85rem; color: var(--muted); margin-top: 18px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; color: #fff;
}
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgb(8 10 15 / .92); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; align-self: center; }
.lightbox__caption { padding: 8px 16px 16px; text-align: center; color: #c9d0da; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px; font: inherit; font-weight: 600;
  background: #fff; color: #18202e; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}

.foot {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 96px) var(--gutter) 32px;
  color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}

/* Intro przy pierwszym wejściu (klasę .intro dodaje skrypt w <head>, zdejmuje po 1,6 s).
   ::before = ciemna zasłona z dziurą w kształcie rombu, która rośnie od środka (evenodd = dziura),
   ::after = czerwona czteroramienna gwiazdka w kształcie rombu. Obie warstwy nie łapią kliknięć. */
html.intro::before, html.intro::after { content: ""; position: fixed; z-index: 1000; pointer-events: none; }
html.intro::before {
  inset: 0; background: #18202e;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  animation: intro-open .62s cubic-bezier(.7, 0, .25, 1) .42s both;
}
html.intro::after {
  left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #d42a00;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: intro-star 1.05s cubic-bezier(.3, .7, .3, 1) both;
}
@keyframes intro-open {
  to { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% -110%, 210% 50%, 50% 210%, -110% 50%, 50% -110%); }
}
@keyframes intro-star {
  0% { transform: scale(0) rotate(-120deg); opacity: 0; }
  30% { transform: scale(1.1) rotate(8deg); opacity: 1; }
  42% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(7) rotate(45deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { html.intro::before, html.intro::after { display: none; } }
