/* s3p4.tech: plain CSS, no build step. Fonts are local (SIL OFL, licences in assets/fonts). */
@font-face { font-family: 'Bricolage Grotesque Variable'; src: url('fonts/bricolage-grotesque.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono Variable'; src: url('fonts/jetbrains-mono.woff2') format('woff2-variations'); font-weight: 100 800; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg2: #131317;
  --ink: #f3efe6;
  --dim: #9c978d;
  --line: rgba(255, 255, 255, 0.08);
  --hot: #ff5a1f;
  --cream: #ece4d2;
  --display: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  color-scheme: dark;
}

@property --hz { syntax: '<number>'; inherits: true; initial-value: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(var(--bg) 30%, transparent);
}
.logo { display: flex; gap: 3px; font: 700 13px/1 var(--mono); }
.logo span {
  display: grid; place-items: center; width: 30px; height: 28px; border-radius: 6px;
  background: var(--cream); color: #1a1714;
  box-shadow: 0 1px 0 #b9ae96, 0 2px 0 #b9ae96, 0 3px 0 #a99d83, 0 4px 6px rgba(0,0,0,.5);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.logo span + span { background: var(--hot); color: #fff; box-shadow: 0 1px 0 #c8410f, 0 2px 0 #c8410f, 0 3px 0 #a8360c, 0 4px 6px rgba(0,0,0,.5); }
.logo:active span { transform: translateY(3px); box-shadow: 0 0 0 #000, 0 1px 2px rgba(0,0,0,.5); }
.bar nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
.bar nav a { color: var(--dim); transition: color .15s; }
.bar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  padding: 96px clamp(16px, 5vw, 72px) 48px;
  position: relative;
  background:
    radial-gradient(60% 55% at 72% 52%, rgba(255, 120, 60, 0.13), transparent 70%),
    radial-gradient(40% 40% at 15% 20%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.hero::after { /* fine cutting-mat grid that fades out */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 65% 50%, #000 10%, transparent 75%);
}
.hero-copy { max-width: 560px; animation: up .8s var(--ease) both; }
.kicker { color: var(--hot); margin-bottom: 18px; }
h1 {
  font-size: clamp(42px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 22px; font-variation-settings: 'opsz' 96;
}
h1 em { font-style: normal; color: var(--hot); position: relative; white-space: nowrap; }
h1 em::after { /* hand-drawn underline that draws itself */
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.1em;
  background: var(--hot); border-radius: 99px; transform-origin: left;
  animation: draw .7s .7s var(--ease) both; opacity: .9;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 460px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; border: 1px solid var(--line); background: var(--bg2);
  box-shadow: 0 4px 0 #050506; transition: transform .1s var(--ease), box-shadow .1s var(--ease), background .2s;
}
.btn:hover { background: #1b1b21; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 #050506; }
.btn.primary { background: var(--hot); border-color: transparent; color: #fff; box-shadow: 0 4px 0 #a8360c; }
.btn.primary:active { box-shadow: 0 0 0 #a8360c; }

/* ---------- 3D keyboard ---------- */
.stage {
  --u: 84px; --g: 12px; --H: 26px; --pad: 22px;
  --rx: 0; --ry: 0; --lx: 30%; --ly: 20%;
  perspective: 1600px;
  display: grid; justify-items: center; gap: 8px;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.tilt {
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  transition: transform .5s var(--ease);
  padding: 40px 0 70px;
}
.deck {
  position: relative; transform-style: preserve-3d;
  width: calc(5 * var(--u) + 4 * var(--g)); height: calc(3 * var(--u) + 2 * var(--g));
  transform: rotateX(54deg) rotateZ(-30deg);
  animation: float 7s ease-in-out infinite;
}
.plate {
  position: absolute; inset: calc(-1 * var(--pad)); border-radius: 22px; transform-style: preserve-3d;
  background: linear-gradient(135deg, #2a2a31, #17171b 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 80px 10px rgba(0,0,0,.6);
}
.plate::after { /* screw-like status LEDs */
  content: ''; position: absolute; right: 16px; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 10px 2px var(--hot), -12px 0 0 #2ee66b, -12px 0 10px 1px rgba(46,230,107,.6);
}
.pw { position: absolute; background: #0d0d10; }
.pw.s { left: 18px; right: 18px; top: 100%; height: 30px; transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(#202026, #0a0a0c); }
.pw.n { left: 18px; right: 18px; bottom: 100%; height: 30px; transform-origin: bottom; transform: rotateX(90deg); }
.pw.e { top: 18px; bottom: 18px; left: 100%; width: 30px; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #1a1a1f, #0b0b0d); }
.pw.w { top: 18px; bottom: 18px; right: 100%; width: 30px; transform-origin: right; transform: rotateY(-90deg); }

.key {
  --c: var(--cream);
  --side: color-mix(in oklab, var(--c) 62%, #000);
  --side2: color-mix(in oklab, var(--c) 45%, #000);
  --hz: 1;
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer;
  left: calc(var(--x) * (var(--u) + var(--g)));
  top: calc(var(--y) * (var(--u) + var(--g)));
  width: calc(var(--w) * var(--u) + (var(--w) - 1) * var(--g));
  height: var(--u);
  transform-style: preserve-3d;
  transition: --hz .14s var(--spring);
  animation: drop .75s var(--spring) both;
}
.key:hover { --hz: 1.22; }
.key.down, .key:active { --hz: 0.32; transition-duration: .06s; }
.key .wall { position: absolute; border-radius: 3px; }
.key .wall.s { left: 4px; right: 4px; top: 100%; height: var(--H); transform-origin: top; transform: rotateX(90deg) scaleY(var(--hz)); background: linear-gradient(var(--side), var(--side2)); }
.key .wall.n { left: 4px; right: 4px; bottom: 100%; height: var(--H); transform-origin: bottom; transform: rotateX(-90deg) scaleY(var(--hz)); background: var(--side); }
.key .wall.e { top: 4px; bottom: 4px; left: 100%; width: var(--H); transform-origin: left; transform: rotateY(-90deg) scaleX(var(--hz)); background: linear-gradient(90deg, var(--side), var(--side2)); }
.key .wall.w { top: 4px; bottom: 4px; right: 100%; width: var(--H); transform-origin: right; transform: rotateY(90deg) scaleX(var(--hz)); background: var(--side); }
/* walls are inset so the cap (slightly larger) hides their joints */
.key .wall.s, .key .wall.n { top: auto; }
.key .wall.s { top: calc(100% - 4px); }
.key .wall.n { bottom: calc(100% - 4px); }
.key .wall.e { left: calc(100% - 4px); }
.key .wall.w { right: calc(100% - 4px); }
.key .cap {
  position: absolute; inset: 0; border-radius: 14px;
  transform: translateZ(calc(var(--H) * var(--hz)));
  background: var(--c);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -6px 10px rgba(0,0,0,.18);
}
.key .cap::after { /* the shine: a moving specular spot + a fixed top sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at var(--lx) var(--ly), rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%, rgba(0,0,0,.12));
  mix-blend-mode: soft-light;
}
.key .cap b { font: 700 calc(var(--u) * .34)/1 var(--mono); color: #241f19; transform: translate(-10%, -12%); }
.key.accent { --c: var(--hot); }
.key.accent .cap b { color: #fff; }
.key.wide { --c: #2b2b32; }
.key.wide .cap b { color: var(--ink); font-size: calc(var(--u) * .2); letter-spacing: .06em; transform: none; }
.key.wide .cap { box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -6px 10px rgba(0,0,0,.3); }
.key.app .cap { padding: 7%; }
.key.app .cap img {
  width: 100%; height: 100%; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.key.app.down .cap, .key.app:active .cap { box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 0 40px 6px var(--c); }

.readout {
  font: 500 13px/1 var(--mono); letter-spacing: .04em; color: #ffd8c6;
  height: 34px; min-width: 260px; padding: 0 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  background: #160d09; border: 1px solid #3a1d10;
  box-shadow: inset 0 0 18px rgba(255, 90, 31, .18), 0 0 0 4px #0e0e11;
  text-shadow: 0 0 8px rgba(255, 110, 50, .8);
  margin-top: -36px;
}
.readout span { color: var(--hot); }
.readout em { width: 8px; height: 15px; background: var(--hot); box-shadow: 0 0 8px var(--hot); animation: blink 1s steps(1) infinite; }

/* ---------- sections ---------- */
section.apps, section.sites { padding: 96px clamp(16px, 5vw, 72px) 40px; max-width: 1280px; margin: 0 auto; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.03em; margin: 0; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px;
  background: var(--bg2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .35s var(--ease), border-color .3s, opacity .6s var(--ease), translate .6s var(--ease);
}
.card::before { /* coloured light that follows the pointer */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--c) 22%, transparent), transparent 60%);
}
.card:hover { border-color: color-mix(in oklab, var(--c) 40%, transparent); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card.ping { animation: ping 1.1s var(--ease); }
.card .icon { position: relative; width: 84px; height: 84px; transition: transform .35s var(--spring); }
.card .icon img {
  width: 100%; height: 100%; border-radius: 22px;
  /* extruded 3D tile */
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--c) 55%, #000), 0 2px 0 color-mix(in oklab, var(--c) 52%, #000),
    0 3px 0 color-mix(in oklab, var(--c) 49%, #000), 0 4px 0 color-mix(in oklab, var(--c) 46%, #000),
    0 5px 0 color-mix(in oklab, var(--c) 43%, #000), 0 6px 0 color-mix(in oklab, var(--c) 40%, #000),
    0 14px 24px -6px color-mix(in oklab, var(--c) 45%, transparent), 0 20px 30px rgba(0,0,0,.5);
}
.card .icon::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.4), rgba(255,255,255,0) 38%);
  mix-blend-mode: soft-light;
}
.card:hover .icon { transform: translateY(-5px) rotate(-4deg); }
.card .body { position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 30px; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.card .line { color: var(--dim); margin: 0 0 10px; flex: 1; }
.new { margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--c); color: #04140a; font-weight: 700; }
.card.big { grid-column: span 2; flex-direction: row; align-items: center; gap: 36px; padding: 36px; }
.card.big .icon { width: 150px; height: 150px; flex: none; }
.card.big .icon img, .card.big .icon::after { border-radius: 36px; }
.card.big h3 { font-size: clamp(36px, 4vw, 56px); }
.card.big .line { font-size: 19px; color: #c9c3b7; flex: none; max-width: 520px; }

.stores { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 15px 0 12px; border-radius: 11px;
  background: #050506; border: 1px solid #2c2c33; font-weight: 600; font-size: 16px; line-height: 1;
  box-shadow: 0 3px 0 #000; transition: transform .1s var(--ease), box-shadow .1s var(--ease), border-color .2s;
}
.store small { display: block; font-size: 10px; font-weight: 400; opacity: .75; margin-bottom: 3px; }
.store svg { width: 22px; height: 22px; flex: none; }
.store:hover { border-color: #55555f; }
.store:active { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.store.mine { background: var(--ink); color: #0b0b0d; border-color: var(--ink); box-shadow: 0 3px 0 #8f8a80; }
.store.wait { cursor: default; border-style: dashed; background: transparent; color: var(--dim); box-shadow: none; }
.store.wait:hover { border-color: #2c2c33; }
.store.wait:active { transform: none; }
.soon { font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

.card.next { display: none; border-style: dashed; background: transparent; }
.card.next .plus {
  display: grid; place-items: center; border-radius: 22px; font: 300 52px/1 var(--mono); color: var(--hot);
  border: 1px dashed color-mix(in oklab, var(--hot) 60%, transparent); transition: transform .35s var(--spring), background .2s;
}
.card.next:hover .plus { background: var(--hot); color: #fff; border-style: solid; transform: translateY(-5px) rotate(90deg); }
.card.next .go { color: var(--hot); }
@media (min-width: 1081px) { .card.next { display: flex; } }

/* stack: two conveyor rows of keycaps, opposite directions, pause on hover */
section.stack { padding: 96px 0 40px; overflow-x: clip; }
.stack .head { max-width: 1280px; margin: 0 auto 36px; padding: 0 clamp(16px, 5vw, 72px) 18px; border-bottom: 0; }
.belt {
  display: grid; gap: 18px; padding: 10px 0 24px;
  transform: perspective(1100px) rotateX(16deg); transform-origin: 50% 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.row { overflow: hidden; padding: 14px 0 12px; }
.track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: belt linear infinite; }
.track.rev { animation-direction: reverse; }
.row:hover .track { animation-play-state: paused; }
.tech { padding: 0 7px; }
.tcap {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px 0 16px; border-radius: 14px;
  background: linear-gradient(170deg, #f6efdf, var(--cream) 55%, #ddd3bd); color: #1d1a15;
  font-weight: 650; font-size: 17px; white-space: nowrap;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 1px 0 #b9ae96, 0 2px 0 #b3a78e, 0 3px 0 #ab9f86, 0 4px 0 #a3977e,
    0 5px 0 #9b8f76, 0 6px 0 #93876e, 0 14px 20px -4px rgba(0,0,0,.55);
  transition: transform .18s var(--spring), box-shadow .18s var(--ease);
}
.tcap svg { width: 28px; height: 28px; fill: var(--b); flex: none; }
.tcap b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #1d1a15; color: var(--cream); font: 700 12px/1 var(--mono); }
.tech:hover .tcap {
  transform: translateY(-6px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 1px 0 #b9ae96, 0 2px 0 #b3a78e, 0 3px 0 #ab9f86, 0 4px 0 #a3977e,
    0 5px 0 #9b8f76, 0 6px 0 #93876e, 0 7px 0 #8b7f66, 0 8px 0 #83775e, 0 10px 0 #7b6f56,
    0 0 0 2px var(--b), 0 22px 34px -6px color-mix(in oklab, var(--b) 60%, transparent);
}
.tech:active .tcap { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 1px 0 #93876e, 0 4px 8px rgba(0,0,0,.5); transition-duration: .06s; }
@keyframes belt { to { transform: translateX(-50%); } }

/* sites */
.sites ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sites li { border-bottom: 1px solid var(--line); }
.sites a {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: center;
  padding: 26px 12px; overflow: hidden; border-radius: 14px;
}
.sites a::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 90, 31, .12), transparent 70%);
}
.sites a:hover::before { opacity: 1; }
.sites .name { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; transition: transform .35s var(--ease); }
.sites a:hover .name { transform: translateX(8px); }
.sites .line { color: var(--dim); }
.sites .host { font: 500 14px var(--mono); display: flex; gap: 8px; align-items: center; }
.sites .host i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--spring), background .2s, color .2s; }
.sites a:hover .host i { background: var(--hot); color: #fff; border-color: var(--hot); transform: rotate(45deg); }
.sites .tag { color: var(--hot); }

/* footer */
footer { padding: 120px clamp(16px, 5vw, 72px) 40px; text-align: center; max-width: 1280px; margin: 0 auto; }
.mail {
  display: inline-block; margin: 14px 0 80px; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(30px, 6.4vw, 86px); line-height: 1.05; overflow-wrap: anywhere;
  background: linear-gradient(var(--hot), var(--hot)) left bottom / 0 4px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
.mail:hover { background-size: 100% 4px; color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 26px; }
.foot a:hover { color: var(--ink); }

/* reveal */
.rise { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.rise.in { opacity: 1; translate: 0 0; }
.card.rise { transition: transform .35s var(--ease), border-color .3s, opacity .7s var(--ease), translate .7s var(--ease); }

/* ---------- keyframes ---------- */
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes drop { from { transform: translateZ(260px); visibility: hidden; } } /* no opacity: animating it flattens the 3D key into the plate */
@keyframes float { 50% { transform: rotateX(54deg) rotateZ(-30deg) translateZ(14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 var(--c); }
  30% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--c) 60%, transparent); }
  100% { box-shadow: 0 0 0 22px transparent; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 104px; }
  .stage { --u: 74px; --g: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .sites .tag { grid-column: 1 / -1; }
  .sites .line { grid-column: 1; grid-row: 3; }
  .sites .host { grid-column: 2; grid-row: 2 / 4; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar nav { font-size: 14px; }
  .hero { min-height: auto; padding: 92px 16px 24px; gap: 0; }
  .stage { --u: 50px; --g: 7px; --H: 17px; --pad: 13px; }
  .tilt { padding: 34px 0 52px; }
  .readout { min-width: 0; width: min(100%, 300px); font-size: 12px; margin-top: -28px; }
  .key .cap { border-radius: 10px; }
  .key.app .cap img { border-radius: 7px; }
  section.apps, section.sites { padding: 64px 16px 24px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.big { grid-column: auto; flex-direction: column; align-items: stretch; padding: 22px; gap: 18px; }
  .card.big .icon { width: 96px; height: 96px; }
  .card.big .icon img, .card.big .icon::after { border-radius: 24px; }
  .card.big .line { font-size: 17px; }
  .sites a { padding: 20px 4px; }
  section.stack { padding: 64px 0 24px; }
  .stack .head { padding: 0 16px; margin-bottom: 20px; }
  .belt { gap: 8px; transform: perspective(700px) rotateX(14deg); }
  .tcap { height: 52px; font-size: 15px; gap: 10px; padding: 0 16px 0 12px; }
  .tcap svg { width: 22px; height: 22px; }
  .sites .host span { display: none; }
  footer { padding: 80px 16px 32px; }
  .mail { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; translate: none; }
  .row { overflow-x: auto; }
}
