/* SB Works — "Forge, refined".
   One stylesheet for the Bulgarian page, the English page and the 404 page.
   Light by default, dark when the system or the visitor asks for it. */

/* ── Tokens ── */
:root {
  --bg: #f3efe6; --panel: #ebe5d8; --plate: #f7f3ea; --plate2: #fffdf8;
  --line: #ddd5c6; --line2: #c9bea9; --ink: #1c1a17; --muted: #5f5a51;
  --ember: #e2561c; --ember-hot: #ff9a3c; --ember-text: #b3410f; --on-ember: #1a0d05;
  --ember-soft: rgb(226 86 28 / .1); --ember-glow: rgb(226 86 28 / .16);
  --plate-hi: rgb(255 255 255 / .9); --plate-lo: rgb(60 50 40 / .12);
  --rivet-hi: #b9ae9a; --rivet-lo: #8c8170; --dot: #cfc5b3; --frame: #1c1a17;
  --shadow: rgb(60 45 20 / .28); --qa: #0f7b78;
  --radius: 10px; --max: 1160px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d0c; --panel: #151311; --plate: #1b1815; --plate2: #221e1a;
    --line: #2e2923; --line2: #3d362e; --ink: #f1e9da; --muted: #a79d8c;
    --ember: #ff7a2f; --ember-hot: #ffb35c; --ember-text: #ffb35c;
    --ember-soft: rgb(255 122 47 / .12); --ember-glow: rgb(255 110 40 / .3);
    --plate-hi: rgb(255 255 255 / .05); --plate-lo: rgb(0 0 0 / .6);
    --rivet-hi: #6d6357; --rivet-lo: #2a2520; --dot: #4a4239; --frame: #332d26;
    --shadow: rgb(0 0 0 / .55); --qa: #4fd1c5;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d0c; --panel: #151311; --plate: #1b1815; --plate2: #221e1a;
  --line: #2e2923; --line2: #3d362e; --ink: #f1e9da; --muted: #a79d8c;
  --ember: #ff7a2f; --ember-hot: #ffb35c; --ember-text: #ffb35c;
  --ember-soft: rgb(255 122 47 / .12); --ember-glow: rgb(255 110 40 / .3);
  --plate-hi: rgb(255 255 255 / .05); --plate-lo: rgb(0 0 0 / .6);
  --rivet-hi: #6d6357; --rivet-lo: #2a2520; --dot: #4a4239; --frame: #332d26;
  --shadow: rgb(0 0 0 / .55); --qa: #4fd1c5;
}

/* ── Base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--display); line-height: 1.14; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main > section { padding: 84px 0; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.eyebrow, .num {
  font: 600 12px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.num { color: var(--ember-text); letter-spacing: .1em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 30px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { color: var(--muted); max-width: 52ch; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }

/* The stamped-metal plate everything sits on */
.plate {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plate2), var(--plate));
  box-shadow: inset 0 1px 0 var(--plate-hi), 0 1px 0 var(--plate-lo);
}
.rivets::before, .rivets::after {
  content: ""; position: absolute; top: 12px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rivet-hi), var(--rivet-lo) 70%);
}
.rivets::before { left: 12px; }
.rivets::after { right: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line2); border-radius: 8px; background: var(--plate2); color: var(--ink);
  font: 600 15.5px/1.2 var(--sans); padding: 14px 20px; transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn:hover { border-color: var(--ember); transform: translateY(-1px); }
.btn.hot { background: linear-gradient(180deg, var(--ember-hot), var(--ember)); border-color: var(--ember); color: var(--on-ember); }
.btn.hot:hover { box-shadow: 0 10px 28px -10px var(--ember); }

