/* The styles of every page of the concept site (index, cases, blog, about). A concept site for the AnvilCode brand. The look is the one of docs/visual/presentation.html: the lab colours, DM Sans and JetBrains Mono, cards with a 2px line.
   The mark (the logo) is a smooth vector anvil. Every pixel drawing (the icons) is made of whole squares and is only ever shown at a whole multiple of its grid
   so a pixel is always a pixel. The texts are the ones of service-lab.online (its site.ftl). */
:root {
  --ink: #0F1720; --ink2: #18232F; --paper: #F3F1EA; --paper2: #E6E3D7;
  --teal: #3CC7B0; --teal-d: #0B6B5C; --amber: #F2B24A; --amber-d: #C4832A;
  --soft-d: #B9C4CE; --soft-l: #4A5560; --line-d: #2C3A48; --line-l: #CFCBBB;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'DM Sans', system-ui, Arial, sans-serif;
  --wrap: 1200px; --gut: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.px { display: inline-block; flex: none; shape-rendering: crispEdges; vertical-align: middle; }
.px32 { width: 32px; height: 32px; } .px48 { width: 48px; height: 48px; } .px64 { width: 64px; height: 64px; } .px96 { width: 96px; height: 96px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 500 14px/1.2 var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 1.45; color: var(--soft-d); max-width: 62ch; }
.band { padding: 112px 0; position: relative; }
.dark2 { background: var(--ink2); }
.light { background: var(--paper); color: var(--ink); }
.light .eyebrow { color: var(--teal-d); }
.light .lead { color: var(--soft-l); }
.teeth::before, .teeth.both::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; z-index: 2; background: linear-gradient(90deg, var(--tooth) 50%, transparent 50%) 0 0 / 16px 8px; pointer-events: none; }
.teeth::before { top: -8px; } .teeth.both::after { bottom: -8px; }
.head { display: flex; flex-direction: column; gap: 0; margin-bottom: 56px; }
.head .lead { margin-top: 20px; }

