
/* Layout: "a proposal on one page" — offer + short form above the fold, real project screens, outcomes, packages,
   process, terms, contact buttons, ecosystem. Tokens: ui-design-system (classic: radius 4–8, type scale 1.25);
   palette: oxblood on warm stone. */
:root {
  --brand: #7A2C2F; --brand-600: #652326; --brand-700: #3A1A1B;
  --tint: #F4EAE7; --tint-2: #E8D6D1;
  --bg: #FBFAF8; --surface: #F3F1ED; --ink: #1C1A19; --ink-2: #3D3936; --muted: #6A645E; --line: #E3DED7;
  --on-brand: #FFFFFF; --band-ink: #F6EDEA; --band-muted: #E3CFCA;
  --r-sm: 4px; --r: 6px; --r-lg: 8px;
  --fs-sm: 14px; --fs-base: 16px; --fs-lg: 20px; --fs-xl: 25px; --fs-2xl: 31px; --fs-3xl: 39px; --fs-4xl: 49px;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #D9928C; --brand-600: #E6A9A4; --brand-700: #2A1415; --tint: #2B1D1C; --tint-2: #3A2725;
  --bg: #141211; --surface: #1C1918; --ink: #EEE9E4; --ink-2: #D2CBC4; --muted: #A59D95; --line: #2F2A27; --on-brand: #2A0F10; color-scheme: dark } }
:root[data-theme="dark"] {
  --brand: #D9928C; --brand-600: #E6A9A4; --brand-700: #2A1415; --tint: #2B1D1C; --tint-2: #3A2725;
  --bg: #141211; --surface: #1C1918; --ink: #EEE9E4; --ink-2: #D2CBC4; --muted: #A59D95; --line: #2F2A27; --on-brand: #2A0F10; color-scheme: dark }

body { background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.6 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(32px, 4.4vw, var(--fs-4xl)); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, var(--fs-3xl)); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--brand); margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); background: var(--brand); color: var(--on-brand); font: 600 var(--fs-base) var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .18s ease-out; }
.btn:hover { background: var(--brand-600); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover { border-color: var(--brand); color: var(--brand); }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
svg.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.proto { background: #2A1415; color: #F6EDEA; font-size: 13px; text-align: center; padding: 8px 16px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 60; }

/* preloader: the a1e mark turns while the page loads, then fades; never longer than 1.6 s */
.pre { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .35s ease-out, visibility .35s; }
.pre div { display: grid; justify-items: center; gap: 18px; }
.pre svg { width: 76px; height: 76px; color: var(--brand); animation: a1eturn 1.4s cubic-bezier(.45,.05,.35,1) infinite; }
.pre p { font: 500 13px var(--mono); color: var(--muted); margin: 0; }
.pre.gone { opacity: 0; visibility: hidden; }
@keyframes a1eturn { 0% { transform: perspective(400px) rotateY(0); } 60%, 100% { transform: perspective(400px) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .pre svg { animation: none; } }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-size: var(--fs-lg); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; color: var(--brand); flex: none; }
.logo b { font-weight: 700; } .logo b span { color: var(--muted); font-weight: 500; }
nav.main { display: flex; gap: 22px; font-size: 15px; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--ink-2); } nav.main a:hover { color: var(--brand); }
.langs { display: flex; gap: 2px; font: 500 13px var(--mono); }
.langs a { text-decoration: none; color: var(--muted); padding: 6px 7px; border-radius: var(--r-sm); }
.langs a[aria-current] { color: var(--ink); background: var(--surface); }
.cbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; transition: border-color .18s ease-out, color .18s ease-out; }
.cbtn:hover { border-color: var(--brand); color: var(--brand); }
.cbtn svg { width: 18px; height: 18px; }
.cbtn.main { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cbtn.main:hover { background: var(--brand-600); color: var(--on-brand); }
header .cbtn { min-height: 40px; padding: 0 12px; }
@media (max-width: 1140px) { header .cbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } header .cbtn { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 900px) { nav.main { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .langs { display: none; } header .cbtns { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; padding-block: 64px; align-items: start; }
.hero .lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: 20px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { color: var(--brand); margin-top: 2px; }
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.quick h2 { font-size: var(--fs-xl); margin-bottom: 4px; }
.quick form { display: grid; gap: 14px; margin-top: 16px; }
.quick label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.quick .req { color: var(--brand); }
.quick input, .quick select, .quick textarea { font: 400 var(--fs-base) var(--sans); min-height: 46px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.quick .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.quick .err { font-size: 13px; color: #B42318; font-weight: 500; display: none; }
.quick .invalid .err { display: block; } .quick .invalid input { border-color: #B42318; }
.quick .done { display: none; padding: 14px; border-radius: var(--r); background: var(--tint); font-size: 15px; }
.quick.sent form { display: none; } .quick.sent .done { display: block; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px; } }

section.sec { padding-block: 80px; }
section.sec.alt { background: var(--surface); }
.sh { max-width: 42em; margin-bottom: 40px; }
.sh p { color: var(--muted); font-size: var(--fs-lg); margin-top: 12px; }

/* work: real screens */
.cases { display: grid; gap: 72px; }
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.case:nth-child(even) .shot { order: 2; }
.shot { position: relative; padding-bottom: 28px; padding-right: 36px; }
.browser { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); box-shadow: 0 1px 2px rgba(28,26,25,.05), 0 12px 32px rgba(28,26,25,.09); }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface); font: 500 12px var(--mono); color: var(--muted); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser .bar b { margin-left: 8px; font-weight: 500; }
.browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; height: auto; }
.phone { position: absolute; right: 0; bottom: 0; width: 26%; min-width: 96px; border: 6px solid #1C1A19; border-radius: 22px; overflow: hidden; background: #1C1A19; box-shadow: 0 14px 30px rgba(28,26,25,.25); }
.phone img { aspect-ratio: 390 / 780; object-fit: cover; object-position: top; width: 100%; height: auto; border-radius: 14px; }
.shot.dual { padding: 0 0 34px; }
.shot.dual .back { width: 84%; }
.shot.dual .front { position: absolute; right: 9%; top: 26%; width: 66%; box-shadow: 0 16px 40px rgba(28,26,25,.18); }
.shot.dual .phone { width: 19%; right: 0; bottom: 0; z-index: 2; }
.shot.dual { min-height: 0; }
.shot.dual::after { content: ""; display: block; padding-top: 22%; }
.browser .bar em { margin-left: auto; font-style: normal; font: 600 11px var(--sans); color: var(--brand); background: var(--tint); padding: 2px 8px; border-radius: 999px; }
.acts2 { display: flex; gap: 10px; flex-wrap: wrap; }
.case .k { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.case h3 { font-size: var(--fs-2xl); margin: 6px 0 14px; }
.case dl { margin: 0 0 20px; display: grid; gap: 12px; }
.case dt { font-weight: 600; font-size: 15px; }
.case dd { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); gap: 24px; } .case:nth-child(even) .shot { order: 0; } .shot { padding-right: 24px; } }

/* outcomes */
.out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.out div { background: var(--bg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.out svg { color: var(--brand); width: 26px; height: 26px; }
.out p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .out { grid-template-columns: minmax(0, 1fr); } }

/* packages */
.pk-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
table.pk { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.pk th, .pk td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk thead th { font-size: var(--fs-lg); font-weight: 700; }
.pk thead th small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.pk tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.pk td { text-align: center; }
.pk .y { color: var(--brand); font-weight: 700; } .pk .n { color: var(--muted); }
.pk tr.price td, .pk tr.price th { background: var(--tint); font-weight: 600; }
.pk .ph { font-family: var(--mono); border-bottom: 1px dashed var(--brand); }
.pk .pop { background: var(--tint); }
.pk-note { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* process */
.tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.tl li { counter-increment: s; padding: 0 20px 0 0; position: relative; }
.tl li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; }
.tl li::after { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 2px; background: var(--tint-2); }
.tl li:last-child::after { display: none; }
.tl h3 { margin-bottom: 6px; } .tl p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .tl { grid-template-columns: minmax(0, 1fr); gap: 22px; } .tl li { padding: 0 0 0 52px; } .tl li::before { position: absolute; left: 0; top: 0; } .tl li::after { display: none; } }

/* terms */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.terms > div { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.terms > div > div { flex: 1; min-width: 0; }
.terms svg { color: var(--brand); }
.terms p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .terms { grid-template-columns: minmax(0, 1fr); } }

/* closing band */
.band { background: var(--brand-700); color: var(--band-ink); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.band h2 { color: #fff; max-width: 18em; }
.band p { color: var(--band-muted); margin: 10px 0 0; }
.band .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn { background: #fff; color: #3A1A1B; } .band .btn:hover { background: #F4EAE7; }
.band .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* ecosystem */
.eco { padding-block: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.eco-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.eco a { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .18s ease-out, transform .18s ease-out; min-width: 0; }
.eco a:hover { border-color: var(--brand); transform: translateY(-2px); }
.eco .thumb { aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; border-bottom: 1px solid var(--line); }
.eco .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.eco .thumb.hub { display: grid; place-items: center; background: var(--brand-700); }
.eco .thumb.hub svg { width: 44px; height: 44px; color: #F6EDEA; }
.eco .txt { padding: 12px 14px; display: grid; gap: 2px; }
.eco b { font: 500 14px var(--mono); color: var(--brand); overflow-wrap: anywhere; }
.eco span { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .eco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

footer.bottom { padding-block: 32px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
footer.bottom .f { display: inline-flex; align-items: center; gap: 10px; }
footer.bottom .f svg { width: 22px; height: 22px; color: var(--brand); }

/* ───────────── v2 (2026-10-03): mobile pass, portfolio stories, page transitions ─────────────
   Loaded after the v1 rules from index.tpl.html, so everything here wins in the cascade.
   Tokens stay the same (ui-design-system, classic preset); motion tokens are new. */
:root { --ease-out: cubic-bezier(.2,.7,.2,1); --t-fast: 160ms; --t: 260ms; --t-slow: 520ms; --bar-h: 64px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }

/* page transitions: same-origin navigation morphs instead of a white flash (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 170ms ease-in both vt-out; }
::view-transition-new(root) { animation: 340ms var(--ease-out) both vt-in; }
::view-transition-group(*) { animation-duration: 460ms; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* reveal on scroll — only when JS runs and motion is allowed, so content is never hidden without it */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) ease-out, transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* header: solid, so text never shows through while scrolling */
header.top { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { header.top { background: var(--bg); } }
header.top .wrap { gap: 16px; }
nav.main a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; } .menu-btn[aria-expanded="true"] .x { display: block; } .menu-btn[aria-expanded="true"] .h { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  header.top .langs, header.top .cbtns { display: none; }
  header.top .logo { margin-right: auto; }
}
/* mobile menu sheet */
.sheet { position: fixed; inset: var(--bar-h) 0 auto 0; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28,26,25,.14);
  padding: 8px 20px 22px; transform-origin: top; animation: sheet-in var(--t) var(--ease-out); max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet > nav { display: grid; }
.sheet > nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font: 600 18px var(--sans); text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet > nav a::after { content: "›"; color: var(--muted); font-weight: 400; }
.sheet .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.sheet .langs { display: flex; }
.sheet .langs a { padding: 10px 14px; font-size: 14px; min-height: 0; border: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

/* sticky action bar on phones — appears once the hero form is out of view */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--t) var(--ease-out); }
  .mbar.on { transform: none; }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: var(--r); font: 600 15px var(--sans); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
  .mbar a.main { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
  .mbar svg { width: 18px; height: 18px; }
  body.has-mbar { padding-bottom: 76px; }
}

/* hero on phones: shorter, form sooner */
@media (max-width: 760px) {
  .hero { padding-block: 28px 36px; gap: 26px; }
  .hero .lead { font-size: 17px; margin-top: 14px; }
  .hero .lead .more { display: none; }
  .checks { margin-top: 18px; gap: 8px; font-size: 15px; }
  .quick { padding: 20px 18px; }
  section.sec { padding-block: 56px; }
  .sh { margin-bottom: 26px; } .sh p { font-size: 17px; }
}

/* home cases: price chip + story link */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font: 500 13px var(--sans); color: var(--ink-2); }
.chip.price { background: var(--tint); border-color: var(--tint-2); color: var(--brand); font-weight: 600; }
.acts2 .btn { min-height: 44px; }
.btn .ic { width: 18px; height: 18px; }
.more-work { margin-top: 48px; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .cases { gap: 52px; }
  .case h3 { font-size: var(--fs-xl); }
  .case dl { gap: 8px; }
  .shot.dual .front { top: 30%; }
}

/* outcomes: compact two columns on phones */
@media (max-width: 560px) {
  .out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .out div { padding: 16px 14px; gap: 6px; }
  .out h3 { font-size: 16px; }
  .out p { font-size: 13.5px; line-height: 1.45; }
  .out svg { width: 22px; height: 22px; }
}

/* packages: the table stays for wide screens, cards replace it on phones */
.pk-cards { display: none; }
@media (max-width: 760px) {
  .pk-wrap { display: none; }
  .pk-cards { display: grid; gap: 14px; }
  .pkc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); padding: 18px; }
  .pkc.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
  .pkc h3 { font-size: 19px; } .pkc small { display: block; color: var(--muted); margin-top: 2px; font-size: 14px; }
  .pkc ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: 15px; }
  .pkc li { display: flex; gap: 10px; align-items: flex-start; }
  .pkc li::before { content: "✓"; color: var(--brand); font-weight: 700; width: 14px; flex: none; }
  .pkc li.n { color: var(--muted); } .pkc li.n::before { content: "–"; color: var(--muted); }
  .pkc .pr { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
  .pkc .pr span { color: var(--brand); }
  .pkc .tag { float: right; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--on-brand); background: var(--brand); padding: 3px 8px; border-radius: 999px; }
}

/* ───────────── portfolio index (/work/) ───────────── */
.page-hero { padding-block: 56px 28px; }
.page-hero .lead { font-size: var(--fs-lg); color: var(--ink-2); margin-top: 14px; max-width: 38em; }
.crumbs { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 28px; }
.filters button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font: 500 14px var(--sans); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 80px; }
@media (max-width: 1000px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .page-hero { padding-block: 32px 18px; } }
.wcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t-fast); }
.wcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,26,25,.12); border-color: var(--tint-2); }
.wcard .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.wcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms var(--ease-out); }
.wcard:hover .thumb img { transform: scale(1.035); }
.wcard .body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.wcard .k { font: 500 13px var(--mono); color: var(--brand); }
.wcard h2 { font-size: 22px; }
.wcard p { color: var(--muted); font-size: 15px; margin: 0; }
.wcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.wcard .foot b { color: var(--brand); font-weight: 600; }
.wcard .foot span { color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.wcard[hidden] { display: none; }

/* ───────────── case story (/work/<slug>/) ───────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 11; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
.story-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 40px 56px; }
@media (max-width: 900px) { .story-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 40px; } }
.story-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.story-hero .lead { font-size: var(--fs-lg); color: var(--ink-2); margin: 16px 0 22px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 24px; }
.facts div { background: var(--bg); padding: 12px 14px; }
.facts dt { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.facts .cost { background: var(--tint); } .facts .cost dd { color: var(--brand); font-size: 19px; }
.chapter { padding-block: 64px; border-top: 1px solid var(--line); }
.chapter .num { font: 500 13px var(--mono); color: var(--brand); }
.chapter h2 { margin: 6px 0 18px; }
.prose { max-width: 40em; font-size: 18px; color: var(--ink-2); }
.prose p { margin-bottom: 16px; }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.goals div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--bg); }
.goals b { display: block; font-size: 17px; margin-bottom: 4px; } .goals p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 620px) { .goals { grid-template-columns: minmax(0, 1fr); } .prose { font-size: 17px; } .chapter { padding-block: 44px; } }

.pages { display: grid; gap: 72px; margin-top: 36px; }
.pg { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.pg:nth-child(even) .shot { order: 2; }
.pg .n { font: 500 13px var(--mono); color: var(--muted); }
.pg h3 { font-size: var(--fs-xl); margin: 6px 0 12px; }
.pg p { color: var(--ink-2); }
.pg .why { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--tint); color: var(--ink); font-size: 15px; margin: 14px 0 16px; }
.pg .why b { color: var(--brand); white-space: nowrap; }
.pg .open { font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.pg .open:hover { text-decoration: underline; }
@media (max-width: 900px) { .pages { gap: 52px; } .pg { grid-template-columns: minmax(0, 1fr); gap: 20px; } .pg:nth-child(even) .shot { order: 0; } .pg h3 { font-size: 21px; } }

.owner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.owner div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--bg); }
.owner svg { color: var(--brand); margin-bottom: 8px; }
.owner b { display: block; margin-bottom: 4px; } .owner p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .owner { grid-template-columns: minmax(0, 1fr); } }

.cost-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 32px; border-radius: var(--r-lg); background: var(--brand-700); color: var(--band-ink); margin-top: 10px; }
.cost-box .big { font: 700 clamp(34px, 5vw, 52px)/1.05 var(--sans); color: #fff; letter-spacing: -.02em; margin: 8px 0 12px; }
.cost-box p { color: var(--band-muted); }
.cost-box h3 { color: #fff; margin-bottom: 10px; }
.cost-box ul { margin: 0; padding-left: 18px; color: var(--band-ink); display: grid; gap: 6px; }
.cost-box .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cost-box .btn { background: #fff; color: #3A1A1B; } .cost-box .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cost-box .eyebrow { color: var(--band-muted); }
@media (max-width: 760px) { .cost-box { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 20px; } }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 56px 72px; }
.next a { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color var(--t-fast), transform var(--t) var(--ease-out); }
.next a:hover { border-color: var(--brand); transform: translateY(-2px); }
.next small { font: 500 13px var(--mono); color: var(--muted); } .next b { font-size: 20px; } .next span { color: var(--muted); font-size: 15px; }
.next a.r { text-align: right; }
@media (max-width: 620px) { .next { grid-template-columns: minmax(0, 1fr); } .next a.r { text-align: left; } }

/* ── Home redesign 2026-10-12 (approved mockup s-a1ex): the work speaks first ──
   Familjen Grotesk for headings (Cyrillic falls back to IBM Plex glyph by glyph), the brand wine stays. */
.hx-page h1, .hx-page h2, .hx-page h3 { font-family: 'Familjen Grotesk', 'IBM Plex Sans', system-ui, sans-serif; }
.hx-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; padding-block: 48px 28px; }
.hx-hero h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; margin-top: 10px; }
.hx-hero aside { min-width: 0; }
.hx-hero .lead { font-size: 17px; color: var(--ink-2); margin: 0; }
.hx-hero .lead .more { display: inline; }
.hx-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.hx-cta .btn .ic { width: 18px; height: 18px; }
.hx-link { font-weight: 600; color: var(--ink); text-underline-offset: 4px; }
.hx-link:hover { color: var(--brand); }
.hx-reel { overflow: hidden; padding: 8px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hx-track { display: flex; gap: 16px; width: max-content; animation: hx-reel 70s linear infinite; }
.hx-reel:hover .hx-track, .hx-reel:focus-within .hx-track { animation-play-state: paused; }
@keyframes hx-reel { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .hx-track { animation: none; } .hx-reel { overflow-x: auto; } }
.hx-shot { flex: none; width: 400px; display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.hx-shot .im { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hx-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .hx-shot:hover img { transform: scale(1.03); } }
.hx-shot .cap { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hx-shot b { font-weight: 600; } .hx-shot small { color: var(--muted); font-size: 14px; text-align: right; }

.hx-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.hx-case { padding: 22px 26px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.hx-case:nth-child(odd) { border-right: 1px solid var(--line); }
.hx-case:nth-child(even) { padding-left: 26px; padding-right: 0; }
.hx-case header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hx-case h3 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.hx-case .chip.price { font-weight: 600; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; background: none; padding: 0; border: 0; }
.hx-case dl { margin: 0; display: grid; gap: 8px; }
.hx-case dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hx-case dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.hx-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; margin-top: 4px; }
.hx-more .ic { width: 16px; height: 16px; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.hx-more:hover .ic { transform: translateX(3px); }

.hx-page #process .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.hx-page #process .tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }

.hx-quick .wrap { display: grid; justify-items: center; }
.hx-quick .quick { width: 100%; max-width: 640px; }

@media (max-width: 900px) {
  .hx-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 20px; }
  .hx-shot { width: 280px; }
  .hx-cases { grid-template-columns: minmax(0, 1fr); }
  .hx-case, .hx-case:nth-child(even) { padding: 18px 0 20px; border-right: 0; }
  .hx-page #process .wrap, .hx-page #process .tl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.hx-page #process .tl li { padding-bottom: 18px; } .hx-page #process .tl li::after { display: none; }
.hx-hero .lead .more::before { content: " "; }

/* 2026-10-24: «Order a project» in the header opens the price calculator; on narrow screens it lives in the menu sheet */
.top .order-btn{white-space:nowrap;min-height:40px;padding:8px 16px;font-size:var(--fs-sm)}
@media (max-width:1100px){.top .order-btn{display:none}}