/* ── Navbar: forged steel bar ── */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 11px 28px;
  background:
    repeating-linear-gradient(90deg, transparent 0 2px, rgb(128 128 128 / .04) 2px 3px),
    linear-gradient(180deg, color-mix(in srgb, var(--plate2) 96%, transparent), color-mix(in srgb, var(--bg) 94%, transparent));
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--plate-hi), 0 8px 24px -18px rgb(0 0 0 / .5);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand .mark { display: block; flex: none; width: 46px; height: 40px; }
.brand .anvil { fill: var(--ink); }
.brand .spark { fill: var(--ember); }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand .word small { display: flex; align-items: center; margin-top: 5px; font: 600 10px/1 var(--mono); letter-spacing: .34em; }
.brand .caret { display: inline-block; width: 5px; height: 9px; border-radius: 1px; background: var(--ember); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.nav nav { display: flex; gap: 30px; }
.nav nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav nav a::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ember-hot), var(--ember), transparent);
  box-shadow: 0 0 10px var(--ember), 0 0 2px var(--ember-hot);
  transform: scaleX(0); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.nav nav a:hover, .nav nav a.active { color: var(--ink); }
.nav nav a.active::after { transform: scaleX(1); opacity: 1; }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.lang-switch, .theme {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--muted); text-decoration: none; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-switch { font: 700 12px var(--mono); letter-spacing: .04em; }
.lang-switch:hover, .theme:hover { color: var(--ink); border-color: var(--line); background: var(--plate2); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .i-moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}
.nav-cta {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 8px; white-space: nowrap;
  font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--on-ember);
  background: linear-gradient(180deg, var(--ember-hot), var(--ember)); border: 1px solid var(--ember);
  transition: box-shadow .2s, transform .15s;
}
.nav-cta:hover { box-shadow: 0 6px 22px -8px var(--ember); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ── Hero ── */
.hero { position: relative; isolation: isolate; padding: 76px 0 40px; }
.hero::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none; left: 28%; right: -10%; bottom: -40%; height: 110%;
  background: radial-gradient(closest-side, var(--ember-glow), transparent 70%); filter: blur(10px);
  animation: forge-breathe 6s ease-in-out infinite;
}
@keyframes forge-breathe { 50% { opacity: .65; transform: scale(1.04); } }
.hero .sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.3vw, 70px); font-weight: 700; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--ember); }
.lede { font-size: 20px; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.hero-cta span { flex: 1 1 24ch; max-width: 38ch; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

/* Real sites in a browser and on a phone, taking turns */
.rig { position: relative; padding-bottom: 34px; }
.frame { border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: 0 30px 70px -20px var(--shadow); }
.reel { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
/* The next site fades in over the one showing, which stays put underneath until it is covered */
.reel img, .phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.reel img { transform: translateX(4%); }
.phone img { transform: translateY(4%); transition-delay: .12s; }
.reel img.on, .phone img.on, .reel img.out, .phone img.out { opacity: 1; transform: none; }
.reel img.out, .phone img.out { transition: none; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: var(--plate2); border-bottom: 1px solid var(--line); }
.shot-bar i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.shot-bar span { margin-left: 7px; font: 500 11px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone {
  position: absolute; right: -8px; bottom: 0; width: 27%; aspect-ratio: 9 / 18; overflow: hidden; background: var(--line);
  border: 5px solid var(--frame); border-radius: 20px; box-shadow: 0 20px 50px -10px var(--shadow);
}
/* One short bar per site at the end of the address bar: shows which one is on, and picks one */
.reel-dots { display: flex; flex: none; margin: -8px -7px -8px auto; padding-left: 6px; }
.reel-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-dots button::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--dot); transition: background .3s; }
.reel-dots button:hover::before { background: var(--muted); }
.reel-dots button[aria-current]::before { background: var(--ember); }
.reel-dots button:focus-visible { outline-offset: -3px; }
.seal, .stamp {
  background: var(--ember); color: var(--on-ember); font: 700 11px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.seal {
  position: absolute; left: -18px; bottom: 10px; max-width: 200px; padding: 11px 14px; border-radius: 6px;
  transform: rotate(-5deg); font-size: 12px; box-shadow: 0 10px 30px -6px var(--ember);
}
.seal b, .seal span { display: block; }
.seal span { margin-top: 3px; font-weight: 500; font-size: 10.5px; }
.seal b, .seal span, .rig .shot-bar > span { transition: opacity .25s; }
.rig.swap .seal b, .rig.swap .seal span, .rig.swap .shot-bar > span { opacity: 0; }

/* ── Two doors ── */
main > .doors { padding: 30px 0 70px; }
.doors h2.eyebrow { margin-bottom: 14px; }
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.door {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 30px 30px 26px; text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .3s;
}
.door:hover { border-color: var(--ember); transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--plate-hi), 0 18px 44px -22px var(--ember); }
.door .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; color: var(--ember-text); }
.door h3 { grid-column: 1; font-size: 28px; }
.door p { grid-column: 1; color: var(--muted); max-width: 44ch; margin-top: 8px; }
.door-arrow {
  grid-column: 2; grid-row: 2 / span 2; align-self: center; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line2); font-size: 20px; color: var(--ember); transition: background .2s, color .2s, border-color .2s;
}
.door:hover .door-arrow { background: var(--ember); color: var(--on-ember); border-color: var(--ember); }
.door-meta {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line2); font-weight: 600; font-size: 15px;
}
.door-meta b { color: var(--ember-text); font-weight: 600; text-align: right; }