/* buttons: mono labels and a hard shadow, like a key that is pressed */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--mono); text-decoration: none; padding: 16px 22px; border-radius: 12px; border: 2px solid var(--line-d); color: var(--paper); background: transparent; cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--paper); }
.btn.hot { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 4px 4px 0 var(--teal-d); }
.btn.hot:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--teal-d); }
.btn.hot:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--teal-d); }
.btn.inkb { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(15, 23, 32, .28); }
.btn.inkb:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(15, 23, 32, .28); }
.btn.small { padding: 11px 16px; font-size: 13px; box-shadow: 3px 3px 0 var(--teal-d); }
.btn .arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 32, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line-d); }
#progress { position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--amber); }
.bar { height: 72px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.mark { display: inline-block; flex: none; vertical-align: middle; }
.logo .mark { width: 40px; height: 40px; }
.wm { font: 700 24px/1 var(--sans); letter-spacing: -0.02em; }
.wm i { font: 500 21px/1 var(--mono); font-style: normal; color: var(--teal); letter-spacing: -0.04em; margin-left: 1px; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { font: 500 13px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; color: var(--soft-d); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
nav a:hover { color: var(--paper); border-color: var(--amber); }

/* ---------- the first screen ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(185, 196, 206, .16) 1px, transparent 1.5px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.0; font-weight: 700; letter-spacing: -0.03em; }
h1 .hot { color: var(--amber); }
h1 .cool { font-family: var(--mono); font-weight: 500; letter-spacing: -0.06em; color: var(--teal); font-size: .9em; }
.hero .lead { margin-top: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }


/* the first screen: the three live products as windows, stacked diagonally (everything in container units, so the stack scales as a whole) */
.stack-box { width: 100%; max-width: 560px; justify-self: end; }
.stack { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 560 / 500; }
.win { position: absolute; width: 71.4%; box-shadow: 10px 10px 0 rgba(0, 0, 0, .28); animation: bob 7s ease-in-out infinite; }
.win .term-bar { padding: 0 3cqw; height: clamp(24px, 6.4cqw, 36px); font-size: clamp(10px, 2.2cqw, 12px); }
.win .term-bar i { width: clamp(7px, 1.8cqw, 10px); height: clamp(7px, 1.8cqw, 10px); }
.win img { aspect-ratio: 16 / 10; }
.w3 { left: 28.6%; top: 0; animation-delay: -4.6s; }
.w2 { left: 14.3%; top: 19%; animation-delay: -2.3s; }
.w1 { left: 0; top: 38%; }
a.win:hover, a.win:focus-visible { z-index: 5; border-color: var(--amber); transform: translate(-3px, -3px); box-shadow: 13px 13px 0 rgba(0, 0, 0, .28); }
@keyframes bob { 50% { translate: 0 -6px; } }
.stack-cap { display: flex; justify-content: space-between; gap: 16px; font: 400 13px/1.3 var(--mono); color: #7D8B98; margin-top: 8px; }
.stack-cap a { color: var(--teal); text-decoration: none; white-space: nowrap; }
.stack-cap a:hover { color: var(--paper); }

.facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 2px solid var(--line-d); }
.fact { padding: 32px 32px 40px 0; display: flex; gap: 20px; align-items: center; }
.fact + .fact { padding-left: 32px; border-left: 2px solid var(--line-d); }
.fact b { font: 700 56px/1 var(--sans); letter-spacing: -0.03em; color: var(--paper); }
.fact:nth-child(1) b { color: var(--amber); } .fact:nth-child(3) b { color: var(--teal); }
.fact span { font-size: 16px; line-height: 1.35; color: var(--soft-d); max-width: 22ch; }

/* ---------- the moving line of words ---------- */
.marquee { overflow: hidden; border-top: 2px solid var(--line-d); border-bottom: 2px solid var(--line-d); background: var(--ink2); }
.track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 24px; padding: 18px 12px; font: 500 14px/1 var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--soft-d); white-space: nowrap; }
.track span::after { content: ""; width: 8px; height: 8px; background: var(--amber); margin-left: 12px; }
.track span:nth-child(even)::after { background: var(--teal); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- what leaves the anvil ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; padding: 32px; border-radius: 20px; background: var(--ink); border: 2px solid var(--line-d); display: flex; flex-direction: column; gap: 14px; transition: transform .18s ease-out, border-color .18s, box-shadow .18s; }
.card:hover { transform: translate(-3px, -3px); border-color: var(--amber); box-shadow: 6px 6px 0 var(--line-d); }
.tile { width: 96px; height: 96px; border-radius: 16px; background: var(--ink2); border: 2px solid var(--line-d); display: grid; place-items: center; margin-bottom: 10px; color: var(--paper); transition: color .18s, border-color .18s; }
.card:hover .tile { color: var(--amber); --px-accent: var(--paper); border-color: var(--amber); }
.num { font: 500 14px/1 var(--mono); letter-spacing: 2px; color: var(--teal); }
.card h3 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 17px; line-height: 1.45; color: var(--soft-d); }

