/* cinnamon portfolio
   Tokens: Sky, Cinnamon, Glaze, Bubblegum, Slime, Ink. --bg / --fg are driven from scroll by js/main.js. */
:root {
  --sky: #5bb8ff;
  --cinnamon: #7a2e0e;
  --glaze: #ffe27a;
  --gum: #ff4fa0;
  --slime: #7be04a;
  --ink: #1b0d06;
  --cream: #fff6e0;
  --bg: rgb(91, 184, 255);
  --fg: rgb(27, 13, 6);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --pad: clamp(20px, 5vw, 80px);
  --step: 4px; /* pixel-corner size */
  --ground: max(9vh, 60px); /* the strip at the bottom of the loading screen */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; }
body {
  margin: 0;
  color: var(--fg);
  font: 400 clamp(17px, 1.25vw, 20px)/1.55 var(--body);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }

h2 {
  font: 800 clamp(34px, 5.2vw, 84px)/1 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* numbers inside pixel text: the pixel font's 5 reads like an 8, so digits use the display face */
.n { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
/* Ukrainian: Pixelify Sans draws Cyrillic badly (С reads as О, в as є), so the pixel text switches to Tiny5, which has one weight */
html[lang='uk'] { --pixel: 'Tiny5', 'Courier New', monospace; font-synthesis-weight: none; }

.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
main { position: relative; z-index: 1; }

/* pixel-stepped corners, used by buttons, cards and slots */
.btn, .sheet, .slot, .item-card, .loadbar, .browser, .kind, .step, .me-card, .status {
  clip-path: polygon(
    0 var(--step), var(--step) var(--step), var(--step) 0,
    calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--step), 100% var(--step),
    100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step)) 100%,
    var(--step) 100%, var(--step) calc(100% - var(--step)), 0 calc(100% - var(--step))
  );
}

/* ---------- pixel sprites ---------- */
.px {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 28px);
  pointer-events: none;
  animation: bob 1.5s steps(3) infinite alternate; animation-delay: var(--d, 0s);
}
.px-in { display: block; flex: none; width: var(--s, 28px); }
.px svg, .px-in svg, .g-item svg, .hud-hearts svg, .start-cursor svg, .scroll-hint svg, .me figcaption svg, .ticker svg { width: 100%; height: auto; }
@keyframes bob { to { translate: 0 -9px; } }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em;
  font: 700 clamp(15px, 1.05vw, 18px)/1 var(--body);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s steps(2), background-color 0.15s, color 0.15s;
}
.btn:focus-visible, .slot:focus-visible { outline: 4px solid var(--gum); outline-offset: -4px; }
.btn:hover { transform: translateY(-4px); }
.btn:active { transform: translateY(2px); }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-pixel { font: 700 clamp(20px, 2vw, 28px)/1 var(--pixel); background: var(--glaze); color: var(--ink); padding: 0.7em 1.6em; --step: 6px; }