/* ── What you get ── */
.prom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prom-grid article { padding: 26px 22px 24px; }
.prom-grid h3 { font-size: 19px; margin: 14px 0 8px; }
.prom-grid p { color: var(--muted); font-size: 15.5px; }
.prom-grid .week { display: flex; gap: 5px; margin-top: 16px; }
.week i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line2);
  font: 700 11px/1 var(--mono); font-style: normal; color: var(--muted);
}
.week i.on { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.how li { padding: 24px 24px 0 0; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.how .num { color: var(--muted); }
.how h3 { font-size: 17px; margin: 8px 0 4px; }
.how p { color: var(--muted); font-size: 15px; }

/* ── Projects ── */
.filters { display: none; }
.js .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line2); background: none; color: var(--muted); font: 600 14px/1.2 var(--sans); white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.filters button span { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.filters button:hover { color: var(--ink); border-color: var(--ember); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button[aria-pressed="true"] span { background: var(--ember); color: var(--on-ember); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .35s ease, border-color .35s ease, opacity .5s ease; }
.card:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--ember) 70%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ember) 35%, transparent), 0 18px 44px -18px color-mix(in srgb, var(--ember) 55%, transparent);
}
/* Folded cards and filtered-out cards only hide when the script is there to bring them back */
.js .cards:not(.all) .card.extra, .js .card.off { display: none; }
.shot { position: relative; overflow: hidden; background: var(--line); border-bottom: 1px solid var(--line); }
.shot-desktop { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-mobile {
  position: absolute; right: 14px; bottom: -9%; width: 20%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  background: var(--line); border: 3px solid var(--frame); border-radius: 13px; box-shadow: 0 14px 30px -12px var(--shadow);
  transition: transform .25s ease;
}
.card:hover .shot-mobile, .case-shot:hover .shot-mobile { transform: translateY(-6%); }
.shot img.missing { visibility: hidden; }
.stamp { position: absolute; left: 12px; top: 42px; z-index: 1; padding: 8px 10px; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 6px 18px -4px rgb(0 0 0 / .5); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 18px; }
.card-body h3 { font-size: 20px; }
.card-body > p:not(.eyebrow):not(.pre) { color: var(--muted); font-size: 15px; line-height: 1.55; }
.pre { font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ember-text); }
.pre::before { content: "✓ "; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 10px; }
.tags li { font: 500 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 4px; padding: 5px 6px; }
.more-row { display: flex; justify-content: center; margin-top: 30px; }
::view-transition-group(*) { animation-duration: .35s; }
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }

/* ── Case studies ── */
.case { --c: var(--ember); --c-text: var(--ember-text); padding: 28px; margin-bottom: 18px; }
.case.qa { --c: var(--qa); --c-text: var(--qa); }
.case-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.case-top > * { min-width: 0; }
.case-shot { display: block; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color .3s, box-shadow .3s; }
.case-shot:hover { border-color: var(--c); box-shadow: 0 18px 44px -22px var(--c); }
.case-shot .shot { border-bottom: 0; }
.case-shot .shot-mobile { width: 16%; right: 22px; }
.case-head .eyebrow { color: var(--c-text); }
.case-head h3 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.035em; margin: 10px 0 12px; }
.tagline { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; max-width: 36ch; }
.live { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--c-text); text-decoration: none; border-bottom: 1px solid currentColor; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; margin-top: 32px; padding-top: 28px; border-top: 1px dashed var(--line2); }
.two-col h4, .sub { font-size: 20px; margin-bottom: 14px; }
.two-col p { color: var(--muted); }
.two-col p + p { margin-top: 1em; }
.role-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 8px; padding: 22px 22px 10px; }
.role-card li { font-size: 15px; color: var(--muted); padding: 11px 0; border-top: 1px solid var(--line); }
.role-card li:first-child { border-top: 0; padding-top: 0; }
.role-card b { color: var(--ink); }
.more { margin-top: 28px; border-top: 1px solid var(--line); }
.more summary { cursor: pointer; list-style: none; padding: 16px 0 0; font-weight: 600; color: var(--c-text); display: inline-flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font: 600 18px var(--mono); }
.more[open] summary::after { content: "−"; }
.sub { margin-top: 44px; }
.more .sub:first-of-type { margin-top: 26px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.features article { background: var(--bg); padding: 20px 20px 18px; }
.features h5 { font-size: 16px; margin-bottom: 8px; }
.features h5::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 10px; vertical-align: middle; }
.features p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.arch { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.tier { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 12px; align-items: stretch; }
.tier-label { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.node { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; padding: 14px 16px; background: var(--plate); }
.node.wide { grid-column: 2 / -1; }
.node b { display: block; font-size: 15.5px; }
.node small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.flow { text-align: center; color: var(--muted); padding: 8px 0 8px 110px; font-size: 18px; }
.tier.ext { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tier.ext .tier-label { width: 110px; flex: none; }
.chip { font-size: 13.5px; padding: 6px 12px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.stack span { font: 500 12px var(--mono); padding: 6px 9px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); }

/* The four numbers, as stamped plates */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.facts li {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(circle at 10px 10px, var(--rivet-hi) 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--rivet-hi) 2.5px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--rivet-hi) 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--rivet-hi) 2.5px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgb(128 128 128 / .035) 2px 3px),
    linear-gradient(160deg, var(--plate2), var(--plate));
  box-shadow: inset 0 1px 0 var(--plate-hi), inset 0 -2px 6px var(--plate-lo);
}
.facts strong { display: block; font: 700 38px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ember); }
.facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ── Prices ── */
.prices { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 26px; }
.price.main { border-color: var(--ember); box-shadow: inset 0 3px 0 var(--ember), 0 20px 60px -30px var(--ember); }
.price h3 { font-size: 23px; }
.amount { font: 700 52px/1 var(--display); letter-spacing: -0.03em; }
.amount small { font: 600 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.on-request { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-block: 1px dashed var(--line2); }
.on-request b { font: 700 21px/1.2 var(--display); letter-spacing: -0.01em; }
.on-request span { font: 600 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember-text); white-space: nowrap; }
.price ul { display: grid; gap: 9px; }
.price li { position: relative; padding-left: 24px; font-size: 15.5px; }
.price li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 10px; height: 2px; background: var(--ember); }
.price .costs { padding: 14px 0; border-block: 1px dashed var(--line2); }
.price .costs li { font-weight: 600; }
.price .btn { margin-top: auto; }

/* ── Services ── */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.roles article { padding: 24px 22px; transition: border-color .35s ease, box-shadow .35s ease, opacity .5s ease, transform .5s ease; }
.roles article:hover { border-color: color-mix(in srgb, var(--ember) 70%, var(--line)); }
.roles h3 { font-size: 19px; margin: 12px 0 8px; }
.roles p { color: var(--muted); font-size: 15.5px; }

/* ── Contact and footer ── */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 30px 48px; align-items: center; padding: 44px 40px; }
.contact h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.contact p { color: var(--muted); }
.contact-links { display: grid; gap: 10px; min-width: min(320px, 100%); }
.contact-links .btn { justify-content: flex-start; overflow-wrap: anywhere; }
.contact-links .btn.hot { justify-content: center; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 24px 40px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }

/* ── Sections fade in as they scroll into view ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease, border-color .35s ease, box-shadow .35s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* Once in, cards and doors answer the pointer at their own speed again */
.js .reveal.in:is(.card, .door) { transition: transform .25s ease, box-shadow .35s ease, border-color .35s ease, opacity .5s ease; }
.js .reveal.in:is(.card, .door):hover { transform: translateY(-3px); }

/* ── Smaller screens ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .prom-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: 1fr; }
  .case-top, .two-col { grid-template-columns: 1fr; gap: 26px; }
  .features, .roles { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 34px 26px; }
}
/* Under 900px the links fold into a panel below the header */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .js .nav-toggle {
    order: 5; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px;
    border-radius: 8px; border: 1px solid var(--line); background: var(--plate2); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-toggle .cross, .nav.open .nav-toggle .bars { display: none; }
  .nav.open .nav-toggle .cross { display: block; }
  .nav.open nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 4px 24px 10px;
    background: var(--plate2); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .5);
  }
  .nav.open nav a { padding: 15px 2px; font-size: 16.5px; border-top: 1px solid var(--line); }
  .nav.open nav a:first-child { border-top: 0; }
  .nav.open nav a::after { display: none; }
  .nav.open nav a.active { color: var(--ember-text); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main > section { padding: 60px 0; }
  .hero { padding: 48px 0 30px; }
  main > .doors { padding: 20px 0 54px; }
  .nav { padding: 10px 14px; gap: 6px; }
  .nav-tools { gap: 0; }
  .lang-switch, .theme { width: 30px; }
  .js .nav-toggle { width: 34px; height: 34px; }
  .nav.open nav { padding: 4px 16px 10px; }
  .nav-cta { padding: 8px 14px; font-size: 13.5px; }
  .brand { gap: 10px; }
  .brand .mark { width: 40px; height: 35px; }
  .lede { font-size: 18px; }
  .seal { left: 0; }
  .rig { padding-right: 8px; }
  /* Room for the address beside the six bars */
  .rig .shot-bar i { display: none; }
  .rig .shot-bar > span { margin-left: 0; }
  .reel-dots button { width: 20px; }
  .reel-dots button::before { width: 12px; }
  .door-grid { grid-template-columns: 1fr; }
  .door { padding: 26px 22px 22px; }
  .how { grid-template-columns: 1fr; }
  .how li + li { padding-left: 0; border-left: 0; }
  .case { padding: 18px; }
  .features, .roles { grid-template-columns: 1fr; }
  .arch { padding: 16px; }
  .tier { grid-template-columns: 1fr; }
  .node.wide { grid-column: auto; }
  .flow { padding-left: 0; }
  .tier.ext .tier-label { width: 100%; }
  .foot { padding: 24px 16px 36px; }
  /* Rows that swipe sideways on a phone */
  .cards, .prom-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar, .prom-grid::-webkit-scrollbar { display: none; }
  .cards > *, .prom-grid > * { flex: 0 0 84%; scroll-snap-align: center; }
  .js .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
  .js .filters::-webkit-scrollbar { display: none; }
}
@media (max-width: 380px) {
  .brand .word b { font-size: 17px; }
  .brand .word small { display: none; }
  .brand .mark { width: 34px; height: 30px; }
  .nav-cta { padding: 8px 12px; }
}
@media (max-width: 340px) { .brand .word { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand .caret, .hero::before { animation: none; }
  .hero .sparks { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .shot-mobile, .door, .btn, .nav nav a::after, .filters button { transition: none; }
  .reel img, .phone img, .seal b, .seal span, .rig .shot-bar > span { transition: none; }
}

/* ── 404 page ── */
.notfound { min-height: calc(100vh - 150px); display: grid; align-content: center; justify-items: center; text-align: center; padding: 64px 24px; }
.notfound .code {
  margin: 0; font: 700 clamp(96px, 24vw, 210px)/1 var(--mono); letter-spacing: -0.04em; color: var(--ember);
  text-shadow: 0 0 60px var(--ember-glow), 0 1px 0 var(--plate-hi), 0 -1px 0 var(--plate-lo);
}
.notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 18px 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 6px; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