/* ---------- four strikes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; overflow: hidden; padding: 28px 24px 30px; border-radius: 16px; background: #FBFAF6; border: 2px solid var(--line-l); display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease-out, box-shadow .18s, border-color .18s; }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .22s + .2s); }
.in .step::before { transform: none; }
.step:hover { transform: translate(-3px, -3px); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.step .px { color: var(--ink); --px-accent: var(--amber-d); margin: 6px 0 8px; }
.step .num { color: var(--teal-d); }
.step h3 { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.step p { font-size: 16px; line-height: 1.45; color: var(--soft-l); }

/* ---------- business first ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.why p + p { margin-top: 18px; }
.why .lead { margin-top: 28px; }
.term { border-radius: 20px; background: #0A1017; border: 2px solid var(--line-d); overflow: hidden; box-shadow: 10px 10px 0 var(--line-d); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 2px solid var(--line-d); font: 400 13px/1 var(--mono); color: var(--soft-l); }
.term-bar i { width: 10px; height: 10px; background: var(--line-d); }
.term-bar i:nth-child(1) { background: var(--amber); } .term-bar i:nth-child(2) { background: var(--teal); }
.term-bar span { margin-left: 10px; }
.term pre { margin: 0; padding: 24px 22px 26px; font: 400 15px/1.75 var(--mono); color: #DDE5EC; white-space: pre-wrap; }
.term .ln { display: grid; grid-template-columns: 13ch minmax(0, 1fr); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease-out calc(var(--i) * .28s + .15s), transform .3s ease-out calc(var(--i) * .28s + .15s); }
.term .ln.cmd { display: block; }
.term.in .ln { opacity: 1; transform: none; }
.term .k { color: var(--amber); } .term .c { color: var(--teal); } .term .m { color: #6B7A88; }
.caret { display: inline-block; width: 9px; height: 17px; background: var(--amber); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- the call ---------- */
.call { background: var(--amber); color: var(--ink); overflow: hidden; }
.call .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.call h2 { font-size: clamp(38px, 5vw, 68px); }
.call p { font-size: 20px; line-height: 1.45; margin-top: 20px; max-width: 54ch; }
.call .cta { margin-top: 36px; align-items: center; gap: 24px; }
.call .mail { font: 500 15px/1 var(--mono); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.call .big { width: 240px; height: 240px; color: var(--ink); --px-accent: var(--paper); flex: none; }

footer { background: var(--ink); border-top: 2px solid var(--line-d); padding: 48px 0 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.foot p { color: var(--soft-d); font-size: 16px; max-width: 46ch; }
.foot nav { margin-left: auto; }
.fine { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font: 400 12px/1.5 var(--mono); color: #7D8B98; }

/* what comes into view rises once (only when the script runs: without it everything is simply there) */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .55s ease-out; transition-delay: calc(var(--d, 0) * .09s); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  :root { --gut: 24px; }
  .band { padding: 88px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lock { grid-column: span 12; min-height: 168px; }
  .sizes, .swatches { grid-column: span 12; }
}
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
  .hero-text { justify-self: stretch; }
  .stack-box { justify-self: center; }
  .cards { grid-template-columns: 1fr; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .call .wrap { grid-template-columns: minmax(0, 1fr); }
  .call .big { display: none; }
  html { scroll-padding-top: 124px; }
  .bar { flex-wrap: wrap; height: auto; min-height: 72px; gap: 0 24px; padding-top: 14px; }
  .bar .btn { margin-left: auto; }
  header nav { order: 3; width: 100%; margin: 6px 0 0; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  header nav::-webkit-scrollbar { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 24px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 2px solid var(--line-d); }
  .fact b { min-width: 3.2ch; }
  .type { grid-template-columns: 1fr; }
  .type div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--line-d); padding-top: 24px; }
  .foot nav { margin-left: 0; flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  body { font-size: 17px; }
  .band { padding: 72px 0; }
  .head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .sizes { justify-content: space-between; gap: 4px; }
  .sizes figure:last-child { display: none; }
  .lead, .call p { font-size: 18px; }
  .fact b { font-size: 44px; }
  .term pre { font-size: 13px; padding: 20px 16px; }
  .lock .wm { font-size: 30px; } .lock .wm i { font-size: 26px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .type b { font-size: 34px; } .type code { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .caret, .win { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .step::before { transform: none; transition: none; }
  .term .ln { opacity: 1; transform: none; transition: none; }
}

/* ================= the pages besides the first one ================= */
nav a { white-space: nowrap; }
nav a[aria-current="page"] { color: var(--paper); border-color: var(--amber); }

/* the head of a page */
.page-head { position: relative; overflow: hidden; padding: 88px 0 80px; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(185, 196, 206, .16) 1px, transparent 1.5px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 78% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 90% at 78% 30%, #000 0%, transparent 75%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 74px); max-width: 18ch; }
.page-head .lead { margin-top: 28px; }
.page-head .facts { margin-top: 64px; }
.page-head .fact { padding-bottom: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

/* small mono labels in a frame: the stack of a case, the links to the cases, the filters of the blog */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .chip { font: 500 12px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 9px 11px; border-radius: 9px; border: 2px solid var(--line-d); color: var(--soft-d); background: transparent; text-decoration: none; }
a.tag, .chip { cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
a.tag:hover, .chip:hover { color: var(--paper); border-color: var(--paper); }
.chip b { font-weight: 500; opacity: .6; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.more { margin-top: auto; padding-top: 6px; font: 500 14px/1 var(--mono); color: var(--teal); }
.more .arrow { display: inline-block; transition: transform .15s; }
a:hover > .more .arrow { transform: translateX(3px); }

/* a screenshot in a window frame */
.shot { display: block; border-radius: 14px; border: 2px solid var(--line-d); background: #0A1017; overflow: hidden; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s ease-out; }
.shot .term-bar { padding: 11px 14px; font-size: 12px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--paper); }
a.shot:hover { border-color: var(--amber); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--line-d); }

/* the cases as cards (the first page, the page about us) */
.case-card { padding: 14px 14px 28px; text-decoration: none; color: inherit; gap: 12px; }
.case-card .shot { margin-bottom: 10px; border-radius: 10px; }
.case-card > :not(.shot) { margin-left: 14px; margin-right: 14px; }
.case-card h3 { font-size: 28px; }
.band-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.band-foot p { color: var(--soft-d); font-size: 17px; max-width: 60ch; }

/* a case in full: the window at one side, the story at the other */
.case { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.case-shot { position: sticky; top: 104px; }
.case.flip .case-shot { order: 2; }
.case h2 { margin-bottom: 20px; }
.case h3 { font: 500 14px/1.2 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--soft-d); margin: 36px 0 18px; }
.built { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.built li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.45; color: var(--soft-d); }
.built li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--amber); }
.built li:nth-child(even)::before { background: var(--teal); }
.built b { font-weight: 600; color: var(--paper); }
.case .tags { margin-top: 32px; }
.case .cta { margin-top: 32px; }

/* the blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { position: relative; padding: 26px 26px 24px; border-radius: 18px; background: var(--ink); border: 2px solid var(--line-d); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .18s ease-out, border-color .18s, box-shadow .18s; }
.post:hover { transform: translate(-3px, -3px); border-color: var(--amber); box-shadow: 6px 6px 0 var(--line-d); }
.post[hidden] { display: none; }
.post-top { display: flex; align-items: center; gap: 12px; color: var(--paper); margin-bottom: 6px; }
.post:hover .post-top { color: var(--amber); --px-accent: var(--paper); }
.post h3 { font-size: 23px; line-height: 1.16; font-weight: 600; letter-spacing: -0.01em; }
.post p { font-size: 16px; line-height: 1.45; color: var(--soft-d); }
.post-meta { margin-top: auto; padding-top: 10px; font: 400 12px/1 var(--mono); color: #7D8B98; display: flex; justify-content: space-between; gap: 12px; }
.posts.all .post:first-child { grid-column: span 2; padding: 32px; }
.posts.all .post:first-child h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; max-width: 20ch; }
.posts.all .post:first-child p { font-size: 18px; max-width: 56ch; }
.note { margin-top: 32px; font: 400 13px/1.5 var(--mono); color: #7D8B98; }
.note a { color: var(--soft-d); }

/* about us: the toolbox */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--line-d); border-left: 2px solid var(--line-d); border-radius: 4px; }
.tool { padding: 26px 26px 30px; border-right: 2px solid var(--line-d); border-bottom: 2px solid var(--line-d); display: flex; flex-direction: column; gap: 10px; background: var(--ink); transition: background .18s; }
.tool:hover { background: #121C27; }
.tool code { font: 500 20px/1.2 var(--mono); letter-spacing: -0.03em; color: var(--teal); }
.tool:nth-child(3n + 1) code { color: var(--amber); }
.tool p { font-size: 16px; line-height: 1.45; color: var(--soft-d); }

@media (max-width: 1100px) {
  .case { gap: 40px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-head { padding: 56px 0 56px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-shot { position: static; }
  .case.flip .case-shot { order: 0; }
}
@media (max-width: 560px) {
  .posts, .tools { grid-template-columns: 1fr; }
  .posts.all .post:first-child { grid-column: auto; padding: 26px; }
  .case h3 { margin-top: 28px; }
}

/* ---------- an article (blog/<slug>.html, made by blog-build.py) ---------- */
.article { padding: 72px 0 96px; }
.crumbs { font: 500 13px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--soft-d); margin-bottom: 28px; }
.crumbs a { color: var(--teal); text-decoration: none; } .crumbs a:hover { color: var(--amber); } .crumbs span { margin: 0 6px; opacity: .5; }
.article h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; max-width: 22ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; font: 400 13px/1 var(--mono); color: #7D8B98; }
.byline .px { color: var(--paper); } .byline .tag { color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.gist { margin-top: 28px; padding: 18px 22px; border-radius: 14px; border: 2px solid var(--line-d); background: var(--ink2); font-size: 16px; line-height: 1.5; color: var(--soft-d); }
.gist b { color: var(--amber); font: 500 12px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; margin-right: 6px; }
.prose { margin-top: 48px; font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; margin-top: 1.9em; }
.prose h3 { font-size: 24px; line-height: 1.2; margin-top: 1.6em; }
.prose h4 { font: 500 14px/1.3 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-top: 1.6em; }
.prose a { color: var(--teal); text-underline-offset: 3px; } .prose a:hover { color: var(--amber); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li + li { margin-top: .45em; } .prose li::marker { color: var(--amber); }
.prose hr { border: 0; border-top: 2px solid var(--line-d); margin: 2.2em 0 0; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); color: var(--soft-d); }
.prose blockquote p { margin: 0; }
.prose .blog__page__border { padding: 18px 22px; border-radius: 14px; border: 2px solid var(--amber); background: rgba(242, 178, 74, .07); }
.prose blockquote .blog__page__border { border: 0; background: none; padding: 0; }
.prose code { font: 400 .86em/1.4 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--ink2); border: 1px solid var(--line-d); color: var(--teal); overflow-wrap: anywhere; }
.prose pre { margin-top: 1.4em; padding: 20px 22px; border-radius: 14px; background: var(--ink2); border: 2px solid var(--line-d); overflow-x: auto; }
.prose pre code { display: block; padding: 0; border: 0; background: none; color: var(--paper); font-size: 14.5px; line-height: 1.6; white-space: pre; overflow-wrap: normal; }
.prose pre.cm-host { overflow-x: visible; }
.prose .tbl { overflow-x: auto; border: 2px solid var(--line-d); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-d); }
.prose th { font: 500 12px/1.2 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--amber); background: var(--ink2); }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .article { padding: 48px 0 64px; }
  .prose { font-size: 17px; } .prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
  .prose pre { padding: 14px 16px; } .prose pre code { font-size: 13px; }
}

/* ---------- the en|ru switch (i18n.js) ---------- */
.lang { display: inline-flex; border: 2px solid var(--line-d); border-radius: 10px; overflow: hidden; flex: none; }
.lang :is(button, a) { font: 500 12px/1 var(--mono); letter-spacing: 1px; padding: 10px 11px; border: 0; background: transparent; color: var(--soft-d); cursor: pointer; transition: color .15s, background .15s; }
.lang :is(button, a) + button { border-left: 2px solid var(--line-d); }
.lang :is(button, a):hover { color: var(--paper); }
.lang :is(button, a)[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.lang :is(button, a):focus-visible { outline-offset: -3px; }
/* a page that carries both languages (the articles) shows the one of <html lang> */
html[lang="ru"] [data-l="en"], html:not([lang="ru"]) [data-l="ru"] { display: none !important; }
@media (max-width: 900px) { .bar .lang { margin-left: auto; } .bar .lang + .btn { margin-left: 0; } }

@media (max-width: 560px) { .bar > .btn.small { display: none; } }

/* ---------- the case bands: the live screen on top at the full width, the text under it in two columns ---------- */
.case.big { display: block; }
.case.big .case-shot { position: static; margin-bottom: 56px; }
.case.big .case-shot .shot { box-shadow: 10px 10px 0 rgba(0, 0, 0, .28); }
.case-shot a.shot:hover { transform: none; box-shadow: 10px 10px 0 rgba(0, 0, 0, .28); } /* the demo link of a case: only the border lights up, the window does not move */
.case.big .case-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
.case.big .case-text > * { grid-column: 1; }
.case.big .case-text > h3 { grid-column: 2; grid-row: 1; margin-top: 0; }
.case.big .case-text > .built { grid-column: 2; grid-row: 2 / span 4; }
.case.big .case-text > .eyebrow { grid-row: 1; }
@media (max-width: 900px) {
  .case.big .case-text { display: block; }
  .case.big .case-text > h3 { margin-top: 28px; }
  .case.big .case-shot { margin-bottom: 36px; }
}

/* ---------- the hero anvil (the default first screen; ?hero=stack shows the three product windows instead) ---------- */
.anvil-box { width: 100%; max-width: 460px; justify-self: center; }
/* which of the eight is shown: heroes.css */
.anvil { display: block; width: 100%; height: auto; overflow: visible; }
.a-bar { fill: #F2B24A; animation: a-cool 4s linear infinite; filter: drop-shadow(0 0 1.2px rgba(242, 178, 74, .9)); }
.a-glow { transform-box: fill-box; transform-origin: center; animation: a-glow 4s ease-out infinite; }
.a-anvil { animation: a-hit 4s ease-out infinite; }
.sp { fill: #FFE3A3; opacity: 0; animation: a-spark 4s cubic-bezier(.2, .7, .3, 1) infinite; animation-delay: var(--t); }
.sp:nth-child(3n) { fill: #F2B24A; }
@keyframes a-cool { 0% { fill: #FFF4D6; } 6% { fill: #FFE3A3; } 22% { fill: #F2B24A; } 55% { fill: #C4832A; } 85%, 100% { fill: #3CC7B0; } }
@keyframes a-glow { 0% { opacity: 1; transform: scale(1.12); } 30% { opacity: .55; transform: scale(1); } 85%, 100% { opacity: .08; transform: scale(.9); } }
@keyframes a-hit { 0% { transform: translateY(.6px); } 6%, 100% { transform: none; } }
@keyframes a-spark { 0% { opacity: 1; transform: translate(0, 0); } 18% { opacity: 0; transform: translate(var(--x), var(--y)); } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }
.anvil-cap { align-items: baseline; flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; margin-top: 4px; }
.anvil-cap > a:last-child { margin-left: auto; }
.anvil-word { font-weight: 500; }
.anvil-word.new { animation: a-word .5s ease-out; }
@keyframes a-word { from { color: #FFE3A3; text-shadow: 0 0 10px rgba(242, 178, 74, .8); } to { color: var(--teal); text-shadow: none; } }
@media (max-width: 900px) { .anvil-box { justify-self: center; max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { html:not(.motion) :is(.a-bar, .a-glow, .a-anvil, .sp, .anvil-word.new) { animation: none; } html:not(.motion) .a-glow { opacity: .5; } }

/* ---------- the hero line (the default first screen; ?hero=anvil and ?hero=stack show the other two options): a press stamps a hot billet every 2 s,
   the conveyor carries it right while it cools from white-hot to amber to teal and the name of a product comes up on it; a billet links to its case ---------- */
.forge-box { width: 100%; max-width: 580px; justify-self: end; }
.forge { display: block; width: 100%; height: auto; }
.f-head { animation: f-press 2s cubic-bezier(.5, 0, .2, 1) infinite; }
.f-edge { animation: f-edge 2s linear infinite; }
.f-glow { transform-box: fill-box; transform-origin: center; animation: f-glow 2s ease-out infinite; }
.f-sp { fill: #FFE3A3; opacity: 0; animation: f-spark 2s cubic-bezier(.2, .7, .3, 1) infinite; animation-delay: var(--t); }
.f-sp:nth-child(3n) { fill: #F2B24A; }
.f-roll { animation: f-spin 1.2s linear infinite; }
.f-belt { animation: f-belt .6s linear infinite; }
.f-bil { animation: f-move 6s linear infinite; animation-delay: var(--d); cursor: pointer; }
.f-hot { fill: #F2B24A; animation: f-cool 6s linear infinite; animation-delay: inherit; }
.f-lbl { font: 600 11px/1 var(--mono); fill: #0F1720; opacity: 0; animation: f-lbl 6s linear infinite; animation-delay: inherit; }
.f-bil:hover .f-hot, .f-bil:focus-visible .f-hot { stroke: var(--paper); stroke-width: 2; }
.forge:hover .f-bil, .forge:hover .f-hot, .forge:hover .f-lbl { animation-play-state: paused; }
.f-tick { font: 500 9px/1 var(--mono); letter-spacing: 1.5px; fill: #4A5560; }
@keyframes f-press { 0% { transform: translateY(84px); } 18% { transform: none; } 82% { transform: none; } 100% { transform: translateY(84px); } }
@keyframes f-edge { 0% { fill: #FFE3A3; } 30%, 100% { fill: #4A5560; } }
@keyframes f-glow { 0% { opacity: 1; transform: scale(1.1); } 40% { opacity: .45; transform: scale(1); } 100% { opacity: .3; } }
@keyframes f-spark { 0% { opacity: 1; transform: translate(0, 0); } 30% { opacity: 0; transform: translate(var(--x), var(--y)); } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }
@keyframes f-spin { to { transform: rotate(360deg); } }
@keyframes f-belt { to { stroke-dashoffset: -16; } }
@keyframes f-move { 0%, 6% { transform: none; opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(400px); opacity: 0; } }
@keyframes f-cool { 0% { fill: #FFF4D6; } 6% { fill: #FFE3A3; } 25% { fill: #F2B24A; } 55% { fill: #C4832A; } 80%, 100% { fill: #3CC7B0; } }
@keyframes f-lbl { 0%, 50% { opacity: 0; } 70%, 100% { opacity: 1; } }
@media (max-width: 900px) { .forge-box { justify-self: center; } }
/* no motion: the same frame, still (the negative delays leave the three billets at three stages of cooling) */
@media (prefers-reduced-motion: reduce) { html:not(.motion) :is(.f-head, .f-edge, .f-glow, .f-sp, .f-roll, .f-belt, .f-bil, .f-hot, .f-lbl) { animation-play-state: paused; } }

/* ---------- contacts ---------- */
.reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; max-width: 900px; }
.reach-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; border-radius: 18px; background: var(--ink2); border: 2px solid var(--line-d); text-decoration: none; transition: border-color .15s, transform .15s; }
.reach-card:hover { border-color: var(--amber); transform: translate(-3px, -3px); }
.reach-card small { font: 500 12px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.reach-card b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.legal-h { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line-d); }
.docs a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line-d); text-decoration: none; font-size: 17px; transition: color .15s; }
.docs a:hover { color: var(--amber); }
.reqs { margin: 0; border-top: 2px solid var(--line-d); }
.reqs div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line-d); }
.reqs dt { font: 500 12px/1.6 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft-d); }
.reqs dd { margin: 0; font-size: 17px; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 48px; } .reach { grid-template-columns: 1fr; } .reqs div { grid-template-columns: 1fr; gap: 4px; } }