/* ---------- loading screen ---------- */
.loader { position: fixed; inset: 0; z-index: 4; color: var(--ink); }
.loader-sky { position: absolute; inset: 0; background: var(--sky); overflow: hidden; }
.loader-sky .cloud { color: #fff; opacity: 0.92; animation: drift 9s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes drift { to { translate: 5vw 0; } }
.loader-ground {
  position: absolute; inset: auto 0 0 0; height: var(--ground);
  border-top: 6px solid var(--ink);
  background:
    linear-gradient(var(--glaze) 0 10px, transparent 0),
    repeating-linear-gradient(90deg, rgba(27, 13, 6, 0.2) 0 4px, transparent 0 64px),
    var(--cinnamon);
}
.g-item { position: absolute; bottom: calc(100% + 6px); display: block; }
.loader-hud {
  position: absolute; inset: 20px var(--pad) auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 500 clamp(15px, 1.3vw, 19px)/1 var(--pixel);
}
.loader-hud b { font-weight: 700; }
.loader-hud .n { font-size: 1.05em; }
.hud-hearts { display: flex; gap: 6px; }
.hud-hearts i { width: 26px; display: block; }
.loader-ui {
  position: absolute; inset: auto 0 var(--ground) 0; height: 36vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 0 20px;
}
.splash {
  position: absolute; top: -4vh; left: 50%;
  font: 700 clamp(18px, 2.2vw, 32px)/1 var(--pixel);
  color: var(--glaze); text-shadow: 3px 3px 0 var(--ink);
  transform: translateX(-50%) translateX(min(26vw, 330px)) rotate(-14deg);
  animation: splash 0.9s ease-in-out infinite alternate;
  white-space: nowrap; opacity: 0;
}
@keyframes splash { to { scale: 1.09; } }
.loader-tag { font: 500 clamp(16px, 1.5vw, 22px)/1.3 var(--pixel); }
.loadbar { width: min(420px, 78vw); height: 26px; background: var(--ink); padding: 5px; --step: 5px; }
.loadbar-fill { height: 100%; width: 0%; background: var(--slime); }
.loadtext { font: 500 clamp(18px, 1.6vw, 22px)/1 var(--pixel); }
.start-wrap { position: relative; display: grid; justify-items: center; gap: 14px; }
.start-wrap[hidden] { display: none; }
.start-cursor { position: absolute; right: -22px; top: 34px; width: 28px; display: block; animation: poke 0.7s steps(2) infinite alternate; pointer-events: none; }
@keyframes poke { to { translate: -7px -7px; } }
.loader-hint { font: 500 16px/1 var(--pixel); animation: blink 1.4s steps(2) infinite; }
.loader-foot {
  position: absolute; inset: auto var(--pad) 0; height: calc(var(--ground) - 6px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px;
  color: var(--cream); font: 500 clamp(14px, 1.2vw, 17px)/1.2 var(--pixel);
}
html.fallback .loader, html.fallback #stage, html.fallback .works, html.done .loader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-weight: 500; font-size: 16px; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-cta):hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-cta { background: var(--fg); color: var(--bg); padding: 0.6em 1em; font-weight: 700; white-space: nowrap; }
/* EN / UA switch: the pressed half is filled */
.lang { --on: var(--fg); --on-text: var(--bg); display: flex; flex: none; border: 3px solid var(--on); }
.lang button { min-width: 38px; padding: 7px 7px 6px; border: 0; background: none; color: var(--on); font: 700 15px/1 var(--pixel); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--on); color: var(--on-text); }
.lang button:focus-visible { outline: 3px solid var(--gum); outline-offset: 3px; }
.loader-foot .lang { --on: var(--cream); --on-text: var(--ink); }
html.js:not(.started):not(.fallback) .nav { visibility: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px var(--pad) 80px;
  overflow: hidden;
}
.hero-text { width: min(52%, 780px); position: relative; }
.status {
  --step: 3px;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 14px;
  background: var(--ink); color: var(--cream); font: 500 17px/1 var(--pixel);
}
.status i { width: 10px; height: 10px; background: var(--slime); animation: blink 1.2s steps(2) infinite; }
.hero-title {
  font: 800 clamp(42px, 6.4vw, 118px)/0.98 var(--display);
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }
.hero-sub { margin-top: 28px; max-width: 30em; font-size: clamp(18px, 1.5vw, 23px); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px 30px; font: 500 17px/1.2 var(--pixel); }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts b { font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.hero-facts .px-in { --s: 26px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 16px/1 var(--pixel); text-decoration: none;
}
.scroll-hint i { display: block; width: 18px; animation: bob 0.8s steps(3) infinite alternate-reverse; }
.cloud { position: absolute; opacity: 0.9; pointer-events: none; }
.cloud-a { width: clamp(120px, 15vw, 240px); top: 14%; left: 38%; }
.cloud-b { width: clamp(80px, 9vw, 150px); top: 68%; left: 58%; opacity: 0.7; }
.cloud-c { width: clamp(100px, 12vw, 200px); top: 87%; left: 22%; opacity: 0.6; }

/* ---------- band of services between hero and "why me" ---------- */
.ticker {
  position: relative; z-index: 1;
  margin: -8px -3vw 0; padding: 15px 0; rotate: -1.5deg;
  background: var(--ink); color: var(--glaze); overflow: hidden;
}
.ticker:empty { display: none; }
.ticker-track {
  display: flex; align-items: center; width: max-content;
  font: 800 clamp(18px, 1.8vw, 28px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-track > * { margin-right: clamp(18px, 2vw, 32px); }
.ticker-track i { display: block; width: clamp(16px, 1.5vw, 22px); color: var(--gum); }
@keyframes ticker { to { translate: -50% 0; } }

/* ---------- why me ---------- */
.stats {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 110px);
  align-items: center;
  padding: 110px var(--pad) 70px;
}
.claims { margin-top: clamp(26px, 3.6vw, 50px); display: grid; gap: 22px; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.4; max-width: 26em; }
.claims li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.claims .px-in { --s: clamp(32px, 2.8vw, 42px); margin-top: 3px; }
.claims strong { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--glaze); }
.sheet {
  --step: 8px;
  background: var(--cream); color: var(--ink);
  padding: clamp(22px, 2.4vw, 36px);
  font-family: var(--pixel); font-weight: 500;
  align-self: end; margin-top: 23vh;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet-name { font: 800 clamp(24px, 2.4vw, 36px)/1 var(--display); letter-spacing: -0.02em; }
.sheet-class { margin-top: 8px; font-size: 18px; }
.sheet-lvl { text-align: center; }
.sheet-level { font-size: 20px; line-height: 1; background: var(--ink); color: var(--glaze); padding: 8px 12px; white-space: nowrap; }
.sheet-level b { font-size: 24px; }
.sheet-note { margin-top: 6px; font-size: 14px; line-height: 1; opacity: 0.7; }
.sheet-info {
  margin-top: 16px; padding: 12px 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 18px;
  border-block: 4px dotted var(--ink);
}
.sheet-info dt { font-size: 15px; line-height: 1; opacity: 0.65; }
.sheet-info dd { margin-top: 6px; font-size: 19px; line-height: 1.1; }
.skills { margin-top: 16px; display: grid; gap: 11px; }
.skill { display: grid; grid-template-columns: 1fr; gap: 6px; }
.skill dt { font-size: 18px; line-height: 1; }
.skill dd { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 16px; }
.skill dd i { background: rgba(27, 13, 6, 0.14); }
.skill dd i.on { background: var(--slime); box-shadow: inset 0 -4px 0 rgba(27, 13, 6, 0.18); }
.sheet-foot { margin-top: 18px; padding-top: 14px; border-top: 4px dotted var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; font-size: 18px; }
.sheet-foot b { font-size: 20px; }

/* ---------- works ---------- */
.works { position: relative; height: calc(var(--n, 8) * 110vh); }
.works-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.work {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3.2fr) minmax(0, 6.8fr); gap: 2vw; align-items: center;
  padding: 90px var(--pad) 70px;
  opacity: 0; visibility: hidden;
}
.work-text { grid-column: 1; }
.kind {
  --step: 3px;
  display: inline-block; padding: 6px 12px;
  font: 500 17px/1 var(--pixel);
  background: var(--fg); color: var(--bg);
}
.work h3 { margin-top: 18px; font: 800 clamp(30px, 3.3vw, 60px)/1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.work-line { margin-top: 18px; max-width: 22em; }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 10px; font: 500 15px/1 var(--pixel); background: color-mix(in srgb, var(--fg) 15%, transparent); }
.work-link { display: inline-block; margin-top: 22px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.work-link:hover { text-decoration-thickness: 6px; }
.work-shot { grid-column: 3; perspective: 1600px; }
.browser {
  --step: 6px;
  background: var(--ink); padding: 0 6px 6px;
  transform: rotateY(-13deg) rotateX(3deg); transform-origin: 100% 50%;
  box-shadow: none;
}
.browser-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding-left: 8px; }
.browser-bar i { width: 10px; height: 10px; background: var(--gum); }
.browser-bar i:nth-child(2) { background: var(--glaze); }
.browser-bar i:nth-child(3) { background: var(--slime); }
.browser-url { margin-left: 8px; padding: 4px 12px; background: rgba(255, 246, 224, 0.14); color: var(--cream); font: 500 13px/1 var(--pixel); }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #222; }
.works-count { position: absolute; left: var(--pad); bottom: 26px; display: flex; align-items: center; gap: 14px; font: 800 15px/1 var(--display); letter-spacing: -0.02em; }
.count-pips { display: flex; gap: 5px; }
.count-pips i { width: 12px; height: 12px; background: color-mix(in srgb, var(--fg) 25%, transparent); }
.count-pips i.on { background: var(--fg); }

/* ---------- services (inventory) ---------- */
.services {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 100px); align-items: center;
  padding: 120px var(--pad);
}
.item-card { --step: 8px; margin-top: clamp(26px, 3.4vw, 50px); background: var(--ink); color: var(--cream); padding: clamp(20px, 2.2vw, 32px); min-height: 15.5em; }
.item-name { font: 700 clamp(24px, 2.2vw, 34px)/1 var(--pixel); color: var(--glaze); }
.item-desc { margin-top: 14px; max-width: 26em; }
.item-points { margin-top: 16px; display: grid; gap: 8px; font-size: 0.94em; line-height: 1.35; }
.item-points li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; }
.item-points li::before { content: ''; width: 10px; height: 10px; background: var(--slime); }
.inventory { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.slot {
  --step: 8px;
  aspect-ratio: 1; border: 0; cursor: pointer; padding: 8% 6% 10%;
  background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9%;
  box-shadow: inset 0 -10px 0 rgba(27, 13, 6, 0.12);
  transition: transform 0.15s steps(2), background-color 0.15s;
}
.slot svg { width: 58%; height: auto; }
.slot-label { font: 500 clamp(13px, 1.2vw, 19px)/1 var(--pixel); }
.slot:hover { transform: translateY(-6px); }
.slot[aria-selected='true'] { background: var(--gum); transform: translateY(-6px); }
.inv-hint { margin-top: 18px; text-align: center; font: 500 16px/1 var(--pixel); opacity: 0.75; }

/* ---------- process ---------- */
.process {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(34px, 5vw, 72px);
  padding: 120px var(--pad);
}
.process-head p { margin-top: 18px; max-width: 28em; font-size: clamp(18px, 1.5vw, 23px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.step {
  --step: 8px;
  background: var(--cream); color: var(--ink);
  padding: clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px) clamp(26px, 2.4vw, 38px);
  box-shadow: inset 0 -10px 0 rgba(27, 13, 6, 0.12);
}
.step:nth-child(even) { translate: 0 26px; }
.step .px-in { --s: clamp(44px, 3.8vw, 58px); }
.step-n { margin-top: 20px; font: 500 17px/1 var(--pixel); }
.step-n b { font-size: 19px; }
.step h3 { margin-top: 8px; font: 800 clamp(19px, 1.65vw, 27px)/1.1 var(--display); letter-spacing: -0.02em; }
.step h3 + p { margin-top: 12px; font-size: 0.95em; line-height: 1.45; }

/* ---------- contact ---------- */
.contact {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: 46vh var(--pad) 28px;
}
.contact-kicker { font: 700 clamp(20px, 2vw, 30px)/1 var(--pixel); }
.contact h2 { margin-top: 12px; font-size: clamp(44px, 8vw, 130px); }
.contact-sub { margin-top: 20px; max-width: 26em; font-size: clamp(18px, 1.5vw, 23px); }
.contact-links { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn-big { --step: 8px; flex-direction: column; gap: 8px; background: var(--ink); color: var(--cream); padding: 22px 34px; min-width: 240px; }
.btn-big span { font: 800 clamp(20px, 1.8vw, 28px)/1 var(--display); letter-spacing: -0.02em; }
.btn-big small { font: 500 17px/1 var(--pixel); color: var(--glaze); }
.btn-big:hover { background: var(--cream); color: var(--ink); }
.btn-big:hover small { color: var(--cinnamon); }
.me { position: absolute; right: var(--pad); bottom: 84px; width: clamp(130px, 11.5vw, 176px); }
.me-card { --step: 6px; background: var(--cream); padding: 8px 8px 0; rotate: 5deg; }
.me-card canvas { width: 100%; height: auto; background: var(--glaze); }
.me-card p { padding: 9px 0 11px; text-align: center; font: 500 17px/1 var(--pixel); color: var(--ink); }
.me figcaption {
  position: absolute; right: calc(100% - 4px); top: -22px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font: 700 clamp(20px, 1.8vw, 27px)/1 var(--pixel); white-space: nowrap; rotate: -8deg;
}
.me figcaption i { display: block; width: clamp(48px, 4.4vw, 66px); margin-right: 2px; }
.foot { margin-top: 70px; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 500 16px/1.3 var(--pixel); }

/* ---------- narrower desktop windows ---------- */
@media (max-width: 1240px) {
  .me { position: relative; right: auto; bottom: auto; margin: 40px 0 0 110px; }
  .contact .px { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(even) { translate: none; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .m-hide { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav { background: var(--bg); padding-top: 12px; padding-bottom: 12px; }
  .splash { transform: translateX(-50%) translateX(16vw) rotate(-12deg); top: -1vh; }
  .l-heart { left: 10%; top: 60%; }
  .l-coin { left: 40%; top: 85%; }
  .l-star { left: 68%; top: 84%; }
  .loader-foot { justify-content: space-between; }
  .nav-links { gap: 8px; font-size: 15px; }
  .nav-cta { padding: 0.6em 0.8em; }
  .brand { gap: 8px; font-size: 16px; }
  .lang button { min-width: 34px; padding: 7px 5px 6px; }
  .loader-foot span:last-child { display: none; }
  .hud-hearts i { width: 20px; }
  .hero { align-items: flex-end; padding: 0 var(--pad) 7svh; }
  .hero-text { width: 100%; }
  .hero-title { font-size: clamp(40px, 12.4vw, 76px); }
  .status { margin-bottom: 14px; font-size: 15px; }
  .hero-sub { margin-top: 16px; font-size: 17px; line-height: 1.45; }
  .hero-actions { margin-top: 20px; }
  .hero-facts, .scroll-hint { display: none; }
  .cloud-a { top: 12%; left: 62%; }
  .cloud-b { top: 40%; left: 4%; }
  .cloud-c { display: none; }
  .stats, .services { grid-template-columns: 1fr; padding: 96px var(--pad); align-items: start; }
  .stats { padding-top: 38svh; }
  .sheet { margin-top: 0; margin-bottom: 0; }
  .sheet-info { grid-template-columns: 1fr 1fr; }
  .works { height: calc(var(--n, 8) * 100vh); }
  .work { grid-template-columns: 1fr; grid-template-rows: 30svh auto 1fr; gap: 14px; padding: 70px var(--pad) 56px; align-items: start; }
  .work-text, .work-shot { grid-column: 1; }
  .work-text { grid-row: 2; }
  .work-shot { grid-row: 3; align-self: start; }
  .work h3 { margin-top: 12px; font-size: clamp(28px, 8.4vw, 44px); }
  .work-line { margin-top: 10px; font-size: 16px; line-height: 1.4; }
  .tags { display: none; }
  .work-link { margin-top: 10px; }
  .browser { transform: none; }
  .browser img { aspect-ratio: 16 / 9.4; }
  .works-count { bottom: 18px; }
  .item-card { min-height: 15em; }
  .inv-wrap { order: -1; }
  .services-text { display: contents; }
  .services h2 { order: -2; }
  .process { padding: 96px var(--pad); justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
  .step .px-in { grid-row: 1 / span 3; --s: 46px; }
  .step-n { margin-top: 0; }
  .contact { padding-top: 36svh; }
  .btn-big { width: 100%; padding: 16px 24px; }
  .me { margin: 34px 0 0 96px; width: 124px; }
  .foot { justify-content: center; text-align: center; flex-direction: column; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .px, .loader-sky .cloud, .start-cursor, .loader-hint, .status i, .scroll-hint i, .ticker-track { animation: none; }
  .btn, .slot { transition: none; }
}

/* small phones: the bun icon alone stands for the name, so the switch and the button fit */
@media (max-width: 380px) {
  .brand span { display: none; }
}
